stdioext: Add support for musl libc.
[gnulib.git] / ChangeLog
1 2012-06-19  Bruno Haible  <bruno@clisp.org>
2
3         stdioext: Add support for musl libc.
4
5         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
6         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
7
8         * m4/fseterr.m4: New file.
9         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
10         function exists.
11         * modules/fseterr (Files): Add m4/fseterr.m4.
12         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
13         __fseterr does not exist.
14         (Makefile.am): Remove fseterr.c from lib_SOURCES.
15
16         * lib/freadable.h: Update comment.
17
18         * lib/fwritable.h: Update comment.
19
20         * lib/freading.h: Update comment.
21
22         * lib/fwriting.h: Update comment.
23
24         * m4/freadahead.m4: New file.
25         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
26         that function exists.
27         * modules/freadahead (Files): Add m4/freadahead.m4.
28         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
29         __freadahead does not exist.
30         (Makefile.am): Remove freadahead.c from lib_SOURCES.
31
32         * m4/freadptr.m4: New file.
33         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
34         function exists.
35         * modules/freadptr (Files): Add m4/freadptr.m4.
36         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
37         __freadptr does not exist.
38         (Makefile.am): Remove freadptr.c from lib_SOURCES.
39
40         * m4/freadseek.m4: New file.
41         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
42         exists.
43         * modules/freadseek (Files): Add m4/freadseek.m4.
44         (configure.ac): Invoke gl_FUNC_FREADSEEK.
45
46         * lib/fpurge.c (fpurge): Update comment.
47
48         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
49
50 2012-06-19  Bruno Haible  <bruno@clisp.org>
51
52         *printf-posix: Put more info into config.log.
53         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
54         exit code into config.log.
55
56 2012-06-19  Bruno Haible  <bruno@clisp.org>
57
58         getopt-gnu: Fix exit code overflow in autoconf test.
59         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
60         to keep them below < 128.
61
62 2012-06-17  Jim Meyering  <meyering@redhat.com>
63
64         maint.mk: fix typo in code to derive GPG key at release time
65         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
66
67 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
68
69         regex: avoid warning when pointers are not long
70         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
71         and uintptr_t, not long, for portability to hosts where pointers and
72         long have different sizes.  Issue noted by Daniel P. Berrange in
73         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
74         and fix suggested by Bruno Haible in
75         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
76
77 2012-06-17  Bruno Haible  <bruno@clisp.org>
78
79         dummy: Relicense into the public domain.
80         * modules/dummy (License): Set to "public domain".
81         Suggested by Reuben Thomas.
82
83 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
84
85         announce-gen: VPATH issues
86         * build-aux/announce-gen (--srcdir): New option, used to trim the
87         $srcdir part of the path from $builddir to NEWS.
88         * top/maint.mk (announcement): Adjust.
89
90 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
91
92         gnu-web-doc-update: VPATH builds
93         * build-aux/gnu-web-doc-update (--builddir): New option.
94         Revamp the handling of options.
95         Prefer $(...) to `...`.
96         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
97         the template, and it is GNU mktemp specific.
98         Prefer set -e to long series of &&.
99         Restore the initial git branch, not "master".
100         Properly initialize submodules (don't rely only on bootstrap).
101         Do not reconfigure blindly, use config.status.
102         * top/README-release: Update instructions for gnu-web-doc-update.
103
104 2012-06-11  Jim Meyering  <meyering@redhat.com>
105
106         maint.mk: revert most of the previous change re "all these"
107         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
108         For rationale, see the discussion at
109         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
110
111 2012-06-10  Karl Berry  <karl@gnu.org>
112
113         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
114
115         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
116
117 2012-06-10  Bruce Korb  <bkorb@gnu.org>
118
119         parse-duration: Relicense under LGPLv2+.
120         * modules/parse-duration (License): Change to LGPLv2+.
121
122 2012-06-10  Jim Meyering  <meyering@redhat.com>
123
124         maint.mk: prohibit common grammar error: "all these"
125         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
126         the list of prohibited word sequences.  It should be "all of these".
127         * lib/tempname.c (__gen_tempname): Fix one of them.
128
129 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
130
131         do-release-commit-and-tag: support VPATH builds
132         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
133         (noteworthy): Defined earlier to factor its value.
134         (noteworthy_stub): New.
135         Use it to factor.
136         (help_version): Split into...
137         (help, version): these.
138         Adjust the option processing part.
139         Support "--option=value" in addition to "--option value".
140         (builddir): New.
141         (--builddir): New option.
142         * top/README-release: Document this.
143         Reword slightly so that the reader cannot understand that he
144         has to do these steps before calling do-release-commit-and-tag.
145
146 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
147
148         readme-release: also require announce-gen and maintainer-makefile
149         * modules/readme-release (Depends-on): here.
150         * modules/announce-gen, modules/do-release-commit-and-tag,
151         modules/gnu-web-doc-update, modules/maintainer-makefile
152         (Description): Point to readme-release.
153
154 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
155
156         maint.mk: fix VPATH issues.
157         * top/maint.mk (news-check): GNU Make understand $< very well.
158         (release-prep): NEWS is in $(srcdir).
159
160 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
161
162         readme-release: require the promoted modules.
163         * modules/readme-release (Depends-on): Add
164         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
165         in this text.
166
167 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
168             Bruno Haible  <bruno@clisp.org>
169
170         error, strerror-override: Support mingw64 from Fedora 17.
171         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
172         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
173         EINPROGRESS.
174         * lib/strerror-override.h (strerror_override): Test it.
175         * lib/strerror-override.c (strerror_override): Likewise.
176         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
177
178 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
179             Bruno Haible  <bruno@clisp.org>
180
181         error, strerror-override: Support mingw64 from Fedora 17.
182         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
183         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
184         * lib/strerror-override.h (strerror_override): Test it.
185         * lib/strerror-override.c (strerror_override): Likewise.
186
187 2012-06-03  Bruno Haible  <bruno@clisp.org>
188
189         error, strerror-override: Support new errno values from POSIX:2008.
190         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
191         ENOTRECOVERABLE.
192         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
193         platforms.
194         * lib/strerror-override.c (strerror_override): Conditionalize the
195         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
196         * lib/strerror-override.h (strerror_override): Declare also if
197         GNULIB_defined_EOWNERDEAD is defined.
198         * tests/test-errno.c (e130, e131): New variables.
199         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
200         ENOTRECOVERABLE.
201         Reported by Paolo Bonzini.
202
203 2012-05-31  Jim Meyering  <meyering@redhat.com>
204
205         savewd: add missing dependency on sys_wait module
206         * modules/savewd (Depends-on): Add sys_wait, needed at least
207         for MSVC.  Report and suggested change by Michael Goffioul.
208
209 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
210
211         system-quote-tests: port to CentOS 5
212         Problem reported by Tom G. Christensen in
213         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
214         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
215
216 2012-05-29  Jim Meyering  <meyering@redhat.com>
217
218         maint: fix typos in comments and ChangeLog
219         Culprits identified and fixed mostly automatically using these commands:
220         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
221         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
222         using http://github.com/lyda/misspell-check
223         * ChangeLog: Fix typos.
224         * doc/solaris-versions: Likewise.
225         * lib/regexec.c (re_search_stub): Likewise.
226         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
227
228 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
229
230         manywarnings: remove duplicate -Wmultichar entry
231         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
232         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
233         so keep the entry marked as documented.
234
235 2012-05-27  Karl Berry  <karl@gnu.org>
236
237         * config/srclist.txt (mktime.c): remove last libc sync,
238         perhaps just temporarily.
239
240 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
241
242         regex: don't assume uint64_t or uint32_t
243         * lib/regcomp.c (init_word_char): Don't assume that the types
244         uint64_t and uint32_t exist.  The C standard doesn't guarantee
245         them, and on some 32-bit compilers there is no uint64_t.
246         Problem reported by Gianluigi Tiesi in
247         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
248
249 2012-05-25  Jim Meyering  <meyering@redhat.com>
250
251         maint.mk: add strncpy-prohibiting syntax-check rule
252         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
253
254 2012-05-24  Jim Meyering  <meyering@redhat.com>
255
256         maint.mk: compute $(gpg_key_ID) more portably
257         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
258         That use of sed is not portable to some fringe systems.
259         Reported by Paul Eggert in
260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
261
262 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
263
264         mktime: sync from glibc
265         * config/srclist.txt: Uncomment mktime.c.
266         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
267         First, indent with tabs, since glibc uses tabs and doesn't want to
268         change and we'd rather be identical to glibc.  Also, two small
269         coding changes:
270         (isdst_differ): Use &&, not &, as && is the usual style.
271         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
272         for clarity.
273
274 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
275
276         announce-gen: du -h is more portable than du --human
277         * build-aux/announce-gen (sizes): Invoke du with -h instead
278         of --human.  Accept leading white space in its output.
279
280 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
281
282         announce-gen: Improve diagnostics.
283         * build-aux/announce-gen: When parsing command line options,
284         prefer "announce-gen: option --release-type requires an argument"
285         to "Option release-type requires an argument".
286
287 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
288
289         maint.mk: gpg_key_ID: use sed more portably
290         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
291         the closing brace.
292         (refresh-po): Fuse two sed invocations into one.
293
294 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
295
296         gitlog-to-changelog: support the log message format used in Bison.
297         * build-aux/gitlog-to-changelog: Support --strip-tab and
298         --strip-cherry-picked.
299
300 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
301
302         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
303         the rest of the current time slice to another thread in the current
304         process. So if the thread that feeds the file decscriptor we're
305         polling is not in the current process, we get busy-waiting.
306         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
307         Patch from Theodore Leblond.
308         * lib/select.c: Split polling out of the loop that sets the output
309         fd_sets.  Check for zero result and loop if the wait timeout is
310         infinite.
311
312 2012-05-21  Simon Josefsson  <simon@josefsson.org>
313
314         select: Fix build error on IRIX 6.5.
315         * lib/select.c: Include stddef.h for NULL.
316
317 2012-05-21  Simon Josefsson  <simon@josefsson.org>
318
319         gc: fix libgcrypt detection on older machines.
320         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
321         copyright years because the file has been distributed every year
322         since it was created.
323
324 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
325
326         crypto: fix bug in large buffer handling
327         Problem reported by Serge Belyshev for glibc in
328         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
329         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
330         * lib/md4.c (md4_process_block):
331         * lib/md5.c (md5_process_block):
332         * lib/sha1.c (sha1_process_block):
333         * lib/sha256.c (sha256_process_block):
334         Don't assume the buffer length is less than 2**32.
335         * lib/sha512.c (sha512_process_block): Likewise.
336         Here, the bug is present only in the rare case where the host does
337         not support uint64_t or where size_t is wider than 64 bits.
338         Use u64size to work around the problems.
339         * lib/u64.h (u64size): New macro.
340
341 2012-05-15  Pádraig Brady  <P@draigBrady.com>
342
343         fsusage: fix block size returned on older Linux 2.6
344
345         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
346         which is available since Linux 2.6.
347         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
348         when the member is available so it can be used as a fallback.
349         * doc/posix-functions/statvfs.texi: Mention the hang issue
350         on Linux < 2.6.36.
351
352 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
353
354         bootstrap: suppress stderr chatter
355         * build-aux/bootstrap (insert_sorted_if_absent, main program):
356         Omit unnecessary chatter to stderr.  The main program chatter
357         was there only inadvertantly.
358
359         bootstrap: .gitignore files created by autopoint, libtool
360         I ran into this problem when bootstrapping the latest diffutils.
361         After './bootstrap', 'git status' reported lots of untracked files
362         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
363         autopoint and do not need to be version-controlled.
364         * build-aux/bootstrap: Put into .gitignore the files that
365         autopoint and libtool create, by keeping track of files that exist
366         after but not before these programs are run.
367         (version_controlled_file): Move up.  2nd arg is now full file
368         name, not base name; this is more convenient.  Put CVS at the end,
369         as it's now somewhat deprecated.
370
371 2012-05-14  Jim Meyering  <meyering@redhat.com>
372
373         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
374         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
375         definition.  Reported by Bruno Haible.
376
377 2012-05-13  Bruno Haible  <bruno@clisp.org>
378             Paul Eggert  <eggert@cs.ucla.edu>
379
380         binary-io: Define set_binary_mode function.
381         * lib/binary-io.h (set_binary_mode): New function.
382         (SET_BINARY): Define in terms of set_binary_mode.
383         * modules/binary-io (configure.ac): Require AC_C_INLINE.
384         * tests/test-binary-io.c (main): Accept an argument, and test either
385         set_binary_mode or SET_BINARY depending on the argument.
386         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
387         argument. Clean up also t-bin-out0.tmp.
388
389 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
390
391         bootstrap: take advantage of POSIX shell features
392
393         The 'bootstrap' script offered by Gnulib script already uses POSIX
394         shell features (like $((...)) arithmetic expansions) that are not
395         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
396         means that bootstrap must already be run using a proper POSIX shell,
397         which will thus provide more features, like ${var#pattern} parameter
398         expansion or inversion of a command exit status with '!'.  We can
399         thus use these features to improve the clarity and the performances
400         of the bootstrap script.
401
402         Suggested by Eric Blake.
403
404         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
405         of sed/expr plus command substitutions, to save some forks.  While
406         we are at it, prefer the POSIX $(...) form of command substitution,
407         rather than the legacy form `...` (since the former is visually
408         clearer and interacts better with quoting), and prefer the idiom:
409           "if ! CMD; then ACTION ..."
410         over the idiom:
411           "if CMD; then :; else ACTION ..."
412         which was required by legacy Bourne shells not supporting '!'.
413
414 2012-05-12  Bruno Haible  <bruno@clisp.org>
415
416         system-quote: Add more comments.
417         * lib/system-quote.h: Add more comments about wilcards and limitations.
418         Suggested by Eli Zaretskii <eliz@gnu.org>.
419
420         sh-quote, system-quote: Add comments about wildcards.
421         * lib/sh-quote.h: Clarify what happens with wildcard characters.
422         * lib/system-quote.h: Likewise.
423         Reported by Eli Zaretskii <eliz@gnu.org>.
424
425 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
426
427         fsusage: check for GNU/Linux statvfs problem dynamically
428         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
429         Define STAT_STATFS2_BSIZE too, since in this case the code now
430         checks dynamically whether statvfs is reliable, falling back on
431         Linux-style statfs otherwise.
432         (statvfs_works): New function, for dynamically testing statvfs.
433         (get_fs_usage) [STAT_STATVFS]: Use it.
434         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
435         statvfs on GNU/Linux hosts, since it's now done dynamically.
436
437 2012-05-10  Bruno Haible  <bruno@clisp.org>
438
439         system-quote, execute, spawn-pipe: Escape '?' on Windows.
440         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
441         '?' character.
442         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
443         * tests/test-system-quote-main.c (check_all): Check also strings like
444         "??????????".
445         Reported by Eli Zaretskii <eliz@gnu.org>.
446
447 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
448
449         _Noreturn: port config.h to gcc -Wundef
450         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
451         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
452         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
453
454 2012-05-10  Bruno Haible  <bruno@clisp.org>
455
456         system-quote: Refactor.
457         * lib/system-quote.h (system_quote_copy): Fix comment.
458         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
459         New functions, extracted from system_quote_copy.
460         (system_quote_length, system_quote_copy): Use these functions.
461         Reported by Paul Eggert.
462
463 2012-05-08  Bruno Haible  <bruno@clisp.org>
464
465         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
466         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
467
468 2012-05-08  Bruno Haible  <bruno@clisp.org>
469
470         Tests for module 'system-quote'.
471         * modules/system-quote-tests: New file.
472         * tests/test-system-quote.sh: New file.
473         * tests/test-system-quote-main.c: New file.
474         * tests/test-system-quote-child.c: New file.
475
476         New module 'system-quote'.
477         * lib/system-quote.h: New file.
478         * lib/system-quote.c: New file.
479         * modules/system-quote: New file.
480
481 2012-05-08  Bruno Haible  <bruno@clisp.org>
482
483         sh-quote: Make C++ safe and allow multiple inclusion.
484         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
485         declarations in extern "C".
486
487 2012-05-08  Bruno Haible  <bruno@clisp.org>
488
489         sh-quote tests: Make tests stricter.
490         * tests/test-sh-quote.c (check_one): Check the return value of
491         shell_quote_copy.
492         (main): Check a string with a CR character. Check a string that
493         contains UCHAR_MAX.
494
495 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
496
497         warnings.m4: provide a means to specify the program to compile.
498         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
499         (gl_WARN_ADD): here.
500         Use gl_AS_VAR_APPEND.
501         Support an argument to specify the program to compile.
502         (gl_WARN_ADD): Accept an argument to specify the program to compile.
503         AC_SUBST the WARN_CFLAGS when they are used.
504         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
505         leave this to gl_WARN_ADD.
506
507 2012-05-08  Eric Blake  <eblake@redhat.com>
508
509         doc: recommendations on gettext version
510         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
511         choice between versions.
512         * DEPENDENCIES (gettext): Cover both approaches.
513
514 2012-05-08  Jim Meyering  <meyering@redhat.com>
515
516         init.sh: explain why EXEEXT support uses aliases rather than functions
517         * tests/init.sh: Add a comment.
518
519         init.sh: don't let bash aliases interfere with tests
520         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
521         is bash.  This avoids problems for those who alias standard commands to
522         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
523         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
524
525 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
526
527         stdint: be more consistent with glibc, SunOS libc
528         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
529         (gl_int_fast16_t, gl_uint_fast16_t)
530         (gl_int_fast32_t, gl_uint_fast32_t)
531         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
532         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
533         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
534         Be consistent with glibc by default, and with SunOS 5.10 and later
535         if __sun is defined.  This lessens the likelihood of clashes if
536         code compiled for older hosts is combined with code compiled for
537         newer ones.  Problem reported by Niels Möller in
538         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
539
540 2012-05-07  Eric Blake  <eblake@redhat.com>
541
542         isatty: relax license to LGPLv2+
543         * modules/isatty (License): Relax license.
544
545 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
546
547         stat-size: comment fix
548         * lib/stat-size.h: Remove obsolete comment about indenting.
549
550 2012-05-06  Bruno Haible  <bruno@clisp.org>
551
552         Tests for module 'sh-quote'.
553         * modules/sh-quote-tests: New file.
554         * tests/test-sh-quote.c: New file.
555
556 2012-05-06  Bruno Haible  <bruno@clisp.org>
557
558         sh-quote: Improve shell_quote_argv's signature.
559         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
560         * lib/sh-quote.c (shell_quote_argv): Likewise.
561
562 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
563
564         stdint: document issues with int_fast8_t etc.
565         * doc/posix-headers/stdint.texi (stdint.h): Say that other
566         stdint.h substitutes may define these types differently.  See
567         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
568
569 2012-05-05  Bruno Haible  <bruno@clisp.org>
570
571         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
573         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
574         or 'guessing no (mishandles large arguments)'.
575
576 2012-05-05  Bruno Haible  <bruno@clisp.org>
577
578         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
579         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
580         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
581         set gl_cv_func_link_follows_symlink to "guessing no".
582
583 2012-05-05  Bruno Haible  <bruno@clisp.org>
584
585         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
586         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
587         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
588         "guessing no".
589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
590
591 2012-05-05  Bruno Haible  <bruno@clisp.org>
592
593         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
594         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
595         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
596         set gl_cv_struct_dirent_d_ino to "guessing yes".
597
598 2012-05-05  Bruno Haible  <bruno@clisp.org>
599
600         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
601         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
602         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
603         "guessing yes".
604
605 2012-05-05  Bruno Haible  <bruno@clisp.org>
606
607         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
608         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
609         compiling to a glibc system, set gl_cv_func_signbit and
610         gl_cv_func_signbit_gcc to "guessing yes".
611
612 2012-05-05  Bruno Haible  <bruno@clisp.org>
613
614         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
615         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
616         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
617         to "guessing yes".
618         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
619         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
620
621 2012-05-05  Bruno Haible  <bruno@clisp.org>
622
623         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
624         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
625         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
626         gl_cv_func_realpath_works to "guessing yes".
627
628 2012-05-05  Bruno Haible  <bruno@clisp.org>
629
630         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
631         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
632         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
633
634 2012-05-04  Bruno Haible  <bruno@clisp.org>
635
636         Tweak last commit.
637         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
638         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
639
640 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
641
642         unistd_h: make it easier to avoid sys_types_h
643         This is useful for Emacs, which has its own method of porting to
644         Windows, and which therefore does not need the sys_types_h module.
645         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
646         code moved here from gl_SYS_TYPES_H.
647         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
648         using the code directly.
649         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
650         gl_SYS_TYPES_H.
651         * modules/sys_types (Files):
652         * modules/unistd (Files): Add m4/off_t.m4.
653
654 2012-05-03  Bruno Haible  <bruno@clisp.org>
655
656         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
657         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
658         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
659         "guessing yes" or "guessing no".
660         (gl_FUNC_LSTAT): Update.
661         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
662         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
663         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
664
665 2012-05-03  Bruno Haible  <bruno@clisp.org>
666
667         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
668         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
669         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
670         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
671         cross-compiling, choose the first alternative on glibc systems.
672         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
673
674 2012-05-03  Bruno Haible  <bruno@clisp.org>
675
676         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
677         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
678         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
679
680 2012-05-03  Bruno Haible  <bruno@clisp.org>
681
682         chown: Avoid "guessing no" when cross-compiling to glibc systems.
683         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
684
685 2012-05-03  Bruno Haible  <bruno@clisp.org>
686
687         Avoid "guessing no" guesses when cross-compiling to glibc systems.
688         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
689         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
690         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
691         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
692         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
693         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
694         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
695         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
696         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
697         compiling to glibc systems, set gl_cv_func_chown_slash_works,
698         gl_cv_func_chown_ctime_works to "guessing yes".
699         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
700         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
701         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
702         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
703         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
705         compiling to glibc systems, set gl_cv_func_open_directory_works to
706         "guessing yes".
707         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
708         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
709         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
710         "guessing yes".
711         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
712         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
713         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
714         compiling to glibc systems, set gl_cv_func_floorf_ieee to
715         "guessing yes".
716         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
717         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
718         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
719         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
720         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
721         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
722         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
723         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
724         "guessing yes".
725         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
726         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
727         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
728         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
729         "guessing yes".
730         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
731         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
732         "guessing yes".
733         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
734         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
735         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
736         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
737         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
738         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
739         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
740         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
741         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
742         compiling to glibc systems, set gl_cv_func_log10f_ieee to
743         "guessing yes".
744         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
745         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
746         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
747         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
748         "guessing yes".
749         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
750         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
751         "guessing yes".
752         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
753         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
754         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
755         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
756         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
757         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
758         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
759         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
760         compiling to glibc systems, set gl_cv_func_mkfifo_works to
761         "guessing yes".
762         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
763         compiling to glibc systems, set gl_cv_func_mknod_works to
764         "guessing yes".
765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
766         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
767         "guessing yes".
768         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
769         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
770         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
771         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
772         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
773         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
774         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
775         compiling to glibc systems, set gl_cv_func_svid_putenv to
776         "guessing yes".
777         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
778         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
779         "guessing yes".
780         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
781         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
782         "guessing yes".
783         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
784         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
785         to "guessing yes".
786         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
787         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
788         to "guessing yes".
789         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
790         compiling to glibc systems, set gl_cv_func_rmdir_works to
791         "guessing yes".
792         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
793         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
794         gl_cv_func_unlink_parent_fails to "guessing yes".
795         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
796         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
797         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
798         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
799         gl_cv_func_rename_dest_works to "guessing yes".
800         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
801         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
802         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
803         compiling to glibc systems, set gl_cv_func_roundf_ieee to
804         "guessing yes".
805         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
806         compiling to glibc systems, set gl_cv_func_roundl_ieee to
807         "guessing yes".
808         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
809         compiling to glibc systems, set gl_cv_func_setenv_works to
810         "guessing yes".
811         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
812         compiling to glibc systems, set gl_cv_func_unsetenv_works to
813         "guessing yes".
814         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
815         compiling to glibc systems, set gl_cv_func_sleep_works to
816         "guessing yes".
817         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
818         compiling to glibc systems, set gl_cv_func_stat_file_slash to
819         "guessing yes".
820         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
821         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
822         "guessing yes".
823         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
824         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
825         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
826         compiling to glibc systems, set gl_cv_func_truncf_ieee to
827         "guessing yes".
828         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
829         compiling to glibc systems, set gl_cv_func_truncl_ieee to
830         "guessing yes".
831         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
832         compiling to glibc systems, set gl_cv_func_usleep_works to
833         "guessing yes".
834         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
835         compiling to glibc systems, set gl_cv_func_futimesat_works to
836         "guessing yes".
837
838 2012-05-03  Bruno Haible  <bruno@clisp.org>
839
840         Say "guessing yes" or "guessing no" when cross-compiling.
841         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
842         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
843         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
844         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
845         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
846         am_cv_func_working_getline to "guessing yes" or "guessing no".
847         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
848         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
849         (gl_FUNC_MEMMEM): When cross-compiling, set
850         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
852         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
853         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
854         set gl_cv_func_strcasestr_works_always to "guessing yes" or
855         "guessing no".
856         (gl_FUNC_STRCASESTR): When cross-compiling, set
857         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
858         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
859         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
860         (gl_FUNC_STRSTR): When cross-compiling, set
861         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
862         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
863         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
864         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
865         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
866
867 2012-05-01  Bruno Haible  <bruno@clisp.org>
868
869         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
870         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
871         * build-aux/reloc-ldflags: Likewise.
872         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
873
874 2012-05-01  Bruno Haible  <bruno@clisp.org>
875
876         gnulib-tool: Remove transitional code.
877         * gnulib-tool: Don't warn about --import with 0 arguments any more.
878         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
879
880 2012-05-01  Bruno Haible  <bruno@clisp.org>
881
882         getcwd: Fix misindentation.
883         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
884
885 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
886
887         exclude: process exclude and include directives in order
888         This restores the pre-2009 behavior, and is part of a fix of a
889         grep bug reported by Quentin Arce in
890         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
891         * lib/exclude.c (struct exclude): Remove 'tail' member.
892         (new_exclude_segment): Prepend the new segment instead of appending.
893         Return void, since that's now more convenient.
894         (file_pattern_matches): Renamed from excluded_file_pattern_p.
895         (file_name_matches): Renamed from excluded_file_name_p.
896         (file_pattern_matches, file_name_matches):
897         Return true if the pattern matches, not if it excludes.
898         All callers changed.
899         (excluded_file_name): Process the list in reverse order;
900         since the list is now reversed this restores the pre-2009 behavior.
901         (add_exclude): Adjust to new reversed-order list.  Use local var
902         rather than macro, for clarity.
903         * tests/test-exclude7.sh: Adjust to corrected behavior.
904
905         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
906         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
907         it's not possible here.  Handle the case of \ at end of pattern
908         without dumping core.
909         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
910
911         _Noreturn: future-proof non-GNU and non-MSVC compilers
912         * build-aux/snippet/_Noreturn.h (_Noreturn):
913         * m4/gnulib-common.m4 (gl_COMMON_BODY):
914         Do not define _Noreturn if __STDC_VERSION__ indicates this is
915         C11 or later.  This is more likely to work with random future C
916         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
917         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
918
919         exclude: handle wildcards with FNM_EXTMATCH
920         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
921         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
922         comment that "has wildcards" really means "has or may have
923         wildcards".  Simplify by avoiding the need to call strcspn.
924
925 2012-04-29  Bruno Haible  <bruno@clisp.org>
926
927         gnulib-tool: Fix list of authors.
928         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
929
930 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
931
932         bootstrap: support Automake-NG in $buildreq
933         * bootstrap (check_versions): Handle automake and aclocal from
934         Automake-NG specially.  They can be specified as respectively
935         the "automake-ng" and "aclocal-ng" requirements.
936
937 2012-04-25  Eric Blake  <eblake@redhat.com>
938
939         bootstrap: only force latest Makefile.in.in for gettext module
940         * build-aux/bootstrap (with_gettext): Only install latest
941         Makefile.in.in for projects requesting bleeding edge gettext.
942
943 2012-04-22  Bruno Haible  <bruno@clisp.org>
944
945         doc: Mention reason for replacement on glibc/Linux systems.
946         * doc/posix-functions/dprintf.texi: Mention the problem with special
947         'long double' values.
948         * doc/posix-functions/fprintf.texi: Likewise.
949         * doc/posix-functions/printf.texi: Likewise.
950         * doc/posix-functions/snprintf.texi: Likewise.
951         * doc/posix-functions/sprintf.texi: Likewise.
952         * doc/posix-functions/vdprintf.texi: Likewise.
953         * doc/posix-functions/vfprintf.texi: Likewise.
954         * doc/posix-functions/vprintf.texi: Likewise.
955         * doc/posix-functions/vsnprintf.texi: Likewise.
956         * doc/posix-functions/vsprintf.texi: Likewise.
957         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
958         platforms with F_DUPFD_CLOEXEC problems.
959         * doc/posix-functions/glob.texi: Mention which platforms are affected
960         by the problem with symbolic links.
961         * doc/posix-functions/linkat.texi: Mention the problem with
962         AT_SYMLINK_FOLLOW on Linux.
963
964 2012-04-22  Bruno Haible  <bruno@clisp.org>
965
966         pwrite: Don't replace on all platforms.
967         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
968
969 2012-04-22  Bruno Haible  <bruno@clisp.org>
970
971         rint* tests: Avoid gcc warnings.
972         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
973         * tests/test-rintf.c (INFINITY, NAN): Likewise.
974         * tests/test-rintl.c (INFINITY, NAN): Likewise.
975
976 2012-04-21  Bruno Haible  <bruno@clisp.org>
977
978         users.txt: Update.
979         * users.txt: Add freedink, wdiff. Update URLs for projects that have
980         switched from CVS to git, bzr, or svn.
981
982 2012-04-21  Bruno Haible  <bruno@clisp.org>
983
984         Large File Support for native Windows platforms.
985
986         * m4/largefile.m4 (gl_LARGEFILE): New macro.
987         * modules/largefile (configure.ac): Require gl_LARGEFILE.
988
989         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
990         type.
991         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
992         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
993         * doc/posix-headers/sys_types.texi: Mention the effect of the
994         'largefile' module.
995
996         * lib/fcntl.in.h: Add comments about off_t.
997         * modules/fcntl-h (Depends-on): Add sys_types.
998
999         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1000         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1001         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1002         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1003         * modules/unistd (Depends-on): Add sys_types.
1004         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1005
1006         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1007         instead of lseek.
1008         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1009         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1010         * modules/lseek (Depends-on): Add sys_types.
1011
1012         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1013         msvc-nothrow.h.
1014         (SetFileSize): New function.
1015         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1016         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1017         if Large File Support is requested.
1018         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1019         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1020
1021         * lib/stdio.in.h: Add comments about off_t.
1022         * modules/stdio (Depends-on): Add sys_types.
1023
1024         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1025         instead of ftello.
1026         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1027         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1028         (gl_PREREQ_FTELLO): New macro.
1029         * modules/ftello (Depends-on): Add sys_types.
1030         (configure.ac): Incoke gl_PREREQ_FTELLO.
1031
1032         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1033         instead of fseeko.
1034         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1035         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1036         (gl_PREREQ_FSEEKO): New macro.
1037         * modules/fseeko (Depends-on): Add sys_types.
1038         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1039
1040         * lib/sys_stat.in.h: Add comments about off_t.
1041         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1042         64-bit integer for st_size in 'struct stat'.
1043         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1044         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1045         * modules/sys_stat (Depends-on): Add sys_types.
1046         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1047
1048         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1049         instead of stat or _stat.
1050
1051         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1052         'struct _stati64' instead of fstat and 'struct stat'.
1053         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1054         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1055
1056         Reported by Ray Satiro <raysatiro@yahoo.com>.
1057
1058 2012-04-19  Eric Blake  <eblake@redhat.com>
1059
1060         bootstrap: accommodate older libtool
1061         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1062         Reported by Daniel P. Berrange.
1063
1064 2012-04-19  Jim Meyering  <meyering@redhat.com>
1065
1066         announce-gen: avoid failure due to lack of Digest::SHA1
1067         Even with the preferred Digest::SHA available, this script
1068         would fail when the backup module, Digest::SHA1, was not installed.
1069         * build-aux/announce-gen: Quote the conditional use of "use".
1070         Reported by Reuben Thomas in:
1071         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1072
1073         bootstrap: don't let a user's CDPATH setting affect this script
1074         When CDPATH is set, cd will sometimes generate output.
1075         When "cd" is run in a subshell whose output matters, that
1076         surprising-to-some output can cause malfunction.
1077         Unsetting CDPATH turns off this shell "feature."
1078         * build-aux/bootstrap (CDPATH): Unset.
1079         Reported by Reuben Thomas in:
1080         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1081         and inspired by his patch here:
1082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1083
1084 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1085         and Jim Meyering  <meyering@redhat.com>
1086
1087         maint.mk: catch "see @xref{}" and similar
1088         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1089         prohibit "See also @xref{", "Also see @pxref{", and similar.
1090
1091 2012-04-16  Jim Meyering  <meyering@redhat.com>
1092
1093         bootstrap: really use gnulib's po/Makefile.in.in
1094         * build-aux/bootstrap: Correct the source file name in previous change.
1095         Reported by Akim Demaille.
1096
1097         configmake: correct minor inconsistency in Makefile rule
1098         * modules/configmake (Makefile.am): All other rules like this one
1099         run the final "mv -f ..." in the same backslash-continued command
1100         as the one that does everything else.  This one put the mv -f ...
1101         command on a separate, non-backslash-continued line.
1102         Make it like the others.
1103
1104         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1105         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1106         the one from gettext.  Reported by Akim Demaille.
1107
1108 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1109
1110         Fix recursion of install-* into po directories.
1111         Bison's install-pdf bug reported by Hans Aberg at
1112         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1113         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1114         (install-info, install-pdf, install-ps): New targets.
1115
1116 2012-04-16  Jim Meyering  <meyering@redhat.com>
1117
1118         maint: avoid spurious "make sc_maint" failure
1119         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1120         exempt all *.class file names, for lib/javaversion.class.
1121
1122 2012-04-15  Bruno Haible  <bruno@clisp.org>
1123
1124         lseek: Make configure test independent of environment.
1125         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1126         Windows, we know that lseek() on pipes is broken; skip the runtime
1127         test.
1128
1129 2012-04-14  Bruno Haible  <bruno@clisp.org>
1130
1131         stat: Bypass buggy override in mingw64.
1132         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1133         * lib/stat.c (stat) [mingw64]: Define to _stat.
1134         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1135
1136 2012-04-14  Bruno Haible  <bruno@clisp.org>
1137
1138         pathmax: Fix compilation error on MSVC 9.
1139         * modules/pathmax (Depends-on): Add unistd.
1140
1141 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         README: document pointer comparison assumption
1144         * README (Portability guidelines): Document assumption about
1145         pointer comparisons, in response to a recent bug-gnulib comment by
1146         Jeffrey Kegler.
1147
1148 2012-04-12  Bruno Haible  <bruno@clisp.org>
1149
1150         Tests for module 'getrusage'.
1151         * modules/getrusage-tests: New file.
1152         * tests/test-getrusage.c: New file.
1153
1154         New module 'getrusage'.
1155         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1156         warn-on-use.h.
1157         (getrusage): New declaration.
1158         * lib/getrusage.c: New file.
1159         * m4/getrusage.m4: New file.
1160         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1161         is declared.
1162         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1163         HAVE_GETRUSAGE.
1164         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1165         snippet/c++defs, snippet/warn-on-use.
1166         (Makefile.am): Update generation of sys/resource.h. Substitute
1167         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1168         * modules/getrusage: New file.
1169         * doc/posix-functions/getrusage.texi: Mention the new module.
1170
1171 2012-04-12  Bruno Haible  <bruno@clisp.org>
1172
1173         Tests for module 'sys_resource'.
1174         * modules/sys_resource-tests: New file.
1175         * tests/test-sys_resource.c: New file.
1176
1177         New module 'sys_resource'.
1178         * lib/sys_resource.in.h: New file.
1179         * m4/sys_resource_h.m4: New file.
1180         * modules/sys_resource: New file.
1181         * doc/posix-headers/sys_resource.texi: Mention the new module.
1182
1183 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1184
1185         ioctl: Fix compilation error on mingw.
1186         * lib/ioctl.c: Include <windows.h>.
1187         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1188
1189 2012-04-04  Jim Meyering  <meyering@redhat.com>
1190
1191         regex: correct #pragma guard expression
1192         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1193         not 4.3.  Correct its cpp guard expression.
1194
1195 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         regex: remove unnecessary type punning
1198         Problem reported by Vladimir Serbinenko in
1199         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1200         * lib/regex.h (struct re_pattern_buffer): Change the type of
1201         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1202         Fix comment to match code.
1203         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1204         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1205         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1206         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1207         (set_regs):
1208         Omit no-longer-necessary casts.
1209
1210 2012-04-03  Bruno Haible  <bruno@clisp.org>
1211
1212         Tests for module 'ilogbl'.
1213         * modules/ilogbl-tests: New file.
1214         * tests/test-ilogbl.c: New file.
1215
1216         New module 'ilogbl'.
1217         * lib/math.in.h (ilogbl): New declaration.
1218         * lib/ilogbl.c: New file.
1219         * m4/ilogbl.m4: New file.
1220         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1222         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1223         Split sed invocation, to avoid the limit of 100 substitutions of
1224         HP-UX 'sed'.
1225         * modules/ilogbl: New file.
1226         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1227         * doc/posix-functions/ilogbl.texi: Mention the new module.
1228
1229 2012-04-03  Bruno Haible  <bruno@clisp.org>
1230
1231         Tests for module 'ilogbf'.
1232         * modules/ilogbf-tests: New file.
1233         * tests/test-ilogbf.c: New file.
1234
1235         New module 'ilogbf'.
1236         * lib/math.in.h (ilogbf): New declaration.
1237         * lib/ilogbf.c: New file.
1238         * m4/ilogbf.m4: New file.
1239         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1241         REPLACE_ILOGBF.
1242         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1243         REPLACE_ILOGBF.
1244         * modules/ilogbf: New file.
1245         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1246         * doc/posix-functions/ilogbf.texi: Mention the new module.
1247
1248 2012-04-03  Bruno Haible  <bruno@clisp.org>
1249
1250         Tests for module 'ilogb'.
1251         * modules/ilogb-tests: New file.
1252         * tests/test-ilogb.c: New file.
1253         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1254         tests/test-logb-ieee.h.
1255
1256         New module 'ilogb'.
1257         * lib/math.in.h (ilogb): New declaration.
1258         * lib/ilogb.c: New file.
1259         * m4/ilogb.m4: New file.
1260         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1262         REPLACE_ILOGB.
1263         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1264         REPLACE_ILOGB.
1265         * modules/ilogb: New file.
1266         * tests/test-math-c++.cc: Check the declaration of ilogb.
1267         * doc/posix-functions/ilogb.texi: Mention the new module.
1268
1269 2012-04-03  Bruno Haible  <bruno@clisp.org>
1270
1271         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1272         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1273         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1274         (main): Check their values.
1275         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1276         problem.
1277
1278 2012-04-03  Bruno Haible  <bruno@clisp.org>
1279
1280         Tests for module 'logbl-ieee'.
1281         * modules/logbl-ieee-tests: New file.
1282         * tests/test-logbl-ieee.c: New file.
1283
1284         New module 'logbl-ieee'.
1285         * modules/logbl-ieee: New file.
1286
1287         Tests for module 'logb-ieee'.
1288         * modules/logb-ieee-tests: New file.
1289         * tests/test-logb-ieee.c: New file.
1290
1291         New module 'logb-ieee'.
1292         * modules/logb-ieee: New file.
1293
1294         Tests for module 'logbf-ieee'.
1295         * modules/logbf-ieee-tests: New file.
1296         * tests/test-logbf-ieee.c: New file.
1297         * tests/test-logb-ieee.h: New file.
1298
1299         New module 'logbf-ieee'.
1300         * modules/logbf-ieee: New file.
1301
1302 2012-04-03  Bruno Haible  <bruno@clisp.org>
1303
1304         Tests for module 'logbl'.
1305         * modules/logbl-tests: New file.
1306         * tests/test-logbl.c: New file.
1307
1308         New module 'logbl'.
1309         * lib/math.in.h (logbl): New declaration.
1310         * lib/logbl.c: New file.
1311         * m4/logbl.m4: New file.
1312         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1314         REPLACE_LOGBL.
1315         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1316         REPLACE_LOGBL.
1317         * modules/logbl: New file.
1318         * tests/test-math-c++.cc: Check the declaration of logbl.
1319         * doc/posix-functions/logbl.texi: Mention the new module.
1320
1321 2012-04-02  Bruno Haible  <bruno@clisp.org>
1322
1323         Tests for module 'logbf'.
1324         * modules/logbf-tests: New file.
1325         * tests/test-logbf.c: New file.
1326
1327         New module 'logbf'.
1328         * lib/math.in.h (logbf): New declaration.
1329         * lib/logbf.c: New file.
1330         * m4/logbf.m4: New file.
1331         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1333         REPLACE_LOGBF.
1334         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1335         REPLACE_LOGBF.
1336         * modules/logbf: New file.
1337         * tests/test-math-c++.cc: Check the declaration of logbf.
1338         * doc/posix-functions/logbf.texi: Mention the new module.
1339
1340 2012-04-02  Bruno Haible  <bruno@clisp.org>
1341
1342         logb tests: More tests.
1343         * tests/test-logb.h: New file, based on tests/test-logb.c and
1344         tests/test-frexp.h.
1345         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1346         (main): Just invoke test_function.
1347         * modules/logb-tests (Files): Add tests/test-logb.h,
1348         tests/minus-zero.h, tests/randomd.c.
1349         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1350
1351         logb: Provide replacement and workarounds.
1352         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1353         is 1.
1354         * lib/logb.c: New file.
1355         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1356         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1358         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1359         * modules/logb (Files): Add lib/logb.c.
1360         (Depends-on): Add isfinite, frexp, isnand.
1361         (configure.ac): Compile the replacement code logb.c if needed.
1362         * tests/test-math-c++.cc: Check the declaration of logb.
1363         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1364         with subnormal numbers.
1365
1366 2012-04-02  Bruno Haible  <bruno@clisp.org>
1367
1368         log10* tests: Speed up.
1369         * tests/test-log10.h (test_function): Reduce amount of random numbers
1370         to test.
1371
1372 2012-04-01  Bruno Haible  <bruno@clisp.org>
1373
1374         logf-ieee: Fix test whether logf works.
1375         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1376
1377 2012-04-01  Bruno Haible  <bruno@clisp.org>
1378
1379         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1380         * lib/log10l.c: Include <float.h>
1381         (log10l): On IRIX, normalize the +Infinity value.
1382         * modules/log10l (Depends-on): Add 'float'.
1383         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1384         +Infinity.
1385
1386         log10f-ieee: Work around test failure on NetBSD 5.1.
1387         * m4/log10f-ieee.m4: New file.
1388         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1389         test whether log10f works with a negative argument. Replace it if not.
1390         * lib/log10f.c (log10f): For negative arguments, return NaN.
1391         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1392         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1393         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1394
1395         log10f-ieee: Work around test failure on Solaris 9.
1396         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1397         (configure.ac): Require gl_FUNC_LOG10F.
1398
1399         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1400         * m4/log10-ieee.m4: New file.
1401         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1402         whether log10 works with a negative argument. Replace it if not.
1403         * lib/log10.c (log10): For negative arguments, return NaN.
1404         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1405         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1406         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1407
1408         Tests for module 'log10l-ieee'.
1409         * modules/log10l-ieee-tests: New file.
1410         * tests/test-log10l-ieee.c: New file.
1411
1412         New module 'log10l-ieee'.
1413         * modules/log10l-ieee: New file.
1414
1415         Tests for module 'log10-ieee'.
1416         * modules/log10-ieee-tests: New file.
1417         * tests/test-log10-ieee.c: New file.
1418
1419         New module 'log10-ieee'.
1420         * modules/log10-ieee: New file.
1421
1422         Tests for module 'log10f-ieee'.
1423         * modules/log10f-ieee-tests: New file.
1424         * tests/test-log10f-ieee.c: New file.
1425         * tests/test-log10-ieee.h: New file.
1426
1427         New module 'log10f-ieee'.
1428         * modules/log10f-ieee: New file.
1429
1430 2012-04-01  Bruno Haible  <bruno@clisp.org>
1431
1432         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1433         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1434         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1435         workaround.
1436         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1437         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1439         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1440         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1441         (Depends-on): Update conditions.
1442         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1443         IRIX 6.5, OSF/1 5.1 problems.
1444
1445 2012-04-01  Bruno Haible  <bruno@clisp.org>
1446
1447         log10f: Work around OSF/1 5.1 bug.
1448         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1449         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1450         workaround.
1451         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1452         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1454         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1455         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1456         (Depends-on): Update conditions.
1457         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1458
1459 2012-04-01  Bruno Haible  <bruno@clisp.org>
1460
1461         log10: Work around OSF/1 5.1 bug.
1462         * lib/math.in.h (log10): New declaration.
1463         * lib/log10.c: New file.
1464         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1465         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1466         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1468         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1469         * modules/log10 (Files): Add lib/log10.c.
1470         (Depends-on): Add math.
1471         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1472         * tests/test-math-c++.cc: Check the declaration of log10.
1473         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1474
1475 2012-03-31  Bruno Haible  <bruno@clisp.org>
1476
1477         log10l tests: More tests.
1478         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1479         tests/minus-zero.h, tests/randoml.c.
1480         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1481         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1482         (main): Invoke test_function.
1483
1484         log10f tests: More tests.
1485         * modules/log10f-tests (Files): Add tests/test-log10.h,
1486         tests/minus-zero.h, tests/randomf.c.
1487         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1488         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1489         (main): Invoke test_function.
1490
1491         log10 tests: More tests.
1492         * tests/test-log10.h: New file.
1493         * modules/log10-tests (Files): Add tests/test-log10.h,
1494         tests/minus-zero.h, tests/randomd.c.
1495         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1496         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1497         (main): Invoke test_function.
1498
1499 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1500
1501         fflush: Fix syntax error.
1502         * lib/fflush.c: Include unused-parameter.h, needed for
1503         _GL_UNUSED_PARAMETER.
1504         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1505
1506 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1507
1508         regex: pacify GCC when compiling GRUB
1509         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1510         a diagnostic.  Reported by Vladimir Serbinenko in
1511         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1512
1513 2012-03-29  Eric Blake  <eblake@redhat.com>
1514
1515         stdio: don't assume gets any more
1516         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1517         support.
1518         * modules/stdio (Makefile.am): Likewise.
1519         * lib/stdio-read.c (gets): Likewise.
1520         * tests/test-stdio-c++.cc: Likewise.
1521         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1522         * lib/stdio.in.h (gets): Make warning occur in more places.
1523         * doc/posix-functions/gets.texi (gets): Update documentation.
1524         Reported by Christer Solskogen.
1525
1526         maint.mk: fix syntax checks without exclusions
1527         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1528         Reported by Daniel P. Berrange.
1529
1530         strerror_r: avoid compiler warning
1531         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1532         level.
1533
1534         fflush: avoid compiler warning
1535         * lib/fflush.c (update_fpos_cache): Mark variables that are
1536         potentially unused.
1537
1538 2012-03-25  Bruno Haible  <bruno@clisp.org>
1539
1540         Tests for module 'localeconv'.
1541         * modules/localeconv-tests: New file.
1542         * tests/test-localeconv.c: New file.
1543
1544         New module 'localeconv'.
1545         * lib/locale.in.h (localeconv): New declaration.
1546         * lib/localeconv.c: New file.
1547         * m4/localeconv.m4: New file.
1548         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1549         REPLACE_LOCALECONV.
1550         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1551         REPLACE_LOCALECONV.
1552         * modules/localeconv: New file.
1553         * modules/nl_langinfo (Depends-on): Add localeconv.
1554         * modules/human (Depends-on): Likewise.
1555         * doc/posix-functions/localeconv.texi: Mention the new module.
1556
1557 2012-03-25  Bruno Haible  <bruno@clisp.org>
1558
1559         locale: Provide a complete 'struct lconv'.
1560         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1561         'struct lconv' does not contain int_p_cs_precedes.
1562         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1563         * doc/posix-headers/locale.texi: Update.
1564
1565         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1566         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1567         * doc/posix-headers/locale.texi: Update.
1568
1569         locale: Provide a working 'struct lconv'.
1570         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1571         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1572         'struct lconv' does not even contain decimal_point.
1573         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1574         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1575         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1576         * doc/posix-headers/locale.texi: Mention the problems with
1577         'struct lconv'.
1578         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1579
1580 2012-03-24  Bruno Haible  <bruno@clisp.org>
1581
1582         Enable common subexpression optimization in GCC.
1583         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1584         macros.
1585         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1586         GCC attribute 'const'.
1587         (uc_locale_language): Declare with GCC attribute 'pure'.
1588         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1589         with GCC attribute 'const'.
1590         * lib/unictype.in.h (uc_is_general_category_withtable,
1591         uc_combining_class, uc_combining_class_name,
1592         uc_combining_class_long_name, uc_bidi_class_name,
1593         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1594         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1595         uc_decimal_value, uc_digit_value, uc_numeric_value,
1596         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1597         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1598         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1599         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1600         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1601         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1602         Declare with GCC attribute 'const'.
1603         (uc_general_category_name, uc_general_category_long_name,
1604         uc_general_category_byname, uc_general_category,
1605         uc_is_general_category, uc_combining_class_byname,
1606         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1607         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1608         Declare with GCC attribute 'pure'.
1609         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1610         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1611         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1612         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1613         with GCC attribute 'pure'.
1614         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1615         'const'.
1616         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1617         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1618         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1619         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1620         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1621         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1622         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1623         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1624         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1625         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1626         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1627         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1628         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1629         GCC attribute 'pure'.
1630         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1631         'const'.
1632         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1633         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1634         u32_strwidth): Declare with GCC attribute 'pure'.
1635
1636         Enable common subexpression optimization in GCC.
1637         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1638         (alphasort): Declare with GCC attribute 'pure'.
1639         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1640         (atoll): Declare with GCC attribute 'pure'.
1641         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1642         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1643         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1644         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1645         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1646         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1647         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1648
1649 2012-03-24  Bruno Haible  <bruno@clisp.org>
1650
1651         gnulib-tool: Avoid unintended error output from 'cmp'.
1652         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1653         "cmp -s", not "cmp > /dev/null".
1654
1655 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1656
1657         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1658
1659         It's not just Automake versions < 1.9b that creates an empty
1660         pkgdatadir at installation time if pkgdata_DATA is specified
1661         to empty; modern automake versions do this as well, at least
1662         until automake 1.11.4 (not yet released at the moment of writing,
1663         but soon to appear).  That behaviour was generally considered a
1664         feature rather than a bug, at least until this discussion:
1665         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1666
1667         See also automake bugs #10997 and #11030.
1668
1669         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1670         reference to relevant automake bug numbers.
1671         (func_emit_tests_Makefile_am): Likewise.
1672
1673 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1674
1675         announce-gen: use Digest::SHA when possible
1676         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1677         back to Digest::SHA1 if necessary.
1678
1679 2012-03-20  Jim Meyering  <meyering@redhat.com>
1680
1681         tests: avoid gcc warnings about argv vs. const initializers
1682         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1683         warnings about discarding 'const' qualifier from pointer target type.
1684         * tests/test-posix_spawn2.c (main): Likewise.
1685
1686 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1687
1688         README-release: simplify slightly
1689         * top/README-release: Run "git checkout master" only once.
1690
1691 2012-03-15  Mark Wielaard  <mark@klomp.org>
1692
1693         git-merge-changelog: add specific example on how to use with hg.
1694         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1695
1696 2012-03-18  Mark Wielaard  <mark@klomp.org>
1697
1698         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1699
1700 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1701
1702         git-version-gen: don't let "prefix" envvar cause trouble
1703         * build-aux/git-version-gen (prefix): Initialize properly,
1704         so as not to use a value specified via the environment.
1705         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1706
1707 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1708
1709         regex: diagnose too-large repeat counts in EREs
1710         Previously, the code did not diagnose the too-large repeat count
1711         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1712         as if it were 'b\{1000000000}', which is unexpected.
1713         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1714         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1715         is a reasonable one for this problem.  Another option would be to
1716         create a new REG_OVERFLOW error for repeat counts that are too large.
1717         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1718         count is too large, so that the caller can distinguish the two cases.
1719         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1720         "Too large" return code, and that repeat counts are one example of this.
1721
1722 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         doc: some glibc x32 integer width issues
1725         * doc/posix-headers/sys_types.texi (sys/types.h):
1726         * doc/posix-headers/time.texi (time.h):
1727         Mention that glibc x32 does not conform to POSIX in a couple of
1728         areas related to integer widths.
1729
1730 2012-03-15  Bruno Haible  <bruno@clisp.org>
1731
1732         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1733         * lib/fma.c (VOLATILE): New macro.
1734         (FUNC): Use it to work around a GCC compiler bug.
1735
1736 2012-03-13  Bruno Haible  <bruno@clisp.org>
1737
1738         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1739         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1740         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1741         REPLACE_HYPOTL to 1.
1742         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1743
1744 2012-03-13  Bruno Haible  <bruno@clisp.org>
1745
1746         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1747         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1748         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1749         REPLACE_REMAINDERL to 1.
1750         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1751         bug.
1752
1753 2012-03-13  Bruno Haible  <bruno@clisp.org>
1754
1755         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1756         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1757         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1758         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1759         too big rounding errors.
1760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1761         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1762         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1763         (Depends-on): Update conditions.
1764         * tests/test-sqrtl.c (my_ldexpl): New function.
1765         (main): Add test of a particular value.
1766         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1767
1768 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1769
1770         doc: Update timer_* platform portability notes.
1771         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1772         that always return ENOSYS.
1773         * doc/posix-functions/timer_delete.texi: Likewise.
1774         * doc/posix-functions/timer_gettime.texi: Likewise.
1775         * doc/posix-functions/timer_settime.texi: Likewise.
1776
1777 2012-03-13  Bruno Haible  <bruno@clisp.org>
1778
1779         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1780         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1781         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1782         REPLACE_CBRTL to 1.
1783         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1784
1785 2012-03-13  Bruno Haible  <bruno@clisp.org>
1786
1787         remainderl: Avoid compilation error on AIX >= 5.2.
1788         * lib/math.in.h (remainderl): Undefine macro from the system header.
1789
1790 2012-03-13  Bruno Haible  <bruno@clisp.org>
1791
1792         Avoid compilation errors with MSVC option -fp:strict.
1793         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1794         * lib/cbrtf.c: Likewise.
1795         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1796
1797 2012-03-12  Bruno Haible  <bruno@clisp.org>
1798
1799         uninorm: Don't crash in out-of-memory conditions.
1800         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1801         gracefully.
1802         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1803         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1804
1805 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1806
1807         quote: fix syntax-check
1808         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1809         also exports quote_quoting_options.
1810
1811 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1812
1813         Collapse list of copyright years to ranges.  See
1814         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1815         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1816         build-aux/csharpexec.sh.in, build-aux/gnupload,
1817         build-aux/install-reloc, build-aux/javacomp.sh.in,
1818         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1819         build-aux/move-if-change, build-aux/reloc-ldflags,
1820         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1821
1822 2012-03-11  Bruno Haible  <bruno@clisp.org>
1823
1824         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1825         * m4/log2f-ieee.m4: New file.
1826         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1827         whether log2f works with a minus zero argument. Replace it if not.
1828         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1829         (Depends-on): Add log2-ieee.
1830         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1831         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1832
1833         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1834         * m4/log2-ieee.m4: New file.
1835         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1836         whether log2 works with a minus zero argument. Replace it if not.
1837         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1838         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1839         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1840
1841         Tests for module 'log2l-ieee'.
1842         * modules/log2l-ieee-tests: New file.
1843         * tests/test-log2l-ieee.c: New file.
1844
1845         New module 'log2l-ieee'.
1846         * modules/log2l-ieee: New file.
1847
1848         Tests for module 'log2-ieee'.
1849         * modules/log2-ieee-tests: New file.
1850         * tests/test-log2-ieee.c: New file.
1851
1852         New module 'log2-ieee'.
1853         * modules/log2-ieee: New file.
1854
1855         Tests for module 'log2f-ieee'.
1856         * modules/log2f-ieee-tests: New file.
1857         * tests/test-log2f-ieee.c: New file.
1858         * tests/test-log2-ieee.h: New file.
1859
1860         New module 'log2f-ieee'.
1861         * modules/log2f-ieee: New file.
1862
1863 2012-03-11  Bruno Haible  <bruno@clisp.org>
1864
1865         Tests for module 'log2l'.
1866         * modules/log2l-tests: New file.
1867         * tests/test-log2l.c: New file.
1868
1869         New module 'log2l'.
1870         * lib/math.in.h (log2l): New declaration.
1871         * lib/log2l.c: New file.
1872         * m4/log2l.m4: New file.
1873         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1875         REPLACE_LOG2L.
1876         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1877         REPLACE_LOG2L.
1878         * modules/log2l: New file.
1879         * tests/test-math-c++.cc: Check the declaration of log2l.
1880         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1881         and OSF/1 problems.
1882
1883 2012-03-11  Bruno Haible  <bruno@clisp.org>
1884
1885         Tests for module 'log2f'.
1886         * modules/log2f-tests: New file.
1887         * tests/test-log2f.c: New file.
1888
1889         New module 'log2f'.
1890         * lib/math.in.h (log2f): New declaration.
1891         * lib/log2f.c: New file.
1892         * m4/log2f.m4: New file.
1893         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1895         REPLACE_LOG2F.
1896         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1897         REPLACE_LOG2F.
1898         * modules/log2f: New file.
1899         * tests/test-math-c++.cc: Check the declaration of log2f.
1900         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1901         and OSF/1 and Cygwin problems.
1902
1903 2012-03-11  Bruno Haible  <bruno@clisp.org>
1904
1905         Tests for module 'log2'.
1906         * modules/log2-tests: New file.
1907         * tests/test-log2.c: New file.
1908         * tests/test-log2.h: New file.
1909
1910         New module 'log2'.
1911         * lib/math.in.h (log2): New declaration.
1912         * lib/log2.c: New file.
1913         * m4/log2.m4: New file.
1914         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1916         REPLACE_LOG2.
1917         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1918         REPLACE_LOG2.
1919         * modules/log2: New file.
1920         * tests/test-math-c++.cc: Check the declaration of log2.
1921         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1922         and OSF/1 and Cygwin problems.
1923
1924 2012-03-11  Bruno Haible  <bruno@clisp.org>
1925
1926         exp2* tests: More tests.
1927         * tests/test-exp2.h (test_function): Test all integral arguments that
1928         don't need to overflow or denormalized numbers.
1929         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1930         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1931         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1932
1933 2012-03-10  Bruno Haible  <bruno@clisp.org>
1934
1935         log1pl-ieee: Work around test failure on AIX 7.1.
1936         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1937
1938         log1pl-ieee: Work around test failure on IRIX 6.5.
1939         * m4/log1pl-ieee.m4: New file.
1940         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1941         test whether log1pl works with a minus zero argument. Replace it if
1942         not.
1943         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1945         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1946         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1947         (Depends-on): Update conditions.
1948         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1949         m4/signbit.m4.
1950         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1951         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1952
1953         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1954         * m4/log1pf-ieee.m4: New file.
1955         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1956         test whether log1pf works with a minus zero argument. Replace it if
1957         not.
1958         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1959         m4/signbit.m4.
1960         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1961         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1962
1963         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1964         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1965         (configure.ac): Require gl_FUNC_LOG1PF.
1966
1967         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1968         * m4/log1p-ieee.m4: New file.
1969         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1970         whether log1p works with a minus zero argument. Replace it if not.
1971         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1973         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1974         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1975         (Depends-on): Update conditions.
1976         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1977         m4/signbit.m4.
1978         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1979         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1980
1981         Tests for module 'log1pl-ieee'.
1982         * modules/log1pl-ieee-tests: New file.
1983         * tests/test-log1pl-ieee.c: New file.
1984
1985         New module 'log1pl-ieee'.
1986         * modules/log1pl-ieee: New file.
1987
1988         Tests for module 'log1p-ieee'.
1989         * modules/log1p-ieee-tests: New file.
1990         * tests/test-log1p-ieee.c: New file.
1991
1992         New module 'log1p-ieee'.
1993         * modules/log1p-ieee: New file.
1994
1995         Tests for module 'log1pf-ieee'.
1996         * modules/log1pf-ieee-tests: New file.
1997         * tests/test-log1pf-ieee.c: New file.
1998         * tests/test-log1p-ieee.h: New file.
1999
2000         New module 'log1pf-ieee'.
2001         * modules/log1pf-ieee: New file.
2002
2003 2012-03-10  Bruno Haible  <bruno@clisp.org>
2004
2005         Tests for module 'log1pl'.
2006         * modules/log1pl-tests: New file.
2007         * tests/test-log1pl.c: New file.
2008
2009         New module 'log1pl'.
2010         * lib/math.in.h (log1pl): New declaration.
2011         * lib/log1pl.c: New file.
2012         * m4/log1pl.m4: New file.
2013         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2015         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2016         * modules/log1pl: New file.
2017         * tests/test-math-c++.cc: Check the declaration of log1pl.
2018         * doc/posix-functions/log1pl.texi: Mention the new module.
2019
2020 2012-03-10  Bruno Haible  <bruno@clisp.org>
2021
2022         Tests for module 'log1pf'.
2023         * modules/log1pf-tests: New file.
2024         * tests/test-log1pf.c: New file.
2025
2026         New module 'log1pf'.
2027         * lib/math.in.h (log1pf): New declaration.
2028         * lib/log1pf.c: New file.
2029         * m4/log1pf.m4: New file.
2030         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2032         REPLACE_LOG1PF.
2033         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2034         REPLACE_LOG1PF.
2035         * modules/log1pf: New file.
2036         * tests/test-math-c++.cc: Check the declaration of log1pf.
2037         * doc/posix-functions/log1pf.texi: Mention the new module.
2038
2039 2012-03-10  Bruno Haible  <bruno@clisp.org>
2040
2041         log1p tests: More tests.
2042         * tests/test-log1p.h: New file.
2043         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2044         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2045         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2046         (main): Invoke test_function.
2047
2048         log1p: Provide replacement for Minix and MSVC.
2049         * lib/math.in.h (log1p): New declaration.
2050         * lib/log1p.c: New file.
2051         * m4/log1p.m4: New file.
2052         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2054         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2055         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2056         (Depends-on): Add math, isnand, log, round.
2057         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2058         HAVE_LOG1P is 0.
2059         * tests/test-math-c++.cc: Check the declaration of log1p.
2060         * doc/posix-functions/log1p.texi: Mention the replacement.
2061
2062 2012-03-10  Bruno Haible  <bruno@clisp.org>
2063
2064         math tests: Small simplification.
2065         * tests/test-exp.h (test_function): Use the same err_bound for
2066         'double' on platforms with sizeof (long double) == sizeof (double)
2067         than on platforms with sizeof (long double) > sizeof (double).
2068         * tests/test-exp2.h (test_function): Likewise.
2069         * tests/test-expm1.h (test_function): Likewise.
2070         * tests/test-log.h (test_function): Likewise.
2071
2072 2012-03-10  Bruno Haible  <bruno@clisp.org>
2073
2074         Fix some comments.
2075         * lib/expl.c: Fix an ambiguous comment.
2076         * lib/expm1.c: Likewise.
2077         * lib/expm1l.c: Likewise.
2078         * lib/exp2.c: Likewise.
2079         * lib/exp2l.c: Likewise.
2080
2081 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2082
2083         regex: allow inclusion of <regex.h> before <limits.h>
2084         Without this patch, portable programs had to include <limits.h> before
2085         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2086         I ran into this problem with a test version of GNU grep on Solaris 8.
2087         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2088         This is done conditionally so that this change can be merged
2089         back to glibc.
2090         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2091         using the included regex.
2092
2093         fts: depend on fdopendir
2094         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2095         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2096         problem was introduced when fdopendir was split out.
2097
2098 2012-03-10  Bruno Haible  <bruno@clisp.org>
2099
2100         Remove unused variables.
2101         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2102         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2103
2104 2012-03-10  Bruno Haible  <bruno@clisp.org>
2105
2106         isnanf-nolibm: Fix last commit.
2107         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2108
2109         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2110         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2111
2112 2012-03-10  Bruno Haible  <bruno@clisp.org>
2113
2114         logf-ieee: Work around test failure on NetBSD 5.1.
2115         * m4/logf-ieee.m4: New file.
2116         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2117         whether logf works with a negative argument. Replace it if not.
2118         * lib/logf.c (logf): For negative arguments, return NaN.
2119         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2120         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2121         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2122
2123         logf-ieee: Work around test failure on Solaris 9.
2124         * modules/logf-ieee (Depends-on): Add log-ieee.
2125         (configure.ac): Require gl_FUNC_LOGF.
2126
2127         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2128         * m4/log-ieee.m4: New file.
2129         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2130         log works with a negative argument. Replace it if not.
2131         * lib/log.c (log): For negative arguments, return NaN.
2132         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2133         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2134         * doc/posix-functions/log.texi: Mention the log-ieee module.
2135
2136         Tests for module 'logl-ieee'.
2137         * modules/logl-ieee-tests: New file.
2138         * tests/test-logl-ieee.c: New file.
2139
2140         New module 'logl-ieee'.
2141         * modules/logl-ieee: New file.
2142
2143         Tests for module 'log-ieee'.
2144         * modules/log-ieee-tests: New file.
2145         * tests/test-log-ieee.c: New file.
2146
2147         New module 'log-ieee'.
2148         * modules/log-ieee: New file.
2149
2150         Tests for module 'logf-ieee'.
2151         * modules/logf-ieee-tests: New file.
2152         * tests/test-logf-ieee.c: New file.
2153         * tests/test-log-ieee.h: New file.
2154
2155         New module 'logf-ieee'.
2156         * modules/logf-ieee: New file.
2157
2158 2012-03-10  Bruno Haible  <bruno@clisp.org>
2159
2160         log: Fix bug introduced on 2012-03-09.
2161         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2162
2163 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2164
2165         timer-time: link explicitly with pthreads on glibc
2166         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2167         to support static linking, when newer glibc is
2168         detected, as that contains pthread emulation of
2169         POSIX timer functions where required.
2170         * modules/timer-time: Depend on threadlib to
2171         pull in the appropriate library to link.
2172
2173 2012-03-10  Bruno Haible  <bruno@clisp.org>
2174
2175         log* tests: More tests.
2176         * tests/test-log.h: New file.
2177         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2178         (main): Invoke test_function.
2179         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2180         (main): Invoke test_function.
2181         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2182         (main): Invoke test_function.
2183         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2184         tests/randomd.c.
2185         (Makefile.am): Add randomd.c to test_log_SOURCES.
2186         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2187         tests/randomf.c.
2188         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2189         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2190         tests/randoml.c.
2191         (Depends-on): Add 'float'.
2192         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2193
2194 2012-03-09  Bruno Haible  <bruno@clisp.org>
2195
2196         logl: Work around OSF/1 5.1 bug.
2197         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2198         * lib/logl.c (logl): If logl exists, use it and provide just the
2199         workaround.
2200         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2201         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2203         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2204         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2205         (Depends-on): Update conditions.
2206         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2207
2208 2012-03-09  Bruno Haible  <bruno@clisp.org>
2209
2210         logf: Work around OSF/1 5.1 bug.
2211         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2212         * lib/logf.c (logf): If logf exists, use it and provide just the
2213         workaround.
2214         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2215         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2217         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2218         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2219         (Depends-on): Update conditions.
2220         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2221
2222 2012-03-09  Bruno Haible  <bruno@clisp.org>
2223
2224         log: Work around OSF/1 5.1 bug.
2225         * lib/math.in.h (log): New declaration.
2226         * lib/log.c: New file.
2227         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2228         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2229         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2231         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2232         * modules/log (Files): Add lib/log.c.
2233         (Depends-on): Add math.
2234         (configure.ac): If REPLACE_LOG is 1, compile an override.
2235         * tests/test-math-c++.cc: Check the declaration of log.
2236         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2237
2238 2012-03-09  Jim Meyering  <meyering@redhat.com>
2239
2240         readtokens.c: adjust wording in a comment
2241         * lib/readtokens.c: Insert omitted "that" in a comment.
2242
2243 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2244
2245         modechange: add notations +40, 00440, etc.
2246         * lib/modechange.c (mode_compile): Support new notations
2247         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2248
2249 2012-03-08  Bruno Haible  <bruno@clisp.org>
2250
2251         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2252         * m4/exp2l-ieee.m4: New file.
2253         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2254         test whether exp2l works with a NaN argument and with a negative
2255         infinity argument. Replace it if not.
2256         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2258         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2259         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2260         (Depends-on): Update conditions.
2261         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2262         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2263         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2264
2265         Tests for module 'exp2l-ieee'.
2266         * modules/exp2l-ieee-tests: New file.
2267         * tests/test-exp2l-ieee.c: New file.
2268
2269         New module 'exp2l-ieee'.
2270         * modules/exp2l-ieee: New file.
2271
2272         Tests for module 'exp2-ieee'.
2273         * modules/exp2-ieee-tests: New file.
2274         * tests/test-exp2-ieee.c: New file.
2275
2276         New module 'exp2-ieee'.
2277         * modules/exp2-ieee: New file.
2278
2279         Tests for module 'exp2f-ieee'.
2280         * modules/exp2f-ieee-tests: New file.
2281         * tests/test-exp2f-ieee.c: New file.
2282         * tests/test-exp2-ieee.h: New file.
2283
2284         New module 'exp2f-ieee'.
2285         * modules/exp2f-ieee: New file.
2286
2287 2012-03-08  Bruno Haible  <bruno@clisp.org>
2288
2289         Tests for module 'exp2l'.
2290         * modules/exp2l-tests: New file.
2291         * tests/test-exp2l.c: New file.
2292
2293         New module 'exp2l'.
2294         * lib/math.in.h (exp2l): New declaration.
2295         * lib/exp2l.c: New file.
2296         * lib/expl-table.c: New file, extracted from lib/expl.c.
2297         * lib/expl.c (gl_expl_table): New declaration.
2298         (expl): Remove expl_table. Update reference.
2299         * m4/exp2l.m4: New file.
2300         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2301         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2302         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2303         * modules/exp2l: New file.
2304         * modules/expl (Files): Add lib/expl-table.c.
2305         (configure.ac): Compile also expl-table.c.
2306         * tests/test-math-c++.cc: Check the declaration of exp2l.
2307         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2308         problem.
2309
2310 2012-03-08  Bruno Haible  <bruno@clisp.org>
2311
2312         Tests for module 'exp2f'.
2313         * modules/exp2f-tests: New file.
2314         * tests/test-exp2f.c: New file.
2315
2316         New module 'exp2f'.
2317         * lib/math.in.h (exp2f): New declaration.
2318         * lib/exp2f.c: New file.
2319         * m4/exp2f.m4: New file.
2320         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2322         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2323         * modules/exp2f: New file.
2324         * tests/test-math-c++.cc: Check the declaration of exp2f.
2325         * doc/posix-functions/exp2f.texi: Mention the new module and the
2326         IRIX problem.
2327
2328 2012-03-08  Bruno Haible  <bruno@clisp.org>
2329
2330         Tests for module 'exp2'.
2331         * modules/exp2-tests: New file.
2332         * tests/test-exp2.c: New file.
2333         * tests/test-exp2.h: New file.
2334
2335         New module 'exp2'.
2336         * lib/math.in.h (exp2): New declaration.
2337         * lib/exp2.c: New file.
2338         * m4/exp2.m4: New file.
2339         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2341         REPLACE_EXP2.
2342         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2343         REPLACE_EXP2.
2344         * modules/exp2: New file.
2345         * tests/test-math-c++.cc: Check the declaration of exp2.
2346         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2347         and OpenBSD problems.
2348
2349 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2350
2351         savedir: fix comment typo
2352         * lib/savedir.c (savedirstream): Fix typo in comment.
2353
2354 2012-03-08  Bruno Haible  <bruno@clisp.org>
2355
2356         test-readtokens.c: use const; remove unwarranted cast
2357         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2358
2359 2012-03-08  Bruno Haible  <bruno@clisp.org>
2360
2361         fmal: Avoid compilation error on AIX.
2362         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2363         AIX 5.2..7.1.
2364
2365 2012-03-08  Bruno Haible  <bruno@clisp.org>
2366
2367         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2368         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2369         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2370         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2371         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2372         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2373         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2374
2375 2012-03-08  Bruno Haible  <bruno@clisp.org>
2376
2377         remainderf: Override buggy system function on IRIX 6.5.
2378         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2379         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2380         when it exists.
2381         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2382
2383 2012-03-08  Jim Meyering  <meyering@redhat.com>
2384
2385         test-readtokens.c: avoid const-related compilation warnings
2386         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2387
2388 2012-03-07  Jim Meyering  <meyering@redhat.com>
2389             Bruno Haible  <bruno@clisp.org>
2390
2391         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2392         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2393         tests/randomd.c.
2394         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2395         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2396         tests/randoml.c.
2397         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2398
2399 2012-03-07  Bruno Haible  <bruno@clisp.org>
2400
2401         expm1l: Avoid compilation error on AIX.
2402         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2403         AIX 5.2..7.1.
2404
2405 2012-03-07  Bruno Haible  <bruno@clisp.org>
2406
2407         expm1l: Don't override undeclared system function on IRIX 6.5.
2408         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2409         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2410         it exists. Set HAVE_DECL_EXPM1L.
2411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2412         HAVE_EXPM1L.
2413         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2414         HAVE_EXPM1L.
2415         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2416
2417 2012-03-07  Bruno Haible  <bruno@clisp.org>
2418
2419         remainderl: Don't override undeclared system function on IRIX 6.5.
2420         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2421         HAVE_REMAINDERL.
2422         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2423         declared when it exists. Set HAVE_DECL_REMAINDERL.
2424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2425         not HAVE_REMAINDERL.
2426         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2427         HAVE_REMAINDERL.
2428         * doc/posix-functions/remainderl.texi: Mention missing declaration
2429         problem.
2430
2431 2012-03-07  Bruno Haible  <bruno@clisp.org>
2432
2433         rintf: Don't override undeclared system function on IRIX 6.5.
2434         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2435         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2436         exists. Set HAVE_DECL_RINTF.
2437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2438         HAVE_RINTF.
2439         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2440         HAVE_RINTF.
2441         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2442
2443 2012-03-07  Bruno Haible  <bruno@clisp.org>
2444
2445         roundl: Avoid compilation error on AIX.
2446         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2447         AIX 5.2..7.1.
2448
2449 2012-03-07  Bruno Haible  <bruno@clisp.org>
2450
2451         roundl: Don't override undeclared system function on IRIX 6.5.
2452         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2453         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2454         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2455         * modules/roundl (configure.ac): For replacement code, test
2456         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2457         (Depends-on): Update conditions.
2458         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2459
2460 2012-03-07  Bruno Haible  <bruno@clisp.org>
2461
2462         roundf: Don't override undeclared system function on IRIX 6.5.
2463         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2464         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2465         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2466         * modules/roundf (configure.ac): For replacement code, test
2467         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2468         (Depends-on): Update conditions.
2469         * modules/roundf-ieee (Depends-on): Update conditions.
2470         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2471
2472 2012-03-07  Bruno Haible  <bruno@clisp.org>
2473
2474         round: Don't override undeclared system function on IRIX 6.5.
2475         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2476         argument.
2477         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2478         also when it is not declared. Set HAVE_ROUND. For replacement code,
2479         test HAVE_ROUND, not HAVE_DECL_ROUND.
2480         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2481         not HAVE_DECL_ROUND.
2482         (Depends-on): Update conditions.
2483         * modules/round-ieee (Depends-on): Update conditions.
2484         * doc/posix-functions/round.texi: Mention the IRIX problem.
2485
2486 2012-03-07  Bruno Haible  <bruno@clisp.org>
2487
2488         copysignf: Don't override undeclared system function on IRIX 6.5.
2489         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2490         HAVE_COPYSIGNF.
2491         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2492         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2494         not HAVE_COPYSIGNF.
2495         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2496         HAVE_COPYSIGNF.
2497         * doc/posix-functions/copysignf.texi: Mention missing declaration
2498         problem.
2499
2500 2012-03-07  Jim Meyering  <meyering@redhat.com>
2501
2502         readtokens: add tests
2503         * modules/readtokens-tests: New file.
2504         * tests/test-readtokens.c: New file.
2505
2506 2012-03-07  Jim Meyering  <meyering@redhat.com>
2507
2508         quotearg: the module must now include quote.h
2509         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2510         So must the module.
2511         * modules/quotearg (Files): Add quote.h.
2512
2513 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2514
2515         readtokens: avoid core dumps with unusual calling patterns
2516         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2517         * lib/readtokens.c: Include limits.h.
2518         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2519         (readtoken): Don't cache the delimiters; the cache code was buggy
2520         if !delim && saved_delim, or if the new n_delim differs from the old.
2521         Also, it wasn't thread-safe.
2522
2523 2012-03-07  Bruno Haible  <bruno@clisp.org>
2524
2525         quote: Adhere to common module description layout.
2526         * modules/quote (Makefile.am): Add back empty section.
2527
2528 2012-03-06  Akim Demaille  <demaille@gostai.com>
2529
2530         quote: fuse into quotearg
2531         This patch is made for the benefit of Bison.
2532         quote does not leave the choice of the quoting style to the user.
2533         quoting_style provides poor customizability, yet quoting_options,
2534         which is very rich, is hidden inside quotearg.c.  So in order to
2535         allow quote customization, move its implementation to quotearg.c.
2536         * lib/quote.c: Remove.
2537         * modules/quote: Adjust.
2538         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2539         warning: provide all the members of literal structs.
2540         (quote_quoting_options): New.
2541         (quote, quote_n): Import implementation from quote.c.
2542         * lib/quote.h: Import the comments from quote.c.
2543         (quote_quoting_options): New.
2544
2545 2012-03-06  Bruno Haible  <bruno@clisp.org>
2546
2547         Tests for module 'expm1l-ieee'.
2548         * modules/expm1l-ieee-tests: New file.
2549         * tests/test-expm1l-ieee.c: New file.
2550
2551         New module 'expm1l-ieee'.
2552         * modules/expm1l-ieee: New file.
2553
2554         Tests for module 'expm1f-ieee'.
2555         * modules/expm1f-ieee-tests: New file.
2556         * tests/test-expm1f-ieee.c: New file.
2557
2558         New module 'expm1f-ieee'.
2559         * modules/expm1f-ieee: New file.
2560
2561         Tests for module 'expm1-ieee'.
2562         * modules/expm1-ieee-tests: New file.
2563         * tests/test-expm1-ieee.c: New file.
2564         * tests/test-expm1-ieee.h: New file.
2565
2566         New module 'expm1-ieee'.
2567         * modules/expm1-ieee: New file.
2568         * m4/expm1-ieee.m4: New file.
2569         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2570         whether expm1 works with a minus zero argument. Replace it if not.
2571         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2573         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2574         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2575         (Depends-on): Update conditions.
2576         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2577         AIX problem.
2578
2579 2012-03-06  Bruno Haible  <bruno@clisp.org>
2580
2581         Work around expm1f bug on IRIX 6.5.
2582         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2583         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2584         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2585         not work.
2586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2587         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2588         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2589         (Depends-on): Update conditions.
2590         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2591
2592 2012-03-06  Bruno Haible  <bruno@clisp.org>
2593
2594         Tests for module 'expm1l'.
2595         * modules/expm1l-tests: New file.
2596         * tests/test-expm1l.c: New file.
2597
2598         New module 'expm1l'.
2599         * lib/math.in.h (expm1l): New declaration.
2600         * lib/expm1l.c: New file.
2601         * m4/expm1l.m4: New file.
2602         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2604         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2605         * modules/expm1l: New file.
2606         * tests/test-math-c++.cc: Check the declaration of expm1l.
2607         * doc/posix-functions/expm1l.texi: Mention the new module.
2608
2609 2012-03-06  Bruno Haible  <bruno@clisp.org>
2610
2611         Tests for module 'expm1f'.
2612         * modules/expm1f-tests: New file.
2613         * tests/test-expm1f.c: New file.
2614
2615         New module 'expm1f'.
2616         * lib/math.in.h (expm1f): New declaration.
2617         * lib/expm1f.c: New file.
2618         * m4/expm1f.m4: New file.
2619         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2621         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2622         * modules/expm1f: New file.
2623         * tests/test-math-c++.cc: Check the declaration of expm1f.
2624         * doc/posix-functions/expm1f.texi: Mention the new module.
2625
2626 2012-03-06  Bruno Haible  <bruno@clisp.org>
2627
2628         Tests for module 'expm1'.
2629         * modules/expm1-tests: New file.
2630         * tests/test-expm1.c: New file.
2631         * tests/test-expm1.h: New file.
2632
2633         New module 'expm1'.
2634         * lib/math.in.h (expm1): New declaration.
2635         * lib/expm1.c: New file.
2636         * m4/expm1.m4: New file.
2637         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2639         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2640         * modules/expm1: New file.
2641         * tests/test-math-c++.cc: Check the declaration of expm1.
2642         * doc/posix-functions/expm1.texi: Mention the new module.
2643
2644 2012-03-06  Bruno Haible  <bruno@clisp.org>
2645
2646         math: Ensure declarations of math functions.
2647         * modules/acosf (Depends-on): Add 'extensions'.
2648         * modules/asinf (Depends-on): Likewise.
2649         * modules/atan2f (Depends-on): Likewise.
2650         * modules/atanf (Depends-on): Likewise.
2651         * modules/cbrt (Depends-on): Likewise.
2652         * modules/cbrtf (Depends-on): Likewise.
2653         * modules/cbrtl (Depends-on): Likewise.
2654         * modules/copysignf (Depends-on): Likewise.
2655         * modules/copysignl (Depends-on): Likewise.
2656         * modules/cosf (Depends-on): Likewise.
2657         * modules/coshf (Depends-on): Likewise.
2658         * modules/expf (Depends-on): Likewise.
2659         * modules/fabsf (Depends-on): Likewise.
2660         * modules/fabsl (Depends-on): Likewise.
2661         * modules/fmaf (Depends-on): Likewise.
2662         * modules/fmal (Depends-on): Likewise.
2663         * modules/fmodf (Depends-on): Likewise.
2664         * modules/fmodl (Depends-on): Likewise.
2665         * modules/frexpf (Depends-on): Likewise.
2666         * modules/frexpl (Depends-on): Likewise.
2667         * modules/hypot (Depends-on): Likewise.
2668         * modules/hypotf (Depends-on): Likewise.
2669         * modules/hypotl (Depends-on): Likewise.
2670         * modules/ldexpf (Depends-on): Likewise.
2671         * modules/ldexpl (Depends-on): Likewise.
2672         * modules/log10f (Depends-on): Likewise.
2673         * modules/log10l (Depends-on): Likewise.
2674         * modules/log1p (Depends-on): Likewise.
2675         * modules/logb (Depends-on): Likewise.
2676         * modules/logf (Depends-on): Likewise.
2677         * modules/modff (Depends-on): Likewise.
2678         * modules/modfl (Depends-on): Likewise.
2679         * modules/powf (Depends-on): Likewise.
2680         * modules/remainderf (Depends-on): Likewise.
2681         * modules/remainderl (Depends-on): Likewise.
2682         * modules/rintf (Depends-on): Likewise.
2683         * modules/rintl (Depends-on): Likewise.
2684         * modules/sinf (Depends-on): Likewise.
2685         * modules/sinhf (Depends-on): Likewise.
2686         * modules/sqrtf (Depends-on): Likewise.
2687         * modules/tanf (Depends-on): Likewise.
2688         * modules/tanhf (Depends-on): Likewise.
2689         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2690         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2691         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2692         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2693         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2694         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2695         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2696         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2697         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2698         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2699         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2700         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2701         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2702         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2703         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2704         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2705         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2706         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2707         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2708         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2709         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2710         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2711         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2712         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2714         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2715         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2716         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2717         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2718         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2719         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2720         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2721         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2722         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2723         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2724         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2725         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2726         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2727         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2728         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2729         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2730
2731 2012-03-06  Bruno Haible  <bruno@clisp.org>
2732
2733         math: Update module names in warnings.
2734         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2735         tanl): Use specific module name in warn-on-use warning.
2736
2737 2012-03-06  Bruno Haible  <bruno@clisp.org>
2738
2739         expl: Simplify computation.
2740         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2741
2742 2012-03-05  Bruno Haible  <bruno@clisp.org>
2743
2744         exp* tests: More tests.
2745         * tests/test-exp.h: New file.
2746         * tests/test-exp.c: Include <float.h> and test-exp.h.
2747         (main): Invoke test_function.
2748         * tests/test-expf.c: Include <float.h> and test-exp.h.
2749         (main): Invoke test_function.
2750         * tests/test-expl.c: Include <float.h> and test-exp.h.
2751         (main): Invoke test_function.
2752         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2753         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2754         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2755         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2756         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2757         (Depends-on): Add 'float'.
2758         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2759
2760         expl: Fix precision of computed result.
2761         * lib/expl.c: Completely rewritten.
2762         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2763         (Maintainer): Add me.
2764         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2765
2766 2012-03-05  Bruno Haible  <bruno@clisp.org>
2767
2768         cbrt* tests: More tests.
2769         * tests/test-cbrt.h: New file.
2770         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2771         (main): Invoke test_function.
2772         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2773         (main): Invoke test_function.
2774         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2775         (main): Invoke test_function.
2776         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2777         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2778         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2779         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2780         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2781         (Depends-on): Add 'float'.
2782         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2783
2784 2012-03-05  Bruno Haible  <bruno@clisp.org>
2785
2786         hypot* tests: More tests.
2787         * tests/test-hypot.h: New file, partially extracted from
2788         tests/test-hypotl.c.
2789         * tests/test-hypot.c: Include test-hypot.h.
2790         (main): Invoke test_function.
2791         * tests/test-hypotf.c: Include test-hypot.h.
2792         (main): Invoke test_function.
2793         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2794         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2795         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2796         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2797         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2798         tests/randomf.c.
2799         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2800         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2801         tests/randoml.c.
2802         (Depends-on): Add 'fpucw', 'float'.
2803         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2804
2805 2012-03-05  Bruno Haible  <bruno@clisp.org>
2806
2807         fpucw: Doc about FreeBSD.
2808         * lib/fpucw.h: Mention FreeBSD in comments.
2809
2810 2012-03-04  Bruno Haible  <bruno@clisp.org>
2811
2812         sqrt* tests: More tests.
2813         * tests/test-sqrt.h: New file.
2814         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2815         (main): Invoke test_function.
2816         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2817         (main): Invoke test_function.
2818         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2819         (main): Invoke test_function.
2820         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2821         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2822         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2823         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2824         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2825         (Depends-on): Add 'float'.
2826         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2827
2828 2012-03-04  Bruno Haible  <bruno@clisp.org>
2829
2830         remainder* tests: More tests.
2831         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2832         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2833         (main): Invoke test_function.
2834         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2835         (main): Invoke test_function.
2836         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2837         (main): Invoke test_function.
2838         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2839         tests/randomd.c.
2840         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2841         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2842         tests/randomf.c.
2843         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2844         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2845         tests/randoml.c.
2846         (Depends-on): Add 'float'.
2847         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2848
2849 2012-03-04  Bruno Haible  <bruno@clisp.org>
2850
2851         remainder, remainderf, remainderl: Fix computation for large quotients.
2852         * lib/remainder.c: Completely rewritten.
2853         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2854         USE_FLOAT.
2855         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2856         USE_LONG_DOUBLE.
2857         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2858         isnand, isinf. Remove round, fma.
2859         * modules/remainderf (Files): Add lib/remainder.c.
2860         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2861         Remove roundf, fmaf.
2862         * modules/remainderl (Files): Add lib/remainder.c.
2863         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2864         isinf. Remove roundl, fmal.
2865         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2866         REMAINDER_LIBM.
2867         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2868         REMAINDERF_LIBM.
2869         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2870         REMAINDERL_LIBM.
2871
2872 2012-03-04  Bruno Haible  <bruno@clisp.org>
2873
2874         fmod* tests: More tests.
2875         * tests/test-fmod.h (my_ldexp): New function.
2876         (test_function): Reduce amount of random numbers to test. Add tests
2877         of very large quotients x / y.
2878         * tests/test-fmod.c (MAX_EXP): New macro.
2879         * tests/test-fmodf.c (MAX_EXP): Likewise.
2880         * tests/test-fmodl.c (MAX_EXP): Likewise.
2881
2882 2012-03-04  Bruno Haible  <bruno@clisp.org>
2883
2884         fmod, fmodl: Fix computation for large quotients x / y.
2885         * lib/fmod.c: Completely rewritten.
2886         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2887         USE_LONG_DOUBLE.
2888         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2889         isnand. Remove fma.
2890         * modules/fmodl (Files): Add lib/fmod.c.
2891         (Depends-on): Add float, isfinite, signbit, fabsl,
2892         frexpl, ldexpl, isnanl. Remove fma.
2893         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2894         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2895
2896 2012-03-03  Bruno Haible  <bruno@clisp.org>
2897
2898         fmod* tests: More tests.
2899         * tests/test-fmod.h: New file.
2900         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2901         (main): Invoke test_function.
2902         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2903         (main): Invoke test_function.
2904         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2905         (main): Invoke test_function.
2906         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2907         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2908         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2909         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2910         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2911         (Depends-on): Add 'float'.
2912         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2913
2914 2012-03-03  Bruno Haible  <bruno@clisp.org>
2915
2916         rint* tests: More tests.
2917         * tests/test-rint.h: New file, partially extracted from
2918         tests/test-rintl.c.
2919         * tests/test-rint.c: Include test-rint.h.
2920         (main): Invoke test_function.
2921         * tests/test-rintf.c: Include test-rint.h.
2922         (main): Invoke test_function.
2923         * tests/test-rintl.c: Include test-rint.h.
2924         (main): Invoke test_function.
2925         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2926         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2927         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2928         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2929         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2930         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2931
2932 2012-03-03  Bruno Haible  <bruno@clisp.org>
2933
2934         modf* tests: More tests.
2935         * tests/test-modf.h: New file.
2936         * tests/test-modf.c: Include <float.h> and test-modf.h.
2937         (main): Invoke test_function.
2938         * tests/test-modff.c: Include <float.h> and test-modf.h.
2939         (main): Invoke test_function.
2940         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2941         (main): Invoke test_function.
2942         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2943         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2944         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2945         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2946         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2947         (Depends-on): Add 'float'.
2948         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2949
2950 2012-03-03  Bruno Haible  <bruno@clisp.org>
2951
2952         fabs* tests: More tests.
2953         * tests/test-fabs.h: New file, partially extracted from
2954         tests/test-fabsl.c.
2955         * tests/test-fabs.c (RANDOM): New macro.
2956         * tests/test-fabsf.c (RANDOM): New macro.
2957         * tests/test-fabsl.c (RANDOM): New macro.
2958         * modules/fabs-tests (Files): Add tests/randomd.c.
2959         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2960         * modules/fabsf-tests (Files): Add tests/randomf.c.
2961         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2962         * modules/fabsl-tests (Files): Add tests/randoml.c.
2963         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2964
2965 2012-03-03  Bruno Haible  <bruno@clisp.org>
2966
2967         ldexp* tests: More tests.
2968         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2969         * tests/test-ldexp.c (RANDOM): New macro.
2970         * tests/test-ldexpf.c (RANDOM): New macro.
2971         * tests/test-ldexpl.c (RANDOM): New macro.
2972         * modules/ldexp-tests (Files): Add tests/randomd.c.
2973         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2974         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2975         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2976         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2977         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2978
2979 2012-03-03  Bruno Haible  <bruno@clisp.org>
2980
2981         frexp* tests: More tests.
2982         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2983         * tests/test-frexp.c (RANDOM): New macro.
2984         * tests/test-frexpf.c (RANDOM): New macro.
2985         * tests/test-frexpl.c (RANDOM): New macro.
2986         * modules/frexp-tests (Files): Add tests/randomd.c.
2987         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2988         * modules/frexpf-tests (Files): Add tests/randomf.c.
2989         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2990         * modules/frexpl-tests (Files): Add tests/randoml.c.
2991         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2992
2993 2012-03-03  Bruno Haible  <bruno@clisp.org>
2994
2995         Support for pseudo-random numbers in tests.
2996         * tests/randomf.c: New file.
2997         * tests/randomd.c: New file.
2998         * tests/randoml.c: New file.
2999         * tests/macros.h (randomf, randomd, randoml): New declarations.
3000
3001 2012-03-03  Bruno Haible  <bruno@clisp.org>
3002
3003         frexp* tests: Refactor.
3004         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3005         * tests/test-frexp.c: Include and use it.
3006         * tests/test-frexpf.c: Likewise.
3007         * tests/test-frexpl.c: Likewise.
3008         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3009         * modules/frexpf-tests (Files): Likewise.
3010         * modules/frexpl-tests (Files): Likewise.
3011
3012 2012-03-02  Jim Meyering  <meyering@redhat.com>
3013
3014         maint: don't specify XZ_OPT=-9ev in dist-related rule
3015         Using xz's -9 option is warranted only if you have a very large
3016         tarball (see xz's documentation for the sizes vs. presets), and
3017         requires 64MiB of memory at decompression time.
3018         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3019         Automake's default of just "-e" is fine.  Override on a
3020         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3021
3022 2012-03-01  Eric Blake  <eblake@redhat.com>
3023
3024         maint.mk: allow announcement for non-gnulib project
3025         * maint.mk (announcement): Skip gnulib version if not used.
3026
3027 2012-03-01  Jim Meyering  <meyering@redhat.com>
3028
3029         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3030         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3031         envvar settings cannot interfere.  Otherwise, setting envvars like
3032         prohibit=foo require=bar, etc. would cause spurious test failures.
3033
3034 2012-03-01  Eric Blake  <eblake@redhat.com>
3035
3036         maint.mk: add per-line exclusions to prohibitions
3037         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3038         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3039         (sc_const_long_option): Use it.
3040
3041 2012-03-01  Bruno Haible  <bruno@clisp.org>
3042
3043         Tests for module 'expl-ieee'.
3044         * modules/expl-ieee-tests: New file.
3045         * tests/test-expl-ieee.c: New file.
3046
3047         New module 'expl-ieee'.
3048         * modules/expl-ieee: New file.
3049
3050         Tests for module 'exp-ieee'.
3051         * modules/exp-ieee-tests: New file.
3052         * tests/test-exp-ieee.c: New file.
3053
3054         New module 'exp-ieee'.
3055         * modules/exp-ieee: New file.
3056
3057         Tests for module 'expf-ieee'.
3058         * modules/expf-ieee-tests: New file.
3059         * tests/test-expf-ieee.c: New file.
3060         * tests/test-exp-ieee.h: New file.
3061
3062         New module 'expf-ieee'.
3063         * modules/expf-ieee: New file.
3064
3065 2012-02-29  Bruno Haible  <bruno@clisp.org>
3066
3067         cbrtl-ieee: Work around test failure on IRIX 6.5.
3068         * m4/cbrtl-ieee.m4: New file.
3069         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3070         test whether cbrtl works with a minus zero argument. Replace it if not.
3071         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3073         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3074         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3075         (Depends-on): Update conditions.
3076         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3077         m4/signbit.m4.
3078         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3079         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3080         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3081
3082         Tests for module 'cbrtl-ieee'.
3083         * modules/cbrtl-ieee-tests: New file.
3084         * tests/test-cbrtl-ieee.c: New file.
3085
3086         New module 'cbrtl-ieee'.
3087         * modules/cbrtl-ieee: New file.
3088
3089         Tests for module 'cbrt-ieee'.
3090         * modules/cbrt-ieee-tests: New file.
3091         * tests/test-cbrt-ieee.c: New file.
3092
3093         New module 'cbrt-ieee'.
3094         * modules/cbrt-ieee: New file.
3095
3096         Tests for module 'cbrtf-ieee'.
3097         * modules/cbrtf-ieee-tests: New file.
3098         * tests/test-cbrtf-ieee.c: New file.
3099         * tests/test-cbrt-ieee.h: New file.
3100
3101         New module 'cbrtf-ieee'.
3102         * modules/cbrtf-ieee: New file.
3103
3104 2012-02-29  Bruno Haible  <bruno@clisp.org>
3105
3106         cbrtf: Work around bug in IRIX 6.5 system function.
3107         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3108         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3109         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3110         work.
3111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3112         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3113         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3114         (Depends-on): Update conditions.
3115         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3116
3117 2012-02-29  Bruno Haible  <bruno@clisp.org>
3118
3119         Tests for module 'cbrtl'.
3120         * modules/cbrtl-tests: New file.
3121         * tests/test-cbrtl.c: New file.
3122
3123         New module 'cbrtl'.
3124         * lib/math.in.h (cbrtl): New declaration.
3125         * lib/cbrtl.c: New file.
3126         * m4/cbrtl.m4: New file.
3127         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3129         HAVE_DECL_CBRTL.
3130         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3131         HAVE_DECL_CBRTL.
3132         * modules/cbrtl: New file.
3133         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3134         * doc/posix-functions/cbrtl.texi: Mention the new module.
3135
3136 2012-02-29  Bruno Haible  <bruno@clisp.org>
3137
3138         Tests for module 'cbrtf'.
3139         * modules/cbrtf-tests: New file.
3140         * tests/test-cbrtf.c: New file.
3141
3142         New module 'cbrtf'.
3143         * lib/math.in.h (cbrtf): New declaration.
3144         * lib/cbrtf.c: New file.
3145         * m4/cbrtf.m4: New file.
3146         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3148         HAVE_DECL_CBRTF.
3149         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3150         HAVE_DECL_CBRTF.
3151         * modules/cbrtf: New file.
3152         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3153         * doc/posix-functions/cbrtf.texi: Mention the new module.
3154
3155 2012-02-29  Bruno Haible  <bruno@clisp.org>
3156
3157         cbrt: Provide replacement on MSVC and Minix.
3158         * lib/math.in.h (cbrt): New declaration.
3159         * lib/cbrt.c: New file.
3160         * m4/cbrt.m4: New file.
3161         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3163         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3164         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3165         (Depends-on): Add dependencies.
3166         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3167         * tests/test-math-c++.cc: Check the declaration of cbrt.
3168         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3169         replacement.
3170
3171 2012-02-29  Bruno Haible  <bruno@clisp.org>
3172
3173         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3174         * m4/hypotl-ieee.m4: New file.
3175         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3176         test whether hypotl works with mixed NaN and Infinity arguments.
3177         Replace it if not.
3178         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3180         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3181         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3182         (Depends-on): Update conditions.
3183         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3184         (Depends-on): Add hypot-ieee.
3185         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3186         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3187
3188         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3189         * m4/hypotf-ieee.m4: New file.
3190         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3191         test whether hypotf works with mixed NaN and Infinity arguments.
3192         Replace it if not.
3193         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3194         (Depends-on): Add hypot-ieee.
3195         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3196         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3197
3198         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3199         * lib/math.in.h (hypot): New declaration.
3200         * lib/hypot.c: New file.
3201         * m4/hypot-ieee.m4: New file.
3202         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3203         whether hypot works with mixed NaN and Infinity arguments. Replace it
3204         if not.
3205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3206         REPLACE_HYPOT.
3207         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3208         * modules/hypot (Files): Add lib/hypot.c.
3209         (Depends-on): Add dependencies.
3210         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3211         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3212         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3213         * tests/test-math-c++.cc: Check the declaration of hypot.
3214         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3215
3216         Tests for module 'hypotl-ieee'.
3217         * modules/hypotl-ieee-tests: New file.
3218         * tests/test-hypotl-ieee.c: New file.
3219
3220         New module 'hypotl-ieee'.
3221         * modules/hypotl-ieee: New file.
3222
3223         Tests for module 'hypot-ieee'.
3224         * modules/hypot-ieee-tests: New file.
3225         * tests/test-hypot-ieee.c: New file.
3226
3227         New module 'hypot-ieee'.
3228         * modules/hypot-ieee: New file.
3229
3230         Tests for module 'hypotf-ieee'.
3231         * modules/hypotf-ieee-tests: New file.
3232         * tests/test-hypotf-ieee.c: New file.
3233         * tests/test-hypot-ieee.h: New file.
3234
3235         New module 'hypotf-ieee'.
3236         * modules/hypotf-ieee: New file.
3237
3238 2012-02-29  Bruno Haible  <bruno@clisp.org>
3239
3240         Remove unused variables.
3241         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3242         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3243         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3244         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3245
3246 2012-02-29  Eric Blake  <eblake@redhat.com>
3247
3248         termios: fix pid_t always, not just for tcgetsid
3249         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3250         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3251         just when building tcgetsid.
3252
3253 2012-02-29  Bruno Haible  <bruno@clisp.org>
3254
3255         Tests for module 'hypotl'.
3256         * modules/hypotl-tests: New file.
3257         * tests/test-hypotl.c: New file.
3258
3259         New module 'hypotl'.
3260         * lib/math.in.h (hypotl): New declaration.
3261         * lib/hypotl.c: New file.
3262         * m4/hypotl.m4: New file.
3263         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3265         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3266         * modules/hypotl: New file.
3267         * tests/test-math-c++.cc: Check the hypotl declaration.
3268         * doc/posix-functions/hypotl.texi: Mention the new module.
3269
3270 2012-02-29  Eric Blake  <eblake@redhat.com>
3271
3272         tcgetsid: fix cygwin header bug
3273         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3274
3275         docs: update cygwin progress
3276         * doc/posix-functions/llround.texi (llround): Added in cygwin
3277         1.7.8.
3278         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3279         * doc/glibc-functions/program_invocation_name.texi
3280         (program_invocation_name): Likewise.
3281         * doc/glibc-functions/program_invocation_short_name.texi
3282         (program_invocation_short_name): Likewise.
3283         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3284         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3285         Likewise.
3286         * doc/posix-functions/pthread_spin_destroy.texi
3287         (pthread_spin_destroy): Added in cygwin 1.7.10.
3288         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3289         Likewise.
3290         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3291         Likewise.
3292         * doc/posix-functions/pthread_spin_trylock.texi
3293         (pthread_spin_trylock): Likewise.
3294         * doc/posix-functions/pthread_spin_unlock.texi
3295         (pthread_spin_unlock): Likewise.
3296         * doc/posix-functions/pthread_setschedprio.texi
3297         (pthread_setschedprio): Likewise.
3298         * doc/posix-functions/pthread_attr_getstack.texi
3299         (pthread_attr_getstack): Likewise.
3300         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3301         (pthread_attr_getstackaddr): Likewise.
3302         * doc/glibc-functions/pthread_getattr_np.texi
3303         (pthread_getattr_np): Likewise.
3304         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3305         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3306         * doc/posix-functions/clock_settime.texi (clock_settime):
3307         Likewise.
3308         * doc/posix-functions/pthread_attr_getguardsize.texi
3309         (pthread_attr_getguardsize): Likewise.
3310         * doc/posix-functions/pthread_attr_setguardsize.texi
3311         (pthread_attr_setguardsize): Likewise.
3312         * doc/posix-functions/pthread_attr_setstack.texi
3313         (pthread_attr_setstack): Likewise.
3314         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3315         (pthread_attr_setstackaddr): Likewise.
3316         * doc/posix-functions/clock_getcpuclockid.texi
3317         (clock_getcpuclockid): Likewise.
3318         * doc/posix-functions/pthread_getcpuclockid.texi
3319         (pthread_getcpuclockid): Likewise.
3320         * doc/glibc-functions/error.texi (error): Likewise.
3321         * doc/glibc-functions/error_at_line.texi (error_at_line):
3322         Likewise.
3323         * doc/glibc-functions/error_message_count.texi
3324         (error_message_count): Likewise.
3325         * doc/glibc-functions/error_one_per_line.texi
3326         (error_one_per_line): Likewise.
3327         * doc/glibc-functions/error_print_progname.texi
3328         (error_print_progname): Likewise.
3329         * doc/posix-functions/pthread_condattr_getclock.texi
3330         (pthread_condattr_getclock): Likewise.
3331         * doc/posix-functions/pthread_condattr_setclock.texi
3332         (pthread_condattr_setclock): Likewise.
3333         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3334         Likewise.
3335         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3336         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3337         * doc/glibc-functions/get_current_dir_name.texi
3338         (get_current_dir_name): Likewise.
3339         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3340         Likewise.
3341         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3342         wrong return type.
3343         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3344         1.7.11.
3345
3346 2012-02-29  Bruno Haible  <bruno@clisp.org>
3347
3348         Tests for module 'hypotf'.
3349         * modules/hypotf-tests: New file.
3350         * tests/test-hypotf.c: New file.
3351
3352         New module 'hypotf'.
3353         * lib/math.in.h (hypotf): New declaration.
3354         * lib/hypotf.c: New file.
3355         * m4/hypotf.m4: New file.
3356         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3358         REPLACE_HYPOTF.
3359         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3360         REPLACE_HYPOTF.
3361         * modules/hypotf: New file.
3362         * tests/test-math-c++.cc: Check the hypotf declaration.
3363         * doc/posix-functions/hypotf.texi: Mention the new module.
3364
3365         hypot: Prepare for hypotf module.
3366         * m4/hypot.m4: New file.
3367         * modules/hypot (Files): Add m4/hypot.m4.
3368         (configure.ac): Invoke gl_FUNC_HYPOT.
3369
3370 2012-02-29  Bruno Haible  <bruno@clisp.org>
3371
3372         hypot tests: More tests.
3373         * tests/test-hypot.c: Include <float.h>.
3374         (main): Add tests about overflow and underflow.
3375
3376 2012-02-29  Bruno Haible  <bruno@clisp.org>
3377
3378         math code: Add comments.
3379         * lib/acosl.c: Add comment about related glibc source files.
3380         * lib/asinl.c: Likewise.
3381         * lib/atanl.c: Likewise.
3382         * lib/expl.c: Likewise.
3383         * lib/logl.c: Likewise.
3384         * lib/sincosl.c: Likewise.
3385         * lib/sinl.c: Likewise.
3386         * lib/tanl.c: Likewise.
3387         * lib/trigl.c: Likewise.
3388         * lib/cosl.c: Likewise. Fix comments.
3389
3390 2012-02-28  Bruno Haible  <bruno@clisp.org>
3391
3392         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3393         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3394         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3395         HUGE_VALL are defined.
3396         (numeric_equald): Renamed from numeric_equal.
3397         (numeric_equalf, numeric_equall): New functions.
3398         (main): Check also HUGE_VALF, HUGE_VALL.
3399         * modules/math-tests (Files): Add tests/macros.h.
3400         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3401         HUGE_VALL.
3402
3403 2012-02-28  Bruno Haible  <bruno@clisp.org>
3404
3405         doc: Move ISO C11 feature notes into POSIX chapters.
3406         * doc/posix-functions/aligned_alloc.texi: Renamed from
3407         doc/glibc-functions/aligned_alloc.texi.
3408         * doc/posix-functions/quick_exit.texi: Renamed from
3409         doc/glibc-functions/quick_exit.texi.
3410         * doc/posix-headers/uchar.texi: Renamed from
3411         doc/glibc-headers/uchar.texi.
3412         * doc/posix-functions/c16rtomb.texi: Renamed from
3413         doc/glibc-functions/c16rtomb.texi.
3414         * doc/posix-functions/c32rtomb.texi: Renamed from
3415         doc/glibc-functions/c32rtomb.texi.
3416         * doc/posix-functions/mbrtoc16.texi: Renamed from
3417         doc/glibc-functions/mbrtoc16.texi.
3418         * doc/posix-functions/mbrtoc32.texi: Renamed from
3419         doc/glibc-functions/mbrtoc32.texi.
3420         * doc/gnulib.texi: Update.
3421         (Glibc uchar.h): Remove section.
3422         Suggested by Eric Blake.
3423
3424 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3425
3426         stdnoreturn: port to MSVC better
3427         MSVC standard headers use __declspec(noreturn), so #define noreturn
3428         to empty on that platform.  Reported by Bruno Haible in
3429         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3430         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3431         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3432
3433 2012-02-28  Bruno Haible  <bruno@clisp.org>
3434
3435         doc: Mention new glibc headers and functions.
3436         * doc/glibc-headers/uchar.texi: New file.
3437         * doc/glibc-functions/aligned_alloc.texi: New file.
3438         * doc/glibc-functions/c16rtomb.texi: New file.
3439         * doc/glibc-functions/c32rtomb.texi: New file.
3440         * doc/glibc-functions/clock_adjtime.texi: New file.
3441         * doc/glibc-functions/fanotify_init.texi: New file.
3442         * doc/glibc-functions/fanotify_mark.texi: New file.
3443         * doc/glibc-functions/inet6_opt_append.texi: New file.
3444         * doc/glibc-functions/inet6_opt_find.texi: New file.
3445         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3446         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3447         * doc/glibc-functions/inet6_opt_init.texi: New file.
3448         * doc/glibc-functions/inet6_opt_next.texi: New file.
3449         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3450         * doc/glibc-functions/inet6_rth_add.texi: New file.
3451         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3452         * doc/glibc-functions/inet6_rth_init.texi: New file.
3453         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3454         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3455         * doc/glibc-functions/inet6_rth_space.texi: New file.
3456         * doc/glibc-functions/login.texi: New file.
3457         * doc/glibc-functions/mbrtoc16.texi: New file.
3458         * doc/glibc-functions/mbrtoc32.texi: New file.
3459         * doc/glibc-functions/name_to_handle_at.texi: New file.
3460         * doc/glibc-functions/ntp_gettimex.texi: New file.
3461         * doc/glibc-functions/open_by_handle_at.texi: New file.
3462         * doc/glibc-functions/prlimit.texi: New file.
3463         * doc/glibc-functions/process_vm_readv.texi: New file.
3464         * doc/glibc-functions/process_vm_writev.texi: New file.
3465         * doc/glibc-functions/recvmmsg.texi: New file.
3466         * doc/glibc-functions/scandirat.texi: New file.
3467         * doc/glibc-functions/sendmmsg.texi: New file.
3468         * doc/glibc-functions/setns.texi: New file.
3469         * doc/glibc-functions/timespec_get.texi: New file.
3470         * doc/gnulib.texi: Include them.
3471         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3472         sections.
3473         Reported by Eric Blake.
3474
3475 2012-02-28  Bruno Haible  <bruno@clisp.org>
3476
3477         Avoid compilation errors with MSVC option -fp:strict.
3478         * lib/floor.c: Use MSVC specific pragma fenv_access.
3479         * lib/ceil.c: Likewise.
3480         * lib/trunc.c: Likewise.
3481         * lib/round.c: Likewise.
3482         * lib/rint.c: Likewise.
3483         * lib/fma.c: Likewise.
3484         * lib/integer_length.c: Likewise.
3485         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3487         * tests/test-floor2.c: Likewise.
3488         * tests/test-floorf2.c: Likewise.
3489         * tests/test-ceil2.c: Likewise.
3490         * tests/test-ceilf2.c: Likewise.
3491         * tests/test-trunc2.c: Likewise.
3492         * tests/test-truncf2.c: Likewise.
3493         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3494
3495 2012-02-27  Bruno Haible  <bruno@clisp.org>
3496
3497         Tests for module 'sqrtl-ieee'.
3498         * modules/sqrtl-ieee-tests: New file.
3499         * tests/test-sqrtl-ieee.c: New file.
3500
3501         New module 'sqrtl-ieee'.
3502         * modules/sqrtl-ieee: New file.
3503
3504         Tests for module 'sqrt-ieee'.
3505         * modules/sqrt-ieee-tests: New file.
3506         * tests/test-sqrt-ieee.c: New file.
3507
3508         New module 'sqrt-ieee'.
3509         * modules/sqrt-ieee: New file.
3510
3511         Tests for module 'sqrtf-ieee'.
3512         * modules/sqrtf-ieee-tests: New file.
3513         * tests/test-sqrtf-ieee.c: New file.
3514         * tests/test-sqrt-ieee.h: New file.
3515
3516         New module 'sqrtf-ieee'.
3517         * modules/sqrtf-ieee: New file.
3518
3519 2012-02-27  Bruno Haible  <bruno@clisp.org>
3520
3521         remainderl-ieee: Work around test failure on OSF/1.
3522         * m4/remainderl-ieee.m4: New file.
3523         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3524         present, test whether remainderl works with a zero second argument.
3525         Replace it if not.
3526         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3528         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3529         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3530         (Depends-on): Update conditions.
3531         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3532         (Depends-on): Add remainder-ieee.
3533         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3534         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3535         module.
3536
3537         remainderf-ieee: Work around test failure on OSF/1.
3538         * m4/remainderf-ieee.m4: New file.
3539         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3540         present, test whether remainderf works with a zero second argument.
3541         Replace it if not.
3542         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3544         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3545         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3546         (Depends-on): Update conditions.
3547         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3548         (Depends-on): Add remainder-ieee.
3549         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3550         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3551         module.
3552
3553         remainder-ieee: Work around test failure on OSF/1.
3554         * m4/remainder-ieee.m4: New file.
3555         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3556         present, test whether remainder works with a zero second argument.
3557         Replace it if not.
3558         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3560         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3561         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3562         (Depends-on): Update dependencies.
3563         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3564         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3565         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3566
3567         Tests for module 'remainderl-ieee'.
3568         * modules/remainderl-ieee-tests: New file.
3569         * tests/test-remainderl-ieee.c: New file.
3570
3571         New module 'remainderl-ieee'.
3572         * modules/remainderl-ieee: New file.
3573
3574         Tests for module 'remainder-ieee'.
3575         * modules/remainder-ieee-tests: New file.
3576         * tests/test-remainder-ieee.c: New file.
3577
3578         New module 'remainder-ieee'.
3579         * modules/remainder-ieee: New file.
3580
3581         Tests for module 'remainderf-ieee'.
3582         * modules/remainderf-ieee-tests: New file.
3583         * tests/test-remainderf-ieee.c: New file.
3584         * tests/test-remainder-ieee.h: New file.
3585
3586         New module 'remainderf-ieee'.
3587         * modules/remainderf-ieee: New file.
3588
3589 2012-02-27  Bruno Haible  <bruno@clisp.org>
3590
3591         modff, modfl: Fix configure syntax error.
3592         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3593         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3594
3595 2012-02-27  Bruno Haible  <bruno@clisp.org>
3596
3597         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3598         * m4/fmodl-ieee.m4: New file.
3599         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3600         whether fmodl works with zero arguments. Replace it if not.
3601         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3602         (Depends-on): Add fmod-ieee.
3603         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3604         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3605
3606         fmodf-ieee: Work around test failure on OSF/1.
3607         * m4/fmodf-ieee.m4: New file.
3608         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3609         whether fmodf works with zero arguments. Replace it if not.
3610         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3612         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3613         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3614         (Depends-on): Update dependencies.
3615         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3616         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3617         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3618
3619         fmodf-ieee: Work around test failure on MSVC 9.
3620         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3621         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3622
3623         fmod-ieee: Work around test failures on OSF/1, mingw.
3624         * m4/fmod-ieee.m4: New file.
3625         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3626         whether fmod works with zero arguments. Replace it if not.
3627         * lib/math.in.h (fmod): New declaration.
3628         * lib/fmod.c: New file.
3629         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3631         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3632         * modules/fmod (Files): Add lib/fmod.c.
3633         (Depends-on): Add math, isinf, trunc, fma.
3634         (configure.ac): Arrange to compile lib/fmod.c if needed.
3635         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3636         m4/signbit.m4.
3637         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3638         * tests/test-math-c++.cc: Check the declaration of fmod.
3639         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3640
3641         fmodl-ieee: Fix test failures.
3642         * lib/fmodl.c (fmodl): Treat Inf specially.
3643         * modules/fmodl (Depends-on): Add isinf.
3644
3645         Tests for module 'fmodl-ieee'.
3646         * modules/fmodl-ieee-tests: New file.
3647         * tests/test-fmodl-ieee.c: New file.
3648
3649         New module 'fmodl-ieee'.
3650         * modules/fmodl-ieee: New file.
3651
3652         Tests for module 'fmod-ieee'.
3653         * modules/fmod-ieee-tests: New file.
3654         * tests/test-fmod-ieee.c: New file.
3655
3656         New module 'fmod-ieee'.
3657         * modules/fmod-ieee: New file.
3658
3659         Tests for module 'fmodf-ieee'.
3660         * modules/fmodf-ieee-tests: New file.
3661         * tests/test-fmodf-ieee.c: New file.
3662         * tests/test-fmod-ieee.h: New file.
3663
3664         New module 'fmodf-ieee'.
3665         * modules/fmodf-ieee: New file.
3666
3667 2012-02-27  Bruno Haible  <bruno@clisp.org>
3668
3669         Tests for module 'rintl-ieee'.
3670         * modules/rintl-ieee-tests: New file.
3671         * tests/test-rintl-ieee.c: New file.
3672
3673         New module 'rintl-ieee'.
3674         * modules/rintl-ieee: New file.
3675
3676         Tests for module 'rint-ieee'.
3677         * modules/rint-ieee-tests: New file.
3678         * tests/test-rint-ieee.c: New file.
3679
3680         New module 'rint-ieee'.
3681         * modules/rint-ieee: New file.
3682
3683         Tests for module 'rintf-ieee'.
3684         * modules/rintf-ieee-tests: New file.
3685         * tests/test-rintf-ieee.c: New file.
3686         * tests/test-rint-ieee.h: New file.
3687
3688         New module 'rintf-ieee'.
3689         * modules/rintf-ieee: New file.
3690
3691 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3692
3693         regex: re_search etc. should return -2 when memory exhausted
3694         This bug was uncovered when testing 'grep'.  Without the fix,
3695         re_search and friends return -1 when memory is exhausted, but -1
3696         means no match, and this causes grep to falsely report no-match
3697         instead of memory-exhaustion.  See
3698         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3699         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3700         trouble; this can occur if re_search_internal ran out of memory.
3701
3702 2012-02-26  Bruno Haible  <bruno@clisp.org>
3703
3704         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3705         * m4/modfl-ieee.m4: New file.
3706         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3707         whether modfl works with Inf. Replace it if not.
3708         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3710         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3711         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3712         (Depends-on): Update dependencies.
3713         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3714         m4/signbit.m4.
3715         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3716         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3717
3718         modfl-ieee: Fix dependencies.
3719         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3720
3721         modfl-ieee: Fix test failures.
3722         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3723         * modules/modfl (Depends-on): Add isfinite, isinf.
3724
3725         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3726         * m4/modff-ieee.m4: New file.
3727         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3728         whether modff works with NaN and Inf. Replace it if not.
3729         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3731         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3732         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3733         (Depends-on): Update dependencies.
3734         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3735         m4/signbit.m4.
3736         (Depends-on): Add modf-ieee.
3737         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3738         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3739
3740         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3741         * m4/modf-ieee.m4: New file.
3742         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3743         whether modf works with NaN and Inf. Replace it if not.
3744         * lib/math.in.h (modf): New declaration.
3745         * lib/modf.c: New file.
3746         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3748         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3749         * modules/modf (Files): Add lib/modf.c.
3750         (Depends-on): Add math, isfinite, trunc, isinf.
3751         (configure.ac): Addrange to compile lib/modf.c if needed.
3752         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3753         m4/signbit.m4.
3754         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3755         * tests/test-math-c++.cc: Check the declaration of modf.
3756         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3757
3758         Tests for module 'modfl-ieee'.
3759         * modules/modfl-ieee-tests: New file.
3760         * tests/test-modfl-ieee.c: New file.
3761
3762         New module 'modfl-ieee'.
3763         * modules/modfl-ieee: New file.
3764
3765         Tests for module 'modf-ieee'.
3766         * modules/modf-ieee-tests: New file.
3767         * tests/test-modf-ieee.c: New file.
3768
3769         New module 'modf-ieee'.
3770         * modules/modf-ieee: New file.
3771
3772         Tests for module 'modff-ieee'.
3773         * modules/modff-ieee-tests: New file.
3774         * tests/test-modff-ieee.c: New file.
3775         * tests/test-modf-ieee.h: New file.
3776
3777         New module 'modff-ieee'.
3778         * modules/modff-ieee: New file.
3779
3780 2012-02-26  Bruno Haible  <bruno@clisp.org>
3781
3782         Tests for module 'fabsl-ieee'.
3783         * modules/fabsl-ieee-tests: New file.
3784         * tests/test-fabsl-ieee.c: New file.
3785
3786         New module 'fabsl-ieee'.
3787         * modules/fabsl-ieee: New file.
3788
3789         Tests for module 'fabs-ieee'.
3790         * modules/fabs-ieee-tests: New file.
3791         * tests/test-fabs-ieee.c: New file.
3792
3793         New module 'fabs-ieee'.
3794         * modules/fabs-ieee: New file.
3795
3796         Tests for module 'fabsf-ieee'.
3797         * modules/fabsf-ieee-tests: New file.
3798         * tests/test-fabsf-ieee.c: New file.
3799         * tests/test-fabs-ieee.h: New file.
3800
3801         New module 'fabsf-ieee'.
3802         * modules/fabsf-ieee: New file.
3803
3804 2012-02-26  Bruno Haible  <bruno@clisp.org>
3805
3806         Tests for module 'fmal-ieee'.
3807         * modules/fmal-ieee-tests: New file.
3808         * tests/test-fmal-ieee.c: New file.
3809
3810         New module 'fmal-ieee'.
3811         * modules/fmal-ieee: New file.
3812
3813         Tests for module 'fma-ieee'.
3814         * modules/fma-ieee-tests: New file.
3815         * tests/test-fma-ieee.c: New file.
3816
3817         New module 'fma-ieee'.
3818         * modules/fma-ieee: New file.
3819
3820         Tests for module 'fmaf-ieee'.
3821         * modules/fmaf-ieee-tests: New file.
3822         * tests/test-fmaf-ieee.c: New file.
3823         * tests/test-fma-ieee.h: New file.
3824
3825         New module 'fmaf-ieee'.
3826         * modules/fmaf-ieee: New file.
3827
3828 2012-02-26  Bruno Haible  <bruno@clisp.org>
3829
3830         Tests for module 'ldexpl-ieee'.
3831         * modules/ldexpl-ieee-tests: New file.
3832         * tests/test-ldexpl-ieee.c: New file.
3833
3834         New module 'ldexpl-ieee'.
3835         * modules/ldexpl-ieee: New file.
3836
3837         Tests for module 'ldexp-ieee'.
3838         * modules/ldexp-ieee-tests: New file.
3839         * tests/test-ldexp-ieee.c: New file.
3840
3841         New module 'ldexp-ieee'.
3842         * modules/ldexp-ieee: New file.
3843
3844         Tests for module 'ldexpf-ieee'.
3845         * modules/ldexpf-ieee-tests: New file.
3846         * tests/test-ldexpf-ieee.c: New file.
3847         * tests/test-ldexp-ieee.h: New file.
3848
3849         New module 'ldexpf-ieee'.
3850         * modules/ldexpf-ieee: New file.
3851
3852 2012-02-26  Bruno Haible  <bruno@clisp.org>
3853
3854         Refactor frexp*-ieee tests.
3855         * tests/test-frexp-ieee.h: New file.
3856         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3857         (main): Just call test_function.
3858         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3859         (main): Just call test_function.
3860         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3861         (main): Just call test_function.
3862         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3863         * modules/frexp-ieee-tests (Files): Likewise.
3864         * modules/frexpl-ieee-tests (Files): Likewise.
3865
3866         Tests for module 'frexpl-ieee'.
3867         * modules/frexpl-ieee-tests: New file.
3868         * tests/test-frexpl-ieee.c: New file.
3869
3870         New module 'frexpl-ieee'.
3871         * modules/frexpl-ieee: New file.
3872
3873         Tests for module 'frexp-ieee'.
3874         * modules/frexp-ieee-tests: New file.
3875         * tests/test-frexp-ieee.c: New file.
3876
3877         New module 'frexp-ieee'.
3878         * modules/frexp-ieee: New file.
3879
3880         Tests for module 'frexpf-ieee'.
3881         * modules/frexpf-ieee-tests: New file.
3882         * tests/test-frexpf-ieee.c: New file.
3883
3884         New module 'frexpf-ieee'.
3885         * modules/frexpf-ieee: New file.
3886
3887 2012-02-26  Bruno Haible  <bruno@clisp.org>
3888
3889         roundl-ieee tests: More tests.
3890         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3891         (main): Add tests for [MX] shaded specification in POSIX.
3892         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3893         (Depends-on): Add isnanl-nolibm.
3894
3895         round-ieee tests: More tests.
3896         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3897         (main): Add tests for [MX] shaded specification in POSIX.
3898         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3899         (Depends-on): Add isnand-nolibm.
3900
3901         roundf-ieee tests: More tests.
3902         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3903         (main): Add tests for [MX] shaded specification in POSIX.
3904         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3905         (Depends-on): Add isnanf-nolibm.
3906
3907         truncl-ieee tests: More tests.
3908         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3909         (main): Add tests for [MX] shaded specification in POSIX.
3910         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3911         (Depends-on): Add isnanl-nolibm.
3912
3913         trunc-ieee tests: More tests.
3914         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3915         (main): Add tests for [MX] shaded specification in POSIX.
3916         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3917         (Depends-on): Add isnand-nolibm.
3918
3919         truncf-ieee tests: More tests.
3920         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3921         (main): Add tests for [MX] shaded specification in POSIX.
3922         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3923         (Depends-on): Add isnanf-nolibm.
3924
3925         ceill-ieee tests: More tests.
3926         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3927         (main): Add tests for [MX] shaded specification in POSIX.
3928         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3929         (Depends-on): Add isnanl-nolibm.
3930
3931         ceil-ieee tests: More tests.
3932         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3933         (main): Add tests for [MX] shaded specification in POSIX.
3934         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3935         (Depends-on): Add isnand-nolibm.
3936
3937         ceilf-ieee tests: More tests.
3938         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3939         (main): Add tests for [MX] shaded specification in POSIX.
3940         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3941         (Depends-on): Add isnanf-nolibm.
3942
3943         floorl-ieee tests: More tests.
3944         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3945         (main): Add tests for [MX] shaded specification in POSIX.
3946         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3947         (Depends-on): Add isnanl-nolibm.
3948
3949         floor-ieee tests: More tests.
3950         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3951         (main): Add tests for [MX] shaded specification in POSIX.
3952         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3953         (Depends-on): Add isnand-nolibm.
3954
3955         floorf-ieee tests: More tests.
3956         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3957         (main): Add tests for [MX] shaded specification in POSIX.
3958         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3959         (Depends-on): Add isnanf-nolibm.
3960
3961 2012-02-26  Bruno Haible  <bruno@clisp.org>
3962
3963         fpieee: More comments.
3964         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3965
3966 2012-02-25  Bruno Haible  <bruno@clisp.org>
3967
3968         Tests for module 'log10l'.
3969         * modules/log10l-tests: New file.
3970         * tests/test-log10l.c: New file.
3971         * tests/test-math-c++.cc: Check the declaration of log10l.
3972
3973         New module 'log10l'.
3974         * lib/math.in.h (log10l): New declaration.
3975         * lib/log10l.c: New file.
3976         * m4/log10l.m4: New file.
3977         * modules/log10l: New file.
3978         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3980         HAVE_DECL_LOG10L.
3981         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3982         HAVE_DECL_LOG10L.
3983         * doc/posix-functions/log10l.texi: Mention the new module.
3984
3985 2012-02-25  Bruno Haible  <bruno@clisp.org>
3986
3987         fmodl, remainder*: Avoid wrong results due to rounding errors.
3988         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3989         expected bounds.
3990         * lib/remainderf.c (remainderf): Likewise.
3991         * lib/remainder.c (remainder): Likewise.
3992         * lib/remainderl.c (remainderl): Likewise.
3993
3994 2012-02-25  Bruno Haible  <bruno@clisp.org>
3995
3996         Tests for module 'remainderl'.
3997         * modules/remainderl-tests: New file.
3998         * tests/test-remainderl.c: New file.
3999         * tests/test-math-c++.cc: Check the declaration of remainderl.
4000
4001         New module 'remainderl'.
4002         * lib/math.in.h (remainderl): New declaration.
4003         * lib/remainderl.c: New file.
4004         * m4/remainderl.m4: New file.
4005         * modules/remainderl: New file.
4006         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4008         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4009         HAVE_REMAINDERL.
4010         * doc/posix-functions/remainderl.texi: Mention the new module.
4011
4012 2012-02-25  Bruno Haible  <bruno@clisp.org>
4013
4014         Tests for module 'remainderf'.
4015         * modules/remainderf-tests: New file.
4016         * tests/test-remainderf.c: New file.
4017         * tests/test-math-c++.cc: Check the declaration of remainderf.
4018
4019         New module 'remainderf'.
4020         * lib/math.in.h (remainderf): New declaration.
4021         * lib/remainderf.c: New file.
4022         * m4/remainderf.m4: New file.
4023         * modules/remainderf: New file.
4024         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4026         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4027         HAVE_REMAINDERF.
4028         * doc/posix-functions/remainderf.texi: Mention the new module.
4029
4030 2012-02-25  Bruno Haible  <bruno@clisp.org>
4031
4032         remainder: Support for MSVC.
4033         * lib/math.in.h (remainder): New declaration.
4034         * lib/remainder.c: New file.
4035         * m4/remainder.m4: New file.
4036         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4037         (Depends-on): Add math, round, fma.
4038         (configure.ac): Use results of gl_FUNC_REMAINDER.
4039         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4041         HAVE_DECL_REMAINDER.
4042         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4043         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4044         * tests/test-math-c++.cc: Check the declaration of remainder.
4045         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4046         problems are fixed.
4047
4048 2012-02-25  Bruno Haible  <bruno@clisp.org>
4049
4050         Tests for module 'fmodl'.
4051         * modules/fmodl-tests: New file.
4052         * tests/test-fmodl.c: New file.
4053         * tests/test-math-c++.cc: Check the declaration of fmodl.
4054
4055         New module 'fmodl'.
4056         * lib/math.in.h (fmodl): New declaration.
4057         * lib/fmodl.c: New file.
4058         * m4/fmodl.m4: New file.
4059         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4061         REPLACE_FMODL.
4062         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4063         REPLACE_FMODL.
4064         * modules/fmodl: New file.
4065         * doc/posix-functions/fmodl.texi: Mention the new module.
4066
4067 2012-02-25  Bruno Haible  <bruno@clisp.org>
4068
4069         Tests for module 'modfl'.
4070         * modules/modfl-tests: New file.
4071         * tests/test-modfl.c: New file.
4072         * tests/test-math-c++.cc: Check the declaration of modfl.
4073
4074         New module 'modfl'.
4075         * lib/math.in.h (modfl): New declaration.
4076         * lib/modfl.c: New file.
4077         * m4/modfl.m4: New file.
4078         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4080         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4081         * modules/modfl: New file.
4082         * doc/posix-functions/modfl.texi: Mention the new module.
4083
4084 2012-02-25  Bruno Haible  <bruno@clisp.org>
4085
4086         Tests for module 'fabsl'.
4087         * modules/fabsl-tests: New file.
4088         * tests/test-fabsl.c: New file.
4089         * tests/test-math-c++.cc: Check the declaration of fabsl.
4090
4091         New module 'fabsl'.
4092         * lib/math.in.h (fabsl): New declaration.
4093         * lib/fabsl.c: New file.
4094         * m4/fabsl.m4: New file.
4095         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4097         REPLACE_FABSL.
4098         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4099         REPLACE_FABSL.
4100         * modules/fabsl: New file.
4101         * doc/posix-functions/fabsl.texi: Mention the new module.
4102
4103 2012-02-25  Bruno Haible  <bruno@clisp.org>
4104
4105         fabs tests: More tests.
4106         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4107         (zero): New variable.
4108         (main): Add tests for signed zero.
4109         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4110
4111         fabsf tests: More tests.
4112         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4113         (zero): New variable.
4114         (main): Add tests for signed zero.
4115         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4116
4117 2012-02-24  Bruno Haible  <bruno@clisp.org>
4118
4119         atanl: Provide function definition on MSVC.
4120         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4121         function pointer.
4122         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4123
4124 2012-02-24  Bruno Haible  <bruno@clisp.org>
4125
4126         acosl: Provide function definition on MSVC.
4127         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4128         function pointer.
4129         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4130
4131 2012-02-24  Bruno Haible  <bruno@clisp.org>
4132
4133         asinl: Provide function definition on MSVC.
4134         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4135         function pointer.
4136         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4137
4138 2012-02-24  Bruno Haible  <bruno@clisp.org>
4139
4140         tanl: Provide function definition on MSVC.
4141         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4142         function pointer.
4143         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4144
4145 2012-02-24  Bruno Haible  <bruno@clisp.org>
4146
4147         cosl: Provide function definition on MSVC.
4148         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4149         function pointer.
4150         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4151
4152 2012-02-24  Bruno Haible  <bruno@clisp.org>
4153
4154         sinl: Provide function definition on MSVC.
4155         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4156         function pointer.
4157         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4158
4159 2012-02-24  Bruno Haible  <bruno@clisp.org>
4160
4161         logl: Provide function definition on MSVC.
4162         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4163         function pointer.
4164         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4165
4166 2012-02-24  Bruno Haible  <bruno@clisp.org>
4167
4168         expl: Provide function definition on MSVC.
4169         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4170         function pointer.
4171         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4172
4173 2012-02-24  Bruno Haible  <bruno@clisp.org>
4174
4175         sqrtl: Provide function definition on MSVC.
4176         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4177         a function pointer.
4178         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4179
4180 2012-02-24  Bruno Haible  <bruno@clisp.org>
4181
4182         ceill: Provide function definition on MSVC.
4183         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4184         used as a function pointer.
4185         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4186
4187 2012-02-24  Bruno Haible  <bruno@clisp.org>
4188
4189         floorl: Provide function definition on MSVC.
4190         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4191         used as a function pointer.
4192         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4193
4194 2012-02-24  Bruno Haible  <bruno@clisp.org>
4195
4196         ceilf: Provide function definition on MSVC.
4197         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4198         used as a function pointer.
4199         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4200
4201 2012-02-24  Bruno Haible  <bruno@clisp.org>
4202
4203         floorf: Provide function definition on MSVC.
4204         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4205         used as a function pointer.
4206         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4207
4208 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4209
4210         stdnoreturn: new module
4211         This implements a replacement for C11's <stdnoreturn.h>.
4212         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4213         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4214         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4215         * tests/test-stdnoreturn.c: New files.
4216
4217 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4218
4219         regex: fix false multibyte matches in some regular expressions
4220         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4221         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4222         * lib/regex_internal.c (re_string_skip_chars):
4223         Fix miscomputation of remain_len that may cause incomplete
4224         multi-byte character and false match.
4225
4226 2012-02-24  Jim Meyering  <meyering@redhat.com>
4227
4228         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4229         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4230         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4231         Remove now-unnecessary str''cmp obfuscation.
4232         Suggested by Akim Demaille.
4233
4234 2012-02-24  Bruno Haible  <bruno@clisp.org>
4235
4236         streq: Rename macro.
4237         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4238         * NEWS: Mention the change.
4239         * lib/mbrtowc.c (mbrtowc): Update.
4240         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4241         * lib/wcwidth.c (wcwidth): Update.
4242         Suggested by Akim Demaille and Jim Meyering.
4243
4244 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4245
4246         regex: fix typo in definition of MIN
4247         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4248         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4249
4250 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4251             Bruno Haible  <bruno@clisp.org>
4252
4253         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4254         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4255         entries into a stack-allocated buffer directly.
4256         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4257
4258 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4259             Bruno Haible  <bruno@clisp.org>
4260
4261         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4262
4263          - There were several instances of this pattern:
4264
4265              for (;;) {
4266                n = acl (f, GETACLCNT, 0, NULL);
4267                [ allocate an array A of size N ]
4268                if (acl (f, GETACL, n, a) == n)
4269                  break;
4270              }
4271
4272            This loop might never terminate if some other process is constantly
4273            manipulating the file's ACL.  The loop should be rewritten to
4274            terminate.
4275
4276          - The acl (... GETACLNT ...) call is merely an optimization; its value
4277            is merely a hint as to how big to make the array.  A better
4278            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4279            and just guess a reasonably-big size, growing the size and trying
4280            again if it's not large enough.  This guarantees termination, and
4281            saves a system call.
4282
4283         * lib/acl-internal.h: Include <limits.h>.
4284         (MIN, SIZE_MAX): New macros.
4285         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4286         a stack-allocated buffer, and use malloc if it does not fit. Don't
4287         use GETACLCNT.
4288         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4289
4290 2012-02-19  Bruno Haible  <bruno@clisp.org>
4291
4292         acl: Fix endless loop on Solaris with vxfs.
4293         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4294         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4295         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4296         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4297         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4298         Reported by Bill Jones in
4299         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4300
4301 2012-02-19  Bruno Haible  <bruno@clisp.org>
4302
4303         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4304         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4305         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4306         that this function returns 0 in some more cases.
4307
4308 2012-02-19  Bruno Haible  <bruno@clisp.org>
4309
4310         acl: Update doc references.
4311         * doc/acl-resources.txt: Update links to Solaris documentation.
4312
4313 2012-02-19  Bruno Haible  <bruno@clisp.org>
4314
4315         Fix test failure in many locales on Solaris 11.
4316         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4317         'tr' arguments.
4318         * tests/test-pipe-filter-ii1.c (main): Likewise.
4319         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4320         expressions in the C locale.
4321         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4322         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4323
4324 2012-02-19  Bruno Haible  <bruno@clisp.org>
4325
4326         gnulib-tool: Improve usage message.
4327         * gnulib-tool (func_usage): Move doc of --help and --version to the
4328         section "Operation modes".
4329
4330 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4331
4332         README-release: make it easier to execute commands
4333         * top/README-release: break commands out on to separate lines.
4334
4335 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4336
4337         GNUmakefile: simplify detection of unconfigured trees
4338         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4339         whether the tree make is being run from is already configured or
4340         not.  Related simplifications.
4341
4342 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4343
4344         * gnulib-tool (func_usage): Document --help and --version.
4345
4346 2012-02-11  Jim Meyering  <meyering@redhat.com>
4347
4348         bootstrap: don't exit 0 upon gnulib-tool failure
4349         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4350         its exit status, not 0.
4351
4352 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4353
4354         README-release: various improvements
4355         * top/README-release: Give a command to push changes for the
4356         release.  Add "distcheck" to list of other pre-release checks.
4357         Fix instance of "make stable" which should be "make TYPE".
4358
4359 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4360
4361         maint: replace FSF snail-mail addresses with URLs
4362         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4363         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4364         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4365         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4366         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4367         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4368         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4369         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4370         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4371         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4372         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4373         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4374         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4375         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4376         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4377         * lib/glthread/thread.c, lib/glthread/thread.h:
4378         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4379         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4380         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4381         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4382         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4383         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4384         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4385         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4386         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4387         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4388         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4389         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4390         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4391         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4392         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4393         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4394         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4395         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4396         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4397         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4398         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4399         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4400         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4401         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4402         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4403         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4404         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4405         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4406         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4407         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4408         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4409         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4410         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4411         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4412         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4413         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4414         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4415         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4416         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4417         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4418         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4419         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4420         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4421         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4422         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4423         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4424         * tests/test-poll.c, tests/test-quotearg-simple.c:
4425         * tests/test-quotearg.c, tests/test-quotearg.h:
4426         * tests/test-round-ieee.c, tests/test-round1.c:
4427         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4428         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4429         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4430         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4431         * tests/test-strerror.c, tests/test-strerror_r.c:
4432         * tests/test-strsignal.c, tests/test-strverscmp.c:
4433         * tests/test-xmemdup0.c:
4434         Replace FSF snail mail addresses with URLs, as per GNU coding
4435         standards.  See glibc bug
4436         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4437
4438 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4439
4440         README-release: capitalize a word and split a line
4441         * top/README-release: Fix punctuation and spacing.
4442
4443 2012-02-08  Akim Demaille  <demaille@gostai.com>
4444
4445         fatal-signal: use C prototypes (with explicit void).
4446         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4447         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4448
4449 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4450
4451         regex: spelling fix
4452         * lib/regexec.c: spelling fix
4453
4454         regex: rely on stdint.h for SIZE_MAX
4455         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4456
4457 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4458
4459         regex: merge glibc changes
4460
4461         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4462         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4463         (init_word_char): Work even if bitset words are not exactly 32 or
4464         64 bits wide.  Don't assume there are no padding bits.
4465         * lib/regex.c [_LIBC]: Do not include <config.h>.
4466         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4467         and -Wtype-limits.
4468         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4469         needless disagreement with glibc.  All uses changed.  Define it to
4470         1 only if _GNU_SOURCE, to match glibc.
4471         (_REG_RM_NAME): Remove; no longer needed, since the names in
4472         question are now all protected by __USE_GNU.
4473         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4474         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4475         * lib/regex_internal.h (MIN): New macro.
4476
4477         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4478         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4479
4480         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4481         * lib/regex_internal.c (re_string_fetch_byte_case):
4482         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4483         is miscompiled, and it turns out it is because of an incorrect
4484         attribute on re_string_fetch_byte_case.  Unlike
4485         re_string_peek_byte_case, this one is really not pure, it modifies
4486         memory (increments pstr->cur_idx), and with the pure attribute GCC
4487         assumed it doesn't and it cached the presumed value of
4488         regexp->cur_idx in a variable across the
4489          for (;; ++i)
4490            {
4491              if (i >= BRACKET_NAME_BUF_SIZE)
4492                return REG_EBRACK;
4493              if (token->type == OP_OPEN_CHAR_CLASS)
4494                ch = re_string_fetch_byte_case (regexp);
4495              else
4496                ch = re_string_fetch_byte (regexp);
4497              if (re_string_eoi(regexp))
4498                return REG_EBRACK;
4499              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4500                break;
4501              elem->opr.name[i] = ch;
4502            }
4503
4504         2011-11-29 Andreas Schwab <schwab@redhat.com>
4505         * lib/regcomp.c (build_equiv_class):
4506         Fix access after end of search string in regex matcher.
4507
4508         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4509         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4510
4511         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4512         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4513
4514         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4515         * lib/regcomp.c (parse_branch, parse_sub_exp):
4516         More regex memory leak fixes and tests.
4517         (parse_sub_exp, parse_bracket_exp):
4518         Fix memory leak for some invalid regular expressions.
4519
4520         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4521         * lib/regex_internal.c, lib/regexec.c:
4522         Fix unnecessary overallocation due to incomplete character.  When
4523         incomplete characters are found at the end of a string the code
4524         ran amok and allocated lots of memory.  Stricter limits are now in
4525         place.
4526
4527         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4528         * lib/regex.h: Update documentation.
4529
4530         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4531         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4532
4533         2010-05-05 Andreas Schwab <schwab@redhat.com>
4534         * lib/regexec.c (find_collation_sequence_value):
4535         Fix lookup of collation sequence value during regexp matching.
4536
4537         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4538         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4539
4540         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4541         * lib/regex.h: Cleanup namespace.
4542
4543         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4544         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4545
4546         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4547         * lib/regex_internal.h: Prevent some declarations and definitions
4548         to be seen when used in tests.
4549
4550         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4551         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4552         __libc_lock_* macros if not _LIBC.
4553         (struct re_dfa_t): Add lock.
4554
4555 2012-02-07  Eric Blake  <eblake@redhat.com>
4556
4557         maint.mk: also prohibit lower-case @var@
4558         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4559         lower case, like @top_srcdir@.
4560
4561 2012-02-04  Eric Blake  <eblake@redhat.com>
4562
4563         canonicalize: avoid uninitialized memory use
4564         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4565         random '/' left in dest.
4566         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4567
4568 2012-02-04  Bruno Haible  <bruno@clisp.org>
4569
4570         isatty: Fix test failure of ptsname_r on native Windows.
4571         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4572         and don't set errno.
4573         (isatty): Test first whether fd is valid. Set errno when returning 0.
4574
4575 2012-02-04  Bruno Haible  <bruno@clisp.org>
4576
4577         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4578         * tests/test-spawn-pipe-main.c: Include progname.h.
4579         (main): Invoke set_program_name.
4580         * modules/spawn-pipe-tests (Depends-on): Add progname.
4581
4582         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4583         * tests/test-nonblocking-socket-main.c: Include progname.h.
4584         (main): Invoke set_program_name.
4585         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4586
4587         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4588         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4589         (main): Invoke set_program_name.
4590         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4591
4592 2012-02-04  Eric Blake  <eblake@redhat.com>
4593
4594         canonicalize-lgpl: fix // handling
4595         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4596
4597         canonicalize: fix // handling
4598         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4599         /// to //, since only // is special.
4600
4601 2012-02-04  Bruno Haible  <bruno@clisp.org>
4602
4603         ioctl: Fix test failure on native Windows.
4604         * lib/ioctl.c: Include msvc-nothrow.h.
4605         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4606
4607 2012-02-04  Bruno Haible  <bruno@clisp.org>
4608
4609         fsync: Avoid test failure on native Windows.
4610         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4611         read-only.
4612
4613 2012-02-04  Bruno Haible  <bruno@clisp.org>
4614
4615         sys_select: Avoid syntax error on OpenBSD 5.0.
4616         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4617         currently being included, just include the system's <sys/select.h>.
4618
4619 2012-02-04  Bruno Haible  <bruno@clisp.org>
4620
4621         sys_select: Avoid syntax error on OpenBSD 5.0.
4622         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4623         <sys/select.h>, not before.
4624         Reported by Jiri B <jirib@devio.us>.
4625
4626 2012-02-04  Bruno Haible  <bruno@clisp.org>
4627
4628         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4629         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4630         global variables.
4631         * tests/test-get-rusage-data.c (main): Likewise.
4632         Reported by Jim Meyering.
4633
4634 2012-02-04  Bruno Haible  <bruno@clisp.org>
4635
4636         stdioext: Fix last commit.
4637         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4638
4639 2012-02-03  Bruno Haible  <bruno@clisp.org>
4640
4641         stdioext: Add tentative support for Plan9.
4642         * lib/stdio-impl.h: Include <errno.h>.
4643         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4644         * lib/freadable.c (freadable): Likewise.
4645         * lib/fwritable.c (fwritable): Likewise.
4646         * lib/fbufmode.c (fbufmode): Likewise.
4647         * lib/freading.c (freading): Likewise.
4648         * lib/fwriting.c (fwriting): Likewise.
4649         * lib/freadptr.c (freadptr): Likewise.
4650         * lib/freadseek.c (freadptrinc): Likewise.
4651         * lib/freadahead.c (freadahead): Likewise.
4652         * lib/fpurge.c (fpurge): Likewise.
4653         * lib/fseeko.c (rpl_fseeko): Likewise.
4654         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4655         Reported by Jens Staal <staal1978@gmail.com>.
4656
4657 2012-02-02  Jim Meyering  <meyering@redhat.com>
4658
4659         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4660         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4661         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4662         not even to try to add the attribute.  Instead, add a pragma to suppress
4663         the suggestion/warning.
4664
4665 2012-01-31  Karl Berry  <karl@gnu.org>
4666
4667         setstate doc: typo.
4668         * doc/posix-functions/setstate.texi (setstate): { not (.
4669
4670 2012-01-31  Bruno Haible  <bruno@clisp.org>
4671
4672         popen: Make more robust on Windows.
4673         * lib/popen.c: On native Windows, use the _popen based code even if
4674         HAVE_POPEN is set.
4675         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4676         environment variable on native Windows.
4677
4678 2012-01-30  Bruno Haible  <bruno@clisp.org>
4679
4680         pclose: Fix typo.
4681         * lib/stdio.in.h (pclose): Fix typo in warning message.
4682
4683 2012-01-30  Bruno Haible  <bruno@clisp.org>
4684
4685         doc about getlogin_r, setstate.
4686         * doc/posix-functions/getlogin_r.texi: List the incompatible
4687         declaration problem under "not fixed by gnulib".
4688         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4689         problem on Solaris 11 and other platforms.
4690
4691 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4692             Bruno Haible  <bruno@clisp.org>
4693
4694         poll tests: Make test more robust.
4695         * tests/test-poll.c: Include macros.h.
4696         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4697         return value of various I/O operations.
4698         * modules/poll-tests (Files): Add tests/macros.h.
4699
4700 2012-01-30  Bruno Haible  <bruno@clisp.org>
4701
4702         sys_stat: Fix support for mingw64 and MSVC.
4703         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4704         header files already do it.
4705         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4706         stat itself.
4707         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4708
4709 2012-01-30  Bruno Haible  <bruno@clisp.org>
4710
4711         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4713         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4714
4715 2012-01-29  Bruno Haible  <bruno@clisp.org>
4716
4717         quotearg: Fix test failure on MacOS X 10.5.
4718         * tests/test-quotearg-simple.c: Include localcharset.h.
4719         (main): If the locale encoding is not ASCII, bypass the tests of
4720         locale_quoting_style and clocale_quoting_style.
4721         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4722
4723 2012-01-29  Jim Meyering  <meyering@redhat.com>
4724
4725         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4726         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4727         detect uses of canonicalize_file_name.
4728
4729 2012-01-28  Bruno Haible  <bruno@clisp.org>
4730
4731         test-framework-sh: Fix test failure with AIX 7.1 diff.
4732         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4733         in column 1, like 'diff -c' does.
4734         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4735         whether 'diff -u' is used. Instead, test whether the output contains
4736         some '@' character.
4737
4738 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4739
4740         strtoimax: eliminate need for stdint.h, inttypes.h checks
4741         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4742         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4743         the prerequisites for a recently-introduced strtoimax test.
4744         I guess this might cause strtoimax to be replaced when not
4745         strictly necessary on older hosts, but this shouldn't introduce
4746         any bugs and it should make Emacs 'configure' faster on typical
4747         modern hosts.  Problem discovered when importing the latest gnulib
4748         to an Emacs test version.
4749         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4750
4751 2012-01-28  Bruno Haible  <bruno@clisp.org>
4752
4753         sys_time: Override 'struct timeval' on some native Windows platforms.
4754         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4755         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4756         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4757         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4758         needs to be overridden.
4759         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4760         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4761         * tests/test-sys_select.c: Check that the tv_sec member has the same
4762         size as a 'time_t'.
4763         * tests/test-sys_time.c: Likewise.
4764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4765         is set, set also REPLACE_GETTIMEOFDAY.
4766         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4767         convert the resulting 'struct timeval' before returning.
4768         * lib/select.c: Include <sys/time.h>.
4769         (select, timeval): Undefine at the right place.
4770         * modules/select (Depends-on): Add sys_time.
4771         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4772         some Windows platforms.
4773         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4774
4775 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4776
4777         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4778         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4779         an integer.
4780         * lib/fcntl.c (dupfd): Likewise.
4781         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4782
4783 2012-01-28  Bruno Haible  <bruno@clisp.org>
4784
4785         fcntl: Avoid compilation error on native Windows.
4786         * modules/fcntl (Depends-on): Add 'close'.
4787
4788 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4789
4790         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4791         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4792         pointer to an integer.
4793         * lib/poll.c (IsConsoleHandle): Likewise.
4794         * lib/isatty.c (IsConsoleHandle): Likewise.
4795
4796 2012-01-28  Jim Meyering  <meyering@redhat.com>
4797
4798         doc: clarify README-release
4799         * top/README-release: Clarify: you should make a point to have
4800         the latest stable versions of build tools in your PATH, and the
4801         reference to buildreq is solely for its list of tool names, not
4802         for its minimal-functional version numbers.
4803         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4804
4805         maint.mk: use more readable (yet functionally equivalent) quoting
4806         It is common to quote a single quote in a single quoted string like
4807         this:  '...'\''...'.  Unless you know the idiom, that looks like
4808         gibberish, so prefer to double-quote the string when possible.
4809         Then you can use a more readable, lone single quote: "...'..."
4810         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4811         "don't" is more readable than the equivalent 'don'\''t'.
4812         (sc_cast_of_x_alloc_return_value): Likewise.
4813         (sc_cast_of_alloca_return_value): Likewise.
4814         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4815         rather than '\'':'\''.
4816
4817 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4818
4819         stdalign: relax _Alignof and tighten _Alignas test
4820         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4821         as it was too strict: alignof must divide offsetof, but it need
4822         not equal offsetof.  Inspired by Joseph S. Myers's comment
4823         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4824         Conversely, tighten the _Alignas test a bit, as the resulting
4825         alignment must be exactly 8.
4826
4827 2012-01-27  Bruno Haible  <bruno@clisp.org>
4828
4829         stdalign: Document the last change.
4830         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4831
4832 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4833
4834         stdalign: check that alignof and offsetof are consistent
4835         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4836         Problem reported for gnulib by Richard W.M. Jones in
4837         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4838
4839 2012-01-27  Jim Meyering  <meyering@redhat.com>
4840
4841         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4842         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4843         convert a sequence with gaps to the minimal containing range.
4844         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4845         * tests/test-update-copyright.sh: Test for this.
4846         The FSF confirmed it is ok to do this, assuming there is at
4847         least one significant change per year in the affected range:
4848         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4849
4850 2012-01-26  Bruno Haible  <bruno@clisp.org>
4851
4852         pipe2: refine doc about thread-safety
4853         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4854         multithread-safety problem.
4855         * doc/glibc-functions/accept4.texi: Likewise.
4856
4857 2012-01-26  Bruno Haible  <bruno@clisp.org>
4858
4859         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4860         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4861         In the test program, include <fcntl.h>, for O_RDONLY.
4862
4863 2012-01-26  Eric Blake  <eblake@redhat.com>
4864
4865         pipe2: document lack of thread-safety in replacement
4866         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4867         issue in replacement.
4868         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4869         Based on a report by Eric Wong.
4870
4871 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4872             Bruno Haible  <bruno@clisp.org>
4873
4874         malloca: Avoid warnings on x86_64 mingw64.
4875         * lib/malloca.c: Include <stdint.h>.
4876         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4877         * modules/malloca (Depends-on): Add stdint.
4878         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4879
4880 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4881
4882         obstack: remove __STDC__ conditionals
4883         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4884         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4885         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4886         m4/include_next.m4 as the only gnulib-maintained places that still
4887         refer to __STDC__.
4888
4889 2012-01-24  Bruno Haible  <bruno@clisp.org>
4890
4891         havelib: Modern quoting.
4892         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4893         the recent change to the GNU coding standards.
4894
4895 2012-01-24  Bruno Haible  <bruno@clisp.org>
4896
4897         stdint: Improve support for Android.
4898         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4899         Reported by Simon Josefsson <simon@josefsson.org>.
4900
4901 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4902
4903         doc: omit trailing empty lines from INSTALL etc.
4904         * doc/Makefile (INSTALL): Omit trailing empty lines.
4905         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4906         omit trailing empty lines.  This simplifies the build procedure.
4907
4908 2012-01-23  Jim Meyering  <meyering@redhat.com>
4909
4910         tests: avoid spurious warnings about gl_sockets_startup
4911         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4912         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4913         reporting a "statement with no effect".
4914         * tests/test-accept.c (main): Mark as "(void)".
4915         * tests/test-accept4.c (main): Likewise.
4916         * tests/test-bind.c (main): Likewise.
4917         * tests/test-connect.c (main): Likewise.
4918         * tests/test-getpeername.c (main): Likewise.
4919         * tests/test-getsockname.c (main): Likewise.
4920         * tests/test-getsockopt.c (main): Likewise.
4921         * tests/test-listen.c (main): Likewise.
4922         * tests/test-recv.c (main): Likewise.
4923         * tests/test-recvfrom.c (main): Likewise.
4924         * tests/test-send.c (main): Likewise.
4925         * tests/test-sendto.c (main): Likewise.
4926         * tests/test-setsockopt.c (main): Likewise.
4927         * tests/test-shutdown.c (main): Likewise.
4928
4929 2012-01-21  Bruno Haible  <bruno@clisp.org>
4930
4931         locale-fr.m4: Fix for Android.
4932         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4933         failure of the test program on Bionic libc.
4934
4935 2012-01-21  Jim Meyering  <meyering@redhat.com>
4936
4937         bootstrap: fail when bootstrap_post_import_hook fails
4938         Otherwise, it's far too easy to miss diagnostics emitted
4939         between gnulib-tool's output and that of running configure.
4940         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4941
4942 2012-01-17  Jim Meyering  <meyering@redhat.com>
4943
4944         maint: enable sc_trailing_blank
4945         * build-aux/pmccabe.css: Remove trailing blanks.
4946         * doc/acl-cygwin.txt: Likewise.
4947         * doc/gnu-oids.texi: Likewise
4948         * cfg.mk: Enable sc_trailing_blank.
4949         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4950
4951 2012-01-17  Jim Meyering  <meyering@redhat.com>
4952
4953         maint: enable sc_prohibit_openat_without_use
4954         * cfg.mk: Enable sc_prohibit_openat_without_use.
4955         Exempt lib/selinux-at.c.
4956
4957 2012-01-17  Jim Meyering  <meyering@redhat.com>
4958
4959         maint: enable sc_prohibit_cloexec_without_use
4960         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4961         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4962
4963 2012-01-17  Jim Meyering  <meyering@redhat.com>
4964
4965         maint: enable sc_prohibit_intprops_without_use
4966         * cfg.mk: Enable sc_prohibit_intprops_without_use
4967         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4968
4969 2012-01-17  Jim Meyering  <meyering@redhat.com>
4970
4971         maint: enable sc_prohibit_hash_pjw_without_use
4972         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4973         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4974         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4975         following " (".
4976
4977 2012-01-17  Jim Meyering  <meyering@redhat.com>
4978
4979         maint: enable double-word-prohibiting rule
4980         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4981         Exempt three files.
4982
4983 2012-01-17  Jim Meyering  <meyering@redhat.com>
4984
4985         maint: remove empty lines at EOF, but excluding modules/*
4986         Apply syntax rules at home as well as abroad.  Most changes
4987         were induced by running this:
4988           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4989             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4990             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4991         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4992         Exempt modules/* and two binary files.
4993         Also exempt doc/INSTALL*, per request from Bruno Haible.
4994         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4995         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4996         * doc/Copyright/request-assign.future: Likewise.
4997         * doc/Copyright/request-disclaim.changes: Likewise.
4998         * doc/INSTALL: Likewise.
4999         * doc/INSTALL.ISO: Likewise.
5000         * doc/INSTALL.UTF-8: Likewise.
5001         * doc/acl-cygwin.txt: Likewise.
5002         * doc/acl-resources.txt: Likewise.
5003         * doc/fdl-1.2.texi: Likewise.
5004         * doc/fdl-1.3.texi: Likewise.
5005         * doc/fdl.texi: Likewise.
5006         * lib/argp-pin.c: Likewise.
5007         * lib/round.c: Likewise.
5008         * lib/unicase/u16-totitle.c: Likewise.
5009         * lib/unictype/block_test.c: Likewise.
5010         * lib/uninorm/canonical-decomposition.c: Likewise.
5011         * m4/README: Likewise.
5012         * m4/relocatable-lib.m4: Likewise.
5013         * tests/test-isnand-nolibm.c: Likewise.
5014         * tests/test-isnand.c: Likewise.
5015         * tests/uninorm/NormalizationTest.txt: Likewise.
5016
5017 2012-01-17  Jim Meyering  <meyering@redhat.com>
5018
5019         maint: add framework to run syntax-check rules against gnulib sources
5020         * cfg.mk: New file, to disable all currently-failing tests.
5021         We'll enable them one by one, as they are made to pass.
5022         * Makefile (sc_maint): New rule.
5023
5024 2012-01-21  Bruno Haible  <bruno@clisp.org>
5025
5026         stdint: Add support for Android.
5027         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5028         include the system's <stdint.h>.
5029         Reported by Simon Josefsson <simon@josefsson.org>.
5030
5031 2012-01-19  Jim Meyering  <meyering@redhat.com>
5032
5033         bootstrap: add bootstrap_post_import_hook
5034         Bison does still need something like the gnulib_mk_hook whose
5035         invocation I had to remove along with slurp in commit 767ccd40.
5036         Technically, we could get along without it, but doing so would
5037         have required living with a warning and a mandatory post-bootstrap
5038         automake rerun.
5039         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5040         (bootstrap_post_import_hook): New function.
5041         Invoke it after gnulib-tool --import and before autoreconf.
5042
5043 2012-01-18  Jim Meyering  <meyering@redhat.com>
5044
5045         gitlog-to-changelog: don't use "no_"-prefixed variable name
5046         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5047         to enable both --cluster and --no-cluster.  Change variable name,
5048         s/\$no_cluster/$cluster/, and reverse usage to match.
5049
5050         gitlog-to-changelog: use "||", not "or" in expressions
5051         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5052         expressions.
5053
5054 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5055
5056         gitlog-to-changelog: new option --no-cluster
5057         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5058         clustering of adjacent commit messages.
5059
5060 2012-01-17  Jim Meyering  <meyering@redhat.com>
5061
5062         maint: spell file systems with two words, not one
5063         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5064         two words, not one.
5065
5066 2012-01-16  Jim Meyering  <meyering@redhat.com>
5067
5068         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5069         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5070
5071 2012-01-16  Eric Blake  <eblake@redhat.com>
5072
5073         bootstrap: cater to autoconf 2.59
5074         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5075         is not available.
5076
5077         bootstrap: properly check for libtool
5078         * build-aux/bootstrap (libtoolize): Also run libtool when older
5079         usage is detected.
5080
5081 2012-01-15  Bruno Haible  <bruno@clisp.org>
5082
5083         Improve support for MSVC 9.
5084         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5085         clashes on MSVC.
5086         * lib/fcntl.in.h: Likewise.
5087         * lib/stdlib.in.h: Likewise.
5088         * lib/sys_stat.in.h: Likewise.
5089
5090 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5091
5092         gnupload: we hold the master copy of this script now
5093         For motivation and more information, see:
5094         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5095         * build-aux/gnupload: Make it clear in the heading comments that the
5096         master copy of this file is maintained by gnulib.  Since we are at
5097         it, bump its copyright year and ...
5098         ($scriptversion): ... the date in its version.
5099         ($usage): Patches and bug reports should be sent to the gnulib list,
5100         not the automake one.
5101         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5102         anymore.
5103
5104 2012-01-15  Bruno Haible  <bruno@clisp.org>
5105
5106         Fix module 'random'.
5107         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5108         initstate, setstate are declared.
5109
5110 2012-01-14  Bruno Haible  <bruno@clisp.org>
5111
5112         Tests for module 'random'.
5113         * modules/random-tests: New file.
5114         * tests/test-random.c: New file, based on tests/test-random_r.c.
5115
5116         New module 'random'.
5117         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5118         declarations.
5119         * lib/random.c: New file, based on glibc/stdlib/random.c.
5120         * m4/random.m4: New file.
5121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5122         HAVE_RANDOM.
5123         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5124         * modules/random: New file.
5125         * config/srclist.txt: Add an entry for random.c.
5126         * doc/posix-functions/random.texi: Mention the 'random' module.
5127         * doc/posix-functions/initstate.texi: Likewise.
5128         * doc/posix-functions/setstate.texi: Likewise.
5129         * doc/posix-functions/srandom.texi: Likewise.
5130
5131 2012-01-12  Bruno Haible  <bruno@clisp.org>
5132
5133         random_r: Use common idioms.
5134         * lib/random_r.c: Include <stdlib.h> first.
5135
5136         random_r: Override incompatible API on AIX, OSF/1.
5137         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5138         Override the system function if REPLACE_RANDOM_R is 1.
5139         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5140         and OSF/1, set REPLACE_RANDOM_R.
5141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5142         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5143         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5144         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5145         * doc/glibc-functions/random_r.texi: Likewise.
5146         * doc/glibc-functions/setstate_r.texi: Likewise.
5147
5148         random_r: Support for MSVC 9.
5149         * lib/random_r.c: Include stdint.h, not inttypes.h.
5150
5151 2012-01-12  Eric Blake  <eblake@redhat.com>
5152
5153         inet_ntop: guard extra work by IF_LINT
5154         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5155         better code generation when not checking for warnings.
5156         Suggested by Paul Eggert and Jim Meyering.
5157
5158         strptime: fix regression on mingw
5159         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5160         Fix regression.  Reported by Bruno Haible.
5161
5162 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5163             Bruno Haible  <bruno@clisp.org>
5164
5165         copy-file: add error-code-returning variant.
5166         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5167         (qcopy_file_preserving): New declaration.
5168         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5169         copy_file_preserving. Change return type to 'int'. Don't emit an error
5170         message here.
5171         (copy_file_preserving): New function.
5172         * tests/test-copy-file.c: Include <stdlib.h>.
5173         (main): Test qcopy_file_preserving if the environment variable
5174         NO_STDERR_OUTPUT is set.
5175         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5176         with NO_STDERR_OUTPUT
5177         * tests/test-copy-file-2.sh: Likewise.
5178
5179 2012-01-10  Bruno Haible  <bruno@clisp.org>
5180
5181         copy-file: Use 'quote' module consistently.
5182         * lib/copy-file.c (copy_file_preserving): Use quote().
5183
5184         copy-file: Refactor.
5185         * lib/copy-file.c: Include quote.h.
5186         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5187         message here.
5188         * modules/copy-file (Depends-on): Add quote.
5189
5190         acl: Export qcopy_acl.
5191         * lib/acl.h (qcopy_acl): New declaration.
5192         * lib/copy-acl.c (qcopy_acl): Make non-static.
5193
5194         acl: Rename a local variable.
5195         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5196
5197         acl: Align return values of copy_acl and qcopy_acl.
5198         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5199         maybe < -1.
5200
5201 2012-01-11  Eric Blake  <eblake@redhat.com>
5202
5203         strptime: silence gcc warnings
5204         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5205         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5206         Reported by Daniel P. Berrange.
5207
5208         inet_ntop: silence gcc warning
5209         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5210         Reported by Daniel P. Berrange.
5211
5212 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5213
5214         getloadavg test: skip the test on GNU/Linux without /proc mounted
5215         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5216         file.  When /proc is not mounted, it always fails with ENOENT.
5217         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5218         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5219
5220 2012-01-10  Bruno Haible  <bruno@clisp.org>
5221
5222         regex: Avoid link error on MSVC 9.
5223         * modules/regex (Depends-on): Add wctype.
5224
5225 2012-01-10  Bruno Haible  <bruno@clisp.org>
5226
5227         doc: Mention --with-tests option.
5228         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5229         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5230         --with-tests.
5231         Reported by Reuben Thomas.
5232
5233 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5234
5235         users.txt: order package names lexicographically.
5236         * users.txt: Order package names lexicographically.
5237
5238 2012-01-10  Jim Meyering  <meyering@redhat.com>
5239
5240         maint.mk: fix description in comment
5241         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5242
5243         ignore-value: remove deprecated ignore_ptr function
5244         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5245         * NEWS: Note this.
5246
5247 2012-01-09  Jim Meyering  <meyering@redhat.com>
5248
5249         test-init.sh: avoid a subshell
5250         * tests/test-init.sh: Remove protective subshell.
5251         Suggested by Bernhard Voelker.  While a subshell is normally
5252         required to protect against older shells (Solaris, FreeBSD) that
5253         warn about a missing program before performing redirection, the
5254         shell-selection tests performed by init.sh probably exclude any
5255         offending shell.
5256
5257 2012-01-08  Bruno Haible  <bruno@clisp.org>
5258
5259         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5260         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5261         variable.
5262
5263 2012-01-08  Bruno Haible  <bruno@clisp.org>
5264
5265         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5266         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5267         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5268         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5269         macro.
5270         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5271         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5272         * lib/spawn_faction_addopen.c: Add workaround implementation if
5273         HAVE_WORKING_POSIX_SPAWN.
5274         * modules/spawn (Makefile): Substitute
5275         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5276         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5277         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5278         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5279         (Depends-on): Update conditions.
5280         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5281         the Solaris 11 bug.
5282
5283 2012-01-08  Bruno Haible  <bruno@clisp.org>
5284
5285         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5286         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5287         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5288         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5289         macro.
5290         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5291         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5292         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5293         HAVE_WORKING_POSIX_SPAWN.
5294         * modules/spawn (Makefile): Substitute
5295         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5296         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5297         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5298         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5299         (Depends-on): Update conditions.
5300         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5301         the Solaris 11 bug.
5302
5303 2012-01-08  Bruno Haible  <bruno@clisp.org>
5304
5305         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5306         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5307         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5308         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5309         HAVE_WORKING_POSIX_SPAWN.
5310         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5311         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5312         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5313         * lib/spawn_faction_addclose.c: Add workaround implementation if
5314         HAVE_WORKING_POSIX_SPAWN.
5315         * modules/spawn (Makefile): Substitute
5316         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5317         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5318         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5319         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5320         (Depends-on): Update conditions.
5321         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5322         the Solaris 11 bug.
5323
5324 2012-01-08  Bruno Haible  <bruno@clisp.org>
5325
5326         doc: Update for Solaris 11 2011-11.
5327         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5328         * m4/printf.m4: Update comments.
5329
5330 2012-01-08  Bruno Haible  <bruno@clisp.org>
5331
5332         mktime: Avoid compilation error on Solaris 11.
5333         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5334
5335 2012-01-08  Bruno Haible  <bruno@clisp.org>
5336
5337         doc: Small fix.
5338         * doc/posix-headers/nl_types.texi: Correct platforms list.
5339
5340 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5341
5342         Add lgpl-3.0 module.
5343         * MODULES.html.sh (Support for building documentation): Add
5344         lgpl-3.0.
5345         * modules/lgpl-3.0: New file.
5346
5347 2012-01-08  Jim Meyering  <meyering@redhat.com>
5348
5349         select.c: indent with spaces, not TABs
5350         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5351
5352 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5353
5354         quotearg: do not use grave accent for left quote
5355         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5356         locale_quoting_style.
5357         (quotearg_buffer_restyled): Fix example.
5358         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5359
5360 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5361
5362         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5363         Most programs do not have translation catalogs for English and much
5364         less separate catalogs for British and American English.  Drop the
5365         suggestion to translators about these two, and provide it
5366         automatically for Unicode locales.  Like most programs, even those
5367         using American English, we use single quotation marks.  This conflicts
5368         with the American typographic convention, but works better when you
5369         cite the entire error message within double quotes.  It also tries not
5370         to clash with established practice and with what non-gnulib programs
5371         will usually do.
5372         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5373         using an UTF-8 or GB-18030 locale.  The list of other locales with
5374         quotes was provided by Bruno Haible.
5375         (quotearg_buffer_restyled): Adjust instructions to translators.
5376         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5377         text, since this would be wrong when using Unicode.
5378         * modules/quotearg: Depend on c-strcaseeq.
5379
5380 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5381
5382         quotearg: fix Wikipedia link
5383         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5384
5385 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5386
5387         Fix for mingw with MSVC9.
5388         * m4/ld-version-script.m4: Check that compiler rejects version
5389         scripts with syntax errors.  Reported by Bruno Haible
5390         <bruno@clisp.org>.
5391
5392 2012-01-06  Bruno Haible  <bruno@clisp.org>
5393
5394         Talk about "native Windows API", not "Woe32".
5395         * lib/accept4.c: Update comments to mention native Windows.
5396         * lib/execute.c: Likewise.
5397         * lib/fatal-signal.c: Likewise.
5398         * lib/localcharset.c: Likewise.
5399         * lib/nanosleep.c: Likewise.
5400         * lib/nl_langinfo.c: Likewise.
5401         * lib/pclose.c: Likewise.
5402         * lib/pipe-filter-gi.c: Likewise.
5403         * lib/pipe-filter-ii.c: Likewise.
5404         * lib/pipe.c: Likewise.
5405         * lib/pipe2.c: Likewise.
5406         * lib/popen.c: Likewise.
5407         * lib/progreloc.c: Likewise.
5408         * lib/relocatable.c: Likewise.
5409         * lib/sigaction.c: Likewise.
5410         * lib/sigprocmask.c: Likewise.
5411         * lib/spawn-pipe.h: Likewise.
5412         * lib/spawn-pipe.c: Likewise.
5413         * lib/spawni.c: Likewise.
5414         * lib/stat-time.h: Likewise.
5415         * lib/w32spawn.h: Likewise.
5416         * tests/test-isatty.c: Likewise.
5417         * lib/config.charset: More comments.
5418         * doc/gnulib-intro.texi: Mention native Windows.
5419         * doc/posix-functions/_Exit_C99.texi: Likewise.
5420         * doc/posix-headers/fcntl.texi: Likewise.
5421
5422 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5423
5424         argp: Avoid crash if translator uses % characters in a translation.
5425         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5426         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5427
5428 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5429
5430         doc: C11 and C++11 are now official
5431         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5432         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5433         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5434         * modules/stdalign:
5435         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5436
5437 2012-01-06  Bruno Haible  <bruno@clisp.org>
5438
5439         uc-is-grapheme-break tests: Tweak.
5440         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5441         message.
5442
5443 2012-01-06  Bruno Haible  <bruno@clisp.org>
5444
5445         test-init.sh: correct the test for diff -u
5446         * tests/test-init.sh: Also redirect stdout to /dev/null.
5447
5448 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5449
5450         Use ', not `, for quoting output.
5451         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5452         (print_changelog_deltas, get_tool_versions, main program):
5453         * build-aux/git-version-gen:
5454         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5455         * build-aux/move-if-change (help):
5456         * build-aux/useless-if-before-free (usage, main program):
5457         * check-module (parse_module_file, usage)
5458         (find_included_lib_files, check_module):
5459         * lib/argmatch.c (main) [TEST]:
5460         * lib/argp-help.c (_help):
5461         * lib/getopt1.c (main) [TEST]:
5462         * lib/git-merge-changelog.c (usage):
5463         * lib/xstrtol-error.c (xstrtol_error):
5464         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5465         * m4/argz.m4 (gl_FUNC_ARGZ):
5466         * m4/bison.m4 (gl_BISON):
5467         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5468         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5469         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5470         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5471         * m4/gc-random.m4 (gl_GC_RANDOM):
5472         * m4/intl.m4 (gt_CHECK_DECL):
5473         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5474         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5475         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5476         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5477         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5478         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5479         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5480         * tests/test-dirname.c (main):
5481         * tests/test-getpass.c (main):
5482         * tests/test-iconvme.c (main):
5483         * tests/test-parse-datetime.c (LOG):
5484         * tests/test-xstrtoimax.sh:
5485         * tests/test-xstrtol.sh:
5486         * tests/test-xstrtoll.sh:
5487         * tests/test-xstrtoumax.sh:
5488         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5489         * top/GNUmakefile (abort-due-to-no-makefile):
5490         Quote 'like this', not `like this', as per the recent change to
5491         the GNU coding standards.
5492
5493 2012-01-05  Bruno Haible  <bruno@clisp.org>
5494
5495         strtoimax: Don't force a replacement on systems where intmax_t is int.
5496         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5497         'intmax_t' is not larger than 'int'.
5498         Reported by Pádraig Brady <P@draigBrady.com>.
5499
5500 2012-01-05  Bruno Haible  <bruno@clisp.org>
5501
5502         doc: Mention NetBSD bugs.
5503         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5504         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5505
5506 2012-01-05  Bruno Haible  <bruno@clisp.org>
5507
5508         strtoumax tests: Enhance tests.
5509         * tests/test-strtoumax.c (main): Add tests for large values.
5510
5511 2012-01-05  Bruno Haible  <bruno@clisp.org>
5512
5513         strtoimax: Work around AIX 5.1 bug.
5514         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5515         definition.
5516         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5517         Set HAVE_STRTOIMAX.
5518         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5519         REPLACE_STRTOIMAX.
5520         * modules/inttypes-incomplete (Makefile.am): Substitute
5521         REPLACE_STRTOIMAX.
5522         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5523         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5524         (Depends-on): Update conditions.
5525         * tests/test-strtoimax.c (main): Add tests for large values.
5526         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5527
5528 2012-01-05  Bruno Haible  <bruno@clisp.org>
5529
5530         inttypes: Modernize.
5531         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5532         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5533         (Makefile.am): Update inttypes.h rule.
5534
5535 2012-01-05  Jim Meyering  <meyering@redhat.com>
5536
5537         init.sh: don't waste a subshell just to redirect stderr
5538         * tests/init.sh: In testing for diff -u and diff -c, use a
5539         stderr-redirecting exec inside `...` rather than a subshell.
5540
5541         test-init.sh: avoid failure on HP-UX 11.00
5542         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5543         resolves to diff -c or cmp.  Reported by Bruno Haible.
5544
5545 2012-01-05  Bruno Haible  <bruno@clisp.org>
5546
5547         Tests for module 'strtoull'.
5548         * modules/strtoull-tests: New file.
5549         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5550
5551 2012-01-05  Bruno Haible  <bruno@clisp.org>
5552
5553         Tests for module 'strtoll'.
5554         * modules/strtoll-tests: New file.
5555         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5556
5557 2012-01-05  Bruno Haible  <bruno@clisp.org>
5558
5559         Tests for module 'strtoul'.
5560         * modules/strtoul-tests: New file.
5561         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5562
5563 2012-01-05  Bruno Haible  <bruno@clisp.org>
5564
5565         Tests for module 'strtol'.
5566         * modules/strtol-tests: New file.
5567         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5568
5569 2012-01-04  Jim Meyering  <meyering@redhat.com>
5570
5571         test-init.sh: accommodate Solaris 5.10's different diff -u output
5572         * tests/test-init.sh: Also exempt @@ lines from the comparison
5573         of diff output, since Solaris 5.10 and GNU diff formats differ.
5574         Reported by Stefano Lattarini.
5575
5576 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5577
5578         test-posixtm: don't assume signed integer wraparound
5579         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5580         after signed integer overflow.  Inspired by (though it may not
5581         fix) Bruno Haible's bug report in
5582         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5583
5584         Spell out "Windows 9x" and "Windows XP".
5585         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5586         "Windows 9x" and "WinXP" with "Windows XP".
5587
5588 2012-01-04  Jim Meyering  <meyering@redhat.com>
5589
5590         test-vc-list-files-cvs.sh: remove obsolete comment
5591         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5592         double exit.  Now that's all encapsulated via skip_ and Exit.
5593
5594 2012-01-04  Bruno Haible  <bruno@clisp.org>
5595
5596         Talk about "native Windows API", not "Win32".
5597         * lib/classpath.c: Update comments to mention native Windows.
5598         * lib/csharpexec.c: Likewise.
5599         * lib/dup2.c: Likewise.
5600         * lib/error.c: Likewise.
5601         * lib/fcntl.c: Likewise.
5602         * lib/filename.h: Likewise.
5603         * lib/findprog.c: Likewise.
5604         * lib/get-rusage-as.c: Likewise.
5605         * lib/get-rusage-data.c: Likewise.
5606         * lib/getpagesize.c: Likewise.
5607         * lib/javaexec.c: Likewise.
5608         * lib/msvc-inval.c: Likewise.
5609         * lib/msvc-nothrow.c: Likewise.
5610         * lib/nanosleep.c: Likewise.
5611         * lib/nonblocking.c: Likewise.
5612         * lib/printf-parse.c: Likewise.
5613         * lib/setlocale.c: Likewise.
5614         * lib/sigaction.c: Likewise.
5615         * lib/strerror_r.c: Likewise.
5616         * lib/tmpdir.c: Likewise.
5617         * lib/vasnprintf.c: Likewise.
5618         * lib/w32spawn.h: Likewise.
5619         * lib/waitpid.c: Likewise.
5620         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5621         * m4/locale-ar.m4: Likewise.
5622         * m4/locale-fr.m4: Likewise.
5623         * m4/locale-ja.m4: Likewise.
5624         * m4/locale-tr.m4: Likewise.
5625         * m4/locale-zh.m4: Likewise.
5626         * m4/printf.m4: Likewise.
5627         * tests/test-cloexec.c: Likewise.
5628         * tests/test-copy-acl.sh: Likewise.
5629         * tests/test-copy-file.sh: Likewise.
5630         * tests/test-file-has-acl.sh: Likewise.
5631         * tests/test-set-mode-acl.sh: Likewise.
5632         * tests/test-dup-safer.c: Likewise.
5633         * tests/test-dup2.c: Likewise.
5634         * tests/test-dup3.c: Likewise.
5635         * tests/test-fcntl.c: Likewise.
5636         * tests/test-nonblocking-pipe.h: Likewise.
5637         * tests/test-nonblocking-socket.h: Likewise.
5638         * tests/test-pipe.c: Likewise.
5639         * tests/test-pipe2.c: Likewise.
5640         * tests/test-spawn-pipe-child.c: Likewise.
5641         * doc/acl-resources.txt: Likewise.
5642         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5643         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5644         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5645         * lib/localcharset.c: Update comments to mention native Windows.
5646         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5647         * lib/localename.c: Likewise.
5648         * lib/progreloc.c: Likewise.
5649         * lib/relocatable.c: Likewise.
5650         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5651         (windows_compute_revents): Renamed from win32_compute_revents.
5652         (windows_compute_revents_socket): Renamed from
5653         win32_compute_revents_socket.
5654         * lib/select.c: Update comments to mention native Windows.
5655         (windows_poll_handle): Renamed from win32_poll_handle.
5656         * m4/threadlib.m4: Update comments to mention native Windows.
5657         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5658         --enable-threads=windows instead of --enable-threads=win32. Set
5659         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5660         * lib/glthread/lock.h: Update comments to mention native Windows.
5661         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5662         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5663         USE_WIN32_THREADS.
5664         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5665         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5666         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5667         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5668         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5669         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5670         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5671         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5672         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5673         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5674         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5675         * tests/test-tls.c: Likewise.
5676         Rationale:
5677         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5678         on both 32-bit and 64-bit Windows systems.
5679         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5680         line of distinction is between "native Windows" on one side and Unix/
5681         POSIX systems on the other side. More details in
5682         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5683         Suggested by Paul Eggert.
5684
5685 2012-01-03  Bruno Haible  <bruno@clisp.org>
5686
5687         isatty: Support for MSVC 9.
5688         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5689         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5690         (_isatty_nothrow): New function.
5691         (isatty): Use it instead of _isatty.
5692         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5693         * lib/poll.c (IsConsoleHandle): Likewise.
5694         * lib/select.c (IsConsoleHandle): Likewise.
5695         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5696         (gl_PREREQ_ISATTY): New macro.
5697         * modules/isatty (Depends-on): Add msvc-inval.
5698         (configure.ac): Invoke gl_PREREQ_ISATTY.
5699
5700 2012-01-03  Jim Meyering  <meyering@redhat.com>
5701
5702         maint.mk: remove temporary transition aid from over 1.5 years ago
5703         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5704         purpose was to aid in the transition (avoiding silent malfunction)
5705         from that old name to the new _sc_search_regexp.  This shim was
5706         added by commit 219c504b.
5707
5708         init.sh: do not try to accommodate compare arguments starting with "-"
5709         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5710         compare arguments that start with "-".  Besides, we do not worry
5711         about this when invoking diff or cmp; why start now with sed?
5712         Using "--" to separate options from argument would trigger sed
5713         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5714         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5715
5716 2012-01-02  Bruno Haible  <bruno@clisp.org>
5717
5718         Enhance tests for module 'isatty'.
5719         * modules/isatty-tests (Depends-on): Add pipe-posix.
5720         * tests/test-isatty.c: Include <fcntl.h>.
5721         (DEV_NULL): New macro.
5722         (main): Test the resut of isatty() also on regular files, pipes, and
5723         /dev/null.
5724
5725         New module 'isatty'.
5726         * lib/unistd.in.h (isatty): New declaration.
5727         * lib/isatty.c: New file, based on an idea of
5728         Bastien Roucariès <roucaries.bastien@gmail.com>.
5729         * m4/isatty.m4: New file.
5730         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5731         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5732         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5733         REPLACE_ISATTY.
5734         * modules/isatty: New file.
5735         * doc/posix-functions/isatty.texi: Mention the new module.
5736         Suggested by Paolo Bonzini.
5737
5738 2012-01-02  Bruno Haible  <bruno@clisp.org>
5739
5740         canonicalize: Tweak 2011-12-29 commit.
5741         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5742         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5743
5744 2012-01-02  Jim Meyering  <meyering@redhat.com>
5745
5746         gitlog-to-changelog: describe input syntax in --help output
5747         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5748
5749         gitlog-to-changelog: fix typo in --help: show backslash before email @
5750         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5751         in sources, but not in actual output.
5752
5753 2011-12-30  Jim Meyering  <meyering@redhat.com>
5754
5755         gitlog-to-changelog: don't malfunction when name contains %-directive
5756         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5757         in a name string cause trouble.  E.g., with a user name of "%s",
5758         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5759
5760 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5761
5762         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5763         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5764         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5765         the "  (tiny change)" notation that is appended to the standard
5766         ChangeLog "date  name  email" header line.
5767
5768 2012-01-01  Jim Meyering  <meyering@redhat.com>
5769
5770         test-framework-sh: init.sh: fix "make dist" failure
5771         When using gnulib-tool's --with-tests option and any module that
5772         depends on test-framework-sh, "make dist" would fail due to the
5773         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5774         in the gltests directory, and not in the gllib/ directory.
5775         One way to work around that is to move the EXTRA_DIST += init.sh
5776         from the primary module to the -tests one:
5777         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5778         * modules/test-framework-sh (Makefile.am): ...not here.
5779         Reported by Tom G. Christensen in
5780         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5781
5782         version-etc: update copyright year reported by --version
5783         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5784
5785 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5786
5787         canonicalize: only stat() if required
5788         * lib/canonicalize.c (canonicalize_filename_mode):
5789         Avoid calling l?stat() when both CAN_MISSING,
5790         and CAN_NOLINKS are set, as we neither need
5791         to resolve symlinks or test component existence.
5792
5793 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5794
5795         doc: cover st_ino issues once; add OpenVMS etc.
5796         * doc/posix-functions/stat.texi (stat):
5797         * doc/posix-functions/lstat.texi (lstat):
5798         * doc/posix-functions/fstatat.texi (fstatat):
5799         * doc/posix-functions/fstat.texi (fstat):
5800         Move general 'struct stat' stuff to sys_stat.texi,
5801         leaving behind a pointer.
5802         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5803         Merge duplicate info about 'struct stat' problems into here.
5804         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5805         and suggest partial workarounds.
5806
5807         same-inode: port to OpenVMS
5808         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5809         three st_ino values.
5810
5811 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5812
5813         canonicalize: fix references to stat() and lstat()
5814         * lib/canonicalize.c (canonicalize_filename_mode):
5815         Ensure references always resolve to a replacement
5816         function if required (even via a macro).
5817
5818 2011-12-30  Jim Meyering  <meyering@redhat.com>
5819
5820         gitlog-to-changelog: remove a little duplication
5821         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5822         rather than twice.
5823
5824 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5825
5826         canonicalize: add support for not resolving symlinks
5827         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5828         indicate we don't want to follow symlinks.  Also
5829         provide CAN_MODE_MASK to aid setting these existing
5830         mutually exclusive values.
5831         * lib/canonicalize.c (canonicalize_filename_mode):
5832         Extract the flags from can_mode parameter, which
5833         are currently just used to select between stat()
5834         and lstat().  Also ensure that mutually exclusive
5835         values are flagged immediately as invalid.
5836         * tests/test-canonicalize.c: Verify symlinks are
5837         not followed, and that invalid flag combinations
5838         are diagnosed.
5839
5840 2011-12-25  Jim Meyering  <meyering@redhat.com>
5841
5842         gitlog-to-changelog: do not clump multi-paragraph entries
5843         Identical header lines (date,name,email+coauthors) are suppressed,
5844         thus putting all entries with those same characteristics under
5845         a single header.  However, when a log entry consists of two or
5846         more paragraphs, it may not be clear where it starts and ends.
5847         This change makes it so that such an entry is always separated
5848         from others by a header line, even when that header would
5849         otherwise be suppressed.
5850         * build-aux/gitlog-to-changelog: Implement the above.
5851         Inspired by a related request from Stefano Lattarini in
5852         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5853
5854 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5855
5856         announce-gen: fix `cmd' typo in diagnostic
5857         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5858         diagnostic: a missing '$' meant that the command was not output.
5859
5860 2011-12-23  Jim Meyering  <meyering@redhat.com>
5861
5862         test-framework-sh: distribute init.sh
5863         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5864         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5865         fail due to the lack of init.sh.
5866
5867         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5868         * modules/atexit-tests: Rather than listing tests/init.sh,
5869         now that there's a module for it, simply depend on that new module.
5870         * modules/closein-tests: Likewise.
5871         * modules/exclude-tests: Likewise.
5872         * modules/getcwd-tests: Likewise.
5873         * modules/perror-tests: Likewise.
5874         * modules/pread-tests: Likewise.
5875         * modules/pwrite-tests: Likewise.
5876         * modules/vc-list-files-tests: Likewise.
5877         * modules/verify-tests: Likewise.
5878         * modules/xalloc-die-tests: Likewise.
5879         * modules/xstrtoimax-tests: Likewise.
5880         * modules/xstrtol-tests: Likewise.
5881         * modules/xstrtoll-tests: Likewise.
5882         * modules/xstrtoumax-tests: Likewise.
5883         * modules/yesno-tests: Likewise.
5884
5885 2011-12-22  Jim Meyering  <meyering@redhat.com>
5886
5887         test-framework-sh: add minimal tests of init.sh's compare function
5888         * modules/test-framework-sh-tests: New file.
5889         * tests/test-init.sh: New file.
5890
5891         test-framework-sh: new module
5892         * modules/test-framework-sh: New file.
5893         * MODULES.html.sh (Support for maintaining and releasing projects):
5894         List it.
5895
5896         init.sh: do not emit simulated diff output to stderr
5897         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5898
5899 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5900
5901         .gitignore: ignore gnulib.dvi and regex.info
5902         * doc/.gitignore:add gnulib.dvi and regex.info
5903
5904 2011-12-22  Jim Meyering  <meyering@redhat.com>
5905
5906         init.sh: correct previous change
5907         * tests/init.sh (compare): My previous change was wrong.
5908         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5909
5910         init.sh: avoid unwarranted test failure when using "set -e"
5911         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5912         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5913         a use like "compare exp out" would get evoke an unconditional failure.
5914
5915 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5916
5917         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5918         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5919         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5920         autoreconf that did not.
5921         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5922         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5923
5924 2011-12-17  Jim Meyering  <meyering@redhat.com>
5925
5926         bootstrap: remove some now-unneeded code
5927         This script arose back when gnulib-tool was young.
5928         Since then, it has seen improvements that render much of this
5929         script unnecessary.  In particular, it can now make symlinks
5930         to the files it uses.  Also, I no longer see as much value in
5931         marking files as read-only via comments.
5932         If you relied on the symlink-creation feature of the preceding
5933         version of this script, you can get most of that functionality
5934         by adding the --symlink option to the definition of
5935         gnulib_tool_option_extras in your bootstrap.conf file.
5936         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5937         Run autopoint and libtoolize *before* gnulib-tool.
5938         After it, run an abbreviated autoreconf, rather than a loop around
5939         all tools.
5940         (slirp, bt_mark_as_generated): Remove functions.
5941
5942 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5943
5944         ftoastr: fix typo
5945         * lib/ftoastr.h: Fix misspelling in comment.
5946
5947 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5948
5949         * top/README-release: fix punctuation.
5950
5951 2011-12-17  Jim Meyering  <meyering@redhat.com>
5952
5953         bootstrap: correct the recent buildreq change
5954         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5955         had no effect.
5956         * build-aux/bootstrap (buildreq): Bracket each search term with
5957         "*...*", so that the shell "case" statement works as intended.
5958         Add comments.
5959
5960 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5961
5962         build: let bootstrap resort to wget when downloading .po files
5963         * build-aux/bootstrap (download_po_files): Fallback to wget when
5964         downloading the .po files via rsync fails.  This is necessary to
5965         bootstrap from behind a strict firewall.
5966
5967 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5968
5969         stdint: don't assume C++11 when compiling with g++
5970         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5972         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5973         work also in C++ before C++11, as that improperly inhibits
5974         generating a substitute stdint.h for that case.
5975
5976 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5977
5978         alloca: protect comment from gnulib-tool
5979         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5980         that gnulib-tool doesn't think it's a license, and munge it to
5981         say "GCC version 3".
5982
5983 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5984
5985         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5986         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5987         $(abs_top_builddir) instead of $(top_builddir).
5988
5989 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5990
5991         strftime-tests: also test nanoseconds
5992         * tests/test-strftime.c (T): Add a test of %N.
5993
5994 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5995
5996         inttypes, stdint: add C++11 support
5997         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5998         when including inttypes.h and stdint.h.  Support this change to
5999         the standard.
6000         * doc/posix-headers/inttypes.texi (inttypes.h):
6001         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6002         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6003         Define if not defined already, for the benefit of pre-C++11 hosts.
6004         Define the standard format macros (e.g., PRId8) always.
6005         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6006         Likewise, if __cpluspus.  Define the standard constant and limit
6007         macros (e.g., INT8_C, INT8_MAX) always.
6008         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6009         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6010         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6011         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6012         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6013         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6014         Likewise.
6015
6016 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6017
6018         nonblocking tests: Fix test failure on Linux/PPC.
6019         Suggested by Prerna Saxena in
6020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6021         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6022         Set to 1100000.
6023
6024 2011-12-12  Jim Meyering  <meyering@redhat.com>
6025
6026         argmatch: don't hard-code `' when listing valid option arguments
6027         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6028         use the quote function to add quotes.  Use fputs rather than
6029         fprintf for the format string with no format directive.
6030
6031 2011-12-07  Eric Blake  <eblake@redhat.com>
6032
6033         bootstrap: detect tools required by gnulib-tool
6034         * build-aux/bootstrap (buildreq): Provide minimum implicit
6035         dependencies.
6036         * DEPENDENCIES: Mention patch as a prereq.
6037
6038 2011-12-04  Bruno Haible  <bruno@clisp.org>
6039
6040         sethostname: Port to Windows platforms.
6041         * lib/sethostname.c: Provide an alternate implementation for Windows
6042         platforms.
6043         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6044         (main): Skip the test if sethostname() fails with EPERM. On Windows
6045         platforms, don't check the result of gethostname().
6046
6047 2011-12-04  Bruno Haible  <bruno@clisp.org>
6048             Jim Meyering  <meyering@redhat.com>
6049
6050         tests: Avoid spurious error message on platforms without mktemp program.
6051         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6052
6053 2011-12-04  Bruno Haible  <bruno@clisp.org>
6054
6055         sethostname: Fix documentation.
6056         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6057         "not fixed" section.
6058
6059 2011-12-03  Bruno Haible  <bruno@clisp.org>
6060
6061         gnulib-tool: Verify that the License field is present and non-empty.
6062         * gnulib-tool (func_get_license_raw): New function, extracted from
6063         func_get_license.
6064         (func_get_license): Use it. Warn if the module is not a test module and
6065         has no license.
6066         Suggested by Jim Meyering.
6067
6068 2011-12-03  Bruno Haible  <bruno@clisp.org>
6069
6070         sethostname tests: Fix link error on mingw.
6071         * tests/test-sethostname1.c: New file, extracted from
6072         tests/test-sethostname.c.
6073         * tests/test-sethostname2.c: New file, extracted from
6074         tests/test-sethostname.c.
6075         * tests/test-sethostname.c: Remove file.
6076         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6077         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6078         (Depends-on): Add gethostname.
6079         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6080         Link the latter with $(GETHOSTNAME_LIB).
6081
6082         sethostname tests: Fix compilation error on mingw.
6083         * tests/test-sethostname.c: Don't include <sys/types.h>.
6084         (geteuid): Use a dummy value without uid_t.
6085         * modules/sethostname-tests (Depends-on): Remove sys_types.
6086
6087         sethostname tests: Avoid a gcc warning.
6088         * tests/test-sethostname.c (main): Remove an unused variable.
6089
6090         Tweak last commit.
6091         * modules/sethostname-tests (Files): Sort by decreasing importance.
6092         (configure.ac): Check for geteuid.
6093         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6094         the test when there's nothing to test. Drop an unnecessary cast.
6095         Improve an error message. Verify that the final sethostname() call
6096         succeeds.
6097
6098 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6099
6100         Add a test suite for the sethostname module.
6101         * modules/sethostname-tests: New file.  A test program
6102         for the sethostname module.
6103         * tests/test-sethostname.c: Likewise.
6104
6105 2011-12-03  Bruno Haible  <bruno@clisp.org>
6106
6107         Tweak last commit.
6108         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6109         Fix preprocessor directives indentation. Fix typos.
6110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6111         * modules/unistd (Makefile): Likewise.
6112
6113 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6114
6115         Integrate the sethostname module into unistd.
6116         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6117         into the unistd.h header.
6118         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6119         preprocessor directives.
6120         * modules/unistd: Setup the Makefile substitutions of the
6121         SETHOSTNAME preprocessor directives.
6122
6123 2011-12-03  Bruno Haible  <bruno@clisp.org>
6124
6125         Tweak last commit.
6126         * lib/sethostname.c: Don't include <string.h>.
6127         (sethostname): No need to copy the argument string to the stack. Don't
6128         call clearerr. Preserve errno when fprintf failed.
6129         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6130         Don't invoke AC_REPLACE_FUNCS.
6131         * modules/sethostname (Link): Remove empty section.
6132         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6133         failure problem.
6134
6135 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6136
6137         New module 'sethostname'.
6138         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6139         for systems that lack it.
6140         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6141         sethostname declaration and function.
6142         * modules/sethostname: New file.  Define the sethostname module.
6143
6144 2011-12-03  Bruno Haible  <bruno@clisp.org>
6145
6146         Tweak last commit.
6147         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6148
6149 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6150
6151         Split the HOST_NAME_MAX detection into a separate m4 macro.
6152         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6153         macro so it can be used by the pending sethostname module.
6154
6155 2011-12-03  Bruno Haible  <bruno@clisp.org>
6156
6157         Fix module descriptions syntax.
6158         * modules/argv-iter (License): Fix syntax.
6159         * modules/di-set (License): Likewise.
6160         * modules/ino-map (License): Likewise.
6161         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6162
6163 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6164
6165         stdalign: port to Clang 3.0
6166         Problem reported by Simon Josefsson in
6167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6168         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6169         which has <stdalign.h> but which does not define alignof.
6170         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6171
6172 2011-12-01  Eric Blake  <eblake@redhat.com>
6173
6174         mktempd: silence dd usage
6175         * build-aux/mktempd (rand_bytes): Silence dd.
6176
6177 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6178
6179         manywarnings: Don't mention gcc version in docstring.
6180         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6181         Jim Meyering <meyering@redhat.com>.
6182
6183 2011-11-30  Jim Meyering  <meyering@redhat.com>
6184
6185         hash: mark a few floating point constants with "f" suffix
6186         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6187         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6188         floating point constants with "f", since they're destined to be
6189         saved/used as "float"s.
6190
6191 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6192
6193         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6194         * tests/test-float.c (test_long_double): Correct and re-enable the
6195         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6196
6197 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6198
6199         Avoid subtracting two pointers that don't point into the same block.
6200         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6201         only pointers into the same memory block are subtracted. We cannot
6202         assume that sizeof (ptrdiff_t) == sizeof (void *).
6203
6204 2011-11-29  Eric Blake  <eblake@redhat.com>
6205
6206         maint.mk: add syntax check for use of compare from init.sh
6207         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6208         moved here from coreutils.
6209
6210         manywarnings: drop -Wunsuffixed-float-constants
6211         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6212         '1.0D', which is the only way to silence this warning for 'double'.
6213
6214 2011-11-29  Jim Meyering  <meyering@redhat.com>
6215
6216         hash: mark compute_bucket_size with the pure attribute
6217         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6218
6219         quotearg, propername: correct pragma guard expression
6220         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6221         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6222
6223 2011-11-28  Jim Meyering  <meyering@redhat.com>
6224
6225         propername: do not mark proper_name with the const attribute
6226         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6227         since it examines data pointed to by its parameter.
6228         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6229         the suggestion from -Wsuggest-attribute=const.
6230
6231         propername: mark one more function as const
6232         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6233
6234 2011-11-27  Jim Meyering  <meyering@redhat.com>
6235
6236         mark functions with const and pure attributes
6237
6238         Mark functions per suggestions from gcc-4.6 when using these options:
6239         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6240         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6241         Follow these guidelines: when possible, apply the attribute to
6242         an extern declaration, not to its definition.  Apply it to the
6243         definition only when the definition is static.
6244         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6245         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6246         * lib/base64.h (isbase64): Likewise.
6247         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6248         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6249         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6250         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6251         (c_tolower, c_toupper): Likewise.
6252         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6253         * lib/chdir-long.c (find_non_slash): Likewise.
6254         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6255         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6256         * lib/file-type.h (file_type): Likewise.
6257         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6258         * lib/filevercmp.c (verrevcmp): Likewise.
6259         * lib/freadahead.h (freadahead): Likewise.
6260         * lib/fts.c (fts_maxarglen): Likewise.
6261         * lib/hash-pjw.h (hash_pjw): Likewise.
6262         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6263         * lib/hash.c (is_prime, next_prime): Likewise.
6264         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6265         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6266         (hash_table_ok, hash_get_first, hash_string): Likewise.
6267         (compute_bucket_size): Likewise.
6268         * lib/i-ring.h (i_ring_empty): Likewise.
6269         * lib/isnan.c (isnanl): Likewise.
6270         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6271         * lib/memcasecmp.h (memcasecmp): Likewise.
6272         * lib/memchr2.h (memchr2): Likewise.
6273         * lib/memcmp2.h (memcmp2): Likewise.
6274         * lib/parse-datetime.y (lookup_zone): Likewise.
6275         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6276         [!WINDOWS_SOCKETS]: Likewise.
6277         * lib/strnlen1.h (strnlen1): Likewise.
6278         * lib/uniwidth.in.h (uc_width): Likewise.
6279         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6280         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6281         (quoting_options_from_style): Add a comment.
6282         * lib/propername.h (proper_name): Add a comment.
6283
6284 2011-11-27  Bruno Haible  <bruno@clisp.org>
6285
6286         Remove unused macros from !_LIBC code in glibc-borrowed files.
6287         * lib/fnmatch.c (STRCOLL): Remove macro.
6288         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6289         * lib/glob.c (__stat, __readdir64): Remove macros.
6290         * lib/tempname.c (__open64, __xstat64): Remove macros.
6291         Suggested by Paul Eggert.
6292
6293 2011-11-27  Bruno Haible  <bruno@clisp.org>
6294
6295         getcwd: Fix link error on MSVC 9.
6296         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6297
6298 2011-11-27  Bruno Haible  <bruno@clisp.org>
6299
6300         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6301         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6302         HAVE_OPENDIR is 0.
6303         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6304         HAVE_CLOSEDIR is 0.
6305         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6306         is 0.
6307         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6308
6309 2011-11-27  Bruno Haible  <bruno@clisp.org>
6310
6311         getcwd: Fix bug from 2011-08-17.
6312         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6313         platforms that need it.
6314         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6315         code of 4 to be a failure, not a success. This ensures that
6316         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6317
6318 2011-11-27  Bruno Haible  <bruno@clisp.org>
6319
6320         binary-io tests: Avoid test failure on mingw when libtool is used.
6321         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6322         Don't verify the size of t-bin-out1.tmp here.
6323         * tests/test-binary-io.sh: Verify it here.
6324         Reported by Simon Josefsson.
6325
6326 2011-11-26  Bruno Haible  <bruno@clisp.org>
6327
6328         Fix conflict between two instantiations of module 'unistd'.
6329         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6330         ${include_guard_prefix} also in the autoconf snippet.
6331         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6333         GNULIB_UNISTD_H_GETOPT.
6334         * modules/getopt-posix (configure.ac): Set the
6335         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6336         * modules/getopt-gnu (configure.ac): Likewise.
6337         * modules/unistd (Makefile.am): Change the substitution value of
6338         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6339         Reported by Simon Josefsson.
6340
6341 2011-11-25  Bruno Haible  <bruno@clisp.org>
6342
6343         pagealign_alloc: Doc and comments.
6344         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6345         module.
6346         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6347
6348 2011-11-25  Jim Meyering  <meyering@redhat.com>
6349
6350         test-update-copyright.sh: avoid false-positive failure
6351         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6352         around false positive failure on Cygwin/Windows.  The latter was
6353         matching erroneously-created files with names like
6354         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6355
6356 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6357
6358         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6359         * m4/valgrind-tests.m4: Check that the parameters that will be
6360         used works, not just a subset of them.  Reported by Bruno Haible
6361         <bruno@clisp.org>.
6362
6363 2011-11-24  Jim Meyering  <meyering@redhat.com>
6364
6365         test-stdalign.c: comment out long double tests
6366         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6367         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6368         error: '_Alignas' specifiers cannot reduce alignment of \
6369         'static_longdouble_alignas'.
6370
6371 2011-11-22  Jim Meyering  <meyering@redhat.com>
6372
6373         init.sh: make "compare /dev/null FILE" output more readable
6374         * tests/init.sh (compare_): Document the preferred order of arguments.
6375         (emit_diff_u_header_): New function.
6376         (compare_dev_null_): Emit a simulated diff, rather than just the
6377         contents of the unexpected file.  Suggestion from Bruno Haible.
6378
6379 2011-11-21  Jim Meyering  <meyering@redhat.com>
6380             Eric Blake  <eblake@redhat.com>
6381
6382         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6383         * tests/init.sh: Make our compare function slightly more portable.
6384         Reported by Bruno Haible in
6385         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6386
6387 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6388
6389         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6390         before using it, in code that ends up in config.h.
6391
6392 2011-11-20  Bruno Haible  <bruno@clisp.org>
6393
6394         getcwd: Work around getcwd bug on AIX 5..7.
6395         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6396         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6397         Use a different value for gl_cv_func_getcwd_path_max. Move the
6398         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6399         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6400         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6401         Define HAVE_MINIMALLY_WORKING_GETCWD.
6402         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6403         where it is not even minimally working, that is, on AIX.
6404         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6405         m4/getcwd-path-max.m4.
6406         (main): Update exit code computation.
6407         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6408         getcwd does not handle long file names.
6409
6410 2011-11-20  Bruno Haible  <bruno@clisp.org>
6411
6412         getcwd: Fix bug from 2009-09-10.
6413         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6414         like "no".
6415
6416 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6417
6418         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6419
6420 2011-11-20  Bruno Haible  <bruno@clisp.org>
6421
6422         fma tests: Avoid shadowing local variables.
6423         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6424         expected.
6425
6426 2011-11-20  Bruno Haible  <bruno@clisp.org>
6427
6428         copysignf tests: Fix.
6429         * tests/test-copysignf.c: Fix signature check.
6430
6431 2011-11-20  Bruno Haible  <bruno@clisp.org>
6432
6433         fma: Remove unused code.
6434         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6435         unused macros.
6436
6437 2011-11-20  Bruno Haible  <bruno@clisp.org>
6438
6439         sethostname: Fix doc about AIX.
6440         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6441         sethostname; it has it.
6442
6443         sethostname: Mention more portability problems.
6444         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6445         problem.
6446         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6447
6448 2011-11-19  Bruno Haible  <bruno@clisp.org>
6449
6450         Depend on module fcntl-h when AT_FDCWD is used.
6451         * modules/utimens (Depends-on): Add fcntl-h.
6452         * modules/areadlinkat (Depends-on): Likewise.
6453         * modules/areadlinkat-with-size (Depends-on): Likewise.
6454         * modules/faccessat (Depends-on): Likewise.
6455         * modules/fchmodat (Depends-on): Likewise.
6456         * modules/fchownat (Depends-on): Likewise.
6457         * modules/getcwd (Depends-on): Likewise.
6458         * modules/mkdirat (Depends-on): Likewise.
6459         * modules/mkfifoat (Depends-on): Likewise.
6460         * modules/readlinkat (Depends-on): Likewise.
6461         * modules/symlinkat (Depends-on): Likewise.
6462         * modules/dup2-tests (Depends-on): Likewise.
6463         * modules/fdutimensat-tests (Depends-on): Likewise.
6464         * modules/futimens-tests (Depends-on): Likewise.
6465
6466 2011-11-19  Bruno Haible  <bruno@clisp.org>
6467
6468         euidaccess: Update a comment.
6469         * lib/euidaccess.c: Update comment about platforms with faccessat.
6470
6471 2011-11-19  Bruno Haible  <bruno@clisp.org>
6472
6473         openat: Fix file list.
6474         * modules/openat (Files): Remove lib/at-func.c.
6475
6476 2011-11-19  Bruno Haible  <bruno@clisp.org>
6477
6478         fstatat: Simplify.
6479         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6480         gnulib should define rpl_fstatat, there is a
6481         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6482
6483 2011-11-19  Bruno Haible  <bruno@clisp.org>
6484
6485         Ensure 'inline' can be used in tests/test-utimens-common.h.
6486         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6487         * modules/futimens-tests (configure.ac): Likewise.
6488         * modules/utimens-tests (configure.ac): Likewise.
6489         * modules/utimensat-tests (configure.ac): Likewise.
6490
6491 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6492
6493         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6494         not hash_insert0.
6495         (hash_insert_if_absent): Doc fix.
6496
6497 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6498
6499         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6500
6501 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6502
6503         test-getcwd: disambiguate exit status
6504         * tests/test-getcwd.c (test_long_name): Return 0..7.
6505         (main): Exit with an unambiguous exit status.  The old
6506         code yielded a mysterious mixture of two failure codes.
6507
6508         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6509         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6510         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6511         rpl_fstatat or fstatat.  This should fix the other problem
6512         reported by Kai Habel in
6513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6514         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6516         and I reproduced it on a Solaris 8 host we still have in production.
6517
6518 2011-11-18  Jim Meyering  <meyering@redhat.com>
6519
6520         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6521         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6522         Add a sentence to the comment.
6523         (hash_insert0): New function that simply calls hash_insert_if_absent.
6524         * lib/hash.h (hash_insert_if_absent): Declare it.
6525         (hash_insert0): Add deprecation attribute.
6526         (_GL_ATTRIBUTE_DEPRECATED): Define.
6527         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6528         not hash_insert0.
6529         * NEWS: Mention it, even though it's not really an incompatible change.
6530
6531 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6532
6533         openat: avoid compilation failure due to lack of <errno.h> inclusion
6534         * lib/openat.c: Include <errno.h>.
6535
6536 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6537
6538         * modules/getcwd (Depends-on): Add fdopendir.
6539         This fixes one of the two problems reported by Kai Habel in
6540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6541
6542         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6543         stdalign problem reported by Ian Beckwith in
6544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6545         * modules/crypto/gc-arcfour (Depends-on):
6546         Depend conditionally on crypto/arcfour.
6547         * modules/crypto/gc-arctwo (Depends-on):
6548         Depend conditionally on crypto/arctwo.
6549         * modules/crypto/gc-des (Depends-on):
6550         Depend conditionally on crypto/des.
6551         * modules/crypto/gc-hmac-md5 (Depends-on):
6552         Depend conditionally on crypto/hmac-md5.
6553         * modules/crypto/gc-hmac-sha1 (Depends-on):
6554         Depend conditionally on crypto/hmac-sha1.
6555         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6556         * modules/crypto/gc-md4 (Depends-on):
6557         Depend conditionally on crypto/md4.
6558         * modules/crypto/gc-md5 (Depends-on):
6559         Depend conditionally on crypto/md5.
6560         * modules/crypto/gc-rijndael (Depends-on):
6561         Depend conditionally on crypto/rijndael.
6562         * modules/crypto/gc-sha1 (Depends-on):
6563         Depend conditionally on crypto/sha1.
6564         * modules/crypto/gc-arcfour:
6565         * modules/crypto/gc-arctwo:
6566         * modules/crypto/gc-des:
6567         * modules/crypto/gc-hmac-md5:
6568         * modules/crypto/gc-hmac-sha1:
6569         * modules/crypto/gc-md2:
6570         * modules/crypto/gc-md4:
6571         * modules/crypto/gc-md5:
6572         * modules/crypto/gc-rijndael:
6573         * modules/crypto/gc-sha1:
6574         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6575         now that the conditional dependencies do the work for us.
6576
6577 2011-11-17  Jim Meyering  <meyering@redhat.com>
6578
6579         tests: factor st_ctime-comparison out of two headers
6580         * tests/test-utimens-common.h (ctime_compare): Define.
6581         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6582         * tests/test-lutimens.h (test_lutimens): Likewise.
6583         * tests/test-utimens.h (test_utimens): Likewise.
6584
6585         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6586         Invoke the test program via an init.sh-using wrapper.
6587         * tests/test-getcwd.sh: New file.
6588         * modules/getcwd-tests (Files): Add it.
6589         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6590
6591 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6592
6593         gitlog-to-changelog: support multi-author commits.
6594         The FSF cares about keeping track of all authors of patches to its
6595         projects, but Git doesn't provide obvious support for multi-author
6596         changesets. Consensus seems to be forming around the use of extra
6597         Signed-off-by inspired lines in the log message formatted as
6598         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6599         multi-author commits between version control systems.
6600         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6601         log message and output in standard ChangeLog multi-author format.
6602         Reported by Peter Rosin <peda@lysator.liu.se>
6603
6604 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6605             Bruno Haible  <bruno@clisp.org>
6606
6607         Fix some modules' file list.
6608         * modules/fstatat (Files): Add m4/lstat.m4.
6609         * modules/openat (Files): Likewise.
6610         * modules/unlinkat (Files): Likewise.
6611
6612 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6613
6614         maint.mk: fix tight-scope.mk generation in VPATH builds.
6615         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6616         reference with $(srcdir) so that the file is found correctly even
6617         when running `make syntax-check' in a VPATH build.
6618
6619 2011-11-13  Bruno Haible  <bruno@clisp.org>
6620             Jim Meyering  <meyering@redhat.com>
6621
6622         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6623         * tests/init.sh (compare): Remove "No differences encountered" or
6624         synonymous output from the 'diff' program.
6625
6626 2011-11-13  Bruno Haible  <bruno@clisp.org>
6627
6628         Makefile: Tweak indentation.
6629         * Makefile: Use tab as first character in every line that contains rule
6630         commands.
6631
6632 2011-11-13  Bruno Haible  <bruno@clisp.org>
6633
6634         Syntax check for copyright statements.
6635         * check-copyright: New file.
6636         * Makefile (sc_check_copyright): New rule.
6637
6638 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6639
6640         * build-aux/git-version-gen: Add --prefix to configure the tag
6641         match string.
6642
6643 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6644
6645         * build-aux/git-version-gen: Add --help and --version.
6646
6647 2011-11-12  Jim Meyering  <meyering@redhat.com>
6648
6649         revamp the other test-exclude?.sh scripts to use init.sh, too
6650         * tests/test-exclude1.sh: Use init.sh.
6651         * tests/test-exclude2.sh: Likewise.
6652         * tests/test-exclude3.sh: Likewise.
6653         * tests/test-exclude4.sh: Likewise.
6654         * tests/test-exclude5.sh: Likewise.
6655         * tests/test-exclude6.sh: Likewise.
6656         * tests/test-exclude7.sh: Likewise.
6657         * tests/test-exclude8.sh: Likewise.
6658         * modules/exclude-tests (Files): List init.sh.
6659
6660         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6661         These shell scripts ignored failure of the binary test-exclude,
6662         so making the latter return 77 didn't cause them to be skipped.
6663         * tests/test-exclude5.sh: Exit with test-exclude's error status
6664         when that program fails.  Revamp to use init.sh.
6665         * tests/test-exclude2.sh: Likewise.
6666
6667         test-exclude: fix a typo
6668         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6669
6670 2011-11-11  Bruno Haible  <bruno@clisp.org>
6671
6672         obstack: Fix compilation error on MSVC 9.
6673         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6674
6675 2011-11-11  Jim Meyering  <meyering@redhat.com>
6676
6677         test-exclude: skip tests rather than failing on deficient systems
6678         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6679         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6680         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6681         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6682
6683 2011-11-10  Bruno Haible  <bruno@clisp.org>
6684
6685         ptsname_r test: Avoid gcc warning on glibc systems.
6686         * tests/test-ptsname_r.c (null_ptr): New function.
6687         (test_errors): Use it.
6688
6689 2011-11-10  Bruno Haible  <bruno@clisp.org>
6690
6691         ptsname_r: Avoid compilation error on OSF/1 5.1.
6692         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6694         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6695         function is not declared or incompatibly declared.
6696         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6697         * modules/ptsname_r (Depends-on, configure.ac): Update.
6698         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6699
6700 2011-11-10  Bruno Haible  <bruno@clisp.org>
6701
6702         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6703         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6704         When cross-compiling, guess yes on all platforms except AIX.
6705         Reported by Ludovic Courtès <ludo@gnu.org>.
6706
6707 2011-11-09  Bruno Haible  <bruno@clisp.org>
6708
6709         ptsname_r tests: Fix bugs.
6710         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6711         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6712
6713 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6714
6715         fstatat: work with cross-compilation
6716         Problem reported by Ludovic Courtès in
6717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6718         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6719         "cross-compiling" and assume the bug is present.  Replace
6720         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6721         an inverted sense, to be more conservative about our assumptions.
6722         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6723
6724 2011-11-09  Bruno Haible  <bruno@clisp.org>
6725
6726         Improve MODULES.html output.
6727         * modules/mkfifoat (Description): Use the word "function".
6728         * modules/readlinkat (Description): Likewise.
6729         * modules/symlinkat (Description): Likewise.
6730
6731 2011-11-09  Eric Blake  <eblake@redhat.com>
6732
6733         ptsname_r-tests: new test module
6734         * modules/ptsname_r-tests: New module.
6735         * tests/test-ptsname_r.c: New file.
6736
6737         ptsname_r: new module
6738         * modules/ptsname_r: New module.
6739         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6740         * lib/ptsname.c (__ptsname_r): Split...
6741         * lib/ptsname_r.c: ...into new file.
6742         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6743         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6744         * modules/stdlib (Makefile.am): Substitute witnesses.
6745         * lib/stdlib.in.h (ptsname_r): Declare it.
6746         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6747         * MODULES.html.sh (Misc): Likewise.
6748         * modules/ptsname (Depends-on): Alter dependency.
6749         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6750
6751 2011-11-09  Jim Meyering  <meyering@redhat.com>
6752
6753         announce-gen: be more concise when there's only one URL+tarball
6754         * build-aux/announce-gen (get_tool_versions): When you distribute
6755         only one type of tarball, combine the first two "Here are..."
6756         sections and make the key-checking grammar independent of
6757         how many tarballs there are.
6758
6759 2011-11-09  Eric Blake  <eblake@redhat.com>
6760
6761         openpty: provide a stub on mingw
6762         * lib/pty.in.h (includes): Provide forward declarations.
6763         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6764
6765         raise: fix mingw handling of SIGPIPE
6766         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6767
6768 2011-11-08  Bruno Haible  <bruno@clisp.org>
6769
6770         More conditional dependencies.
6771         * modules/faccessat (Depends-on): Add conditions.
6772         * modules/fchmodat (Depends-on): Likewise.
6773         * modules/fchownat (Depends-on): Likewise.
6774         * modules/fstatat (Depends-on): Likewise.
6775         * modules/mkfifoat (Depends-on): Likewise.
6776         * modules/readlinkat (Depends-on): Likewise.
6777         * modules/symlinkat (Depends-on): Likewise.
6778         * modules/unlinkat (Depends-on): Likewise.
6779         * modules/utimensat (Depends-on): Likewise.
6780         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6781         * modules/linkat (Depends-on): Refine the conditions.
6782         * modules/renameat (Depends-on): Likewise.
6783
6784 2011-11-08  Bruno Haible  <bruno@clisp.org>
6785
6786         faccessat: Move AC_LIBOBJ invocation to module description.
6787         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6788         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6789         invocation from here...
6790         * modules/faccessat (configure.ac): ... to here. Invoke
6791         gl_PREREQ_FACCESSAT.
6792
6793 2011-11-08  Bruno Haible  <bruno@clisp.org>
6794
6795         faccessat: Simplify autoconf macro.
6796         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6797         gl_FUNC_EUIDACCESS.
6798
6799 2011-11-08  Bruno Haible  <bruno@clisp.org>
6800
6801         renameat: Fix dependencies.
6802         * modules/renameat (Depends-on): Add stdbool.
6803
6804 2011-11-08  Bruno Haible  <bruno@clisp.org>
6805
6806         mkfifoat: Fix module description.
6807         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6808         not gl_UNISTD_MODULE_INDICATOR.
6809
6810 2011-11-08  Bruno Haible  <bruno@clisp.org>
6811
6812         fstatat: Remove unused dependency.
6813         * modules/fstatat (Depends-on): Remove fstat.
6814
6815 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6816
6817         GNUmakefile: behave when Makefile is missing.
6818         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6819
6820 2011-11-08  Bruno Haible  <bruno@clisp.org>
6821
6822         openat: Conditionalize dependencies.
6823         * lib/openat.c: Reduce the scope of some #includes.
6824         * modules/openat (Depends-on): Add conditions.
6825
6826 2011-11-07  Jim Meyering  <meyering@redhat.com>
6827
6828         maint.mk: extract GPG key ID without using a temporary file
6829         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6830         without using a temporary file.  Based on a suggestion from Werner Koch
6831         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6832
6833 2011-11-07  Eric Blake  <eblake@redhat.com>
6834
6835         grantpt: fix typo
6836         * lib/stdlib.in.h (grantpt): Check correct function.
6837
6838         maint.mk: silence new syntax check
6839         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6840
6841 2011-11-06  Bruno Haible  <bruno@clisp.org>
6842
6843         Doc about floating-point and math API.
6844         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6845         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6846
6847 2011-11-06  Bruno Haible  <bruno@clisp.org>
6848
6849         stdalign tests: Skip the test when compiled by Sun C.
6850         * tests/test-stdalign.c (main): Skip the test on Sun C.
6851
6852 2011-11-06  Bruno Haible  <bruno@clisp.org>
6853
6854         ansi-c++-opt: Complete the 2011-06-05 change.
6855         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6856         does not support namespaces, set the variable to "no", not to ":".
6857
6858 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6859
6860         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6861
6862 2011-11-06  Bruno Haible  <bruno@clisp.org>
6863
6864         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6865         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6866         (minus_zerol) [HP-UX]: New macro.
6867         (unary_minus) [HP-UX]: New function.
6868         (copysignl) [HP-UX]: Use unary_minus function.
6869
6870 2011-11-06  Bruno Haible  <bruno@clisp.org>
6871
6872         ldexp, ldexpf, ldexpl: Enhance tests.
6873         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6874         and tests/test-ldexpl.c.
6875         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6876         LDEXP, MIN_EXP, MAX_EXP): New macros.
6877         Include test-ldexp.h.
6878         (main): Just call test_function.
6879         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6880         infinity.h, nan.h.
6881         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6882         MAX_EXP): New macros.
6883         Include test-ldexp.h.
6884         (x, y): Remove variables.
6885         (main): Just call test_function.
6886         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6887         infinity.h, nan.h.
6888         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6889         MAX_EXP): New macros.
6890         Include test-ldexp.h.
6891         (x, y): Remove variables.
6892         (main): Just call test_function.
6893         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6894         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6895         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6896         (Depends-on): Add isnand-nolibm, signbit, float.
6897         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6898         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6899         (Depends-on): Add isnanf-nolibm, signbit, float.
6900
6901 2011-11-06  Bruno Haible  <bruno@clisp.org>
6902
6903         math tests: Cosmetics.
6904         * tests/test-math-c++.cc: Reorder declarations.
6905
6906 2011-11-05  Bruno Haible  <bruno@clisp.org>
6907
6908         fma*: Simplify test.
6909         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6910         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6911
6912         Tests for module 'fmal'.
6913         * modules/fmal-tests: New file.
6914         * tests/test-fmal1.c: New file.
6915         * tests/test-fmal2.c: New file.
6916
6917         New module 'fmal'.
6918         * lib/math.in.h (fmal): New declaration.
6919         * lib/fmal.c: New file.
6920         * m4/fmal.m4: New file.
6921         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6923         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6924         REPLACE_FMAL.
6925         * modules/fmal: New file.
6926         * doc/posix-functions/fmal.texi: Mention the new module and the various
6927         bugs.
6928
6929         Tests for module 'fmaf'.
6930         * modules/fmaf-tests: New file.
6931         * tests/test-fmaf1.c: New file.
6932         * tests/test-fmaf2.c: New file.
6933
6934         New module 'fmaf'.
6935         * lib/math.in.h (fmaf): New declaration.
6936         * lib/fmaf.c: New file.
6937         * m4/fmaf.m4: New file.
6938         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6940         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6941         REPLACE_FMAF.
6942         * modules/fmaf: New file.
6943         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6944         bugs.
6945
6946         Tests for module 'fma'.
6947         * modules/fma-tests: New file.
6948         * tests/test-fma1.c: New file.
6949         * tests/test-fma1.h: New file.
6950         * tests/test-fma2.c: New file.
6951         * tests/test-fma2.h: New file.
6952
6953         New module 'fma'.
6954         * lib/math.in.h (fma): New declaration.
6955         * lib/fma.c: New file.
6956         * m4/fma.m4: New file.
6957         * m4/fegetround.m4: New file.
6958         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6960         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6961         REPLACE_FMA.
6962         * modules/fma: New file.
6963         * doc/posix-functions/fma.texi: Mention the new module and the various
6964         bugs.
6965
6966         Extend gl_MATHFUNC.
6967         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6968         Support 'void' as argument type.
6969         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6970
6971 2011-11-05  Jim Meyering  <meyering@redhat.com>
6972
6973         maint.mk: also prohibit inclusion of dirent.h without use
6974         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6975
6976 2011-11-05  Bruno Haible  <bruno@clisp.org>
6977
6978         ldexpl tests: Avoid test failure on MSVC 9.
6979         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6980         value. Needed in order to enforce the conversion from a value greater
6981         than LDBL_MAX to Infinity.
6982
6983 2011-11-05  Bruno Haible  <bruno@clisp.org>
6984
6985         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6986         * modules/at-internal: New file, extracted from modules/openat.
6987         * modules/openat-h: New file.
6988         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6989         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6990         * modules/openat (Description): Add reference to POSIX function.
6991         (Files): Remove lib/openat.h, lib/openat-proc.c.
6992         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6993         intprops, unistd.
6994         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6995         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6996         gl_FCNTL_MODULE_INDICATOR.
6997         (Include): Remove unistd.h, openat.h.
6998         * modules/areadlinkat (Files): Add lib/at-func.c.
6999         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7000         openat-die, openat-h, save-cwd.
7001         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7002         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7003         openat-die, openat-h, save-cwd, unistd.
7004         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7005         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7006         openat-h, save-cwd. Remove fcntl-h, openat.
7007         * modules/fchmodat (Files): Remove lib/openat.h.
7008         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7009         openat, stdbool, unistd.
7010         * modules/fchownat (Files): Remove lib/openat.h.
7011         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7012         openat, stdbool, sys_stat.
7013         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7014         lib/openat-proc.c.
7015         (Depends-on): Add at-internal.
7016         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7017         * modules/fstatat (Files): Remove lib/openat.h.
7018         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7019         stdbool, unistd.
7020         * modules/fts (Depends-on): Add openat-h.
7021         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7022         openat.
7023         * modules/mkdirat (Files): Remove lib/openat.h.
7024         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7025         openat, stdbool, sys_stat.
7026         * modules/mkfifoat (Files): Add lib/at-func.c.
7027         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7028         openat-h, save-cwd. Remove fcntl-h, openat.
7029         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7030         * modules/readlinkat (Files): Add lib/at-func.c.
7031         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7032         openat-h, save-cwd. Remove fcntl-h, openat.
7033         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7034         openat.
7035         * modules/selinux-at (Files): Add lib/at-func.c.
7036         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7037         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7038         * modules/symlinkat (Files): Add lib/at-func.c.
7039         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7040         openat-h, save-cwd. Remove fcntl-h, openat.
7041         * modules/unlinkat (Files): Remove lib/openat.h.
7042         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7043         stdbool.
7044         * modules/utimensat (Files): Add lib/at-func.c.
7045         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7046         openat-die, openat-h, save-cwd.
7047         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7048         * modules/fdutimensat-tests (Depends-on): Add openat.
7049         * modules/fstatat-tests (Depends-on): Add openat-h.
7050         * modules/readlinkat-tests (Depends-on): Add openat.
7051         * modules/symlinkat-tests (Depends-on): Add openat.
7052
7053 2011-11-05  Bruno Haible  <bruno@clisp.org>
7054
7055         openat: Include <stdbool.h>.
7056         * lib/openat.c: Include <stdbool.h>.
7057
7058 2011-11-04  Bruno Haible  <bruno@clisp.org>
7059
7060         fchownat, renameat, unlinkat: Fix dependencies.
7061         * modules/fchownat (Depends-on): Add fstatat.
7062         * modules/renameat (Depends-on): Likewise.
7063         * modules/unlinkat (Depends-on): Likewise.
7064
7065 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7066
7067         openat: remove direct dependency on dirent
7068         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7069         and hasn't been needed ever since fdopendir was split into its own
7070         module on 2009-08-31.
7071         * modules/openat (Depends-on): Remove dirent.
7072
7073 2011-11-04  Bruno Haible  <bruno@clisp.org>
7074
7075         renameat: Optimize code size.
7076         * modules/renameat (configure.ac): Don't compile at-func2.c if
7077         REPLACE_RENAMEAT is 1.
7078
7079 2011-11-04  Bruno Haible  <bruno@clisp.org>
7080
7081         openat tests: Fix file list.
7082         * modules/openat-tests (Files): Add tests/test-open.h.
7083
7084 2011-11-04  Bruno Haible  <bruno@clisp.org>
7085
7086         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7087         * modules/fchmodat (Depends-on): Add openat-die.
7088         * modules/fchownat (Depends-on): Likewise.
7089         * modules/linkat (Depends-on): Likewise.
7090         * modules/renameat (Depends-on): Likewise.
7091         * modules/openat (Depends-on): Add dirent.
7092
7093 2011-11-04  Jim Meyering  <meyering@redhat.com>
7094
7095         at-func*.c: fix comments
7096         * lib/at-func2.c: Correct/improve first-line comment.
7097         * lib/at-func.c: Correct grammar in first-line comment.
7098
7099 2011-11-04  Bruno Haible  <bruno@clisp.org>
7100
7101         New module 'mkdirat', split off from module 'openat'.
7102         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7103         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7104         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7105         * modules/mkdirat: New file, extracted from modules/openat.
7106         * modules/openat (Files): Remove lib/mkdirat.c.
7107         (Depends-on): Remove mkdir.
7108         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7109         (Include): Remove <sys/stat.h>.
7110         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7111         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7112         tests/test-mkdir.h.
7113         (Depends-on): Remove ignore-value.
7114         (Makefile.am): Remove rules for test-mkdirat.
7115         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7116         of module 'openat'.
7117         * NEWS: Mention the change.
7118
7119 2011-11-04  Bruno Haible  <bruno@clisp.org>
7120
7121         closedir: Avoid warning on mingw.
7122         * lib/closedir.c: Include <unistd.h>.
7123
7124 2011-11-04  Bruno Haible  <bruno@clisp.org>
7125
7126         New module 'fstatat', split off from module 'openat'.
7127         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7128         defined.
7129         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7130         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7131         gl_FUNC_FSTATAT.
7132         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7133         * modules/fstatat: New file, extracted from modules/openat.
7134         * modules/openat (Files): Remove lib/fstatat.c.
7135         (Depends-on): Remove lstat.
7136         (configure.ac): Remove AC_LIBOBJ of fstatat.
7137         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7138         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7139         tests/test-lstat.h, tests/test-stat.h.
7140         (Depends-on): Remove getcwd-lgpl.
7141         (Makefile.am): Remove rules for test-fstatat.
7142         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7143         of module 'openat'.
7144         * NEWS: Mention the change.
7145         * modules/getcwd (Depends-on): Add fstatat.
7146         * modules/linkat (Depends-on): Likewise.
7147         * modules/mkfifoat-tests (Depends-on): Likewise.
7148         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7149
7150 2011-11-03  Bruno Haible  <bruno@clisp.org>
7151
7152         New module 'unlinkat', split off from module 'openat'.
7153         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7154         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7155         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7156         * modules/unlinkat: New file, extracted from modules/openat. Correct
7157         the dependency conditions.
7158         * modules/openat (Files): Remove lib/unlinkat.c.
7159         (Depends-on): Remove rmdir, unlink.
7160         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7161         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7162         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7163         tests/test-rmdir.h, tests/test-unlink.h.
7164         (Depends-on): Remove unlinkdir.
7165         (Makefile.am): Remove rules for test-unlinkat.
7166         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7167         of module 'openat'.
7168         * NEWS: Mention the change.
7169         * modules/linkat-tests (Depends-on): Add unlinkat.
7170         * modules/mkfifoat-tests (Depends-on): Likewise.
7171         * modules/readlinkat-tests (Depends-on): Likewise.
7172
7173 2011-11-02  Bruno Haible  <bruno@clisp.org>
7174
7175         New module 'fchmodat', split off from module 'openat'.
7176         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7177         defined.
7178         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7179         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7180         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7181         * modules/fchmodat: New file, extracted from modules/openat.
7182         * modules/openat (Files): Remove lib/fchmodat.c.
7183         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7184         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7185         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7186         (Makefile.am): Remove rules for test-fchmodat.
7187         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7188         of module 'openat'.
7189         * NEWS: Mention the change.
7190
7191 2011-11-02  Jim Meyering  <meyering@redhat.com>
7192
7193         putenv: indent #definition of "environ" to placate cppi
7194         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7195
7196         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7197         Git logs are often treated as immutable, because editing them
7198         changes the SHA1 checksums of all descendants.  Thus, errors in
7199         git logs tend to stay there forever.  However, when we generate
7200         a ChangeLog file -- typically for distribution -- from that git log,
7201         we can actually make corrections in the generated file.  The key
7202         lies in recording in machine-readable/applicable form the desired
7203         corrections.  See --help for description and an example.
7204         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7205         (usage): Describe it; alphabetize option descriptions.
7206         (main): Honor the new option, carefully.
7207
7208 2011-11-01  Jim Meyering  <meyering@redhat.com>
7209
7210         gitlog-to-changelog: avoid an infloop
7211         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7212         that ends up being empty.
7213
7214 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7215
7216         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7217         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7218         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7219         contains (possibly-quoted) backslashes.  This should avoid
7220         all-too-common shell bugs if COMPLICATED contains backslashes in
7221         the "wrong" places.  Reported by David Evans in
7222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7223         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7224         because we want ASCII ranges.  Is there some reason we don't use
7225         the C locale everywhere in this script?
7226         (func_module, top level): Avoid unwanted pathname expansion when
7227         $repo_url_prefix or $repo_url_suffix_repl contain shell
7228         metacharacters like '?' and '*'.
7229
7230 2011-11-01  Bruno Haible  <bruno@clisp.org>
7231
7232         fchownat: Improve description.
7233         * modules/fchownat (Description): Add link to function.
7234
7235 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7236
7237         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7238         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7240         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7241
7242 2011-11-01  Bruno Haible  <bruno@clisp.org>
7243
7244         alignof: Avoid collision with stdalign module.
7245         * lib/alignof.h (alignof): Remove macro.
7246         * NEWS: Mention the change.
7247         Reported by Paul Eggert.
7248
7249 2011-11-01  Bruno Haible  <bruno@clisp.org>
7250
7251         New module 'fchownat', split off from module 'openat'.
7252         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7253         defined.
7254         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7255         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7256         invoke gl_FUNC_FCHOWNAT.
7257         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7258         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7259         * modules/fchownat: New file, extracted from modules/openat.
7260         * modules/openat (Files): Remove lib/fchownat.c.
7261         (Depends-on): Remove lchown.
7262         (configure.ac): Remove AC_LIBOBJ of fchownat.
7263         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7264         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7265         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7266         (Depends-on): Remove mgetgroups, usleep, stat-time.
7267         (configure.ac): Remove test for getegid.
7268         (Makefile.am): Remove rules for test-fchownat.
7269         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7270         of module 'openat'.
7271         * NEWS: Mention the change.
7272
7273 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7274
7275         stdalign: port better to MSVC and to Sun C 5.11
7276         This fixes some of the problems reported by Bruno Haible in
7277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7278         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7279         shortcomings of MSVC and of Sun C 5.11.
7280         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7281         around __declspec arg.
7282         * modules/stdalign-tests (Files): Add tests/macros.h.
7283         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7284         Include macros.h, for ASSERT.
7285         (DECLARE_ALIGNED): Remove.
7286         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7287         to catch bug), and to 1 if not (simplifies the rest of the code).
7288         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7289         (CHECK_AUTO): Remove.
7290         (CHECK_ALIGNED): Check only the alignment of the static vars,
7291         since auto var alignment isn't supported by Sun C 5.11.
7292         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7293         ASSERT failures are easier to diagnose.
7294
7295 2011-10-31  Bruno Haible  <bruno@clisp.org>
7296
7297         doc about some IRIX 5.3 problems.
7298         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7299         on IRIX 5.3.
7300         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7301         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7302         5.3.
7303         * doc/posix-functions/grantpt.texi: Likewise.
7304         * doc/posix-functions/unlockpt.texi: Likewise.
7305         * doc/posix-functions/lgamma.texi: Likewise.
7306         * doc/posix-functions/nextafter.texi: Likewise.
7307         * doc/posix-functions/remainder.texi: Likewise.
7308         * doc/posix-functions/select.texi: Mention misplaced declaration on
7309         IRIX 5.3.
7310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7311
7312 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7313
7314         gitlog-to-changelog: fix git-log invocation.
7315         git-log mishandles date strings before 1970-01-01 UTC, and there is
7316         no use to specify --since=1970-01-01 by default anyway.
7317         * build-aux/gitlog-to-changelog: By default, when no --since option
7318         was given, do not specify explicit --since option to git-log.
7319
7320 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7321
7322         gitlog-to-changelog: new option --append-dot.
7323         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7324         first non-blank line of each commit message terminated with a dot.
7325
7326 2011-10-30  Bruno Haible  <bruno@clisp.org>
7327
7328         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7329         * lib/ffsl.h: Include <config.h>.
7330         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7331
7332 2011-10-30  Jim Meyering  <meyering@redhat.com>
7333
7334         GNUmakefile: reenable "make syntax-check" for most projects
7335         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7336         build-aux variable", "syntax-check" would do nothing but succeed with
7337         the "No version control files detected..." diagnostic (unless you
7338         happened to override _build-aux via cfg.mk).
7339         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7340         to precede inclusion of maint.mk.  Otherwise, these variables would
7341         be used undefined in any project that does not override the default.
7342
7343 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7344
7345         gitlog-to-changelog: treat a message with only blank lines as empty.
7346         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7347         trailing blank lines before the code that issues a warning about an
7348         empty commit message.
7349
7350 2011-10-30  Jim Meyering  <meyering@redhat.com>
7351
7352         test-parse-datetime.c: avoid new DST-related false positive test failure
7353         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7354         based on the time/date we'll convert, not the current time.
7355         Otherwise, the moment we cross a DST boundary like today's in
7356         Europe, (CEST to CET), that offset ends up being one hour off.
7357
7358 2011-10-27  Bruno Haible  <bruno@clisp.org>
7359
7360         fstat: Tweak documentation.
7361         * modules/fstat (Description): More precise description.
7362
7363 2011-10-27  Bruno Haible  <bruno@clisp.org>
7364
7365         Update documentation regarding 'largefile' module.
7366         * doc/posix-functions/fstat.texi: Tweak wording.
7367         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7368         problems with huge directories and/or small ino_t types.
7369         * doc/posix-functions/readdir.texi: Likewise.
7370         * doc/posix-functions/rewinddir.texi: Likewise.
7371
7372 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7373
7374         maint.mk: don't maintain a second build-aux variable.
7375         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7376         depends on GNUmakefile, which already maintains a cfg.mk
7377         overridable $(_build-aux) for projects with a non-standard
7378         build-aux directory location, although without the $(srcdir)
7379         prefix.  Use that variable consistently instead of introducing a
7380         second one.  Adjust all call sites.
7381
7382 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7383
7384         Add stdalign module and use it in other modules.
7385         This is based on a previous proposal by Bruno Haible
7386         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7387
7388         stdalign: new module
7389         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7390         * modules/stdalign: New files.
7391         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7392         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7393
7394         stdalign-tests: new module
7395         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7396
7397         argp: use stdalign
7398         * lib/argp-parse.c: Include <stdalign.h>.
7399         (alignof): Remove.
7400         * modules/argp (Depends-on): Add stdalign.
7401
7402         crypto libraries: use stdalign
7403         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7404         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7405         Do not include <stdlib.h> twice, in md4.c.
7406         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7407         because we are accessing a pointer's bit-pattern, not a size.
7408         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7409         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7410         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7411         * modules/crypto/sha512: Likewise.
7412
7413         sys_socket: use stdalign, not alignof
7414         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7415         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7416
7417 2011-10-27  Bruno Haible  <bruno@clisp.org>
7418
7419         raise test: Avoid a test failure on Linux/MIPS.
7420         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7421         because 99 is a valid signal on Linux/MIPS.
7422
7423 2011-10-27  Bruno Haible  <bruno@clisp.org>
7424
7425         nonblocking tests: Fix test failure on Linux/MIPS.
7426         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7427         Set to 270000.
7428
7429 2011-10-27  Bruno Haible  <bruno@clisp.org>
7430
7431         utimensat: Work around problem on Linux/hppa.
7432         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7433         values.
7434         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7435
7436 2011-10-25  Jim Meyering  <meyering@redhat.com>
7437
7438         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7439         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7440         after symbols like NULL, size_t, etc.
7441         Reported by Alfred M. Szmidt.
7442
7443         maint.mk: exempt ENODATA from a syntax-check rule
7444         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7445         from the sc_prohibit_always-defined_macros syntax-check rule.
7446         Add a comment.  See this for more details:
7447         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7448
7449 2011-10-23  Jim Meyering  <meyering@redhat.com>
7450
7451         fts: close parent dir FD before returning from post-traversal fts_read
7452         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7453         unlink A, even though an FD open on A remained.  This is suboptimal
7454         (holding a file descriptor open longer than needed), but otherwise not
7455         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7456         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7457         that represents a real problem: it causes the removal of A to fail
7458         with e.g., "rm: cannot remove `A': Device or resource busy"
7459
7460         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7461         directory file descriptors.  After completing the final, FTS_DP,
7462         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7463         cache, but then proceeded to add a new FD to it via the subsequent
7464         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7465         final file descriptor would be closed only via fts_close's call to
7466         fd_ring_clear.  Now, it is usually closed earlier, via the final
7467         FTS_DP-returning fts_read call.
7468         * lib/fts.c (restore_initial_cwd): New function, converted from
7469         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7470         Update callers.
7471         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7472         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7473
7474 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7475             Bruno Haible  <bruno@clisp.org>
7476             Jim Meyering  <jim@meyering.net>
7477
7478         readme-release: improve safety of release prep instructions.
7479         * README-release: Don't git pull all branches when only master
7480         is needed for the release process.
7481         Run make maintainer-clean before changing trees and merging.
7482         Don't try to run ./configure right after git pull in case files
7483         that influence the bootstrap process have changed, move the
7484         ./configure step to after running ./bootstrap.
7485         Don't bootstrap "one last time"... it's the first time!
7486
7487 2011-10-22  Bruno Haible  <bruno@clisp.org>
7488
7489         errno, strerror-override: Support for MSVC 10.
7490         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7491         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7492         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7493         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7494         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7495         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7496         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7497         Assign values compatible with MSVC 10.
7498         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7499         New macros.
7500         (GNULIB_defined_EWINSOCK): New macro.
7501         * lib/strerror-override.c (strerror_override): Update accordingly.
7502         * lib/strerror-override.h: Likewise.
7503         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7504         longer equal to the corresponding errno value.
7505         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7506
7507 2011-10-22  Bruno Haible  <bruno@clisp.org>
7508
7509         perror: Recognize when test program crashes.
7510         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7511         strerror, set gl_cv_func_perror_works to no.
7512         Reported by Daniel Richard G. <skunk@iskunk.org>.
7513
7514         perror: Fix indentation.
7515         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7516
7517 2011-10-22  Bruno Haible  <bruno@clisp.org>
7518
7519         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7520         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7521         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7522         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7523         functions, not as a macro.
7524         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7525         macros.
7526         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7527         absence of macro.
7528         Suggested by Eric Blake.
7529         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7530
7531 2011-10-21  Bruno Haible  <bruno@clisp.org>
7532
7533         relocatable-prog-wrapper: Don't leave object files behind.
7534         * build-aux/install-reloc: Re-synchronize list of .o files to be
7535         removed with list of compilation units.
7536
7537 2011-10-20  Bruno Haible  <bruno@clisp.org>
7538
7539         openpty, posix_openpt: Remove code duplication.
7540         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7541         * lib/openpty.c: Include <stdlib.h>.
7542         (openpty): Use posix_openpt on all platforms except IRIX.
7543         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7544
7545 2011-10-20  Bruno Haible  <bruno@clisp.org>
7546
7547         unlockpt: Detect invalid argument.
7548         * lib/unlockpt.c: Include <fcntl.h>.
7549         (unlockpt): Check whether fd is valid, using fcntl().
7550         * modules/unlockpt (Depends-on): Add fcntl-h.
7551
7552 2011-10-20  Bruno Haible  <bruno@clisp.org>
7553
7554         openpty: Avoid compilation error on AIX 6.1.
7555         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7556
7557 2011-10-20  Bruno Haible  <bruno@clisp.org>
7558
7559         posix_openpt: Support for OpenBSD.
7560         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7561         (posix_openpt) [OpenBSD]: New code.
7562         * lib/grantpt.c: Include <fcntl.h>.
7563         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7564         * modules/grantpt (Depends-on): Add fcntl-h.
7565
7566 2011-10-20  Bruno Haible  <bruno@clisp.org>
7567
7568         posix_openpt test: Coding style.
7569         * tests/test-posix_openpt.c: Use GNU coding style.
7570
7571 2011-10-20  Bruno Haible  <bruno@clisp.org>
7572
7573         grantpt: Support --avoid=pt_chown.
7574         * modules/grantpt (Files): Add lib/pty-private.h.
7575
7576 2011-10-20  Bruno Haible  <bruno@clisp.org>
7577
7578         posix_openpt: Fix autoconf macro.
7579         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7580         unneeded check for _getpty.
7581
7582 2011-10-20  Bruno Haible  <bruno@clisp.org>
7583
7584         openpty: Update comments.
7585         * lib/openpty.c: Add comments about Minix.
7586
7587 2011-10-19  Eric Blake  <eblake@redhat.com>
7588
7589         openpty: relax license
7590         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7591
7592         pt_chown: use configmake to simplify build
7593         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7594
7595         ptsname and others: relax license
7596         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7597         * modules/unlockpt (License): Likewise.
7598         * modules/pt_chown (License): Likewise.
7599         * modules/ptsname (License): Likewise.
7600         * modules/ttyname_r (License): Likewise.
7601
7602 2011-10-19  Jim Meyering  <meyering@redhat.com>
7603
7604         posix_openpt: remove spurious #endif
7605         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7606
7607 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7608
7609         maint.mk: Respect $(build_aux) in web-manual rule.
7610         * top/maint.mk (web-manual): Find gen-announce script in user's
7611         $(build_aux) directory instead of hard-coding 'build-aux'.
7612
7613 2011-10-19  Bruno Haible  <bruno@clisp.org>
7614
7615         posix_openpt: Fix compilation error.
7616         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7617         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7618         Mention the openpty module as an alternative.
7619
7620 2011-10-19  Bruno Haible  <bruno@clisp.org>
7621
7622         Support for old NeXTstep 3.3 frexp().
7623         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7624         execution time of the test to 5 seconds.
7625         Reported by Daniel Richard G. <skunk@iskunk.org>.
7626
7627 2011-10-19  Bruno Haible  <bruno@clisp.org>
7628
7629         Support for old NeXTstep 3.3 sed.
7630         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7631         part, use /.../, not \|...|. Escape periods in the header file name.
7632         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7633         Reported by Daniel Richard G. <skunk@iskunk.org>.
7634
7635 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7636
7637         Support for old NeXTstep 3.3 gcc.
7638         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7639         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7640         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7641         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7642         * lib/regex.h (_Restrict_arr_): Likewise.
7643         * lib/regex_internal.h (re_token_t): Likewise.
7644         * lib/regexec.c (check_node_accept_bytes): Likewise.
7645         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7646
7647 2011-10-18  Eric Blake  <eblake@redhat.com>
7648
7649         posix_openpt: new module
7650         * modules/posix_openpt: New module.
7651         * m4/posix_openpt.m4: New file.
7652         * lib/posix_openpt.c: Likewise.
7653         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7654         (gl_STDLIB_H_DEFAULTS): Set defaults.
7655         * modules/stdlib (Makefile.am): Substitute macros.
7656         * lib/stdlib.in.h (posix_openpt): Declare.
7657         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7658         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7659         * modules/posix_openpt-tests: New test module.
7660         * tests/test-posix_openpt.c: New test.
7661
7662 2011-10-15  Bruno Haible  <bruno@clisp.org>
7663
7664         xstrtoll: Fix compilation failure.
7665         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7666         from lib/strtol.c.
7667         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7668         some platforms.
7669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7670
7671 2011-10-15  Bruno Haible  <bruno@clisp.org>
7672
7673         vasnprintf: Optimize bit search operation.
7674         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7676         gl_DOUBLE_EXPONENT_LOCATION.
7677         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7678         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7679         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7680         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7681         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7682         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7683         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7684         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7685         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7686
7687 2011-10-15  Bruno Haible  <bruno@clisp.org>
7688
7689         vasnprintf: Fix comments.
7690         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7691
7692 2011-10-14  Bruno Haible  <bruno@clisp.org>
7693
7694         Tests for module 'integer_length_ll'.
7695         * modules/integer_length_ll-tests: New file.
7696         * tests/test-integer_length_ll.c: New file.
7697
7698         New module 'integer_length_ll'.
7699         * lib/integer_length_ll.c: New file.
7700         * modules/integer_length_ll: New file.
7701
7702 2011-10-14  Bruno Haible  <bruno@clisp.org>
7703
7704         Tests for module 'integer_length_l'.
7705         * modules/integer_length_l-tests: New file.
7706         * tests/test-integer_length_l.c: New file.
7707
7708         New module 'integer_length_l'.
7709         * lib/integer_length_l.c: New file.
7710         * modules/integer_length_l: New file.
7711
7712 2011-10-14  Bruno Haible  <bruno@clisp.org>
7713
7714         Tests for module 'integer_length'.
7715         * modules/integer_length-tests: New file.
7716         * tests/test-integer_length.c: New file.
7717
7718         New module 'integer_length'.
7719         * lib/integer_length.h: New file.
7720         * lib/integer_length.c: New file.
7721         * modules/integer_length: New file.
7722
7723 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7724
7725         popen: Fix dependency conditions.
7726         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7727
7728 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7729
7730         perror: Fix autoconf test.
7731         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7732         <stdlib.h> and <string.h>.
7733
7734 2011-10-14  Bruno Haible  <bruno@clisp.org>
7735
7736         ffsl: Optimize on 64-bit platforms.
7737         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7738         unrolling.
7739
7740 2011-10-13  Bruno Haible  <bruno@clisp.org>
7741
7742         ffsl: Optimize on 32-bit platforms.
7743         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7744         use ffs() without a loop.
7745
7746         ffsl, ffsll: Optimize for GCC.
7747         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7748         * lib/ffsl.c (GCC_BUILTIN): New macro.
7749         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7750
7751 2011-10-13  Bruno Haible  <bruno@clisp.org>
7752
7753         ffs, bcopy, memset: Support symbol renaming via config.h.
7754         * lib/ffs.c: Include <config.h>.
7755         * lib/bcopy.c: Likewise.
7756         * lib/memset.c: Likewise.
7757
7758 2011-10-10  Bruno Haible  <bruno@clisp.org>
7759
7760         atanl: Simplify for platforms where 'long double' == 'double'.
7761         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7762         alternative implementation.
7763         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7764         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7765         * modules/atanl (Depends-on): Add atan. Update conditions.
7766
7767 2011-10-10  Bruno Haible  <bruno@clisp.org>
7768
7769         acosl: Simplify for platforms where 'long double' == 'double'.
7770         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7771         alternative implementation.
7772         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7773         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7774         * modules/acosl (Depends-on): Add acos. Update conditions.
7775
7776 2011-10-10  Bruno Haible  <bruno@clisp.org>
7777
7778         asinl: Simplify for platforms where 'long double' == 'double'.
7779         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7780         alternative implementation.
7781         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7782         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7783         * modules/asinl (Depends-on): Add asin. Update conditions.
7784
7785 2011-10-10  Bruno Haible  <bruno@clisp.org>
7786
7787         tanl: Simplify for platforms where 'long double' == 'double'.
7788         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7789         implementation.
7790         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7791         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7792         * modules/tanl (Depends-on): Add tan. Update conditions.
7793         (configure.ac): Don't compile trigl.c if
7794         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7795
7796 2011-10-10  Bruno Haible  <bruno@clisp.org>
7797
7798         cosl: Simplify for platforms where 'long double' == 'double'.
7799         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7800         implementation.
7801         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7802         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7803         * modules/cosl (Depends-on): Add cos. Update conditions.
7804         (configure.ac): Don't compile sincosl.c and trigl.c if
7805         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7806
7807 2011-10-10  Bruno Haible  <bruno@clisp.org>
7808
7809         sinl: Simplify for platforms where 'long double' == 'double'.
7810         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7811         implementation.
7812         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7813         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7814         * modules/sinl (Depends-on): Add sin. Update conditions.
7815         (configure.ac): Don't compile sincosl.c and trigl.c if
7816         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7817
7818 2011-10-10  Bruno Haible  <bruno@clisp.org>
7819
7820         logl: Simplify for platforms where 'long double' == 'double'.
7821         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7822         implementation.
7823         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7824         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7825         * modules/logl (Depends-on): Add log. Update conditions.
7826
7827 2011-10-10  Bruno Haible  <bruno@clisp.org>
7828
7829         expl: Simplify for platforms where 'long double' == 'double'.
7830         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7831         implementation.
7832         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7833         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7834         * modules/expl (Depends-on): Add exp. Update conditions.
7835
7836 2011-10-10  Bruno Haible  <bruno@clisp.org>
7837
7838         sqrtl: Simplify for platforms where 'long double' == 'double'.
7839         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7840         alternative implementation.
7841         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7842         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7843         * modules/sqrtl (Depends-on): Update conditions.
7844
7845 2011-10-10  Bruno Haible  <bruno@clisp.org>
7846
7847         ldexpl: Simplify for platforms where 'long double' == 'double'.
7848         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7849         alternative implementation.
7850         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7851         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7852         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7853
7854 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7855
7856         ffsll: set correct witness
7857         * modules/ffsll (configure.ac): Fix typo.
7858
7859 2011-10-10  Bruno Haible  <bruno@clisp.org>
7860
7861         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7862         * lib/printf-frexpl.c: Include <config.h>.
7863         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7864         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7865         second time.
7866         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7867         gl_LONG_DOUBLE_VS_DOUBLE.
7868         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7869         conditions.
7870
7871 2011-10-10  Bruno Haible  <bruno@clisp.org>
7872
7873         frexpl: Simplify for platforms where 'long double' == 'double'.
7874         * lib/frexpl.c: Include <config.h>.
7875         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7876         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7877         time.
7878         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7879         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7880         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7881         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7882         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7883         conditions.
7884
7885 2011-10-10  Jim Meyering  <meyering@redhat.com>
7886
7887         test-renameat: don't leave behind a temporary file
7888         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7889           ERROR: files left in build directory after distclean:
7890           ./gltests/test-renameat.too
7891           make[1]: *** [distcleancheck] Error 1
7892         Reported by Tom G. Christensen.
7893
7894 2011-10-09  Bruno Haible  <bruno@clisp.org>
7895
7896         rint: Determine RINT_LIBM correctly on AIX 7.
7897         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7898         directly, not only through a function pointer. Also accept an optional
7899         4th argument with extra code.
7900         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7901         rintf() call by gcc when optimizing.
7902
7903         mathfunc.m4: Refactor.
7904         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7905         m4 variable.
7906
7907 2011-10-09  Bruno Haible  <bruno@clisp.org>
7908
7909         rintl: Simplify for platforms where 'long double' == 'double'.
7910         * lib/rintl.c: Include <config.h>.
7911         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7912         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7913         time.
7914         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7915         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7916         * modules/rintl (Depends-on): Add rint. Update conditions.
7917
7918 2011-10-09  Bruno Haible  <bruno@clisp.org>
7919
7920         roundl: Simplify for platforms where 'long double' == 'double'.
7921         * lib/roundl.c: Include <config.h>.
7922         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7923         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7924         time.
7925         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7926         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7927         * modules/roundl (Depends-on): Add round. Update conditions.
7928
7929 2011-10-09  Bruno Haible  <bruno@clisp.org>
7930
7931         truncl: Simplify for platforms where 'long double' == 'double'.
7932         * lib/truncl.c: Include <config.h>.
7933         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7934         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7935         time.
7936         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7937         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7938         * modules/truncl (Depends-on): Add trunc. Update conditions.
7939
7940 2011-10-09  Bruno Haible  <bruno@clisp.org>
7941
7942         ceill: Simplify for platforms where 'long double' == 'double'.
7943         * lib/ceill.c: Include <config.h>.
7944         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7945         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7946         time.
7947         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7948         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7949         * modules/ceill (Depends-on): Add ceil. Update conditions.
7950
7951 2011-10-09  Bruno Haible  <bruno@clisp.org>
7952
7953         floorl: Simplify for platforms where 'long double' == 'double'.
7954         * lib/floorl.c: Include <config.h>.
7955         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7956         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7957         time.
7958         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7959         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7960         * modules/floorl (Depends-on): Add floor. Update conditions.
7961
7962 2011-10-09  Bruno Haible  <bruno@clisp.org>
7963
7964         rint: Fix ordering constraints.
7965         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7966         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7967         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7968
7969 2011-10-09  Bruno Haible  <bruno@clisp.org>
7970
7971         copysignl: Simplify for platforms where 'long double' == 'double'.
7972         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7973         alternative.
7974         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7975         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7976         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7977
7978 2011-10-09  Bruno Haible  <bruno@clisp.org>
7979
7980         Tests for module 'rintl'.
7981         * modules/rintl-tests: New file.
7982         * tests/test-rintl.c: New file.
7983
7984         New module 'rintl'.
7985         * lib/math.in.h (rintl): New declaration.
7986         * lib/rintl.c: New file.
7987         * m4/rintl.m4: New file.
7988         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7990         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7991         * modules/rintl: New file.
7992         * tests/test-math-c++.cc: Check the declaration of rintl.
7993         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7994         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7995         * doc/posix-functions/rintl.texi: Mention the new module.
7996
7997 2011-10-09  Bruno Haible  <bruno@clisp.org>
7998
7999         Tests for module 'rintf'.
8000         * modules/rintf-tests: New file.
8001         * tests/test-rintf.c: New file.
8002
8003         New module 'rintf'.
8004         * lib/math.in.h (rintf): New declaration.
8005         * lib/rintf.c: New file.
8006         * m4/rintf.m4: New file.
8007         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8009         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8010         * modules/rintf: New file.
8011         * tests/test-math-c++.cc: Check the declaration of rintf.
8012         * doc/posix-functions/rintf.texi: Mention the new module.
8013
8014 2011-10-09  Bruno Haible  <bruno@clisp.org>
8015
8016         rint: Support for MSVC.
8017         * lib/math.in.h (rint): New declaration.
8018         * lib/rint.c: New file.
8019         * m4/rint.m4: New file.
8020         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8022         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8023         * modules/rint (Description): Fix.
8024         (Files): Add lib/rint.c, m4/rint.m4.
8025         (Depends-on): Add math.
8026         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8027         gl_MATH_MODULE_INDICATOR.
8028         * tests/test-math-c++.cc: Check the declaration of rint.
8029         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8030         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8031         * doc/posix-functions/rint.texi: Mention the replacement provided by
8032         the module.
8033
8034         rint tests: More tests.
8035         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8036         minus-zero.h, infinity.h, nan.h.
8037         (main): Skip the test if the current rounding mode is not standard. Add
8038         tests for negative numbers, minus zero, infinity, NaN.
8039         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8040         tests/nan.h.
8041         (Depends-on): Add isnand-nolibm.
8042
8043 2011-10-09  Bruno Haible  <bruno@clisp.org>
8044
8045         Tests for module 'copysignl'.
8046         * modules/copysignl-tests: New file.
8047         * tests/test-copysignl.c: New file.
8048
8049         New module 'copysignl'.
8050         * lib/math.in.h (copysignl): New declaration.
8051         * lib/copysignl.c: New file.
8052         * m4/copysignl.m4: New file.
8053         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8055         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8056         HAVE_COPYSIGNL.
8057         * modules/copysignl: New file.
8058         * tests/test-math-c++.cc: Check the declaration of copysignl.
8059         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8060         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8061         * doc/posix-functions/copysignl.texi: Mention the new module.
8062
8063 2011-10-09  Bruno Haible  <bruno@clisp.org>
8064
8065         Tests for module 'copysignf'.
8066         * modules/copysignf-tests: New file.
8067         * tests/test-copysignf.c: New file.
8068
8069         New module 'copysignf'.
8070         * lib/math.in.h (copysignf): New declaration.
8071         * lib/copysignf.c: New file.
8072         * m4/copysignf.m4: New file.
8073         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8075         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8076         HAVE_COPYSIGNF.
8077         * modules/copysignf: New file.
8078         * tests/test-math-c++.cc: Check the declaration of copysignf.
8079         * doc/posix-functions/copysignf.texi: Mention the new module.
8080
8081 2011-10-09  Bruno Haible  <bruno@clisp.org>
8082
8083         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8084         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8085         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8086         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8087         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8088         gl_SIGNAL_H_DEFAULTS.
8089
8090 2011-10-09  Bruno Haible  <bruno@clisp.org>
8091
8092         poll: Make macro safer.
8093         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8094         ac_cv_header_poll_h is not set.
8095
8096 2011-10-09  Bruno Haible  <bruno@clisp.org>
8097
8098         copysign: Provide replacement.
8099         * lib/math.in.h (copysign): New declaration.
8100         * lib/copysign.c: New file.
8101         * m4/copysign.m4: New file.
8102         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8104         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8105         HAVE_COPYSIGN.
8106         * modules/copysign (Description): Clarify.
8107         (Files): Add lib/copysign.c, m4/copysign.m4.
8108         (Depends-on): Add math, signbit.
8109         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8110         gl_MATH_MODULE_INDICATOR.
8111         * tests/test-math-c++.cc: Check the declaration of copysign.
8112         * doc/posix-functions/copysign.texi: Mention the effects of the module
8113         on Minix and MSVC.
8114
8115 2011-10-09  Bruno Haible  <bruno@clisp.org>
8116
8117         isinf: Ensure macro on AIX 5.1.
8118         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8119         macro.
8120         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8121
8122 2011-10-09  Bruno Haible  <bruno@clisp.org>
8123
8124         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8125         * modules/snprintf-posix-tests (configure.ac): Require
8126         gl_LONG_DOUBLE_VS_DOUBLE.
8127         * modules/sprintf-posix-tests (configure.ac): Likewise.
8128         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8129         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8130         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8131         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8132         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8133         tests on platforms where 'long double' is the same as 'double'.
8134         * tests/test-sprintf-posix.h (test_function): Likewise.
8135         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8136         * tests/test-vasprintf-posix.c (test_function): Likewise.
8137
8138         *printf: Fix for platforms where 'long double' == 'double'.
8139         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8140         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8141         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8142         * modules/fprintf-posix (Files): Likewise.
8143         * modules/obstack-printf-posix (Files): Likewise.
8144         * modules/snprintf-posix (Files): Likewise.
8145         * modules/sprintf-posix (Files): Likewise.
8146         * modules/vasnprintf (Files): Likewise.
8147         * modules/vasnprintf-posix (Files): Likewise.
8148         * modules/vasprintf-posix (Files): Likewise.
8149         * modules/vdprintf-posix (Files): Likewise.
8150         * modules/vfprintf-posix (Files): Likewise.
8151         * modules/vsnprintf-posix (Files): Likewise.
8152         * modules/vsprintf-posix (Files): Likewise.
8153         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8154         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8155         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8156         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8157         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8158         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8159         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8160
8161         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8162         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8163         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8164         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8165         'long double'.
8166         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8167
8168         isinf: Fix for platforms where 'long double' == 'double'.
8169         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8170         Don't blindly assume 80-bit 'long double'.
8171
8172         isfinite: Fix for platforms where 'long double' == 'double'.
8173         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8174         Don't blindly assume 80-bit 'long double'.
8175
8176         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8177         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8178         * modules/isfinite-tests (configure.ac): Require
8179         gl_LONG_DOUBLE_VS_DOUBLE.
8180         * modules/isinf-tests (configure.ac): Likewise.
8181         * modules/isnan-tests (configure.ac): Likewise.
8182         * modules/isnanl-tests (configure.ac): Likewise.
8183         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8184         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8185         tests on platforms where 'long double' is the same as 'double'.
8186         * tests/test-isinf.c (test_isinfl): Likewise.
8187         * tests/test-isnan.c (test_long_double): Likewise.
8188         * tests/test-isnanl.h (main): Likewise.
8189
8190 2011-10-08  Bruno Haible  <bruno@clisp.org>
8191
8192         Tests for module 'tanhf'.
8193         * modules/tanhf-tests: New file.
8194         * tests/test-tanhf.c: New file.
8195
8196         New module 'tanhf'.
8197         * lib/math.in.h (tanhf): New declaration.
8198         * lib/tanhf.c: New file.
8199         * m4/tanhf.m4: New file.
8200         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8202         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8203         * modules/tanhf: New file.
8204         * tests/test-math-c++.cc: Check the declaration of tanhf.
8205         * doc/posix-functions/tanhf.texi: Mention the new module.
8206
8207         tanh: Use a .m4 file.
8208         * m4/tanh.m4: New file.
8209         * modules/tanh (Files): Add it.
8210         (configure.ac): Just invoke gl_FUNC_TANH.
8211
8212 2011-10-08  Bruno Haible  <bruno@clisp.org>
8213
8214         Tests for module 'coshf'.
8215         * modules/coshf-tests: New file.
8216         * tests/test-coshf.c: New file.
8217
8218         New module 'coshf'.
8219         * lib/math.in.h (coshf): New declaration.
8220         * lib/coshf.c: New file.
8221         * m4/coshf.m4: New file.
8222         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8224         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8225         * modules/coshf: New file.
8226         * tests/test-math-c++.cc: Check the declaration of coshf.
8227         * doc/posix-functions/coshf.texi: Mention the new module.
8228
8229         cosh: Use a .m4 file.
8230         * m4/cosh.m4: New file.
8231         * modules/cosh (Files): Add it.
8232         (configure.ac): Just invoke gl_FUNC_COSH.
8233
8234 2011-10-08  Bruno Haible  <bruno@clisp.org>
8235
8236         Tests for module 'sinhf'.
8237         * modules/sinhf-tests: New file.
8238         * tests/test-sinhf.c: New file.
8239
8240         New module 'sinhf'.
8241         * lib/math.in.h (sinhf): New declaration.
8242         * lib/sinhf.c: New file.
8243         * m4/sinhf.m4: New file.
8244         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8246         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8247         * modules/sinhf: New file.
8248         * tests/test-math-c++.cc: Check the declaration of sinhf.
8249         * doc/posix-functions/sinhf.texi: Mention the new module.
8250
8251         sinh: Use a .m4 file.
8252         * m4/sinh.m4: New file.
8253         * modules/sinh (Files): Add it.
8254         (configure.ac): Just invoke gl_FUNC_SINH.
8255
8256 2011-10-08  Bruno Haible  <bruno@clisp.org>
8257
8258         Tests for module 'atan2f'.
8259         * modules/atan2f-tests: New file.
8260         * tests/test-atan2f.c: New file.
8261
8262         New module 'atan2f'.
8263         * lib/math.in.h (atan2f): New declaration.
8264         * lib/atan2f.c: New file.
8265         * m4/atan2f.m4: New file.
8266         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8268         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8269         * modules/atan2f: New file.
8270         * tests/test-math-c++.cc: Check the declaration of atan2f.
8271         * doc/posix-functions/atan2f.texi: Mention the new module.
8272
8273         atan2: Use a .m4 file.
8274         * m4/atan2.m4: New file.
8275         * modules/atan2 (Files): Add it.
8276         (configure.ac): Just invoke gl_FUNC_ATAN2.
8277
8278 2011-10-08  Bruno Haible  <bruno@clisp.org>
8279
8280         Tests for module 'atanf'.
8281         * modules/atanf-tests: New file.
8282         * tests/test-atanf.c: New file.
8283
8284         New module 'atanf'.
8285         * lib/math.in.h (atanf): New declaration.
8286         * lib/atanf.c: New file.
8287         * m4/atanf.m4: New file.
8288         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8290         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8291         * modules/atanf: New file.
8292         * tests/test-math-c++.cc: Check the declaration of atanf.
8293         * doc/posix-functions/atanf.texi: Mention the new module.
8294
8295         atan: Use a .m4 file.
8296         * m4/atan.m4: New file.
8297         * modules/atan (Files): Add it.
8298         (configure.ac): Just invoke gl_FUNC_ATAN.
8299
8300 2011-10-08  Bruno Haible  <bruno@clisp.org>
8301
8302         Tests for module 'acosf'.
8303         * modules/acosf-tests: New file.
8304         * tests/test-acosf.c: New file.
8305
8306         New module 'acosf'.
8307         * lib/math.in.h (acosf): New declaration.
8308         * lib/acosf.c: New file.
8309         * m4/acosf.m4: New file.
8310         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8312         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8313         * modules/acosf: New file.
8314         * tests/test-math-c++.cc: Check the declaration of acosf.
8315         * doc/posix-functions/acosf.texi: Mention the new module.
8316
8317         acos: Use a .m4 file.
8318         * m4/acos.m4: New file.
8319         * modules/acos (Files): Add it.
8320         (configure.ac): Just invoke gl_FUNC_ACOS.
8321
8322 2011-10-08  Bruno Haible  <bruno@clisp.org>
8323
8324         Tests for module 'asinf'.
8325         * modules/asinf-tests: New file.
8326         * tests/test-asinf.c: New file.
8327
8328         New module 'asinf'.
8329         * lib/math.in.h (asinf): New declaration.
8330         * lib/asinf.c: New file.
8331         * m4/asinf.m4: New file.
8332         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8334         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8335         * modules/asinf: New file.
8336         * tests/test-math-c++.cc: Check the declaration of asinf.
8337         * doc/posix-functions/asinf.texi: Mention the new module.
8338
8339         asin: Use a .m4 file.
8340         * m4/asin.m4: New file.
8341         * modules/asin (Files): Add it.
8342         (configure.ac): Just invoke gl_FUNC_ASIN.
8343
8344 2011-10-08  Bruno Haible  <bruno@clisp.org>
8345
8346         Tests for module 'tanf'.
8347         * modules/tanf-tests: New file.
8348         * tests/test-tanf.c: New file.
8349
8350         New module 'tanf'.
8351         * lib/math.in.h (tanf): New declaration.
8352         * lib/tanf.c: New file.
8353         * m4/tanf.m4: New file.
8354         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8356         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8357         * modules/tanf: New file.
8358         * tests/test-math-c++.cc: Check the declaration of tanf.
8359         * doc/posix-functions/tanf.texi: Mention the new module.
8360
8361         tan: Use a .m4 file.
8362         * m4/tan.m4: New file.
8363         * modules/tan (Files): Add it.
8364         (configure.ac): Just invoke gl_FUNC_TAN.
8365
8366 2011-10-08  Bruno Haible  <bruno@clisp.org>
8367
8368         Tests for module 'cosf'.
8369         * modules/cosf-tests: New file.
8370         * tests/test-cosf.c: New file.
8371
8372         New module 'cosf'.
8373         * lib/math.in.h (cosf): New declaration.
8374         * lib/cosf.c: New file.
8375         * m4/cosf.m4: New file.
8376         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8378         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8379         * modules/cosf: New file.
8380         * tests/test-math-c++.cc: Check the declaration of cosf.
8381         * doc/posix-functions/cosf.texi: Mention the new module.
8382
8383         cos: Use a .m4 file.
8384         * m4/cos.m4: New file.
8385         * modules/cos (Files): Add it.
8386         (configure.ac): Just invoke gl_FUNC_COS.
8387
8388 2011-10-08  Bruno Haible  <bruno@clisp.org>
8389
8390         Tests for module 'sinf'.
8391         * modules/sinf-tests: New file.
8392         * tests/test-sinf.c: New file.
8393
8394         New module 'sinf'.
8395         * lib/math.in.h (sinf): New declaration.
8396         * lib/sinf.c: New file.
8397         * m4/sinf.m4: New file.
8398         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8400         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8401         * modules/sinf: New file.
8402         * tests/test-math-c++.cc: Check the declaration of sinf.
8403         * doc/posix-functions/sinf.texi: Mention the new module.
8404
8405         sin: Use a .m4 file.
8406         * m4/sin.m4: New file.
8407         * modules/sin (Files): Add it.
8408         (configure.ac): Just invoke gl_FUNC_SIN.
8409
8410 2011-10-08  Bruno Haible  <bruno@clisp.org>
8411
8412         Tests for module 'powf'.
8413         * modules/powf-tests: New file.
8414         * tests/test-powf.c: New file.
8415
8416         New module 'powf'.
8417         * lib/math.in.h (powf): New declaration.
8418         * lib/powf.c: New file.
8419         * m4/powf.m4: New file.
8420         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8422         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8423         * modules/powf: New file.
8424         * tests/test-math-c++.cc: Check the declaration of powf.
8425         * doc/posix-functions/powf.texi: Mention the new module.
8426
8427         pow: Use a .m4 file.
8428         * m4/pow.m4: New file.
8429         * modules/pow (Files): Add it.
8430         (configure.ac): Just invoke gl_FUNC_POW.
8431
8432 2011-10-08  Bruno Haible  <bruno@clisp.org>
8433
8434         Tests for module 'log10f'.
8435         * modules/log10f-tests: New file.
8436         * tests/test-log10f.c: New file.
8437
8438         New module 'log10f'.
8439         * lib/math.in.h (log10f): New declaration.
8440         * lib/log10f.c: New file.
8441         * m4/log10f.m4: New file.
8442         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8444         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8445         * modules/log10f: New file.
8446         * tests/test-math-c++.cc: Check the declaration of log10f.
8447         * doc/posix-functions/log10f.texi: Mention the new module.
8448
8449         log10: Use a .m4 file.
8450         * m4/log10.m4: New file.
8451         * modules/log10 (Files): Add it.
8452         (configure.ac): Just invoke gl_FUNC_LOG10.
8453
8454 2011-10-08  Bruno Haible  <bruno@clisp.org>
8455
8456         Tests for module 'logf'.
8457         * modules/logf-tests: New file.
8458         * tests/test-logf.c: New file.
8459
8460         New module 'logf'.
8461         * lib/math.in.h (logf): New declaration.
8462         * lib/logf.c: New file.
8463         * m4/logf.m4: New file.
8464         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8466         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8467         * modules/logf: New file.
8468         * tests/test-math-c++.cc: Check the declaration of logf.
8469         * doc/posix-functions/logf.texi: Mention the new module.
8470
8471         log: Use a .m4 file.
8472         * m4/log.m4: New file.
8473         * modules/log (Files): Add it.
8474         (configure.ac): Just invoke gl_FUNC_LOG.
8475
8476 2011-10-08  Bruno Haible  <bruno@clisp.org>
8477
8478         Tests for module 'expf'.
8479         * modules/expf-tests: New file.
8480         * tests/test-expf.c: New file.
8481
8482         New module 'expf'.
8483         * lib/math.in.h (expf): New declaration.
8484         * lib/expf.c: New file.
8485         * m4/expf.m4: New file.
8486         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8488         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8489         * modules/expf: New file.
8490         * tests/test-math-c++.cc: Check the declaration of expf.
8491         * doc/posix-functions/expf.texi: Mention the new module.
8492
8493         exp: Use a .m4 file.
8494         * m4/exp.m4: New file.
8495         * modules/exp (Files): Add it.
8496         (configure.ac): Just invoke gl_FUNC_EXP.
8497
8498 2011-10-08  Bruno Haible  <bruno@clisp.org>
8499
8500         Tests for module 'sqrtf'.
8501         * modules/sqrtf-tests: New file.
8502         * tests/test-sqrtf.c: New file.
8503
8504         New module 'sqrtf'.
8505         * lib/math.in.h (sqrtf): New declaration.
8506         * lib/sqrtf.c: New file.
8507         * m4/sqrtf.m4: New file.
8508         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8510         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8511         * modules/sqrtf: New file.
8512         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8513         * doc/posix-functions/sqrtf.texi: Mention the new module.
8514
8515 2011-10-08  Bruno Haible  <bruno@clisp.org>
8516
8517         Tests: Avoid link failures w.r.t. libintl.
8518         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8519         $(LIBINTL).
8520         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8521         $(LIBINTL).
8522         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8523         against $(LIBINTL).
8524         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8525         $(LIBINTL).
8526         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8527         $(LIBINTL).
8528         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8529
8530 2011-10-08  Bruno Haible  <bruno@clisp.org>
8531
8532         pow tests: Defeat compiler optimizations.
8533         * tests/test-pow.c (main): Assign arguments to x and y before use.
8534
8535 2011-10-08  Bruno Haible  <bruno@clisp.org>
8536
8537         gnulib-tool: Improve last commit.
8538         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8539         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8540         ignore dependencies that are not among the modules list.
8541
8542 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8543
8544         gnulib-tool: don't follow dependencies to avoided modules
8545         This fixes a bug that is related to the previous one.
8546         * gnulib-tool (func_modules_transitive_closure)
8547         (func_emit_autoconf_snippets):
8548         Check whether a dependency is acceptable before using it.
8549         (--extract-dependencies): Report an error if --avoid is also used,
8550         since this combination of options is not yet supported.
8551
8552         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8553         Problem reported by Peter Dyballa in
8554         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8555         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8556         when echoing "$condition".
8557
8558 2011-10-07  Bruno Haible  <bruno@clisp.org>
8559
8560         Fix documentation about math functions on MacOS X.
8561         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8562         MacOS X 10.5.
8563         * doc/posix-functions/fdim.texi: Likewise.
8564         * doc/posix-functions/feclearexcept.texi: Likewise.
8565         * doc/posix-functions/fegetenv.texi: Likewise.
8566         * doc/posix-functions/fegetround.texi: Likewise.
8567         * doc/posix-functions/feholdexcept.texi: Likewise.
8568         * doc/posix-functions/feraiseexcept.texi: Likewise.
8569         * doc/posix-functions/fesetenv.texi: Likewise.
8570         * doc/posix-functions/fesetround.texi: Likewise.
8571         * doc/posix-functions/fetestexcept.texi: Likewise.
8572         * doc/posix-functions/feupdateenv.texi: Likewise.
8573         * doc/posix-functions/fmax.texi: Likewise.
8574         * doc/posix-functions/fmin.texi: Likewise.
8575         * doc/posix-functions/log2.texi: Likewise.
8576         * doc/posix-functions/modff.texi: Likewise.
8577         * doc/posix-functions/nan.texi: Likewise.
8578         * doc/posix-functions/nanf.texi: Likewise.
8579         * doc/posix-functions/nextafterf.texi: Likewise.
8580         * doc/posix-functions/remquo.texi: Likewise.
8581
8582 2011-10-07  Bruno Haible  <bruno@clisp.org>
8583
8584         modff: Drop assumption about library that defines modff.
8585         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8586         AC_CHECK_FUNCS.
8587         * modules/modff (Files): Add m4/mathfunc.m4.
8588
8589 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8590
8591         raise tests: Avoid a GCC warning.
8592         * tests/test-raise.c (handler): Use _Noreturn.
8593
8594 2011-10-07  Bruno Haible  <bruno@clisp.org>
8595
8596         Tests for module 'ldexpf'.
8597         * modules/ldexpf-tests: New file.
8598         * tests/test-ldexpf.c: New file.
8599
8600         New module 'ldexpf'.
8601         * lib/math.in.h (ldexpf): New declaration.
8602         * lib/ldexpf.c: New file.
8603         * m4/ldexpf.m4: New file.
8604         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8606         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8607         * modules/ldexpf: New file.
8608         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8609         * doc/posix-functions/ldexpf.texi: Mention the new module.
8610
8611 2011-10-06  Bruno Haible  <bruno@clisp.org>
8612
8613         frexpf: Work around problems on IRIX and mingw.
8614         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8616         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8617         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8618         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8619         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8620         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8621
8622 2011-10-06  Bruno Haible  <bruno@clisp.org>
8623
8624         fabsf: Drop assumption about library that defines fabsf.
8625         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8626         AC_CHECK_FUNCS.
8627         * modules/fabsf (Files): Add m4/mathfunc.m4.
8628
8629 2011-10-06  Bruno Haible  <bruno@clisp.org>
8630
8631         frexpf: Drop assumption about library that defines frexpf.
8632         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8633         'int *', 'float *', 'long double *', 'float', 'long double'.
8634         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8635         AC_CHECK_FUNCS.
8636         * modules/frexpf (Files): Add m4/mathfunc.m4.
8637
8638         Tests for module 'frexpf'.
8639         * modules/frexpf-tests: New file.
8640         * tests/test-frexpf.c: New file.
8641
8642         New module 'frexpf'.
8643         * lib/math.in.h (frexpf): New declaration.
8644         * lib/frexpf.c: New file.
8645         * m4/frexpf.m4: New file.
8646         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8648         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8649         * modules/frexpf: New file.
8650         * tests/test-math-c++.cc: Check the declaration of frexpf.
8651         * doc/posix-functions/frexpf.texi: Mention the new module.
8652
8653 2011-10-06  Bruno Haible  <bruno@clisp.org>
8654
8655         math: Sort function declarations of math.in.h.
8656         * lib/math.in.h (frexp, logb): Move declarations.
8657
8658 2011-10-05  Bruno Haible  <bruno@clisp.org>
8659
8660         Tests for module 'modff'.
8661         * modules/modff-tests: New file.
8662         * tests/test-modff.c: New file.
8663
8664         New module 'modff'.
8665         * lib/math.in.h (modff): New declaration.
8666         * lib/modff.c: New file.
8667         * m4/modff.m4: New file.
8668         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8670         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8671         * modules/modff: New file.
8672         * tests/test-math-c++.cc: Check the declaration of modff.
8673         * doc/posix-functions/modff.texi: Mention the new module.
8674
8675         modf tests: Make test sharper.
8676         * tests/test-modf.c (main): Strengthen upper bound.
8677
8678         modf: Use a .m4 file.
8679         * m4/modf.m4: New file.
8680         * modules/modf (Files): Add it.
8681         (configure.ac): Just invoke gl_FUNC_MODF.
8682
8683 2011-10-05  Bruno Haible  <bruno@clisp.org>
8684
8685         Tests for module 'fmodf'.
8686         * modules/fmodf-tests: New file.
8687         * tests/test-fmodf.c: New file.
8688
8689         New module 'fmodf'.
8690         * lib/math.in.h (fmodf): New declaration.
8691         * lib/fmodf.c: New file.
8692         * m4/fmodf.m4: New file.
8693         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8695         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8696         * modules/fmodf: New file.
8697         * tests/test-math-c++.cc: Check the declaration of fmodf.
8698         * doc/posix-functions/fmodf.texi: Mention the new module.
8699
8700         fmod: Use a .m4 file.
8701         * m4/fmod.m4: New file.
8702         * modules/fmod (Files): Add it.
8703         (configure.ac): Just invoke gl_FUNC_FMOD.
8704
8705 2011-10-05  Bruno Haible  <bruno@clisp.org>
8706
8707         Tests for module 'fabsf'.
8708         * modules/fabsf-tests: New file.
8709         * tests/test-fabsf.c: New file.
8710
8711         New module 'fabsf'.
8712         * lib/math.in.h (fabsf): New declaration.
8713         * lib/fabsf.c: New file.
8714         * m4/fabsf.m4: New file.
8715         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8717         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8718         * modules/fabsf: New file.
8719         * tests/test-math-c++.cc: Check the declaration of fabsf.
8720         * doc/posix-functions/fabsf.texi: Mention the new module.
8721
8722         fabs: Use a .m4 file.
8723         * m4/fabs.m4: New file.
8724         * modules/fabs (Files): Add it.
8725         (configure.ac): Just invoke gl_FUNC_FABS.
8726
8727 2011-10-05  Jim Meyering  <meyering@redhat.com>
8728
8729         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8730         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8731         ls -lL regression introduced in coreutils-8.12, it does so at the
8732         cost of an additional stat call in the common case.  Besides, now
8733         that the kernel change that prompted commit 95f7c57f has been reverted
8734         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8735         we have no use for commit 95f7c57f, "file-has-acl: use
8736         acl_extended_file_nofollow if available".
8737
8738 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8739
8740         file-has-acl: revert unintended change in behavior of ls -L
8741         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8742         derived from...
8743         (file_has_acl): ...code here.  Call it.
8744         This problem was introduced with 2011-07-22 commit 95f7c57f,
8745         "file-has-acl: use acl_extended_file_nofollow if available".
8746         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8747
8748 2011-10-03  Bruno Haible  <bruno@clisp.org>
8749
8750         poll: Avoid link errors on MSVC.
8751         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8752         * modules/poll (Depends-on): Add sockets.
8753         (Link): New section.
8754         * NEWS: Mention the change.
8755         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8756         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8757         $(LIB_POLL) instead of $(LIBSOCKET).
8758
8759 2011-10-03  Bruno Haible  <bruno@clisp.org>
8760
8761         sys_select tests: Fix link error on MSVC 9.
8762         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8763         with $(LIB_SELECT) instead of $(LIBSOCKET).
8764
8765 2011-10-03  Bruno Haible  <bruno@clisp.org>
8766
8767         sys_select: Fix compilation error on mingw.
8768         * lib/sys_select.in.h: On native Windows, include <io.h>.
8769
8770 2011-10-03  Bruno Haible  <bruno@clisp.org>
8771
8772         wmemset: Support for MSVC.
8773         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8774         whether wmemset() exists.
8775
8776 2011-10-03  Bruno Haible  <bruno@clisp.org>
8777
8778         wmemmove: Support for MSVC.
8779         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8780         whether wmemmove() exists.
8781
8782 2011-10-03  Bruno Haible  <bruno@clisp.org>
8783
8784         wmemcpy: Support for MSVC.
8785         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8786         whether wmemcpy() exists.
8787
8788 2011-10-03  Bruno Haible  <bruno@clisp.org>
8789
8790         wmemcmp: Support for MSVC.
8791         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8792         whether wmemcmp() exists.
8793
8794 2011-10-03  Bruno Haible  <bruno@clisp.org>
8795
8796         wmemchr: Support for MSVC.
8797         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8798         whether wmemchr() exists.
8799
8800 2011-10-03  Bruno Haible  <bruno@clisp.org>
8801
8802         glthread/*, strsignal: Support for MSVC.
8803         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8804         including <winsock.h> on MSVC 9.
8805         * lib/glthread/lock.h: Likewise.
8806         * lib/glthread/thread.h: Likewise.
8807         * lib/glthread/tls.h: Likewise.
8808         * lib/glthread/yield.h: Likewise.
8809         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8810         if HAVE_UNISTD_H is false.
8811         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8812
8813 2011-10-03  Bruno Haible  <bruno@clisp.org>
8814
8815         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8816         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8817         Set to 100000.
8818
8819 2011-10-03  Bruno Haible  <bruno@clisp.org>
8820
8821         acl: Fix specification.
8822         * lib/file-has-acl.c (file_has_acl): Fix specification.
8823
8824 2011-10-03  Bruno Haible  <bruno@clisp.org>
8825
8826         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8827         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8828         (compute_curr_prefix, shared_library_fullname,
8829         find_shared_library_fullname, get_shared_library_fullname, relocate):
8830         Use it together with PIC && INSTALLDIR.
8831         Reported by <jojelino@gmail.com>
8832         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8833
8834 2011-10-01  Jim Meyering  <meyering@redhat.com>
8835
8836         maint.mk: adjust a release-related rule not to require use of gzip
8837         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8838         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8839         projects that build only .tar.xz files.  Also fix an erroneous test.
8840
8841         test-linkat: don't leave behind a temporary file
8842         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8843         Otherwise, coreutils' "make distcheck" would fail with this:
8844           Only in /c/cu/tests/torture/coreutils/test/\
8845             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8846           make[2]: *** [my-distcheck] Error 1
8847
8848         float, math: add omitted file
8849         * lib/itold.c: Add file, required for yesterday's float change.
8850
8851 2011-10-01  Bruno Haible  <bruno@clisp.org>
8852
8853         isinf: Fix for OpenBSD/x86.
8854         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8855         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8856         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8857
8858 2011-10-01  Bruno Haible  <bruno@clisp.org>
8859
8860         isfinite: Fix syntax error in configure test.
8861         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8862
8863         isfinite: Fix typo.
8864         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8865         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8866
8867 2011-10-01  Bruno Haible  <bruno@clisp.org>
8868
8869         nonblocking tests: Fix test failure on Linux/IA-64.
8870         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8871         Set to 270000.
8872
8873 2011-10-01  Bruno Haible  <bruno@clisp.org>
8874
8875         mkfifoat tests: Fix a test failure on mingw.
8876         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8877         with error ENOSYS.
8878
8879 2011-09-30  Bruno Haible  <bruno@clisp.org>
8880
8881         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8882         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8883         'long double'. Set REPLACE_ITOLD.
8884         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8885         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8886         * lib/itold.c: New file.
8887         * modules/float (Files): Add lib/itold.c.
8888         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8889         (Makefile.am): Substitute REPLACE_ITOLD.
8890         * modules/math (Depends-on): Add float.
8891         (Makefile.am): Substitute REPLACE_ITOLD.
8892         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8893         * doc/posix-headers/math.texi: Likewise.
8894         * doc/posix-functions/logl.texi: Likewise.
8895
8896 2011-09-30  Bruno Haible  <bruno@clisp.org>
8897
8898         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8899         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8900         Set to 140000.
8901
8902 2011-09-30  Bruno Haible  <bruno@clisp.org>
8903
8904         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8905         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8906         invocation, say "right after AC_PROG_CC_STDC", not "right after
8907         AC_PROG_CC".
8908         Reported by Gary V. Vaughan <gary@gnu.org>.
8909
8910 2011-09-30  Bruno Haible  <bruno@clisp.org>
8911
8912         Centralize C99 requirement.
8913         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8914         * modules/stdarg (configure.ac-early): Invoke it instead of
8915         AC_PROG_CC_STDC.
8916         Reported by Gary V. Vaughan and Paul Eggert.
8917
8918 2011-09-29  Bruno Haible  <bruno@clisp.org>
8919
8920         float: Fix LDBL_MAX value on Linux/PowerPC.
8921         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8922         on Linux/PowerPC.
8923         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8924         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8925         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8926         platform.
8927         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8928
8929 2011-09-29  Bruno Haible  <bruno@clisp.org>
8930
8931         doc: Improve doc about gl_EARLY.
8932         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8933         AC_PROG_CC_STDC invocation.
8934         Reported by Gary V. Vaughan <gary@gnu.org>.
8935
8936 2011-09-28  Bruno Haible  <bruno@clisp.org>
8937
8938         fgetc, fputc, fread, fwrite tests: Fix link error.
8939         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8940         on non-MSVC platforms.
8941         * tests/test-fputc.c (main): Likewise.
8942         * tests/test-fread.c (main): Likewise.
8943         * tests/test-fwrite.c (main): Likewise.
8944         Reported by Jim Meyering.
8945
8946 2011-09-27  Bruno Haible  <bruno@clisp.org>
8947
8948         fputc, fwrite tests: Avoid test failure on MSVC.
8949         * tests/test-fgetc.c: Include msvc-inval.h.
8950         (main): Invoke gl_msvc_inval_ensure_handler.
8951         * tests/test-fputc.c: Include msvc-inval.h.
8952         (main): Invoke gl_msvc_inval_ensure_handler.
8953         * tests/test-fread.c: Include msvc-inval.h.
8954         (main): Invoke gl_msvc_inval_ensure_handler.
8955         * tests/test-fwrite.c: Include msvc-inval.h.
8956         (main): Invoke gl_msvc_inval_ensure_handler.
8957         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8958         * modules/fputc-tests (Depends-on): Likewise.
8959         * modules/fread-tests (Depends-on): Likewise.
8960         * modules/fwrite-tests (Depends-on): Likewise.
8961
8962 2011-09-27  Bruno Haible  <bruno@clisp.org>
8963
8964         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8965         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8966         (raise): Remove older, duplicated declaration.
8967         (_gl_raise_SIGPIPE): New declaration.
8968         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8969         (rpl_raise): Remove function.
8970         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8971         a gnulib-defined SIGPIPE here.
8972         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8973         'sigprocmask' has detected missing signal-blocking and the module
8974         'sigpipe' is enabled.
8975         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8976
8977 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8978
8979         base64-tests: avoid memory leak
8980         * tests/test-base64.c (main): Plug memory leak.
8981
8982         base32: new module
8983         * modules/base32: New module.
8984         * lib/base32.c: New file.
8985         * lib/base32.h: Likewise.
8986         * m4/base32.m4: Likewise.
8987         * modules/base32-tests: New test.
8988         * tests/test-base32.c: Likewise.
8989         * MODULES.html.sh (Misc): Mention it.
8990
8991 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8992
8993         gnulib: use more-standard license notice wording
8994         * gnulib-tool (func_emit_copyright_notice): When emitting a
8995         license notice into a file, use the standard wording as suggested
8996         by the current information for GNU maintainers, except say "file"
8997         rather than "program".  The new wording gives a license version
8998         number, which addresses an issue raised by Glenn Morris in
8999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9000         * m4/onceonly.m4: Use that same wording here, too.
9001
9002         dup2: minor simplification
9003         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9004         as lib/dup2.c no longer uses 'inline'.
9005
9006 2011-09-25  Bruno Haible  <bruno@clisp.org>
9007
9008         strings: Fix compilation error on MSVC.
9009         * lib/strings.in.h: Include <stddef.h> for size_t.
9010
9011 2011-09-25  Bruno Haible  <bruno@clisp.org>
9012
9013         fflush et al.: Document limitation on MSVC.
9014         * doc/posix-functions/fflush.texi: Document possible crash in handling
9015         mode other than DEFAULT_HANDLING.
9016         * doc/posix-functions/fgetc.texi: Likewise.
9017         * doc/posix-functions/fputc.texi: Likewise.
9018         * doc/posix-functions/fread.texi: Likewise.
9019         * doc/posix-functions/fwrite.texi: Likewise.
9020
9021 2011-09-25  Bruno Haible  <bruno@clisp.org>
9022
9023         msvc-inval: Allow three invalid parameter handling modes.
9024         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9025         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9026         macros.
9027         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9028         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9029         SANE_LIBRARY_HANDLING as a no-op.
9030         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9031         <stdlib.h>.
9032         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9033
9034 2011-09-25  Bruno Haible  <bruno@clisp.org>
9035
9036         msvc-inval: Make handler multithread-safe.
9037         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9038         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9039         declarations.
9040         (gl_msvc_inval_current): New declaration.
9041         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9042         Operate on the structure returned by gl_msvc_inval_current().
9043         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9044         Remove varaiables.
9045         (tls_index, tls_initialized): New variables.
9046         (not_per_thread): New variable.
9047         (gl_msvc_inval_current): New function.
9048         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9049         returned by gl_msvc_inval_current().
9050
9051 2011-09-25  Bruno Haible  <bruno@clisp.org>
9052
9053         msvc-inval: Install handler globally.
9054         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9055         !_MSC_VER.
9056         (gl_msvc_invalid_parameter_handler): Remove declaration.
9057         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9058         declarations.
9059         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9060         Install the handler globally, don't uninstall it.
9061         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9062         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9063         currently valid, call RaiseException instead.
9064         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9065         for !_MSC_VER.
9066
9067 2011-09-25  Bruno Haible  <bruno@clisp.org>
9068
9069         strerror_r-posix: Fix for MSVC 9.
9070         * lib/strerror_r.c (local_snprintf): New function.
9071         (snprintf): Define to local_snprintf, not to _snprintf.
9072
9073 2011-09-25  Bruno Haible  <bruno@clisp.org>
9074
9075         ftruncate: Support for MSVC 9.
9076         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9077         (chsize_nothrow): New function.
9078         (chsize): Redefine as a macro.
9079         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9080         * modules/ftruncate (Depends-on): Add msvc-inval.
9081
9082 2011-09-25  Bruno Haible  <bruno@clisp.org>
9083
9084         New module 'fstat'.
9085         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9086         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9087         * lib/fchdir.c (rpl_fstat): Remove function.
9088         * m4/fstat.m4: New file.
9089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9091         declared.
9092         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9093         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9094         * modules/fstat: New file.
9095         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9096         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9097         is set.
9098         * doc/posix-functions/fstat.texi: Mention the new module and the
9099         problem on MSVC.
9100         * NEWS: Mention the change.
9101         * modules/acl (Depends-on): Add fstat.
9102         * modules/chdir-safer (Depends-on): Likewise.
9103         * modules/chown (Depends-on): Likewise.
9104         * modules/copy-file (Depends-on): Likewise.
9105         * modules/fchdir (Depends-on): Likewise.
9106         * modules/fdopendir (Depends-on): Likewise.
9107         * modules/fopen (Depends-on): Likewise.
9108         * modules/fts (Depends-on): Likewise.
9109         * modules/getcwd (Depends-on): Likewise.
9110         * modules/isapipe (Depends-on): Likewise.
9111         * modules/linkat (Depends-on): Likewise.
9112         * modules/lseek (Depends-on): Likewise.
9113         * modules/mkdir-p (Depends-on): Likewise.
9114         * modules/open (Depends-on): Likewise.
9115         * modules/openat (Depends-on): Likewise.
9116         * modules/read-file (Depends-on): Likewise.
9117         * modules/renameat (Depends-on): Likewise.
9118         * modules/utimens (Depends-on): Likewise.
9119
9120 2011-09-25  Bruno Haible  <bruno@clisp.org>
9121
9122         linkat: Fix compilation on MSVC 9.
9123         * lib/linkat.c: Don't include <stdint.h>.
9124
9125 2011-09-25  Bruno Haible  <bruno@clisp.org>
9126
9127         fclose: Support for MSVC 9.
9128         * lib/fclose.c: Include msvc-inval.h.
9129         (fclose_nothrow): New function.
9130         (rpl_fclose): Use it.
9131         * modules/fclose (Depends-on): Add msvc-inval.
9132         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9133
9134 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9135
9136         dup2: minor simplifications
9137         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9138         that it's a performance win.
9139         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9140         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9141
9142 2011-09-24  Jim Meyering  <meyering@redhat.com>
9143
9144         test-futimens: avoid a warning from gcc -Wshadow
9145         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9146         to avoid a shadowing warning.
9147
9148 2011-09-24  Bruno Haible  <bruno@clisp.org>
9149
9150         fdopen: Support for MSVC 9.
9151         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9152         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9153         * lib/fdopen.c: Include msvc-inval.h.
9154         (fdopen_nothrow): New function.
9155         (rpl_fdopen): Use it.
9156         * modules/fdopen (Depends-on): Add msvc-inval.
9157         * modules/fclose-tests (Depends-on): Add fdopen.
9158         * modules/fflush-tests (Depends-on): Likewise.
9159         * modules/fgetc-tests (Depends-on): Likewise.
9160         * modules/fputc-tests (Depends-on): Likewise.
9161         * modules/fread-tests (Depends-on): Likewise.
9162         * modules/freopen-tests (Depends-on): Likewise.
9163         * modules/fseeko-tests (Depends-on): Likewise.
9164         * modules/ftello-tests (Depends-on): Likewise.
9165         * modules/fwrite-tests  (Depends-on): Likewise.
9166         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9167
9168 2011-09-24  Bruno Haible  <bruno@clisp.org>
9169
9170         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9171         * modules/fgetc-tests (Depends-on): Add unistd.
9172         * modules/fputc-tests (Depends-on): Likewise.
9173         * modules/fread-tests (Depends-on): Likewise.
9174         * modules/fwrite-tests (Depends-on): Likewise.
9175
9176 2011-09-24  Bruno Haible  <bruno@clisp.org>
9177
9178         dup: Simplify autoconf test.
9179         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9180         on gl_MSVC_INVAL's result.
9181
9182 2011-09-24  Bruno Haible  <bruno@clisp.org>
9183
9184         Tests for function fwrite().
9185         * modules/fwrite-tests: New file.
9186         * tests/test-fwrite.c: New file.
9187         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9188
9189         Tests for function fread().
9190         * modules/fread-tests: New file.
9191         * tests/test-fread.c: New file.
9192         * modules/stdio-tests (Depends-on): Add fread-tests.
9193
9194         Activate fputc tests.
9195         * modules/stdio-tests (Depends-on): Add fputc-tests.
9196
9197         Enhance fgetc, fputc tests.
9198         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9199         * tests/test-fputc.c (main): Likewise.
9200
9201 2011-09-24  Bruno Haible  <bruno@clisp.org>
9202
9203         write: Support for MSVC 9.
9204         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9205         is not 1.
9206         * lib/write.c (write_nothrow): New function.
9207         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9208         not 1. Use write_nothrow.
9209         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9210         invalid parameter handler.
9211         (gl_PREREQ_WRITE): New macro.
9212         * modules/write (Depends-on): Add msvc-inval.
9213         (configure.ac): Invoke gl_PREREQ_WRITE.
9214         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9215
9216 2011-09-24  Bruno Haible  <bruno@clisp.org>
9217
9218         read: Fix last commit.
9219         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9220
9221 2011-09-24  Bruno Haible  <bruno@clisp.org>
9222
9223         dup2: Fix last commit.
9224         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9225         (rpl_dup2): Disable fcntl workaround on native Windows.
9226
9227         sigprocmask: Make code safer.
9228         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9229         section that changes macro definitions for this compilation unit.
9230
9231 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9232
9233         dup2: clarify by coalescing Windows-specific material
9234         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9235         "msvc-nothrow.h"' to the Windows-specific section, so that the
9236         Emacs source need not contain these include files.
9237         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9238         Windows-specific fixes into this function rather than just the
9239         nothrow fix, as this shortens and clarifies the code.  Always
9240         define as a function, as that's a bit cleaner than having it be
9241         sometimes a function and sometimes a macro.
9242         (rpl_dup2): Move the Windows-specific stuff out of here and into
9243         ms_windows_dup2.  Don't protect the Haiku-related fix with
9244         "#if !defined __linux__", as the same code also works around
9245         a Linux kernel bug, and it doesn't add any system calls on any
9246         platform.  Add comment about FreeBSD 6.1.
9247
9248         sigprocmask: move #include directive
9249         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9250         Windows-specific section, so that the Emacs source need not
9251         contain msvc-inval.h.
9252
9253 2011-09-23  Bruno Haible  <bruno@clisp.org>
9254
9255         read: Support for MSVC 9.
9256         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9257         is not 1.
9258         * lib/read.c (read_nothrow): New function.
9259         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9260         read_nothrow.
9261         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9262         invalid parameter handler.
9263         (gl_PREREQ_READ): New macro.
9264         * modules/read (Depends-on): Add msvc-inval.
9265         (configure.ac): Invoke gl_PREREQ_READ.
9266         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9267
9268 2011-09-23  Bruno Haible  <bruno@clisp.org>
9269
9270         close: Support for MSVC 9.
9271         * lib/close.c: Include <errno.h>, msvc-inval.h.
9272         (close_nothrow): New function.
9273         (rpl_close): Use it.
9274         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9275         invalid parameter handler.
9276         * modules/close (Depends-on): Add msvc-inval.
9277         * modules/dup2-tests (Depends-on): Add close.
9278         * modules/dup3-tests (Depends-on): Likewise.
9279         * modules/fcntl-tests (Depends-on): Likewise.
9280         * modules/spawn-pipe-tests (Depends-on): Likewise.
9281         * modules/unistd-safer-tests (Depends-on): Likewise.
9282         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9283
9284 2011-09-23  Bruno Haible  <bruno@clisp.org>
9285
9286         New module 'dup'.
9287         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9288         Allow replacement.
9289         * lib/dup.c: New file.
9290         * lib/fchdir.c (rpl_dup): Remove function.
9291         * m4/dup.m4: New file.
9292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9293         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9294         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9295         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9296         * modules/dup: New file.
9297         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9298         'dup' module is in use.
9299         * modules/fdopendir (Depends-on): Add dup.
9300         * modules/fdutimensat-tests (Depends-on): Likewise.
9301         * modules/fts (Depends-on): Likewise.
9302         * modules/futimens-tests (Depends-on): Likewise.
9303         * modules/posix_spawnp-tests (Depends-on): Likewise.
9304         * modules/unistd-safer-tests (Depends-on): Likewise.
9305         * modules/utimens-tests (Depends-on): Likewise.
9306         * doc/posix-functions/dup.texi: Mention the new module and the problem
9307         on MSVC.
9308
9309 2011-09-23  Bruno Haible  <bruno@clisp.org>
9310
9311         getdtablesize: Support for MSVC 9.
9312         * lib/getdtablesize.c: Include msvc-inval.h.
9313         (_setmaxstdio_nothrow): New function.
9314         (_setmaxstdio): Redefine it.
9315         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9316         * modules/getdtablesize (Depends-on): Add msvc-inval.
9317         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9318
9319 2011-09-23  Bruno Haible  <bruno@clisp.org>
9320
9321         signal-h: Rename from signal.
9322         * modules/signal-h: Renamed from modules/signal.
9323         * modules/pthread_sigmask (Depends-on): Update.
9324         * modules/raise (Depends-on): Likewise.
9325         * modules/sigaction (Depends-on): Likewise.
9326         * modules/sigpipe (Depends-on): Likewise.
9327         * modules/sigprocmask (Depends-on): Likewise.
9328         * modules/sys_select (Depends-on): Likewise.
9329         * modules/signal-h-tests: Renamed from modules/signal-tests.
9330         (Files, Depends-on, Makefile.am): Update.
9331         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9332         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9333         (Files, Makefile.am): Update.
9334         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9335         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9336         * modules/signal: New placeholder file.
9337         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9338         * doc/posix-headers/signal.texi: Update.
9339         * NEWS: Mention the change.
9340
9341 2011-09-23  Bruno Haible  <bruno@clisp.org>
9342
9343         sigprocmask: Avoid crashes through signal() on MSVC 9.
9344         * lib/sigprocmask.c: Include msvc-inval.h.
9345         (signal_nothrow): New function.
9346         (signal): Redefine it.
9347         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9348         * modules/sigprocmask (Depends-on): Add msvc-inval.
9349         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9350
9351 2011-09-23  Bruno Haible  <bruno@clisp.org>
9352
9353         Tests for module 'raise'.
9354         * modules/raise-tests: New file.
9355         * tests/test-raise.c: New file.
9356
9357         raise: Support for MSVC.
9358         * lib/signal.in.h (raise): New declaration.
9359         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9360         for native Windows platforms.
9361         * m4/raise.m4: New file.
9362         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9363         HAVE_RAISE, REPLACE_RAISE.
9364         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9365         REPLACE_RAISE.
9366         * modules/raise (Status, Notice): Remove fields.
9367         (Files): Add m4/raise.m4.
9368         (Depends-on): Add signal, msvc-inval.
9369         (configure.ac): Use the common idioms.
9370         (Maintainer): Add me.
9371         * tests/test-signal-c++.cc: Check the signature of raise.
9372         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9373
9374 2011-09-23  Bruno Haible  <bruno@clisp.org>
9375
9376         pipe2: Fix compilation on pre-C99 compilers.
9377         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9378
9379 2011-09-23  Bruno Haible  <bruno@clisp.org>
9380
9381         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9382         * lib/msvc-nothrow.h: New file.
9383         * lib/msvc-nothrow.c: New file.
9384         * m4/msvc-nothrow.m4: New file.
9385         * modules/msvc-nothrow: New file.
9386         * lib/dup2.c: Include msvc-nothrow.h.
9387         (rpl_dup2): No need to protect _get_osfhandle call here.
9388         * lib/accept4.c: Include msvc-nothrow.h.
9389         * lib/error.c: Likewise.
9390         * lib/fcntl.c: Likewise.
9391         * lib/lseek.c: Likewise.
9392         * lib/nonblocking.c: Likewise.
9393         * lib/poll.c: Likewise.
9394         * lib/read.c: Likewise.
9395         * lib/select.c: Likewise.
9396         * lib/sockets.h: Likewise.
9397         * lib/sockets.c: Likewise.
9398         * lib/stdio-read.c: Likewise.
9399         * lib/stdio-write.c: Likewise.
9400         * lib/write.c: Likewise.
9401         * lib/w32sock.h: Likewise.
9402         * lib/w32spawn.h: Likewise.
9403         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9404         * lib/fsync.c: Likewise.
9405         * lib/isapipe.c: Likewise.
9406         * modules/dup2 (Depends-on): Add msvc-nothrow.
9407         * modules/accept4 (Depends-on): Likewise.
9408         * modules/error (Depends-on): Likewise.
9409         * modules/fcntl (Depends-on): Likewise.
9410         * modules/lseek (Depends-on): Likewise.
9411         * modules/nonblocking (Depends-on): Likewise.
9412         * modules/poll (Depends-on): Likewise.
9413         * modules/read (Depends-on): Likewise.
9414         * modules/select (Depends-on): Likewise.
9415         * modules/sockets (Depends-on): Likewise.
9416         * modules/sigpipe (Depends-on): Likewise.
9417         * modules/write (Depends-on): Likewise.
9418         * modules/accept (Depends-on): Likewise.
9419         * modules/bind (Depends-on): Likewise.
9420         * modules/connect (Depends-on): Likewise.
9421         * modules/gethostname (Depends-on): Likewise.
9422         * modules/getpeername (Depends-on): Likewise.
9423         * modules/getsockname (Depends-on): Likewise.
9424         * modules/getsockopt (Depends-on): Likewise.
9425         * modules/ioctl (Depends-on): Likewise.
9426         * modules/listen (Depends-on): Likewise.
9427         * modules/recv (Depends-on): Likewise.
9428         * modules/recvfrom (Depends-on): Likewise.
9429         * modules/send (Depends-on): Likewise.
9430         * modules/sendto (Depends-on): Likewise.
9431         * modules/setsockopt (Depends-on): Likewise.
9432         * modules/shutdown (Depends-on): Likewise.
9433         * modules/socket (Depends-on): Likewise.
9434         * modules/execute (Depends-on): Likewise.
9435         * modules/spawn-pipe (Depends-on): Likewise.
9436         * modules/flock (Depends-on): Likewise.
9437         * modules/fsync (Depends-on): Likewise.
9438         * modules/isapipe (Depends-on): Likewise.
9439         * tests/test-cloexec.c: Include msvc-nothrow.h.
9440         * tests/test-dup-safer.c: Likewise.
9441         * tests/test-dup2.c: Likewise.
9442         * tests/test-dup3.c: Likewise.
9443         * tests/test-fcntl.c: Likewise.
9444         * tests/test-pipe.c: Likewise.
9445         * tests/test-pipe2.c: Likewise.
9446         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9447         * modules/unistd-safer-tests (Depends-on): Likewise.
9448         * modules/dup2-tests (Depends-on): Likewise.
9449         * modules/dup3-tests (Depends-on): Likewise.
9450         * modules/fcntl-tests (Depends-on): Likewise.
9451         * modules/pipe-posix-tests (Depends-on): Likewise.
9452         * modules/pipe2-tests (Depends-on): Likewise.
9453
9454 2011-09-23  Bruno Haible  <bruno@clisp.org>
9455
9456         dup2: Make code more maintainable.
9457         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9458         (rpl_dup2): Use it.
9459         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9460         * modules/dup2 (configure.ac): Invoke it.
9461         Reported by Paul Eggert.
9462
9463 2011-09-23  Bruno Haible  <bruno@clisp.org>
9464
9465         msvc-inval: Fix compilation error.
9466         * lib/msvc-inval.h: Include <excpt.h>.
9467
9468 2011-09-23  Bruno Haible  <bruno@clisp.org>
9469
9470         mkdir: Tweak for MSVC 9.
9471         * lib/sys_stat.in.h: Update comments.
9472         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9473
9474         Tests for module 'chdir'.
9475         * modules/chdir-tests: New file.
9476         * tests/test-chdir.c: New file.
9477
9478         New module 'chdir'.
9479         * modules/chdir: New file.
9480         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9481         (chdir): New declaration.
9482         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9483         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9484         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9485         * tests/test-unistd-c++.cc: Check signature of chdir.
9486         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9487         * modules/chdir-long (Depends-on): Add chdir.
9488         * modules/fchdir (Depends-on): Likewise.
9489         * modules/rename (Depends-on): Likewise.
9490         * modules/savewd (Depends-on): Likewise.
9491
9492         rmdir: Support for mingw, MSVC 9.
9493         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9494         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9495
9496         getcwd: Tweak for MSVC 9.
9497         * lib/unistd.in.h: Update comments.
9498         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9499
9500 2011-09-22  Bruno Haible  <bruno@clisp.org>
9501
9502         strerror_r-posix: Avoid a link error on MSVC.
9503         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9504         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9505
9506 2011-09-22  Bruno Haible  <bruno@clisp.org>
9507
9508         select: Avoid link errors on MSVC.
9509         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9510         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9511         * modules/pselect (Link): Likewise.
9512         * NEWS: Mention the change.
9513         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9514         test-select-stdin against $(LIB_SELECT).
9515         * modules/pselect-tests (Makefile.am): Link test-pselect against
9516         $(LIB_SELECT).
9517
9518 2011-09-22  Bruno Haible  <bruno@clisp.org>
9519
9520         select: Avoid compilation error on MSVC.
9521         * lib/select.c: Don't include <stdbool.h>.
9522
9523 2011-09-21  Bruno Haible  <bruno@clisp.org>
9524
9525         Consolidate all uses of PATH_MAX in *.m4 files.
9526         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9527         macros.
9528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9529         and gl_PATHMAX_SNIPPET.
9530         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9531         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9532         * modules/chdir-long (Files): Add m4/pathmax.m4.
9533         * modules/getcwd (Files): Likewise.
9534
9535 2011-09-21  Bruno Haible  <bruno@clisp.org>
9536
9537         ftruncate: Un-deprecate, concentrate on Win32 support.
9538         * modules/ftruncate (Status, Notice): Remove sections.
9539         (Depends-on): Add largefile.
9540         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9541         non-mingw platforms.
9542         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9543         include <io.h>.
9544         * modules/perror-tests (Depends-on): Add ftruncate.
9545         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9546         'ftruncate' module.
9547
9548 2011-09-21  Bruno Haible  <bruno@clisp.org>
9549
9550         Add dependencies to new dirent related modules.
9551         * modules/opendir (Depends-on): Add closedir.
9552         * modules/getcwd (Depends-on): Add opendir, closedir.
9553         * modules/dirent-safer-tests (Depends-on): Likewise.
9554         * modules/fdopendir-tests (Depends-on): Likewise.
9555         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9556         * modules/renameat-tests (Depends-on): Likewise.
9557
9558 2011-09-21  Bruno Haible  <bruno@clisp.org>
9559
9560         opendir: Avoid compilation error on mingw.
9561         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9562         * modules/opendir (Depends-on): Add unistd.
9563
9564 2011-09-21  Bruno Haible  <bruno@clisp.org>
9565
9566         ftruncate tests: Avoid a test failure on mingw.
9567         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9568
9569 2011-09-21  Bruno Haible  <bruno@clisp.org>
9570
9571         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9572         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9573         native Windows.
9574
9575 2011-09-21  Bruno Haible  <bruno@clisp.org>
9576
9577         New module 'fdopen'.
9578         * lib/stdio.in.h (fdopen): New declaration.
9579         * lib/fdopen.c: New file.
9580         * m4/fdopen.m4: New file.
9581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9582         REPLACE_FDOPEN.
9583         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9584         REPLACE_FDOPEN.
9585         * modules/fdopen: New file.
9586         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9587         * tests/test-stdio-c++.cc: Check signature of fdopen.
9588         * doc/posix-functions/fdopen.texi: Mention the new module.
9589
9590 2011-09-21  Bruno Haible  <bruno@clisp.org>
9591
9592         unlockpt tests: Avoid test failure on NetBSD 5.1.
9593         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9594         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9595
9596 2011-09-21  Bruno Haible  <bruno@clisp.org>
9597
9598         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9599         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9600         * tests/test-getlogin_r.c (main): Likewise.
9601
9602 2011-09-20  Bruno Haible  <bruno@clisp.org>
9603
9604         time tests: Don't require pid_t.
9605         * doc/posix-headers/time.texi: Revert last change.
9606         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9607         * tests/test-time.c: Comment out the check for pid_t.
9608
9609 2011-09-20  Bruno Haible  <bruno@clisp.org>
9610
9611         fsync tests: Avoid a test failure on mingw.
9612         * tests/test-fsync.c (main): Allow a failure with EIO.
9613
9614 2011-09-20  Bruno Haible  <bruno@clisp.org>
9615
9616         euidaccess: Update comments.
9617         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9618
9619 2011-09-20  Bruno Haible  <bruno@clisp.org>
9620
9621         Ensure EBADF returns for socket functions on mingw.
9622         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9623         descriptor is invalid.
9624         * lib/bind.c (rpl_bind): Likewise.
9625         * lib/connect.c (rpl_connect): Likewise.
9626         * lib/getpeername.c (rpl_getpeername): Likewise.
9627         * lib/getsockname.c (rpl_getsockname): Likewise.
9628         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9629         * lib/listen.c (rpl_listen): Likewise.
9630         * lib/recv.c (rpl_recv): Likewise.
9631         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9632         * lib/send.c (rpl_send): Likewise.
9633         * lib/sendto.c (rpl_sendto): Likewise.
9634         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9635         * lib/shutdown.c (rpl_shutdown): Likewise.
9636
9637 2011-09-20  Bruno Haible  <bruno@clisp.org>
9638
9639         select tests: EBADF tests.
9640         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9641         test_bad_fd): New functions.
9642         (test_function): Invoke also test_bad_fd.
9643
9644 2011-09-20  Bruno Haible  <bruno@clisp.org>
9645
9646         Tests for module 'posix_spawn_file_actions_addopen.
9647         * modules/posix_spawn_file_actions_addopen-tests: New file.
9648         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9649
9650         Tests for module 'posix_spawn_file_actions_adddup2'.
9651         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9652         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9653
9654         Tests for module 'posix_spawn_file_actions_addclose'.
9655         * modules/posix_spawn_file_actions_addclose-tests: New file.
9656         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9657
9658 2011-09-20  Bruno Haible  <bruno@clisp.org>
9659
9660         Tests for module 'unlockpt'.
9661         * modules/unlockpt-tests: New file.
9662         * tests/test-unlockpt.c: New file.
9663         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9664
9665         Tests for module 'grantpt'.
9666         * modules/grantpt-tests: New file.
9667         * tests/test-grantpt.c: New file.
9668         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9669
9670 2011-09-20  Bruno Haible  <bruno@clisp.org>
9671
9672         freopen tests: EBADF tests.
9673         * tests/test-freopen.c: Include errno.h, unistd.h.
9674         (main): Add tests for EBADF, commented out for the moment.
9675
9676         fclose tests: EBADF tests.
9677         * tests/test-fclose.c (main): Add tests for EBADF.
9678
9679         fflush tests: EBADF tests.
9680         * tests/test-fflush.c: Include errno.h, macros.h.
9681         (main): Add tests for EBADF.
9682
9683         ftello tests: EBADF tests.
9684         * tests/test-ftello4.sh: New file.
9685         * tests/test-ftello4.c: New file.
9686         * modules/ftello-tests (Files): Add them.
9687         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9688
9689         fseeko tests: EBADF tests.
9690         * tests/test-fseeko4.sh: New file.
9691         * tests/test-fseeko4.c: New file.
9692         * modules/fseeko-tests (Files): Add them.
9693         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9694
9695         Tests for function fputc().
9696         * modules/fputc-tests: New file.
9697         * tests/test-fputc.c: New file.
9698         * modules/stdio-tests (Depends-on): Add fputc-tests.
9699
9700         Tests for function fgetc().
9701         * modules/fgetc-tests: New file.
9702         * tests/test-fgetc.c: New file.
9703         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9704
9705         Tests for function fdopen().
9706         * modules/fdopen-tests: New file.
9707         * tests/test-fdopen.c: New file.
9708         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9709
9710         Tests for module 'vdprintf'.
9711         * modules/vdprintf-tests: New file.
9712         * tests/test-vdprintf.c: New file.
9713
9714         Tests for module 'dprintf'.
9715         * modules/dprintf-tests: New file.
9716         * tests/test-dprintf.c: New file.
9717
9718 2011-09-20  Bruno Haible  <bruno@clisp.org>
9719
9720         Tests for module 'ioctl'.
9721         * modules/ioctl-tests: New file.
9722         * tests/test-ioctl.c: New file.
9723
9724 2011-09-20  Bruno Haible  <bruno@clisp.org>
9725
9726         fcntl tests: EBADF tests.
9727         * tests/test-fcntl.c (main): Add more tests for EBADF.
9728
9729 2011-09-20  Bruno Haible  <bruno@clisp.org>
9730
9731         utimensat tests: EBADF tests.
9732         * tests/test-utimensat.c (main): Add tests for EBADF.
9733
9734         renameat tests: EBADF tests.
9735         * tests/test-renameat.c (main): Add tests for EBADF.
9736
9737         mkfifoat tests: EBADF tests.
9738         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9739
9740         readlinkat tests: EBADF tests.
9741         * tests/test-readlinkat.c (main): Add tests for EBADF.
9742
9743         symlinkat tests: EBADF tests.
9744         * tests/test-symlinkat.c (main): Add tests for EBADF.
9745
9746         linkat tests: EBADF tests.
9747         * tests/test-linkat.c (main): Add tests for EBADF.
9748
9749         Tests for module 'faccessat'.
9750         * modules/faccessat-tests: New file.
9751         * tests/test-faccessat.c: New file.
9752
9753         fdopendir tests: EBADF tests.
9754         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9755
9756         openat tests: EBADF tests.
9757         * tests/test-fchownat.c (main): Add tests for EBADF.
9758         * tests/test-fstatat.c (main): Likewise.
9759         * tests/test-mkdirat.c (main): Likewise.
9760         * tests/test-openat.c (main): Likewise.
9761         * tests/test-unlinkat.c (main): Likewise.
9762         * tests/test-fchmodat.c: New file.
9763         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9764         (Makefile.am): Also run 'test-fchmodat'.
9765
9766 2011-09-20  Bruno Haible  <bruno@clisp.org>
9767
9768         utimens, futimens, fdutimensat tests: EBADF tests.
9769         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9770
9771         Tests for function fstat().
9772         * modules/fstat-tests: New file.
9773         * tests/test-fstat.c: New file.
9774         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9775
9776 2011-09-20  Bruno Haible  <bruno@clisp.org>
9777
9778         test-ttyname_r tests: EBADF tests.
9779         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9780
9781         Tests for module 'isatty'.
9782         * modules/isatty-tests: New file.
9783         * tests/test-isatty.c: New file.
9784
9785         Tests for module 'write'.
9786         * modules/write-tests: New file.
9787         * tests/test-write.c: New file.
9788
9789         Tests for module 'read'.
9790         * modules/read-tests: New file.
9791         * tests/test-read.c: New file.
9792
9793         pwrite tests: EBADF tests.
9794         * tests/test-pwrite.c (main): Add tests for EBADF.
9795
9796         pread tests: EBADF tests.
9797         * tests/test-pread.c (main): Add tests for EBADF.
9798
9799         lseek tests: EBADF tests.
9800         * tests/test-lseek.c (main): Add more tests for EBADF.
9801
9802         Tests for module 'ftruncate'.
9803         * modules/ftruncate-tests: New file.
9804         * tests/test-ftruncate.sh: New file.
9805         * tests/test-ftruncate.c: New file.
9806
9807         fsync tests: EBADF tests.
9808         * tests/test-fsync.c (main): Add more tests for EBADF.
9809
9810         fdatasync tests: EBADF tests.
9811         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9812
9813         Tests for module 'fchown'.
9814         * modules/fchown-tests: New file.
9815         * tests/test-fchown.c: New file.
9816
9817         Tests for module 'fchmod'.
9818         * modules/fchmod-tests: New file.
9819         * tests/test-fchmod.c: New file.
9820
9821         fchdir tests: EBADF tests.
9822         * tests/test-fchdir.c (main): Add more tests for EBADF.
9823
9824         dup2 tests: EBADF tests.
9825         * tests/test-dup2.c (main): Add more tests for EBADF.
9826
9827         Tests for module 'dup'.
9828         * modules/dup-tests: New file.
9829         * tests/test-dup.c: New file.
9830
9831         Tests for module 'close'.
9832         * modules/close-tests: New file.
9833         * tests/test-close.c: New file.
9834
9835 2011-09-20  Bruno Haible  <bruno@clisp.org>
9836
9837         Tests for module 'shutdown'.
9838         * modules/shutdown-tests: New file.
9839         * tests/test-shutdown.c: New file.
9840
9841         Tests for module 'setsockopt'.
9842         * modules/setsockopt-tests: New file.
9843         * tests/test-setsockopt.c: New file.
9844
9845         Tests for module 'sendto'.
9846         * modules/sendto-tests: New file.
9847         * tests/test-sendto.c: New file.
9848
9849         Tests for module 'send'.
9850         * modules/send-tests: New file.
9851         * tests/test-send.c: New file.
9852
9853         Tests for module 'recvfrom'.
9854         * modules/recvfrom-tests: New file.
9855         * tests/test-recvfrom.c: New file.
9856
9857         Tests for module 'recv'.
9858         * modules/recv-tests: New file.
9859         * tests/test-recv.c: New file.
9860
9861         Tests for module 'listen'.
9862         * modules/listen-tests: New file.
9863         * tests/test-listen.c: New file.
9864
9865         Tests for module 'getsockopt'.
9866         * modules/getsockopt-tests: New file.
9867         * tests/test-getsockopt.c: New file.
9868
9869         Tests for module 'getsockname'.
9870         * modules/getsockname-tests: New file.
9871         * tests/test-getsockname.c: New file.
9872
9873         Tests for module 'getpeername'.
9874         * modules/getpeername-tests: New file.
9875         * tests/test-getpeername.c: New file.
9876
9877         Tests for module 'connect'.
9878         * modules/connect-tests: New file.
9879         * tests/test-connect.c: New file.
9880
9881         Tests for module 'bind'.
9882         * modules/bind-tests: New file.
9883         * tests/test-bind.c: New file.
9884
9885         accept4 tests: Fix for native Windows.
9886         * tests/test-accept4.c: Include sockets.h.
9887         (main): Invoke gl_sockets_startup.
9888         * modules/accept4-tests (Depends-on): Add sockets.
9889
9890         accept tests: Fix for native Windows.
9891         * tests/test-accept.c: Include sockets.h.
9892         (main): Invoke gl_sockets_startup.
9893         * modules/accept-tests (Depends-on): Add sockets.
9894
9895 2011-09-19  Bruno Haible  <bruno@clisp.org>
9896
9897         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9898         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9899         do...while(0).
9900         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9901         Suggested by Paul Eggert.
9902
9903 2011-09-19  Bruno Haible  <bruno@clisp.org>
9904
9905         sched: Ensure pid_t is defined.
9906         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9907         not define pid_t.
9908         * lib/sched.in.h: Include <sys/types.h>.
9909         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9911
9912 2011-09-19  Bruno Haible  <bruno@clisp.org>
9913
9914         msvc-inval: Ensure the entire expansion is a single statement.
9915         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9916         of braces.
9917
9918 2011-09-19  Jim Meyering  <meyering@redhat.com>
9919
9920         tests: use printf, not echo in init.sh's warn_ function
9921         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9922         misbehave when given strings containing a backslash or starting
9923         with e.g., -n.  James Youngman suggested setting IFS.
9924
9925 2011-09-19  Eric Blake  <eblake@redhat.com>
9926
9927         futimens: enhance test
9928         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9929         closed non-negative fd.
9930
9931         date: accept 'hence' as opposite of 'ago'
9932         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9933         * tests/test-parse-datetime.c (main): Enhance test.
9934         Suggested by Jesse Wilson.
9935
9936 2011-09-19  Jim Meyering  <meyering@redhat.com>
9937
9938         getcwd: don't fail in a deep directory on a system without openat
9939         Before this change, getcwd would fail when called from a directory
9940         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9941         the non-openat implementation used "..", "../..", "../../..", etc.
9942         to access ancestor directories.  With too many, that string would
9943         be longer than PATH_MAX.
9944         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9945         using gnulib's openat replacement.
9946         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9947         we're using the replacement function.
9948
9949 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9950
9951         maint.mk: avoid warnings from perl about missing files
9952         * top/maint.mk (def_sym_regex): Ignore files listed in
9953         $(gl_other_headers_) that do not exist, say because a project
9954         does not use a corresponding module.
9955
9956 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9957
9958         stat: use pathmax.h only if needed
9959         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9960         This is better for Emacs, which does not have a mingw port and
9961         therefore can avoid the pathmax module.
9962
9963         utimens: remove dependency on dup2
9964         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9965         to work around the Linux kernel bug.
9966         * modules/utimens (Depends-on): Remove dup2.
9967
9968 2011-09-18  Bruno Haible  <bruno@clisp.org>
9969
9970         inet_ntop, inet_pton: Look for it also in libresolv.
9971         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9972         libnsl, search for it in libresolv.
9973         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9974         Needed on Solaris 7.
9975
9976 2011-09-18  Bruno Haible  <bruno@clisp.org>
9977
9978         accept, accept4 tests: Avoid link error on Solaris.
9979         * modules/accept-tests (Makefile.am): Link test-accept against
9980         $(LIBSOCKET).
9981         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9982         $(LIBSOCKET).
9983
9984         accept4: Avoid link error on Solaris.
9985         * modules/accept4 (Link): New section.
9986
9987         socket functions: Avoid link errors on Solaris.
9988         * modules/accept (Depends-on): Add socketlib.
9989         (Link): New section.
9990         * modules/bind (Depends-on): Add socketlib.
9991         (Link): New section.
9992         * modules/connect (Depends-on): Add socketlib.
9993         (Link): New section.
9994         * modules/getpeername (Depends-on): Add socketlib.
9995         (Link): New section.
9996         * modules/getsockname (Depends-on): Add socketlib.
9997         (Link): New section.
9998         * modules/getsockopt (Depends-on): Add socketlib.
9999         (Link): New section.
10000         * modules/listen (Depends-on): Add socketlib.
10001         (Link): New section.
10002         * modules/recv (Depends-on): Add socketlib.
10003         (Link): New section.
10004         * modules/recvfrom (Depends-on): Add socketlib.
10005         (Link): New section.
10006         * modules/send (Depends-on): Add socketlib.
10007         (Link): New section.
10008         * modules/sendto (Depends-on): Add socketlib.
10009         (Link): New section.
10010         * modules/setsockopt (Depends-on): Add socketlib.
10011         (Link): New section.
10012         * modules/shutdown (Depends-on): Add socketlib.
10013         (Link): New section.
10014         * modules/socket (Depends-on): Add socketlib.
10015         (Link): New section.
10016
10017 2011-09-18  Bruno Haible  <bruno@clisp.org>
10018
10019         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10020         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10021         than 5 seconds.
10022         * modules/ptsname-tests (configure.ac): Test for alarm.
10023
10024 2011-09-18  Bruno Haible  <bruno@clisp.org>
10025
10026         posix_spawn_file_actions_add*: Fix module dependencies.
10027         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10028         posix_spawn_file_actions_init.
10029         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10030         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10031
10032 2011-09-18  Bruno Haible  <bruno@clisp.org>
10033
10034         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10035         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10036         * tests/test-renameat.c (main): Likewise.
10037
10038 2011-09-18  Bruno Haible  <bruno@clisp.org>
10039
10040         Tests for module 'accept4'.
10041         * modules/accept4-tests: New file.
10042         * tests/test-accept4.c: New file.
10043
10044 2011-09-18  Bruno Haible  <bruno@clisp.org>
10045
10046         Tests for module 'accept'.
10047         * modules/accept-tests: New file.
10048         * tests/test-accept.c: New file.
10049
10050 2011-09-18  Bruno Haible  <bruno@clisp.org>
10051
10052         dup2: Support for MSVC.
10053         * lib/dup2.c: Include msvc-inval.h.
10054         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10055         _get_osfhandle calls.
10056         * modules/dup2 (Depends-on): Add msvc-inval.
10057         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10058
10059         New module 'msvc-inval'.
10060         * lib/msvc-inval.h: New file.
10061         * lib/msvc-inval.c: New file.
10062         * m4/msvc-inval.m4: New file.
10063         * modules/msvc-inval: New file.
10064
10065 2011-09-17  Bruno Haible  <bruno@clisp.org>
10066
10067         Tests for module 'pclose'.
10068         * modules/pclose-tests: New file.
10069
10070         New module 'pclose'.
10071         * lib/stdio.in.h (pclose): New declaration.
10072         * lib/pclose.c: New file.
10073         * m4/pclose.m4: New file.
10074         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10075         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10076         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10077         * modules/pclose: New file.
10078         * modules/popen-tests (Depends-on): Add pclose.
10079         * modules/popen-safer-tests (Depends-on): Likewise.
10080         * doc/posix-functions/pclose.texi: Mention the new module.
10081
10082 2011-09-17  Bruno Haible  <bruno@clisp.org>
10083
10084         popen: Support for MSVC.
10085         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10086         * lib/popen.c (popen): Provide alternate definition for native Windows.
10087         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10089         * modules/popen (Depends-on, configure.ac): Update condition.
10090         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10091         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10092         fixed.
10093
10094 2011-09-17  Bruno Haible  <bruno@clisp.org>
10095
10096         isnanl, isnand, isnanf: Work around MSVC bug.
10097         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10098
10099 2011-09-17  Bruno Haible  <bruno@clisp.org>
10100
10101         sys_socket tests: Fix recent mistake.
10102         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10103
10104 2011-09-17  Bruno Haible  <bruno@clisp.org>
10105
10106         putenv: Support for MSVC.
10107         * modules/putenv (Depends-on): Add environ.
10108         * lib/putenv.c (environ): Disable declaration.
10109         * lib/unistd.in.h: Update comment.
10110
10111 2011-09-17  Bruno Haible  <bruno@clisp.org>
10112
10113         math: Avoid macro redefinition warnings on MSVC.
10114         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10115         Undefine before redefining.
10116
10117 2011-09-17  Bruno Haible  <bruno@clisp.org>
10118
10119         doc: Mention functions which are declared as macros.
10120         * doc/posix-functions/*[fl].texi: Mention that some functions are
10121         defined as macros with arguments only.
10122
10123 2011-09-17  Bruno Haible  <bruno@clisp.org>
10124
10125         Add dependencies to new dirent related modules.
10126         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10127         * modules/fts (Depends-on): Likewise.
10128         * modules/glob (Depends-on): Likewise.
10129         * modules/savedir (Depends-on): Likewise.
10130         * modules/scandir (Depends-on): Likewise.
10131         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10132         * modules/fdopendir (Depends-on): Add opendir.
10133
10134 2011-09-17  Bruno Haible  <bruno@clisp.org>
10135
10136         inet_pton: Support for MSVC on Windows Vista or newer.
10137         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10138         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10139         HAVE_DECL_INET_PTON is defined.
10140         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10141         On platforms with <winsock2.h>, test whether inet_pton is declared in
10142         <ws2tcpip.h>. If so, arrange to replace it.
10143         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10144         REPLACE_INET_PTON.
10145         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10146         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10147         (Depends-on, configure.ac): Update condition.
10148         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10149
10150 2011-09-17  Bruno Haible  <bruno@clisp.org>
10151
10152         inet_ntop: Support for MSVC on Windows Vista or newer.
10153         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10154         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10155         HAVE_DECL_INET_NTOP is defined.
10156         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10157         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10158         <ws2tcpip.h>. If so, arrange to replace it.
10159         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10160         REPLACE_INET_NTOP.
10161         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10162         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10163         (Depends-on, configure.ac): Update condition.
10164         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10165
10166 2011-09-16  Eric Blake  <eblake@redhat.com>
10167
10168         test-fsync: yet another enhancement
10169         * tests/test-fsync.c (main): Also test behavior on read-only text
10170         file.
10171
10172 2011-09-16  Bruno Haible  <bruno@clisp.org>
10173
10174         Enhance fsync, fdatasync tests.
10175         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10176         * tests/test-fdatasync.c (main): Likewise.
10177
10178 2011-09-16  Bruno Haible  <bruno@clisp.org>
10179
10180         Support for MSVC compiler: Ensure mode_t gets defined.
10181         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10182         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10183         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10184         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10185         * tests/test-fcntl-h.c: Check that mode_t is defined.
10186         * tests/test-sys_stat.c: Likewise.
10187         * tests/test-sys_types.c: Likewise.
10188         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10189         * doc/posix-headers/sys_stat.texi: Likewise.
10190         * doc/posix-headers/sys_types.texi: Likewise.
10191
10192 2011-09-16  Bruno Haible  <bruno@clisp.org>
10193
10194         sys_stat: Support for MSVC.
10195         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10196         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10197         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10198         MSVC.
10199
10200 2011-09-16  Bruno Haible  <bruno@clisp.org>
10201
10202         Support for MSVC compiler: Ensure off_t gets defined.
10203         * lib/unistd.in.h: Include <sys/types.h>.
10204         * tests/test-fcntl-h.c: Check that off_t is defined.
10205         * tests/test-sys_stat.c: Likewise.
10206         * tests/test-sys_types.c: Likewise.
10207
10208 2011-09-16  Eric Blake  <eblake@redhat.com>
10209
10210         fdatasync: port to Solaris
10211         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10212         * modules/fdatasync (Link): Document it.
10213         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10214
10215         fdatasync: port to MacOS X 10.7
10216         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10217         declared.
10218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10219         * modules/unistd (Makefile.am): Substitute it.
10220         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10221         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10222
10223         fdatasync: minor improvements
10224         * modules/fdatasync (Depends-on): Add condition for fsync.
10225         * lib/fdatasync.c (fdatasync): Add comment.
10226         * tests/test-unistd-c++.cc: Test fdatasync.
10227
10228         unistd: update refs to newer POSIX
10229         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10230         Suggested by Bruno Haible.
10231
10232         fdatasync: new module
10233         * modules/fsync (Description): Document difference to fdatasync.
10234         * modules/fdatasync: New module.
10235         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10236         * lib/fdatasync.c (fdatasync): Likewise.
10237         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10238         defaults.
10239         * modules/unistd (Makefile.am): Set witnesses.
10240         * lib/unistd.in.h (fdatasync): Declare.
10241         * MODULES.html.sh: Document it.
10242         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10243         * modules/fdatasync-tests: New test.
10244         * tests/test-fdatasync.c: Likewise.
10245
10246 2011-09-16  Eric Blake  <eblake@redhat.com>
10247
10248         test-fsync: enhance tests
10249         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10250         * tests/test-fsync.c (main): Enhance test.
10251
10252 2011-09-15  Bruno Haible  <bruno@clisp.org>
10253
10254         Support for MSVC compiler: Ensure ssize_t gets defined.
10255         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10256         * doc/posix-headers/stdio.texi: Likewise.
10257         * modules/stdio (Depends-on): Add ssize_t.
10258         * modules/sys_socket (Depends-on): Likewise.
10259         * modules/sys_types (Depends-on): Likewise.
10260         * modules/sys_uio (Depends-on): Likewise.
10261         * modules/unistd (Depends-on): Likewise.
10262         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10263         * tests/test-sys_types.c: Check that ssize_t is defined.
10264
10265 2011-09-14  Bruno Haible  <bruno@clisp.org>
10266
10267         Avoid using #, the m4 comment starter character, near brackets.
10268         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10269         delimiter character in sed expressions.
10270         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10271         Suggested by Eric Blake.
10272
10273         Properly quote AC_CHECK_DECLS' 4th argument.
10274         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10275         argument.
10276         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10277         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10278         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10279         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10280         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10281         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10282         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10283         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10284         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10285         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10286         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10287         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10288         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10289         * m4/isinf.m4 (gl_ISINF): Likewise.
10290         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10291         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10292         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10293         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10294         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10295         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10296         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10297         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10298         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10299         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10300         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10301         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10303         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10305         Reported by Eric Blake.
10306
10307         Properly quote AC_CHECK_DECL's 4th argument.
10308         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10309         argument.
10310         * m4/argp.m4 (gl_ARGP): Likewise.
10311         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10312         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10313         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10314         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10315         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10316         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10317         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10318         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10319         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10320         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10321         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10322         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10323         Reported by Eric Blake.
10324
10325 2011-09-14  Eric Blake  <eblake@redhat.com>
10326
10327         opendir: avoid compile warning
10328         * lib/opendir.c (includes): Always include errno.h.
10329         Reported by Tatsuro MATSUOKA.
10330
10331 2011-09-14  Jim Meyering  <meyering@redhat.com>
10332
10333         maint.mk: sc_tight_scope: propagate failure from sub-make
10334         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10335         Reported by Martin von Gagern.
10336
10337 2011-09-13  Bruno Haible  <bruno@clisp.org>
10338
10339         tempname: Support for MSVC.
10340         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10341         MSVC.
10342         * modules/tempname (Depends-on): Add fcntl-h.
10343
10344 2011-09-13  Bruno Haible  <bruno@clisp.org>
10345
10346         sys_time: Support for MSVC.
10347         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10348         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10349         include <winsock2.h>.
10350         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10351         function declarations that collide with POSIX.
10352         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10353         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10354
10355 2011-09-13  Bruno Haible  <bruno@clisp.org>
10356
10357         stat: Support for MSVC.
10358         * lib/stat.c: Include pathmax.h.
10359         * modules/stat (Depends-on): Add pathmax.
10360
10361         pathmax: Support for native Windows.
10362         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10363
10364 2011-09-12  Bruno Haible  <bruno@clisp.org>
10365
10366         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10367         * lib/dirent.in.h (struct dirent): New type.
10368         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10369         DT_WHT): New macros.
10370         (DIR): New type.
10371         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10372         (readdir, rewinddir): New declarations.
10373         * lib/dirent-private.h: New file.
10374         * lib/opendir.c: New file.
10375         * lib/readdir.c: New file.
10376         * lib/rewinddir.c: New file.
10377         * lib/closedir.c: New file.
10378         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10379         * m4/opendir.m4: New file.
10380         * m4/readdir.m4: New file.
10381         * m4/rewinddir.m4: New file.
10382         * m4/closedir.m4: New file.
10383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10384         REPLACE_CLOSEDIR here.
10385         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10386         readdir, rewinddir are declared.
10387         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10388         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10389         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10390         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10391         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10392         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10393         * modules/opendir: New file.
10394         * modules/readdir: New file.
10395         * modules/rewinddir: New file.
10396         * modules/closedir: New file.
10397         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10398         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10399         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10400         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10401         * NEWS: Mention the 'fchdir' change.
10402
10403 2011-09-11  Bruno Haible  <bruno@clisp.org>
10404
10405         asm-underscore.m4: Support for MSVC.
10406         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10407         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10408
10409 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10410
10411         Doc about crypt functions.
10412         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10413         needing for _GNU_SOURCE to get crypt.
10414         * doc/posix-functions/encrypt.texi: Likewise.
10415         * doc/posix-functions/setkey.texi: Likewise.
10416
10417 2011-09-11  Bruno Haible  <bruno@clisp.org>
10418
10419         doc: Update regarding MSVC 9.
10420         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10421         tested".
10422         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10423         * doc/posix-headers/*.texi: Likewise.
10424         * doc/pastposix-functions/*.texi: Likewise.
10425         * doc/glibc-functions/*.texi: Likewise.
10426         * doc/glibc-headers/*.texi: Likewise.
10427
10428 2011-09-11  Bruno Haible  <bruno@clisp.org>
10429
10430         unistd et al.: Don't assume <unistd.h> exists.
10431         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10432         does not exist.
10433         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10434         exist. But include <stdlib.h>.
10435         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10436         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10437         symlink() does not exist.
10438         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10439         include <io.h> instead.
10440         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10441         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10442         include <direct.h> instead.
10443         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10444         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10445         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10446         <io.h> instead.
10447         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10448         correctly if the system does not have hard links.
10449         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10450         <direct.h> instead.
10451         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10452         it when looking for function declarations.
10453         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10454         <direct.h> and <io.h> instead.
10455         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10456
10457 2011-09-11  Bruno Haible  <bruno@clisp.org>
10458
10459         strcase: Support for MSVC.
10460         * modules/strcase (Status, Notice): Remove obsoletion mark.
10461         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10462         * doc/posix-functions/strncasecmp.texi: Likewise.
10463
10464         strings: Don't assume <strings.h> exists.
10465         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10466         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10467         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10468         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10469
10470 2011-09-11  Bruno Haible  <bruno@clisp.org>
10471
10472         dirent: Don't assume <dirent.h> exists.
10473         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10474         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10475         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10476         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10477
10478 2011-09-11  Bruno Haible  <bruno@clisp.org>
10479
10480         Fix wint_t on MSVC.
10481         * lib/wchar.in.h (wint_t): On MSVC, override it.
10482         * lib/wctype.in.h (wint_t): Likewise.
10483         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10484         MSVC.
10485         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10486         * doc/posix-headers/wctype.texi: Likewise.
10487
10488 2011-09-11  Bruno Haible  <bruno@clisp.org>
10489
10490         sys_types: Fix typo.
10491         * lib/sys_types.in.h: Fix typo in comment.
10492         Reported by Paul Eggert.
10493
10494         Support for MSVC compiler: Ensure size_t gets defined.
10495         * modules/strings (Depends-on): Add 'sys_types'.
10496         * modules/sys_uio (Depends-on): Likewise.
10497         * lib/sys_uio.in.h: Update comment.
10498
10499         C++ tests for module 'sys_types'.
10500         * modules/sys_types-c++-tests: New file.
10501         * tests/test-sys_types-c++.cc: New file.
10502
10503         Tests for module 'sys_types'.
10504         * modules/sys_types-tests: New file.
10505         * tests/test-sys_types.c: New file.
10506
10507         New module 'sys_types'.
10508         * lib/sys_types.in.h: New file.
10509         * m4/sys_types_h.m4: New file.
10510         * modules/sys_types: New file.
10511         * doc/posix-headers/sys_types.texi: Mention the new module and the
10512         size_t problem on MSVC 9.
10513
10514 2011-09-11  Bruno Haible  <bruno@clisp.org>
10515
10516         Support for MSVC compiler: Avoid division by a literal 0.
10517         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10518         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10519         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10520         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10521         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10522         * tests/infinity.h: New file.
10523         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10524         on MSVC.
10525         * tests/test-ceilf1.c: Include infinity.h.
10526         (main): Use Infinityf.
10527         * tests/test-ceil1.c: Include infinity.h.
10528         (main): Use Infinityd.
10529         * tests/test-ceill.c: Include infinity.h.
10530         (main): Use Infinityl.
10531         * tests/test-dprintf-posix.c: Include infinity.h.
10532         (test_function): Use Infinityd.
10533         * tests/test-floorf1.c: Include infinity.h.
10534         (main): Use Infinityf.
10535         * tests/test-floor1.c: Include infinity.h.
10536         (main): Use Infinityd.
10537         * tests/test-floorl.c: Include infinity.h.
10538         (main): Use Infinityl.
10539         * tests/test-fprintf-posix.c: Include infinity.h.
10540         (test_function): Use Infinityd.
10541         * tests/test-frexp.c: Include infinity.h.
10542         (main): Use Infinityd.
10543         * tests/test-frexpl.c: Include infinity.h.
10544         (main): Use Infinityl.
10545         * tests/test-isfinite.c: Include infinity.h.
10546         (test_isfinitef): Use Infinityf.
10547         (test_isfinited): Use Infinityd.
10548         (test_isfinitel): Use Infinityl.
10549         * tests/test-isinf.c: Include infinity.h.
10550         (test_isinff): Use Infinityf.
10551         (test_isinfd): Use Infinityd.
10552         (test_isinfl): Use Infinityl.
10553         * tests/test-isnan.c: Include infinity.h.
10554         (test_float): Use Infinityf.
10555         (test_double): Use Infinityd.
10556         (test_long_double): Use Infinityl.
10557         * tests/test-isnanf.h: Include infinity.h.
10558         (main): Use Infinityf.
10559         * tests/test-isnand.h: Include infinity.h.
10560         (main): Use Infinityd.
10561         * tests/test-isnanl.h: Include infinity.h.
10562         (main): Use Infinityl.
10563         * tests/test-ldexpl.c: Include infinity.h.
10564         (main): Use Infinityl.
10565         * tests/test-printf-posix.h: Include infinity.h.
10566         (test_function): Use Infinityd.
10567         * tests/test-roundf1.c: Include infinity.h.
10568         (main): Use Infinityf.
10569         * tests/test-round1.c: Include infinity.h.
10570         (main): Use Infinityd.
10571         * tests/test-roundl.c: Include infinity.h.
10572         (main): Use Infinityl.
10573         * tests/test-signbit.c: Include infinity.h.
10574         (test_signbitf): Use Infinityf.
10575         (test_signbitd): Use Infinityd.
10576         (test_signbitl): Use Infinityl.
10577         * tests/test-snprintf-posix.h: Include infinity.h.
10578         (test_function): Use Infinityd, Infinityl.
10579         * tests/test-sprintf-posix.h: Include infinity.h.
10580         (test_function): Use Infinityd, Infinityl.
10581         * tests/test-truncf1.c: Include infinity.h.
10582         (main): Use Infinityf.
10583         * tests/test-trunc1.c: Include infinity.h.
10584         (main): Use Infinityd.
10585         * tests/test-truncl.c: Include infinity.h.
10586         (main): Use Infinityl.
10587         * tests/test-vasnprintf-posix.c: Include infinity.h.
10588         (test_function): Use Infinityd, Infinityl.
10589         * tests/test-vasprintf-posix.c: Include infinity.h.
10590         (test_function): Use Infinityd, Infinityl.
10591         * modules/ceilf-tests (Files): Add tests/infinity.h.
10592         * modules/ceil-tests (Files): Likewise.
10593         * modules/ceill-tests (Files): Likewise.
10594         * modules/dprintf-posix-tests (Files): Likewise.
10595         * modules/floorf-tests (Files): Likewise.
10596         * modules/floor-tests (Files): Likewise.
10597         * modules/floorl-tests (Files): Likewise.
10598         * modules/fprintf-posix-tests (Files): Likewise.
10599         * modules/frexp-tests (Files): Likewise.
10600         * modules/frexp-nolibm-tests (Files): Likewise.
10601         * modules/frexpl-tests (Files): Likewise.
10602         * modules/frexpl-nolibm-tests (Files): Likewise.
10603         * modules/isfinite-tests (Files): Likewise.
10604         * modules/isinf-tests (Files): Likewise.
10605         * modules/isnan-tests (Files): Likewise.
10606         * modules/isnanf-tests (Files): Likewise.
10607         * modules/isnanf-nolibm-tests (Files): Likewise.
10608         * modules/isnand-tests (Files): Likewise.
10609         * modules/isnand-nolibm-tests (Files): Likewise.
10610         * modules/isnanl-tests (Files): Likewise.
10611         * modules/isnanl-nolibm-tests (Files): Likewise.
10612         * modules/ldexpl-tests (Files): Likewise.
10613         * modules/printf-posix-tests (Files): Likewise.
10614         * modules/roundf-tests (Files): Likewise.
10615         * modules/round-tests (Files): Likewise.
10616         * modules/roundl-tests (Files): Likewise.
10617         * modules/signbit-tests (Files): Likewise.
10618         * modules/snprintf-posix-tests (Files): Likewise.
10619         * modules/sprintf-posix-tests (Files): Likewise.
10620         * modules/truncf-tests (Files): Likewise.
10621         * modules/trunc-tests (Files): Likewise.
10622         * modules/truncl-tests (Files): Likewise.
10623         * modules/vasnprintf-posix-tests (Files): Likewise.
10624         * modules/vasprintf-posix-tests (Files): Likewise.
10625         * modules/vdprintf-posix-tests (Files): Likewise.
10626         * modules/vfprintf-posix-tests (Files): Likewise.
10627         * modules/vprintf-posix-tests (Files): Likewise.
10628         * modules/vsnprintf-posix-tests (Files): Likewise.
10629         * modules/vsprintf-posix-tests (Files): Likewise.
10630         * modules/xprintf-posix-tests (Files): Likewise.
10631
10632 2011-09-11  Bruno Haible  <bruno@clisp.org>
10633
10634         Ensure pid_t gets defined.
10635         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10636         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10637         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10638         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10639         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10640         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10641         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10642         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10643         * tests/test-fcntl-h.c: Check that pid_t is defined.
10644         * tests/test-sched.c: Likewise.
10645         * tests/test-termios.c: Likewise.
10646         * tests/test-time.c: Likewise.
10647         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10648         * doc/posix-headers/signal.texi: Likewise.
10649         * doc/posix-headers/sys_types.texi: Likewise.
10650         * doc/posix-headers/time.texi: Likewise.
10651
10652 2011-09-11  Bruno Haible  <bruno@clisp.org>
10653
10654         acl: Fix compilation on Solaris 10 (older version).
10655         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10656         of ACE_EVERYONE.
10657         * lib/set-mode-acl.c (qset_acl): Likewise.
10658         Reported by Christian Jullien <eligis@orange.fr>.
10659
10660 2011-09-10  Bruno Haible  <bruno@clisp.org>
10661
10662         iconv, unsetenv: Add support for MSVC compiler.
10663         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10664         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10665
10666 2011-09-10  Bruno Haible  <bruno@clisp.org>
10667
10668         *printf: Add support for MSVC compiler.
10669         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10670         handles the exception caused by the %n directive. When cross-compiling,
10671         guess no on native Windows.
10672         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10673         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10674         emulate it through vsnprintf.
10675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10676         * doc/posix-functions/dprintf.texi: Update documentation regarding
10677         MSVC 9.
10678         * doc/posix-functions/fprintf.texi: Likewise.
10679         * doc/posix-functions/printf.texi: Likewise.
10680         * doc/posix-functions/snprintf.texi: Likewise.
10681         * doc/posix-functions/sprintf.texi: Likewise.
10682         * doc/posix-functions/swprintf.texi: Likewise.
10683         * doc/posix-functions/vdprintf.texi: Likewise.
10684         * doc/posix-functions/vfprintf.texi: Likewise.
10685         * doc/posix-functions/vprintf.texi: Likewise.
10686         * doc/posix-functions/vsnprintf.texi: Likewise.
10687         * doc/posix-functions/vsprintf.texi: Likewise.
10688         * doc/glibc-functions/asprintf.texi: Likewise.
10689         * doc/glibc-functions/obstack_printf.texi: Likewise.
10690         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10691         * doc/glibc-functions/vasprintf.texi: Likewise.
10692
10693 2011-09-10  Bruno Haible  <bruno@clisp.org>
10694
10695         nocrash: Add support for native Windows.
10696         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10697
10698 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10699             Bruno Haible  <bruno@clisp.org>
10700
10701         absolute-header, include-next: Add support for MSVC compiler.
10702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10703         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10704         directory separator in #line directives.
10705         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10706         recognize also backslash as directory separator in #line directives.
10707
10708 2011-09-08  Jim Meyering  <meyering@redhat.com>
10709
10710         maint.mk: mark the post-release commit log with "maint: " prefix
10711         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10712         one-line commit-log summary.
10713
10714 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10715             Bruno Haible  <bruno@clisp.org>
10716
10717         Doc about crypt functions.
10718         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10719         systems.
10720         * doc/posix-functions/encrypt.texi: Likewise.
10721         * doc/posix-functions/setkey.texi: Likewise.
10722
10723 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10724
10725         * lib/gc.h: Fix copyright header.
10726
10727 2011-09-07  Bruno Haible  <bruno@clisp.org>
10728
10729         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10730         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10731         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10732
10733 2011-09-07  Bruno Haible  <bruno@clisp.org>
10734
10735         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10736         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10737         * lib/freopen.c: Likewise.
10738         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10739         * lib/lstat.c: Likewise.
10740         * lib/stat.c: Likewise.
10741         * lib/open.c: Use different syntax for include of <fcntl.h>.
10742         * lib/openat.c: Include fcntl.h again, explicitly.
10743
10744 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10745
10746         parse-datetime: document the newly accepted format
10747         * doc/parse-datetime.texi (Combined date and time of day items):
10748         New section.
10749
10750 2011-09-06  Bruno Haible  <bruno@clisp.org>
10751
10752         acl: Fix a test failure on newer Solaris 10 with ZFS.
10753         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10754         ENOSYS as no ACL.
10755         Reported by Jim Meyering.
10756
10757 2011-09-06  Bruno Haible  <bruno@clisp.org>
10758
10759         acl: Update for AIX >= 5.3 with NFS.
10760         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10761         ENOSYS as no ACL.
10762
10763         acl: Fix a test failure on AIX >= 5.3 with NFS.
10764         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10765         as no ACL.
10766
10767 2011-09-06  Bruno Haible  <bruno@clisp.org>
10768
10769         acl: Fix a test failure on IRIX 6.5 with NFS.
10770         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10771         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10772         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10773         * lib/copy-acl.c (qcopy_acl): Likewise.
10774
10775 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10776
10777         openat: port to AIX 7.1 with large files
10778         AIX 7.1 does a "#define openat open64at" if large files are in use,
10779         so we can't simply #undef openat.  Use the orig_openat trick (similar
10780         to orig_open in lib/open.c) to work around the problem.  Problem
10781         reported by Kevin Brott for GNU tar, in the thread containing
10782         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10783         * lib/openat.c (__need_system_fcntl_h): Define first.
10784         Include <fcntl.h> and <sys/types.h> before undefining.
10785         (orig_openat) [HAVE_OPENAT]: New inline function.
10786         (openat) [HAVE_OPENAT]: Do not undef.
10787         (rpl_openat): Use orig_openat, not openat.
10788
10789 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10790             Bruno Haible  <bruno@clisp.org>
10791
10792         acl: Avoid errors on NonStop Kernel.
10793         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10794         ENOTSUP errors.
10795
10796 2011-09-05  Bruno Haible  <bruno@clisp.org>
10797
10798         acl: Clean up Solaris code.
10799         * lib/acl-internal.h: Remove no-op #if.
10800         * lib/file-has-acl.c: Likewise.
10801         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10802         * lib/copy-acl.c (qcopy_acl): Likewise.
10803
10804 2011-09-05  Bruno Haible  <bruno@clisp.org>
10805
10806         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10807         binaries built on the original Solaris 10.
10808         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10809         trivial.
10810
10811 2011-09-05  Bruno Haible  <bruno@clisp.org>
10812
10813         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10814         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10815         10.
10816         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10817         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10818         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10819         instead of acl_get, facl_get, acl_set, facl_set.
10820
10821 2011-09-05  Bruno Haible  <bruno@clisp.org>
10822
10823         copy-file: Try unit tests on more file systems.
10824         * tests/test-copy-file-1.sh: New file.
10825         * tests/test-copy-file-2.sh: New file.
10826         * modules/copy-file-tests (Files): Add them.
10827         (Makefile.am): Add them to TESTS.
10828
10829         acl: Try unit tests on more file systems.
10830         * tests/test-file-has-acl-1.sh: New file.
10831         * tests/test-file-has-acl-2.sh: New file.
10832         * tests/test-set-mode-acl-1.sh: New file.
10833         * tests/test-set-mode-acl-2.sh: New file.
10834         * tests/test-copy-acl-1.sh: New file.
10835         * tests/test-copy-acl-2.sh: New file.
10836         * modules/acl-tests (Files): Add them.
10837         (Makefile.am): Add them to TESTS.
10838
10839 2011-09-04  Bruno Haible  <bruno@clisp.org>
10840
10841         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10842         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10843         10.
10844         (OLD_ALLOW, OLD_DENY): New macros.
10845         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10846         ACE_ACCESS_ALLOWED_ACE_TYPE.
10847         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10848         ACE_ACCESS_DENIED_ACE_TYPE.
10849         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10850         (NEW_ACE_EXECUTE): Fix value.
10851         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10852         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10853         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10854         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10855         NEW_ACE_SYNCHRONIZE): New macros.
10856         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10857         instead of acl_fromtext, acl_set, facl_set.
10858         Fixes a coreutils/tests/cp/perm failure.
10859
10860 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10861
10862         openat: test for fstatat (..., 0) bug
10863         Further testing with tar suggests that fstatat (..., 0)
10864         does not work in general, on AIX 7.1; see
10865         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10866         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10867         replacement fstatat (which is what older AIX releases were using
10868         anyway).
10869         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10870         use is now changed to orig_fstatat.  This was probably the right
10871         thing to do anyway.
10872         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10873         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10874         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10875         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10876         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10877         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10878         if the bug is found.
10879
10880         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10881         This tests for another fstatat bug on AIX 7.1:
10882         fstatat (AT_FDCWD, ..., 0) does not work.  See
10883         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10884         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10885         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10886         (rpl_fstatat): Adjust so that it works around either (or both)
10887         bugs if present.
10888         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10889
10890 2011-09-03  Karl Berry  <karl@gnu.org>
10891
10892         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10893         in index entries.
10894
10895 2011-09-02  Bruno Haible  <bruno@clisp.org>
10896
10897         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10898         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10899         values of AR, ARFLAGS, RANLIB.
10900         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10901
10902 2011-09-02  Bruno Haible  <bruno@clisp.org>
10903
10904         Find 'ar' program that fits with --host argument.
10905         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10906
10907 2011-09-02  Bruno Haible  <bruno@clisp.org>
10908
10909         tests: init.sh: Support any non-GNU diff.
10910         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10911         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10912         Solaris 8.
10913
10914 2011-09-02  Bruno Haible  <bruno@clisp.org>
10915
10916         tests: init.sh: work also with any non-GNU diff that supports -u
10917         * tests/init.sh: Relax check for diff -u support.
10918         Rather than checking for GNU diff via --version, simply check
10919         for support for -u itself.  Useful at least on OpenBSD 4.9,
10920         AIX 7.1, IRIX 6.5, and Solaris 10.
10921
10922 2011-09-01  Bruno Haible  <bruno@clisp.org>
10923
10924         strtoimax, strtoumax: Document problem on HP-UX 11.
10925         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10926         * doc/posix-functions/strtoumax.texi: Likewise.
10927
10928 2011-09-01  Bruno Haible  <bruno@clisp.org>
10929
10930         strtoumax: Avoid link error on OSF/1 with DTK cc.
10931         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10932         defined as a function.
10933         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10934         strtoumax is defined, not whether it is declared.
10935
10936 2011-09-01  Bruno Haible  <bruno@clisp.org>
10937
10938         strtoimax: Avoid link error on OSF/1 with DTK cc.
10939         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10940         defined as a function.
10941         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10942         strtoimax is defined, not whether it is declared.
10943
10944 2011-09-01  Bruno Haible  <bruno@clisp.org>
10945
10946         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10947         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10948         as a function.
10949         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10950         whether it is declared.
10951
10952 2011-09-01  Bruno Haible  <bruno@clisp.org>
10953
10954         imaxabs: Avoid link error on OSF/1 with DTK cc.
10955         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10956         as a function.
10957         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10958         whether it is declared.
10959
10960 2011-09-01  Bruno Haible  <bruno@clisp.org>
10961
10962         Tests for module 'strtoumax'.
10963         * modules/strtoumax-tests: New file.
10964         * tests/test-strtoumax.c: New file.
10965
10966         Tests for module 'strtoimax'.
10967         * modules/strtoimax-tests: New file.
10968         * tests/test-strtoimax.c: New file.
10969
10970         Tests for module 'imaxdiv'.
10971         * modules/imaxdiv-tests: New file.
10972         * tests/test-imaxdiv.c: New file.
10973
10974         Tests for module 'imaxabs'.
10975         * modules/imaxabs-tests: New file.
10976         * tests/test-imaxabs.c: New file.
10977
10978 2011-09-01  Bruno Haible  <bruno@clisp.org>
10979
10980         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10981         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10982         pthread_create.
10983
10984 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10985
10986         openat: work around AIX 7.1 fstatat issue
10987         This should fix the problem that was not properly fixed
10988         in the previous change, dated 2011-08-30.
10989         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10990         __need_system_stat_h defined.
10991         (orig_fstatat) [HAVE_FSTATAT]: New function.
10992         (rpl_fstatat): Go back to the old way of doing things,
10993         except call orig_fstatat instead of fstatat.
10994         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10995         Remove unnecessary check whether fstatat fills in st_size etc.
10996
10997 2011-09-01  Bruno Haible  <bruno@clisp.org>
10998
10999         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11000         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11001         just include the system's header.
11002
11003 2011-08-31  Jim Meyering  <meyering@redhat.com>
11004
11005         tests: avoid spurious assertion failure in test-float.c on ppc64
11006         * tests/test-float.c (test_long_double): Comment out an assertion,
11007         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11008         with gcc-4.4.4.
11009
11010         maint: indent with spaces, not TABs
11011         I need to get in the habit of running gnulib's "make check".
11012         Both of these would have been caught.
11013         * m4/largefile.m4: Indent with spaces, not TABs.
11014         * lib/parse-datetime.y (iso_8601_time): Likewise.
11015         Spotted by Pádraig Brady.
11016
11017         test-parse-datetime.c: accommodate a relatively strict gcc warning
11018         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11019         to avoid a warning from gcc's -Werror=missing-declarations.
11020         Insert a few spaces-before-funcall-parenthesis.
11021
11022 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11023
11024         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11025         The parser now accepts ISO 8601 date-time strings with "T" as the
11026         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11027         with a space between the date and time strings.  Now it also parses
11028         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11029         variants like "2004-02-29T16:21:42.333-07:00"
11030         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11031         of day representation using the 'T' separator character.
11032         * doc/parse-datetime.texi (General date syntax): replace use of
11033         deprecated --iso-8601 option with --rfc-3339 in example of date
11034         command output formats that can be parsed.
11035         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11036         lib/parse-datetime.y.
11037         (gmt_offset): New function.
11038         (main): Add additional test cases to validate ISO8601 extended
11039         date and time of day parsing.
11040
11041 2011-08-31  Bruno Haible  <bruno@clisp.org>
11042
11043         freopen: Documentation.
11044         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11045         name.
11046         Reported by Claudio Bley <claudio.bley@gmail.com>.
11047
11048 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11049
11050         freopen: Don't crash if the filename argument is NULL.
11051         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11052         NULL.
11053
11054 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11055
11056         openat: work around AIX 7.1 fstatat bug
11057         Problem reported by Kevin Brott for GNU tar, in the thread containing
11058         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11059         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11060         FSTATAT_ST_SIZE_ETC_BROKEN.
11061         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11062         rpl_fstatat.
11063         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11064         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11065         AC_CHECK_FUNCS_ONCE for fstatat.
11066         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11067         fchmodat, mkdirat, openat and unlinkat.
11068
11069 2011-08-30  Bruno Haible  <bruno@clisp.org>
11070
11071         Avoid endless recursions if config.h includes some header files.
11072         * lib/fopen.c (__need_FILE): Define already before including config.h.
11073         * lib/freopen.c (__need_FILE): Likewise.
11074         * lib/open.c (__need_system_fcntl_h): Likewise.
11075         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11076         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11077         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11078
11079 2011-08-25  Karl Berry  <karl@gnu.org>
11080
11081         * config/srclist.txt (ylwrap): new try.
11082         * build-aux/ylwrap: new file.
11083
11084 2011-08-23  Bruno Haible  <bruno@clisp.org>
11085
11086         tmpdir: Use a good default directory on native Windows.
11087         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11088         (P_tmpdir): Default to _P_tmpdir on native Windows.
11089         (path_search): On native Windows, try the value returned by GetTempPath
11090         before trying P_tmpdir.
11091         * modules/tmpdir (Depends-on): Add pathmax.
11092         Suggested by John Darrington <john@darrington.wattle.id.au>.
11093
11094 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11095
11096         doc: fix typo in README-release
11097         * top/README-release: Capitalize first word of a sentence.
11098
11099 2011-08-19  Jim Meyering  <meyering@redhat.com>
11100
11101         fts: do not exhaust memory when processing million-entry directories
11102         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11103         directory would require about 256*N bytes of memory.  Thus, it was
11104         easy to construct a directory too large to be processed by any of
11105         those tools.  With this change, fts' maximum memory utilization is
11106         now limited to around 30MB.
11107         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11108         (fts_read): When we've processed the final entry (i.e., when
11109         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11110         using the parent entry to read any remaining entries.  Dispatch
11111         depending on what fts_build returns:
11112         - NULL+stop, aka failure: stop
11113         - NULL otherwise: move up in the dir hierarchy
11114         - non-NULL: handle this new entry
11115         (fts_build): Declare and use new local, continue_readdir.
11116         Prepare to be called from fts_read, when the entries
11117         from a partially-read directory have just been exhausted.
11118         In that case, we'll skip the opendir and instead use the parent's
11119         fts_dirp and derive dir_fd from that.
11120         Finally, in the readdir loop, if we read max_entries entries,
11121         exit the loop ensuring *not* to call closedir.  This is required
11122         so that fts_dirp can be reused on a subsequent call.
11123         Prompted by Ben England's report of memory exhaustion in find
11124         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11125
11126         maint: fts: move decl of `dp' down into while loop; split a long line
11127         * lib/fts.c (fts_build): No semantic change.
11128
11129         fts: add/use new struct member, fts_dirp
11130         We are about to use this to manage any directory with
11131         too many entries to read all of them into memory at once.
11132         To do that, we'll need to save the DIR* pointer in each
11133         affected FTSENT struct.
11134         * lib/fts_.h: Include <dirent.h>.
11135         (struct FTSENT) [fts_dirp]: New member.
11136         * lib/fts.c (closedir_and_clear): Define.
11137         Use it in place of closedir so that we are sure to
11138         clear the new fts_dirp member when done with it.
11139         (fts_alloc): Initialize the new member.
11140         (fts_lfree): Free, if needed.
11141
11142         maint: fts: give __opendir2 a new parameter and rename
11143         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11144         than surreptitiously using sole caller's "dir_fd".
11145         (fts_opendir): Rename from __opendir2.
11146
11147         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11148         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11149
11150         maint: fts.c: correct off-by-one indentation
11151         * lib/fts.c (fts_build): Correct indentation, change style
11152         of a couple of block comments, and bracing style.
11153
11154         maint: fts.c: move __opendir2 #define "up" out of function body
11155         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11156
11157         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11158         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11159         out for a long time and besides was useful only on BSD systems.
11160
11161 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11162
11163         regex: port to Stratus OpenVOS
11164         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11165         define to empty, rather than attempting nonportable optimizations.
11166         Problem reported by Paul Green in:
11167         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11168         and fix suggested by Eric Blake in:
11169         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11170
11171 2011-08-17  Eric Blake  <eblake@redhat.com>
11172
11173         getcwd: fix test failures on mingw
11174         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11175         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11176         test if long directory cannot be created, and allow mingw errno.
11177
11178         getcwd-lgpl: fix m4 to match relaxed test for BSD
11179         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11180         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11181         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11182         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11183         signature problem.
11184
11185         getcwd: fix compilation on mingw64
11186         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11187         getcwd.
11188         Reported by Marc-André Lureau.
11189
11190         pipe2: silence compiler warning
11191         * lib/pipe2.c (pipe2): Hide label if it is not used.
11192
11193 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11194
11195         relocatable-prog: fix link error
11196         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11197         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11198         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11199         into modules/relocatable-lib without noticing that
11200         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11201         also needs to build relocatable.c.
11202
11203 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11204
11205         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11207         shell code: it contained a 'break' that was not in a loop.
11208         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11209         via a shell-language loop; this may have been true in old Autoconf
11210         versions, but it's not true in Autoconf 2.68.  I found this bug
11211         when testing coreutils git on Solaris 8, whose shell complains
11212         about the syntax error.
11213
11214 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11215
11216         * lib/base64.c: Fix comment to reference RFC 4648.
11217         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11218         <gvtulder@gmail.com>.
11219
11220 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11221
11222         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11223
11224         po/Makefile.in.in: fix make -q problem
11225         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11226         rule, since there's no file named 'check-macro-version' and its
11227         use as a file breaks make -q.
11228         (all): Don't depend on check-macro-version.
11229         (CHECK_MACRO_VERSION): New macro.
11230         (stamp-po): Use it.
11231
11232         configmake: fix make -q problem
11233         * modules/configmake (configmake.h): Update configmake.h's time stamp
11234         even if the file does not change.  Otherwise, 'make -q' fails.
11235         Problem reported by Simon Josefsson in
11236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11237
11238 2011-08-11  Jim Meyering  <meyering@redhat.com>
11239
11240         git-version-gen: correct the advice in a comment
11241         * build-aux/git-version-gen: Correct comment.
11242         Don't recommend to list .tarball-version in .gitignore.
11243
11244 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11245
11246         base64: fix off-by-one buffer size bug
11247         Problem and (trivial) fix reported by Gijs van Tulder in
11248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11249         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11250         * tests/test-base64.c (main): Catch the bug.
11251
11252 2011-08-10  Eric Blake  <eblake@redhat.com>
11253
11254         closein: correct comments
11255         * lib/closein.c (close_stdin): Improve comments.
11256
11257 2011-08-09  Bruno Haible  <bruno@clisp.org>
11258
11259         More tests for 'fseeko'.
11260         * tests/test-fseeko3.c: New file, from Eric Blake.
11261         * tests/test-fseeko3.sh: New file.
11262         * modules/fseeko-tests (Files): Add them.
11263         (TESTS): Add test-fseeko3.sh.
11264         (check_PROGRAMS): Add test-fseeko3.
11265
11266 2011-08-09  Eric Blake  <eblake@redhat.com>
11267
11268         fseeko: remove unneeded hack
11269         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11270
11271         fseeko: fix bug on glibc
11272         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11273         Reported by John W. Eaton.
11274
11275 2011-08-08  Bruno Haible  <bruno@clisp.org>
11276
11277         unictype/base: Fix interoperability with preinstalled libunistring.
11278         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11279         Reported by Simon Josefsson.
11280
11281 2011-08-08  Bruno Haible  <bruno@clisp.org>
11282
11283         iswblank: Detect declaration correctly.
11284         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11285         AC_CHECK_DECLS invocation.
11286
11287 2011-08-08  Bruno Haible  <bruno@clisp.org>
11288
11289         tcgetsid: Detect declaration correctly.
11290         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11291         AC_CHECK_DECLS invocation.
11292         Reported by Simon Josefsson.
11293
11294 2011-08-08  Eric Blake  <eblake@redhat.com>
11295
11296         largefile: fix typo that regressed large file support
11297         * modules/largefile (configure.ac-early): Fix section name.
11298
11299 2011-08-06  Karl Berry  <karl@gnu.org>
11300
11301         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11302         a separate module.
11303
11304 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11305
11306         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11307         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11308         get prototype for free.
11309
11310 2011-08-04  Bruno Haible  <bruno@clisp.org>
11311
11312         Tests for module 'pathmax'.
11313         * modules/pathmax-tests: New file.
11314         * tests/test-pathmax.c: New file.
11315
11316         canonicalize-lgpl: Support larger filenames on the Hurd.
11317         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11318         Reported by Paul Eggert.
11319
11320         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11321         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11322         * lib/chdir-long.h: Include pathmax.h.
11323         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11324         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11325         (PATH_MAX): Remove code that is done by pathmax.h.
11326         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11327         * lib/tmpfile.c: Add a comment.
11328         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11329         * modules/chdir-long (Depends-on): Add pathmax.
11330         * modules/getcwd (Depends-on): Add pathmax.
11331         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11332         is not defined.
11333         * doc/posix-headers/limits.texi: Mention the pathmax module.
11334         * NEWS: Mention the change.
11335
11336 2011-08-02  Bruno Haible  <bruno@clisp.org>
11337
11338         pthread_sigmask: Actually use results of gl_THREADLIB.
11339         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11340         gl_THREADLIB, not gl_[]THREADLIB.
11341         Reported by Eric Blake.
11342
11343 2011-08-02  Jim Meyering  <meyering@redhat.com>
11344
11345         maint.mk: relax the default _gl_TS_function_match regexp
11346         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11347         space between function name and "(" in an "extern" declaration.
11348         That would fail to match a decl with no space there: extern void foo();
11349
11350 2011-07-31  Iain Nicol  <iain@thenicols.net>
11351
11352         git-version-gen: document that EXTRA_DIST must include .version
11353         * build-aux/git-version-gen: In the how-to-use comment, document
11354         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11355         will fail when run from an unpacked distribution tarball.
11356
11357 2011-08-01  Bruno Haible  <bruno@clisp.org>
11358
11359         wctype-h: Fix last change.
11360         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11361         REPLACE_TOWLOWER to 0.
11362         Reported by Sam Steingold <sds@gnu.org>.
11363
11364 2011-07-31  Bruno Haible  <bruno@clisp.org>
11365
11366         frexpl: Update autoconf test.
11367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11368         according to changes of 2011-06-20.
11369
11370 2011-07-31  Bruno Haible  <bruno@clisp.org>
11371
11372         sys_utsname: Add support for Minix.
11373         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11374         <sys/utsname.h>.
11375         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11376         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11377
11378 2011-07-31  Bruno Haible  <bruno@clisp.org>
11379
11380         strings: Add support for Minix.
11381         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11382         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11383         * doc/posix-headers/strings.texi: Document the Minix problem.
11384
11385 2011-07-31  Bruno Haible  <bruno@clisp.org>
11386
11387         wctype-h: Add support for Minix.
11388         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11389         REPLACE_TOWLOWER.
11390         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11391         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11392         REPLACE_ISWCNTRL.
11393
11394 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11395
11396         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11397         This is a performance improvement for 64-bit hosts: it causes the
11398         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11399
11400 2011-07-31  Bruno Haible  <bruno@clisp.org>
11401
11402         stdioext: Add support for Minix.
11403         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11404         * lib/fpurge.c (fpurge): Likewise.
11405         * lib/freadahead.c (freadahead): Likewise.
11406         * lib/freadable.c (freadable): Likewise.
11407         * lib/freading.c (freading): Likewise.
11408         * lib/freadptr.c (freadptr): Likewise.
11409         * lib/freadseek.c (freadptrinc): Likewise.
11410         * lib/fseeko.c (rpl_fseeko): Likewise.
11411         * lib/fseterr.c (fseterr): Likewise.
11412         * lib/fwritable.c (fwritable): Likewise.
11413         * lib/fwriting.c (fwriting): Likewise.
11414         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11415         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11416
11417 2011-07-31  Bruno Haible  <bruno@clisp.org>
11418
11419         errno: Port to Minix.
11420         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11421         ECONNABORTED are defined.
11422         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11423         GNULIB_defined_ECONNABORTED): New macros.
11424         * lib/strerror-override.h (strerror_override): Test also
11425         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11426         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11427         ECONNABORTED.
11428         * doc/posix-headers/errno.texi: Mention the Minix problem.
11429
11430 2011-07-31  Bruno Haible  <bruno@clisp.org>
11431
11432         Work around declaration collisions on Minix.
11433         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11434         defined, set REPLACE_MBSINIT.
11435         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11436         defined, set REPLACE_MBRTOWC.
11437         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11438         set REPLACE_MBRLEN.
11439         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11440         defined, set REPLACE_MBSRTOWCS.
11441         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11442         defined, set REPLACE_WCRTOMB.
11443         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11444         defined, set REPLACE_WCSRTOMBS.
11445
11446 2011-07-31  Bruno Haible  <bruno@clisp.org>
11447
11448         Add support for Minix with ACK compiler.
11449         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11450         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11451         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11452
11453 2011-07-31  Bruno Haible  <bruno@clisp.org>
11454
11455         Documentation about Minix.
11456         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11457         * doc/glibc-headers/*.texi: Likewise.
11458         * doc/posix-functions/*.texi: Likewise.
11459         * doc/glibc-functions/*.texi: Likewise.
11460
11461 2011-07-31  Bruno Haible  <bruno@clisp.org>
11462
11463         snippet/warn-on-use: Fix indentation.
11464         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11465
11466 2011-07-25  Jim Meyering  <meyering@redhat.com>
11467
11468         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11469         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11470         commands.
11471
11472 2011-07-27  Jim Meyering  <meyering@redhat.com>
11473
11474         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11475         * top/maint.mk (gl_extract_significant_defines_): Now that
11476         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11477         gnulib/lib/signal.in.h, and now that we recommend to
11478         define-if-undefined those two symbols in application code,
11479         we must filter them out of the "significant" list.
11480         This avoids a "make syntax-check" failure in coreutils.
11481
11482 2011-07-26  Eric Blake  <eblake@redhat.com>
11483
11484         warnings: add comments about previous patch
11485         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11486         * m4/include_next.m4: Likewise.
11487         * m4/warn-on-use.m4: Likewise.
11488         * m4/warnings.m4: Likewise, and simplify use.
11489         Suggested by Stefano Lattarini.
11490
11491         include-next, warnings: support older autoconf
11492         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11493         AS_VAR_PUSHDEF in a way that works with older autoconf.
11494         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11495         Reported by Daniel P. Berrange.
11496
11497 2011-07-25  Bruno Haible  <bruno@clisp.org>
11498
11499         fseek, ftell: Fix doc.
11500         * doc/posix-functions/fseek.texi: Reword statement about
11501         AC_SYS_LARGEFILE.
11502         * doc/posix-functions/ftell.texi: Likewise.
11503
11504 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11505             Bruno Haible  <bruno@clisp.org>
11506
11507         Add dependencies to the 'largefile' module.
11508         * modules/fopen (Depends-on): Add 'largefile'.
11509         * modules/freopen (Depends-on): Likewise.
11510         * modules/fseeko (Depends-on): Likewise.
11511         * modules/ftello (Depends-on): Likewise.
11512         * modules/glob (Depends-on): Likewise.
11513         * modules/lseek (Depends-on): Likewise.
11514         * modules/lstat (Depends-on): Likewise.
11515         * modules/mkostemp (Depends-on): Likewise.
11516         * modules/mkostemps (Depends-on): Likewise.
11517         * modules/mkstemp (Depends-on): Likewise.
11518         * modules/mkstemps (Depends-on): Likewise.
11519         * modules/open (Depends-on): Likewise.
11520         * modules/openat (Depends-on): Likewise.
11521         * modules/pread (Depends-on): Likewise.
11522         * modules/pwrite (Depends-on): Likewise.
11523         * modules/scandir (Depends-on): Likewise.
11524         * modules/stat (Depends-on): Likewise.
11525         * modules/tmpfile (Depends-on): Likewise.
11526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11527         since the containing module now depends on the largefile module.
11528         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11529         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11530         off_t is fixed by gnulib.
11531         * doc/posix-functions/freopen.texi: Likewise.
11532         * doc/posix-functions/fseeko.texi: Likewise.
11533         * doc/posix-functions/fstatat.texi: Likewise.
11534         * doc/posix-functions/ftello.texi: Likewise.
11535         * doc/posix-functions/glob.texi: Likewise.
11536         * doc/posix-functions/lseek.texi: Likewise.
11537         * doc/posix-functions/lstat.texi: Likewise.
11538         * doc/posix-functions/mkstemp.texi: Likewise.
11539         * doc/posix-functions/open.texi: Likewise.
11540         * doc/posix-functions/openat.texi: Likewise.
11541         * doc/posix-functions/pread.texi: Likewise.
11542         * doc/posix-functions/pwrite.texi: Likewise.
11543         * doc/posix-functions/scandir.texi: Likewise.
11544         * doc/posix-functions/stat.texi: Likewise.
11545         * doc/posix-functions/tmpfile.texi: Likewise.
11546         * doc/glibc-functions/mkostemp.texi: Likewise.
11547         * doc/glibc-functions/mkostemps.texi: Likewise.
11548         * doc/glibc-functions/mkstemps.texi: Likewise.
11549
11550 2011-07-25  Bruno Haible  <bruno@clisp.org>
11551
11552         fcntl: Move AC_LIBOBJ invocation to module description.
11553         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11554         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11555
11556         fcntl: Remove call-in from fchdir.m4.
11557         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11559
11560         dup3: Remove potential call-in from fchdir.m4.
11561         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11563
11564         dup2: Move AC_LIBOBJ invocation to module description.
11565         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11566         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11567         Don't invoke AC_LIBOBJ.
11568         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11569
11570         dup2: Remove call-in from fchdir.m4.
11571         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11573
11574         fclose: Move AC_LIBOBJ invocation to module description.
11575         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11576         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11577         to 1.
11578         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11579
11580         fclose: Remove call-in from close.m4.
11581         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11582         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11583
11584         close: Move AC_LIBOBJ invocation to module description.
11585         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11586         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11587         1.
11588         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11589
11590         close: Remove call-in from fchdir.m4.
11591         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11593
11594         open: Move AC_LIBOBJ invocation to module description.
11595         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11596         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11597         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11598
11599         open: Remove call-in from fchdir.m4.
11600         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11602
11603         fchdir: Start to remove gl_REPLACE_* idiom.
11604         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11605         (gl_FUNC_FCHDIR): Invoke it.
11606
11607 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11608
11609         * lib/ftell.c (ftell): Comment out cast.
11610
11611         close: use gl_REPLACE_FCLOSE only if defined
11612         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11613         is defined.  The close module doesn't depend on the fclose module
11614         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11616         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11617
11618 2011-07-24  Jim Meyering  <meyering@redhat.com>
11619
11620         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11621         * tests/test-select.h (test_function): Declare as "static".
11622
11623 2011-07-24  Bruno Haible  <bruno@clisp.org>
11624
11625         doc: Mention the effects of AC_SYS_LARGEFILE.
11626         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11627         on this function.
11628         * doc/posix-functions/aio_error.texi: Likewise.
11629         * doc/posix-functions/aio_fsync.texi: Likewise.
11630         * doc/posix-functions/aio_read.texi: Likewise.
11631         * doc/posix-functions/aio_return.texi: Likewise.
11632         * doc/posix-functions/aio_suspend.texi: Likewise.
11633         * doc/posix-functions/aio_write.texi: Likewise.
11634         * doc/posix-functions/fgetpos.texi: Likewise.
11635         * doc/posix-functions/fopen.texi: Likewise.
11636         * doc/posix-functions/freopen.texi: Likewise.
11637         * doc/posix-functions/fsetpos.texi: Likewise.
11638         * doc/posix-functions/fstatvfs.texi: Likewise.
11639         * doc/posix-functions/ftruncate.texi: Likewise.
11640         * doc/posix-functions/ftw.texi: Likewise.
11641         * doc/posix-functions/getrlimit.texi: Likewise.
11642         * doc/posix-functions/glob.texi: Likewise.
11643         * doc/posix-functions/lio_listio.texi: Likewise.
11644         * doc/posix-functions/lockf.texi: Likewise.
11645         * doc/posix-functions/mkstemp.texi: Likewise.
11646         * doc/posix-functions/mmap.texi: Likewise.
11647         * doc/posix-functions/nftw.texi: Likewise.
11648         * doc/posix-functions/openat.texi: Likewise.
11649         * doc/posix-functions/opendir.texi: Likewise.
11650         * doc/posix-functions/posix_fadvise.texi: Likewise.
11651         * doc/posix-functions/posix_fallocate.texi: Likewise.
11652         * doc/posix-functions/pread.texi: Likewise.
11653         * doc/posix-functions/pwrite.texi: Likewise.
11654         * doc/posix-functions/readdir.texi: Likewise.
11655         * doc/posix-functions/readdir_r.texi: Likewise.
11656         * doc/posix-functions/rewinddir.texi: Likewise.
11657         * doc/posix-functions/scandir.texi: Likewise.
11658         * doc/posix-functions/seekdir.texi: Likewise.
11659         * doc/posix-functions/setrlimit.texi: Likewise.
11660         * doc/posix-functions/statvfs.texi: Likewise.
11661         * doc/posix-functions/telldir.texi: Likewise.
11662         * doc/posix-functions/tmpfile.texi: Likewise.
11663         * doc/posix-functions/truncate.texi: Likewise.
11664         * doc/glibc-functions/fallocate.texi: Likewise.
11665         * doc/glibc-functions/fstatfs.texi: Likewise.
11666         * doc/glibc-functions/fts_children.texi: Likewise.
11667         * doc/glibc-functions/fts_read.texi: Likewise.
11668         * doc/glibc-functions/getdirentries.texi: Likewise.
11669         * doc/glibc-functions/mkostemp.texi: Likewise.
11670         * doc/glibc-functions/mkostemps.texi: Likewise.
11671         * doc/glibc-functions/mkstemps.texi: Likewise.
11672         * doc/glibc-functions/preadv.texi: Likewise.
11673         * doc/glibc-functions/pwritev.texi: Likewise.
11674         * doc/glibc-functions/sendfile.texi: Likewise.
11675         * doc/glibc-functions/statfs.texi: Likewise.
11676
11677 2011-07-24  Bruno Haible  <bruno@clisp.org>
11678
11679         doc: Fix typo.
11680         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11681
11682 2011-07-24  Bruno Haible  <bruno@clisp.org>
11683
11684         doc: Mention fsusage.
11685         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11686
11687 2011-07-24  Bruno Haible  <bruno@clisp.org>
11688
11689         doc: Mention new glibc headers and functions.
11690         * doc/glibc-headers/gshadow.texi: New file.
11691         * doc/glibc-functions/endsgent.texi: New file.
11692         * doc/glibc-functions/fgetsgent.texi: New file.
11693         * doc/glibc-functions/fgetsgent_r.texi: New file.
11694         * doc/glibc-functions/getsgent.texi: New file.
11695         * doc/glibc-functions/getsgent_r.texi: New file.
11696         * doc/glibc-functions/getsgnam.texi: New file.
11697         * doc/glibc-functions/getsgnam_r.texi: New file.
11698         * doc/glibc-functions/putsgent.texi: New file.
11699         * doc/glibc-functions/setsgent.texi: New file.
11700         * doc/glibc-functions/sgetsgent.texi: New file.
11701         * doc/glibc-functions/sgetsgent_r.texi: New file.
11702         * doc/glibc-functions/malloc_info.texi: New file.
11703         * doc/glibc-functions/preadv.texi: New file.
11704         * doc/glibc-functions/pwritev.texi: New file.
11705         * doc/glibc-functions/register_printf_modifier.texi: New file.
11706         * doc/glibc-functions/register_printf_specifier.texi: New file.
11707         * doc/glibc-functions/register_printf_type.texi: New file.
11708         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11709         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11710         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11711         * doc/glibc-functions/pthread_getname_np.texi: New file.
11712         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11713         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11714         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11715         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11716         * doc/glibc-functions/pthread_setname_np.texi: New file.
11717         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11718         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11719         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11720         * doc/glibc-functions/qsort_r.texi: New file.
11721         * doc/glibc-functions/quick_exit.texi: New file.
11722         * doc/glibc-functions/syncfs.texi: New file.
11723         * doc/gnulib.texi: Include them.
11724         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11725         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11726         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11727         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11728         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11729         * doc/glibc-functions/execvpe.texi: Likewise.
11730
11731 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11732
11733         ftell: don't include <unistd.h>
11734         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11735         guaranteed to define off_t, and the ftell module depends on the
11736         stdio module.
11737
11738         ftell: do not assume wraparound signed arithmetic
11739         * lib/ftell.c: Include <limits.h>.
11740         (ftell): Don't assume wraparound signed arithmetic.
11741
11742 2011-07-24  Bruno Haible  <bruno@clisp.org>
11743
11744         close: No longer depend on module 'fclose'.
11745         * modules/close (Depends-on): Remove fclose.
11746         * NEWS: Mention the change.
11747         Suggested by Sam Steingold <sds@gnu.org>.
11748
11749 2011-07-24  Bruno Haible  <bruno@clisp.org>
11750
11751         fsusage: Enable large volume support on AIX >= 5.2.
11752         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11753         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11754         instead of STAT_STATVFS.
11755         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11756
11757         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11759         f_blocks field only on MacOS X.
11760
11761         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11762         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11763         * modules/fsusage (Depends-on): Add largefile.
11764
11765 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11766
11767         * README: Modernize discussion of signed integers.
11768         Assuming overflow wraparound is no longer safe.
11769         Mention ones' complement and signed magnitude.
11770
11771 2011-07-22  Bruno Haible  <bruno@clisp.org>
11772
11773         select tests, pselect tests: Refactor.
11774         * tests/test-select.h: New file, extracted from tests/test-select.c.
11775         (select_fn): New type.
11776         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11777         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11778         test_pipe): Add my_select argument.
11779         (test_function): Renamed from main. Add my_select argument.
11780         * tests/test-select.c: Move most code to tests/test-select.h. Include
11781         test-select.h.
11782         * modules/select-tests (Files): Add tests/test-select.h.
11783         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11784         (my_select, main): New functions.
11785         * modules/pselect-tests (Files): Add tests/test-select.h,
11786         tests/macros.h, tests/signature.h.
11787         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11788         (configure.ac): Check for <sys/wait.h>.
11789
11790 2011-07-22  Bruno Haible  <bruno@clisp.org>
11791
11792         sys_select tests: Check the signature of FD_*.
11793         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11794         signature tests from here...
11795         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11796         here.
11797         * modules/sys_select-tests (Files): Add tests/signature.h.
11798
11799 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11800
11801         largefile: new module, replacing large-inode
11802         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11803         * MODULES.html.sh: Add largefile, remove large-inode.
11804         * modules/largefile, m4/largefile.m4: New files.
11805         * modules/large-inode, m4/large-inode.m4: Remove.
11806
11807         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11808         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11809         implementations that use only 32 bits to count blocks.
11810         On typical hosts with 1024-byte blocks, this fails with file
11811         systems as small as 4 TiB.  Problem reported by Herb Wartens
11812         <http://debbugs.gnu.org/9140> and this should also fix a similar
11813         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11814
11815         large-inode: New module
11816         * MODULES.html.sh: Add it.
11817         * modules/large-inode, m4/large-inode.m4: New files.
11818
11819         extensions: Enable extensions on MacOS X 10.5 and later.
11820         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11821
11822 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11823
11824         file-has-acl: use acl_extended_file_nofollow if available
11825         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11826         (acl_extended_file): New macro.
11827         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11828         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11829
11830 2011-07-21  Bruno Haible  <bruno@clisp.org>
11831
11832         Declare system functions in a way that works with C++.
11833         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11834         declare fdopendir as extern "C".
11835         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11836         declare frexpl as extern "C".
11837         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11838         declare gai_strerror as extern "C".
11839         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11840         programs, declare gai_strerror as extern "C".
11841         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11842         declare getlogin_r as extern "C".
11843         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11844         as extern "C".
11845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11846         declare ldexpl as extern "C".
11847         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11848         as extern "C".
11849         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11850         program, declare getmntinfo as extern "C".
11851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11852         stpncpy as extern "C".
11853         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11854         program, declare __xpg_strerror_r as extern "C".
11855         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11856         strndup as extern "C".
11857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11858         declare memset and bzero as extern "C".
11859         Reported by Sam Steingold <sds@gnu.org>.
11860
11861 2011-07-12  Jim Meyering  <meyering@redhat.com>
11862
11863         maint.mk: prohibit inclusion of "verify.h" without use
11864         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11865
11866 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11867
11868         timer-time: A new module to check for timer_settime()
11869         * m4/timer_time.m4: Check for the posix function.
11870         * modules/timer-time: Add the new module.
11871         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11872         Mention it.
11873
11874 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11875             Bruno Haible  <bruno@clisp.org>
11876
11877         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11879         not defined, assume POSIX threads and look for pthread_sigmask in
11880         $LIBS, without changing $CPPFLAGS.
11881
11882 2011-07-19  Bruno Haible  <bruno@clisp.org>
11883
11884         strstr: Update cross-compilation guess.
11885         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11886         CPUs, guess no, in view of glibc
11887         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11888         Suggested by Eric Blake. Reported by Reuben Thomas.
11889
11890 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11891
11892         getopt-gnu: suppress core dumps from detection code
11893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11894         to suppress core dumps that may well occur on glibc systems.
11895         * modules/getopt-gnu: Depend on nocrash.
11896
11897 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11898
11899         pthread_sigmask: ensure usleep is declared
11900         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11901         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11902
11903 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11904
11905         doc: Document NonStop portability issues.
11906         * doc/posix-functions/sigaction.texi (sigaction):
11907         * doc/posix-headers/signal.texi (signal.h):
11908         Document NonStop.  See Joachim Schmitz in
11909         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11910
11911 2011-07-15  Bruno Haible  <bruno@clisp.org>
11912
11913         ffsl, ffsll: Avoid unportable behaviour.
11914         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11915
11916 2011-07-15  Bruno Haible  <bruno@clisp.org>
11917
11918         ffs: More tests.
11919         * tests/test-ffs.c (NBITS): New macro.
11920         (main): Add more tests.
11921         * tests/test-ffsl.c (NBITS): New macro.
11922         (main): Add more tests.
11923         * tests/test-ffsll.c (NBITS): New macro.
11924         (main): Add more tests.
11925
11926 2011-07-15  Eric Blake  <eblake@redhat.com>
11927
11928         ffsl, ffsll: new modules
11929         * modules/ffsl: New file.
11930         * modules/ffsll: Likewise.
11931         * m4/ffsl.m4: Likewise.
11932         * m4/ffsll.m4: Likewise.
11933         * lib/ffsl.c: Likewise.
11934         * lib/ffsl.h: Likewise.
11935         * lib/ffsll.c: Likewise.
11936         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11937         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11938         * modules/string (Makefile.am): Substitute witnesses.
11939         * lib/strings.in.h (ffsl, ffsll): Declare.
11940         * modules/ffsl-tests: New test file.
11941         * modules/ffsll-tests: Likewise.
11942         * tests/test-ffsl.c: Likewise.
11943         * tests/test-ffsll.c: Likewise.
11944         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11945         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11946         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11947
11948         ffs: fix m4 prerequisite
11949         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11950
11951         ffs: avoid undefined behavior
11952         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11953         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11954         Reported by Bruno Haible.
11955
11956 2011-07-12  Bruno Haible  <bruno@clisp.org>
11957
11958         pthread_sigmask: Rely on module 'threadlib'.
11959         * modules/pthread_sigmask (Depends-on): Add threadlib.
11960         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11961         is defined.
11962
11963 2011-07-12  Bruno Haible  <bruno@clisp.org>
11964
11965         regex: Depend on module 'strcase'.
11966         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11967
11968 2011-07-12  Jim Meyering  <meyering@redhat.com>
11969
11970         warn-on-use: fix typo in file name
11971         * modules/snippet/warn-on-use (Files): Correct file name:
11972         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11973
11974 2011-07-12  Bruno Haible  <bruno@clisp.org>
11975
11976         strings: Document module.
11977         * doc/posix-headers/strings.texi: Mention module 'strings'.
11978
11979 2011-07-12  Bruno Haible  <bruno@clisp.org>
11980
11981         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11982         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11983         (Files, Makefile.am): Update.
11984         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11985         * modules/stdlib (Depends-on): Update.
11986
11987 2011-07-12  Bruno Haible  <bruno@clisp.org>
11988
11989         * NEWS: Mention the changes.
11990
11991         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11992         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11993         (Files, Makefile.am): Update.
11994         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11995         * modules/arpa_inet (Depends-on): Update.
11996         * modules/ctype (Depends-on): Update.
11997         * modules/dirent (Depends-on): Update.
11998         * modules/fcntl-h (Depends-on): Update.
11999         * modules/glob (Depends-on): Update.
12000         * modules/iconv-h (Depends-on): Update.
12001         * modules/inttypes-incomplete (Depends-on): Update.
12002         * modules/langinfo (Depends-on): Update.
12003         * modules/locale (Depends-on): Update.
12004         * modules/math (Depends-on): Update.
12005         * modules/netdb (Depends-on): Update.
12006         * modules/poll-h (Depends-on): Update.
12007         * modules/pty (Depends-on): Update.
12008         * modules/search (Depends-on): Update.
12009         * modules/signal (Depends-on): Update.
12010         * modules/spawn (Depends-on): Update.
12011         * modules/stdio (Depends-on): Update.
12012         * modules/stdlib (Depends-on): Update.
12013         * modules/string (Depends-on): Update.
12014         * modules/strings (Depends-on): Update.
12015         * modules/sys_file (Depends-on): Update.
12016         * modules/sys_ioctl (Depends-on): Update.
12017         * modules/sys_select (Depends-on): Update.
12018         * modules/sys_socket (Depends-on): Update.
12019         * modules/sys_stat (Depends-on): Update.
12020         * modules/sys_time (Depends-on): Update.
12021         * modules/sys_times (Depends-on): Update.
12022         * modules/sys_utsname (Depends-on): Update.
12023         * modules/sys_wait (Depends-on): Update.
12024         * modules/termios (Depends-on): Update.
12025         * modules/time (Depends-on): Update.
12026         * modules/unistd (Depends-on): Update.
12027         * modules/wchar (Depends-on): Update.
12028         * modules/wctype-h (Depends-on): Update.
12029         * MODULES.html.sh (Support for building libraries and executables):
12030         Update.
12031
12032         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12033         * modules/snippet/unused-parameter: Renamed from
12034         modules/unused-parameter.
12035         (Files, Makefile.am): Update.
12036         * build-aux/snippet/unused-parameter.h: Renamed from
12037         build-aux/unused-parameter.h.
12038         * modules/selinux-h (Depends-on): Update.
12039         * modules/unistr/base (Depends-on): Update.
12040         * MODULES.html.sh (Core language properties): Update.
12041
12042         Rename module 'link-warning' to 'snippet/link-warning'.
12043         * modules/snippet/link-warning: Renamed from modules/link-warning.
12044         (Files, Makefile.am): Update.
12045         * build-aux/snippet/link-warning.h: Renamed from
12046         build-aux/link-warning.h.
12047         * MODULES.html.sh (Support for building libraries and executables):
12048         Update.
12049
12050         Rename module 'c++defs' to 'snippet/c++defs'.
12051         * modules/snippet/c++defs: Renamed from modules/c++defs.
12052         (Files, Makefile.am): Update.
12053         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12054         * modules/arpa_inet (Depends-on): Update.
12055         * modules/ctype (Depends-on): Update.
12056         * modules/dirent (Depends-on): Update.
12057         * modules/fcntl-h (Depends-on): Update.
12058         * modules/glob (Depends-on): Update.
12059         * modules/iconv-h (Depends-on): Update.
12060         * modules/langinfo (Depends-on): Update.
12061         * modules/locale (Depends-on): Update.
12062         * modules/math (Depends-on): Update.
12063         * modules/netdb (Depends-on): Update.
12064         * modules/poll-h (Depends-on): Update.
12065         * modules/pty (Depends-on): Update.
12066         * modules/search (Depends-on): Update.
12067         * modules/signal (Depends-on): Update.
12068         * modules/spawn (Depends-on): Update.
12069         * modules/stdio (Depends-on): Update.
12070         * modules/stdlib (Depends-on): Update.
12071         * modules/string (Depends-on): Update.
12072         * modules/strings (Depends-on): Update.
12073         * modules/sys_ioctl (Depends-on): Update.
12074         * modules/sys_select (Depends-on): Update.
12075         * modules/sys_socket (Depends-on): Update.
12076         * modules/sys_stat (Depends-on): Update.
12077         * modules/sys_time (Depends-on): Update.
12078         * modules/sys_wait (Depends-on): Update.
12079         * modules/termios (Depends-on): Update.
12080         * modules/time (Depends-on): Update.
12081         * modules/unistd (Depends-on): Update.
12082         * modules/wchar (Depends-on): Update.
12083         * modules/wctype-h (Depends-on): Update.
12084
12085         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12086         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12087         (Files, Makefile.am): Update.
12088         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12089         * modules/argv-iter (Depends-on): Update.
12090         * modules/arpa_inet (Depends-on): Update.
12091         * modules/dirent (Depends-on): Update.
12092         * modules/fcntl-h (Depends-on): Update.
12093         * modules/fnmatch (Depends-on): Update.
12094         * modules/getopt-posix (Depends-on): Update.
12095         * modules/glob (Depends-on): Update.
12096         * modules/iconv-h (Depends-on): Update.
12097         * modules/inttypes-incomplete (Depends-on): Update.
12098         * modules/locale (Depends-on): Update.
12099         * modules/math (Depends-on): Update.
12100         * modules/netdb (Depends-on): Update.
12101         * modules/search (Depends-on): Update.
12102         * modules/signal (Depends-on): Update.
12103         * modules/spawn (Depends-on): Update.
12104         * modules/stdio (Depends-on): Update.
12105         * modules/stdlib (Depends-on): Update.
12106         * modules/string (Depends-on): Update.
12107         * modules/strings (Depends-on): Update.
12108         * modules/sys_socket (Depends-on): Update.
12109         * modules/sys_stat (Depends-on): Update.
12110         * modules/sys_time (Depends-on): Update.
12111         * modules/sys_times (Depends-on): Update.
12112         * modules/sys_utsname (Depends-on): Update.
12113         * modules/time (Depends-on): Update.
12114         * modules/unistd (Depends-on): Update.
12115         * modules/wchar (Depends-on): Update.
12116         * MODULES.html.sh (Support for building libraries and executables):
12117         Update.
12118
12119 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12120
12121         Improvements on _Noreturn and related modules.
12122
12123         modules/_Exit-tests: test _Noreturn too
12124         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12125         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12126         (main): Use them.
12127
12128         stdnoreturn, stdnoreturn-tests: remove modules
12129         They're not needed here and a bit premature for use elsewhere.  See
12130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12131         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12132         * tests/test-stdnoreturn.c: Remove files.
12133         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12134         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12135         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12136         and using noreturn.
12137         * modules/openat, modules/sigpipe-die, modules/xalloc:
12138         * modules/xmemdup0, modules/xstrtol:
12139         Remove dependency on stdnoreturn.
12140
12141         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12142         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12143         Reparenthesize to avoid GCC warning.
12144         Support Microsoft's syntax.
12145         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12146
12147         _Noreturn-tests: remove module
12148         * modules/_Noreturn-tests: Remove.
12149         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12150         * tests/test-_Noreturn.c: Remove.
12151         * tests/test-stdnoreturn.c: Merge from the old
12152         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12153
12154 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12155
12156         _Noreturn, stdnoreturn, and related modules.
12157
12158         * top/maint.mk: Adjust to new noreturn support.
12159         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12160         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12161
12162         xalloc: use stdnoreturn.h
12163         * lib/xalloc.h: Include <stdnoreturn.h>.
12164         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12165         * modules/xalloc (Depends-on): Add stdnoreturn.
12166
12167         xstrtol: use stdnoreturn.h
12168         * lib/xstrtol.h: Include <stdnoreturn.h>.
12169         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12170         * modules/xstrtol (Depends-on): Add stdnoreturn.
12171
12172         xmemdup0: use stdnoreturn.h
12173         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12174         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12175         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12176
12177         sigpipe-die: use stdnoreturn.h
12178         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12179         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12180         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12181
12182         openat: use stdnoreturn.h
12183         * lib/openat.h: Include <stdnoreturn.h>.
12184         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12185         * modules/openat (Depends-on): Add stdnoreturn.
12186
12187         * lib/openat-die.c (openat_save_fail): Modernize comment.
12188
12189         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12190
12191         * lib/glthread/thread.h: Modernize comment.
12192
12193         obstack: use _Noreturn
12194         * lib/obstack.c (__attribute__): Remove macro.
12195         (print_and_abort): Use _Noreturn.
12196
12197         c-stack: use _Noreturn
12198         * lib/c-stack.c (die, overflow_handler, segv_handler):
12199         Use _Noreturn rather than __attribute__((noreturn)).
12200
12201         argmatch-tests, exclude_tests: use _Noreturn
12202         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12203         Remove.
12204         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12205
12206         stdlib: use _Noreturn
12207         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12208         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12209         * modules/stdlib (Depends-on): Add _Noreturn.
12210         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12211
12212         stdnoreturn-tests: new module
12213         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12214
12215         stdnoreturn: new module
12216         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12217         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12218
12219         _Noreturn-tests: new module
12220         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12221
12222         _Noreturn: new module
12223         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12224         New section, mentioning it.
12225         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12226
12227         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12228
12229 2011-07-11  Eric Blake  <eblake@redhat.com>
12230
12231         ffs: new module
12232         * modules/ffs: New file.
12233         * m4/ffs.m4: Likewise.
12234         * lib/ffs.c: Likewise.
12235         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12236         * modules/strings (Makefile.am): Substitute witness.
12237         (Depends-on): Add c++defs.
12238         * lib/strings.in.h (ffs): Declare.
12239         * modules/ffs-tests: New test file.
12240         * tests/test-ffs.c: Test new module.
12241         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12242         * doc/posix-functions/ffs.texi (ffs): Likewise.
12243
12244         regex: avoid compiler warning
12245         * lib/regex.c (includes): Include <strings.h>, for use of
12246         strcasecmp in regcomp.c.
12247         Reported by Joachim Schmitz.
12248
12249 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12250
12251         stdint: respect system's intmax_t if INTMAX_MAX
12252         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12253         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12254         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12255         long but int64_t is long long, and where we will clash with the
12256         system intmax_t if we override it.  See
12257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12258         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12259         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12260         similarly for UINTMAX_C.
12261
12262 2011-07-08  Bruno Haible  <bruno@clisp.org>
12263
12264         pthread_sigmask tests: Avoid a compiler warning.
12265         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12266         non-zero.
12267
12268         sigprocmask tests: A better way to avoid a compiler warning.
12269         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12270         (main): Complain if system() returns non-zero.
12271         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12272
12273 2011-07-08  Bruno Haible  <bruno@clisp.org>
12274
12275         pthread_sigmask: Work around IRIX bug.
12276         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12277         bug.
12278         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12279         there may be unblocked pending signals.
12280         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12281
12282 2011-07-08  Bruno Haible  <bruno@clisp.org>
12283
12284         pthread_sigmask: Work around Cygwin bug.
12285         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12286         bug.
12287         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12288         the system's pthread_sigmask function.
12289         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12290
12291 2011-07-08  Bruno Haible  <bruno@clisp.org>
12292
12293         pthread_sigmask: Work around bug in single-threaded implementation.
12294         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12295         FreeBSD, HP-UX, Solaris bug.
12296         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12297         * lib/pthread_sigmask.c: Include <stddef.h>.
12298         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12299         the system's pthread_sigmask function.
12300         * modules/pthread_sigmask (configure.ac): Invoke
12301         gl_PREREQ_PTHREAD_SIGMASK.
12302         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12303         HP-UX, Solaris.
12304
12305 2011-07-08  Eric Blake  <eblake@redhat.com>
12306
12307         test-sigprocmask: avoid compiler warning
12308         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12309         * tests/test-sigprocmask.c (main): Use it to silence warning.
12310         Reported by Jim Meyering.
12311
12312         test-snprintf: avoid compiler warning
12313         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12314         * tests/test-vsnprintf.c (main): Likewise.
12315         Reported by Jim Meyering.
12316
12317 2011-07-08  Bruno Haible  <bruno@clisp.org>
12318
12319         Tests for module 'pthread_sigmask'.
12320         * modules/pthread_sigmask-tests: New file.
12321         * tests/test-pthread_sigmask1.c: New file, based on
12322         tests/test-sigprocmask.c.
12323         * tests/test-pthread_sigmask2.c: New file.
12324
12325 2011-07-08  Jim Meyering  <meyering@redhat.com>
12326
12327         test-getopt.h: avoid warning about an unused variable
12328         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12329
12330 2011-07-07  Jim Meyering  <meyering@redhat.com>
12331
12332         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12333         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12334         now that it no longer contains leading TABs.
12335         Remove unused "url=FIXME" statement.
12336
12337 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12338
12339         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12340         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12341         When gl_THREADLIB is not in use, assume that the POSIX sematics
12342         are desired.  This is better for Emacs, which uses POSIX semantics
12343         on GNUish and/or POSIXish platforms, and does not use threads at
12344         all otherwise.
12345
12346         pthread_sigmask: fix typo when testing for libraries
12347         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12348         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12349
12350 2011-07-08  Eric Blake  <eblake@redhat.com>
12351
12352         fts: introduce FTS_NOATIME
12353         * lib/fts_.h (FTS_NOATIME): New bit flag.
12354         (FTS_OPTIONMASK): Adjust.
12355         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12356         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12357
12358 2011-07-08  Bruno Haible  <bruno@clisp.org>
12359
12360         Tests for module 'thread'.
12361         * modules/thread-tests: New file.
12362         * tests/test-thread_self.c: New file.
12363         * tests/test-thread_create.cc: New file.
12364
12365 2011-07-08  Bruno Haible  <bruno@clisp.org>
12366
12367         thread: Avoid gcc warnings when using gl_thread_self().
12368         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12369         'void *'.
12370         (gl_thread_self_pointer): Update.
12371
12372 2011-07-07  Bruno Haible  <bruno@clisp.org>
12373
12374         signal-c++-tests: Check declaration of pthread_sigmask.
12375         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12376         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12377         $(LIB_PTHREAD_SIGMASK).
12378
12379 2011-07-07  Bruno Haible  <bruno@clisp.org>
12380
12381         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12382         * lib/signal.in.h (pthread_sigmask): Override if
12383         REPLACE_PTHREAD_SIGMASK is 1.
12384         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12385         REPLACE_PTHREAD_SIGMASK.
12386         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12387         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12388         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12389         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12390         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12391
12392 2011-07-07  Bruno Haible  <bruno@clisp.org>
12393
12394         pthread_sigmask: Ensure declaration in <signal.h>.
12395         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12396         include <pthread.h>.
12397         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12398         problem.
12399
12400 2011-07-07  Bruno Haible  <bruno@clisp.org>
12401
12402         pthread_sigmask: Document the module.
12403         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12404
12405 2011-07-07  Bruno Haible  <bruno@clisp.org>
12406
12407         pthread_sigmask: Follow gnulib conventions.
12408         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12409         gl_PTHREAD_SIGMASK.
12410         * modules/pthread_sigmask (configure.ac): Update.
12411
12412 2011-07-07  Bruno Haible  <bruno@clisp.org>
12413
12414         pthread_sigmask: Make declaration C++ safe.
12415         * lib/signal.in.h: In two special conditions, just do an #include_next.
12416         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12417         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12418         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12419         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12420         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12421         not REPLACE_PTHREAD_MASK.
12422         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12423         not REPLACE_PTHREAD_MASK.
12424         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12425
12426 2011-07-07  Bruno Haible  <bruno@clisp.org>
12427
12428         pthread_sigmask: Fix return value.
12429         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12430         * lib/pthread_sigmask.c: New file.
12431         * modules/pthread_sigmask (Files): Add it.
12432         (configure.ac): Invoke AC_LIBOBJ.
12433
12434 2011-07-07  Eric Blake  <eblake@redhat.com>
12435
12436         getopt: more portable argv creation
12437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12438         const, use char arrays rather than strings.
12439         Suggested by Paul Eggert.
12440
12441 2011-07-07  Bruno Haible  <bruno@clisp.org>
12442
12443         Tests for module 'sigprocmask'.
12444         * modules/sigprocmask-tests: New file.
12445         * tests/test-sigprocmask.c: New file.
12446
12447 2011-07-07  Bruno Haible  <bruno@clisp.org>
12448
12449         float tests: Tweak.
12450         * tests/test-float.c (main): Tweak skip message.
12451
12452 2011-07-07  Eric Blake  <eblake@redhat.com>
12453
12454         getopt: avoid compiler warning during configure
12455         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12456         assigning string literals to non-const pointer.
12457
12458         getopt-gnu: avoid crash in glibc getopt
12459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12460         * tests/test-getopt.h (test_getopt): Enhance test.
12461         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12462         * doc/posix-functions/getopt.texi (getopt): Document it.
12463         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12464         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12465         Likewise.
12466
12467 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12468
12469         getopt: handle W; without long options in getopt [BZ #12922]
12470         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12471         but no long options are defined, just return 'W'.
12472
12473 2011-07-07  Bruno Haible  <bruno@clisp.org>
12474
12475         Avoid literal tabs.
12476         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12477         variable containing a tab instead of a literal tab.
12478         Reported by Jim Meyering.
12479
12480 2011-07-07  Bruno Haible  <bruno@clisp.org>
12481
12482         Comments.
12483         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12484
12485 2011-07-06  Bruno Haible  <bruno@clisp.org>
12486
12487         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12488         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12489         <winsock2.h>.
12490         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12491         lib/sys_socket.in.h.
12492         (close, gethostname): Hide declarations from <winsock2.h>.
12493         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12494         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12495         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12496         (select): Don't override if gnulib's <sys/select.h> was already
12497         included.
12498         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12499         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12500         setsockopt, shutdown, select): Tweak indentation.
12501
12502 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12503
12504         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12505         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12506         in an application that does not use the sys_select module.
12507
12508 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12509
12510         poll: do not return 0 on timeout=-1
12511         * lib/poll.c: Loop with yield if no events occured
12512
12513 2011-07-06  Eric Blake  <eblake@redhat.com>
12514
12515         pthread_sigmask: always replace when not using pthread
12516         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12517         replacement when using some threading other than pthread.  Fix
12518         logic bug.
12519
12520 2011-07-06  Bruno Haible  <bruno@clisp.org>
12521
12522         Comments.
12523         * m4/printf.m4: Update comments about mingw.
12524
12525 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12526
12527         sys_select: define sigset_t more portably
12528         * lib/sys_select.in.h: Always include <sys/types.h>, since
12529         we now need sigset_t and mingw defines it there.
12530         Include <signal.h> before split inclusion guard, to avoid
12531         mishaps on Solaris, whose <signal.h> eventually includes us.
12532         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12533         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12534         which come from ...
12535         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12536         gl_CHECK_TYPE_SIGSET_T.
12537         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12538         does the real work.
12539         * modules/sys_select (Depends-on): Add 'signal'.
12540
12541         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12542         Suggested by Bruno Haible.
12543
12544         pselect: Use pthread_sigmask, not sigprocmask.
12545         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12546         multithreaded apps better than sigprocmask does.
12547         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12548         sigprocmask directly.
12549
12550 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12551
12552         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12553         Don't #undef,  since we don't need any underlying pselect.
12554         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12555         (Depends-on): Add select.
12556         (Link): Add $(LIBSOCKET).
12557         These changes suggested by Bruno Haible.
12558
12559         pselect: document better
12560         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12561         * doc/posix-functions/pselect.texi (pselect): Document new module.
12562
12563         pthread_sigmask: new module
12564         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12565         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12566         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12567         This is done only as a macro; I don't know how well that'll
12568         work for C++.  Move <sys/types.h> include before the include_next,
12569         to avoid mishap on Solaris.
12570         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12571         * modules/signal (Makefile.am): Substitute the check's results.
12572         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12573
12574         test-pselect: new module
12575         * modules/pselect-tests, tests/test-pselect.c: New files.
12576         * tests/test-select.c, tests/test-sys_select-c++.cc:
12577         If TEST_PSELECT is defined, test pselect instead of testing select.
12578
12579         * tests/test-sys_select.c (sigset_t): Test for it, too.
12580         Suggested by Bruno Haible.
12581
12582 2011-07-05  Eric Blake  <eblake@redhat.com>
12583
12584         snprintf: guarantee %1$d, for libintl
12585         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12586         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12587         * doc/posix-functions/snprintf.texi (snprintf): Update.
12588         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12589         * tests/test-snprintf.c (main): Enhance test.
12590         * tests/test-vsnprintf.c (main): Likewise.
12591
12592 2011-07-05  Jim Meyering  <meyering@redhat.com>
12593
12594         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12595         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12596         per Bruno's request, to accommodate this idiom (no space after "#")
12597         even when the function is inside an #if block:
12598         char *
12599         gets (char *s)
12600         #undef gets
12601         {
12602           ...
12603         }
12604
12605 2011-07-04  Jim Meyering  <meyering@redhat.com>
12606
12607         maint: indent with spaces, not TABs, and add a rule to check this
12608         * tests/test-userspec.c: Indent with spaces, not TABs.
12609         * tests/test-argp.c: Likewise.
12610         * tests/test-c-stack2.sh: Likewise.
12611         * tests/test-parse-duration.sh: Likewise
12612         * m4/strtod.m4: Likewise.
12613         * m4/alloca.m4: Likewise.
12614         * m4/pselect.m4: Likewise.
12615         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12616
12617 2011-07-03  Jim Meyering  <meyering@redhat.com>
12618
12619         maint.mk: correct omissions in prohibit_argmatch_without_use check
12620         This rule would mistakenly report that argmatch.h is included without
12621         use even when both the argmatch and invalid_arg macro were used.
12622         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12623         of argmatch and invalid_arg.
12624
12625 2011-07-03  Bruno Haible  <bruno@clisp.org>
12626
12627         Comments about EINTR.
12628         * lib/safe-read.h: Explain the purpose of this module.
12629         * lib/safe-write.h: Likewise.
12630         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12631         module.
12632         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12633         module.
12634         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12635
12636 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12637
12638         xnanosleep: Rewrite to use new dtotimespec module.
12639         It has the conversion code that used to be in xnanosleep.
12640         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12641         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12642         (TIME_T_MAX): Remove.
12643         (xnanosleep): Rewrite in terms of dtotimespec.
12644         * modules/xnanosleep (Depends-on): Add dtotimespec.
12645         Remove intprops, stdbool.
12646
12647         timespec-add, timespec-sub: new modules
12648         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12649         * lib/timespec-add.c, lib/timespec-sub.c:
12650         * modules/timespec-add, modules/timespec-sub: New files.
12651
12652         dtotimespec: new module
12653         * lib/timespec.h (dtotimespec): New decl.
12654         * lib/dtotimespec.c, modules/dtotimespec: New files.
12655
12656         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12657
12658         pselect: new module
12659         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12660         (pselect): New decls.
12661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12662         since the standard pselect decl uses 'restrict'.
12663         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12664         HAVE_PSELECT, REPLACE_PSELECT.
12665         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12666         HAVE_PSELECT, REPLACE_PSELECT.
12667         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12668
12669         sys_select: don't depend on sys_socket
12670         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12672         This fix works on GNU and GNU-like platforms, but has not been tested
12673         on native Windows.
12674         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12676         gl_HEADER_SYS_SOCKET.
12677         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12678         gl_PREREQ_SYS_H_WINSOCK2.
12679
12680 2011-06-29  Eric Blake  <eblake@redhat.com>
12681
12682         pipe2: fix C89 compile problem
12683         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12684         Reported by Bruno Haible.
12685
12686         pipe, pipe2: don't corrupt fd on error
12687         * lib/pipe.c (pipe): Leave fd unchanged on error.
12688         * lib/pipe2.c (pipe2): Likewise.
12689         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12690         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12691
12692 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12693
12694         mmap-anon: do not use regular expressions inadvertently
12695         * m4/mmap-anon.m4: Remove trailing period from strings sought
12696         in the output.
12697
12698 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12699
12700         nanosleep: fix integer overflow problem
12701         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12702         arithmetic wraps around on overflow.
12703
12704         nanosleep: simplify carrying
12705         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12706         first call to the underyling nanosleep, not for the last one.
12707         This doesn't fix any bugs, but it simplifies the computation of
12708         the remaining delay.  Found while auditing integer overflow issues.
12709
12710         dup2: remove test for existence of fcntl
12711         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12712         "#if HAVE_FCNTL", in the configure-time test program.
12713         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12714         and therefore speeds up "configure" a bit.  Found while
12715         adding the dup2 module to Emacs.
12716
12717 2011-06-24  Eric Blake  <eblake@redhat.com>
12718
12719         maint.mk: enhance useless header checks
12720         * top/maint.mk (_sc_header_without_use): Check both include
12721         styles.
12722         (sc_prohibit_assert_without_use)
12723         (sc_prohibit_close_stream_without_use)
12724         (sc_prohibit_getopt_without_use)
12725         (sc_prohibit_quotearg_without_use)
12726         (sc_prohibit_quote_without_use)
12727         (sc_prohibit_long_options_without_use)
12728         (sc_prohibit_inttostr_without_use)
12729         (sc_prohibit_ignore_value_without_use)
12730         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12731         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12732         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12733         (sc_prohibit_hash_pjw_without_use)
12734         (sc_prohibit_safe_read_without_use)
12735         (sc_prohibit_argmatch_without_use)
12736         (sc_prohibit_canonicalize_without_use)
12737         (sc_prohibit_root_dev_ino_without_use)
12738         (sc_prohibit_openat_without_use)
12739         (sc_prohibit_c_ctype_without_use)
12740         (sc_prohibit_signal_without_use)
12741         (sc_prohibit_stdio--_without_use)
12742         (sc_prohibit_stdio-safer_without_use)
12743         (sc_prohibit_strings_without_use)
12744         (sc_prohibit_intprops_without_use)
12745         (sc_prohibit_stddef_without_use)
12746         (sc_prohibit_xfreopen_without_use): Update clients.
12747
12748 2011-06-24  Jim Meyering  <meyering@redhat.com>
12749
12750         syntax-check: keep one maint.mk rule in sync with its header
12751         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12752         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12753         I prefer to avoid temporary files here, so use <(...), but that
12754         is not supported by /bin/sh, so...
12755         (SHELL): Define to /bin/bash.
12756
12757 2011-06-24  Eric Blake  <eblake@redhat.com>
12758
12759         maint.mk: update sc_prohibit_intprops_without_use
12760         * top/maint.mk (_intprops_names): Match recent changes.
12761
12762 2011-06-24  Bruno Haible  <bruno@clisp.org>
12763
12764         strerror-override: No-op tweak.
12765         * lib/strerror-override.h (strerror_override): Reorder conditions,
12766         for consistency with lib/strerror-override.c.
12767
12768 2011-06-23  Eric Blake  <eblake@redhat.com>
12769
12770         maint.mk: test further PATH_MAX issues
12771         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12772         (sc_prohibit_path_max_allocation): ...and also test alloca.
12773         Suggested by Jim Meyering.
12774
12775 2011-06-22  Eric Blake  <eblake@redhat.com>
12776
12777         maint.mk: add syntax-check to avoid char[PATH_MAX]
12778         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12779
12780         stat: be robust to PATH_MAX definition
12781         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12782         * modules/stat (Depends-on): Add verify.
12783
12784         link: work around IRIX bug
12785         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12786         * lib/link.c (rpl_link): Work around it.
12787         * tests/test-link.h (test_link): Enhance test.
12788         * doc/posix-functions/link.texi (link): Document the bug.
12789
12790         getopt: silence clang warning
12791         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12792         dereference.
12793         Reported by Gustavo Martin Domato.
12794
12795 2011-06-22  Jim Meyering  <meyering@redhat.com>
12796
12797         bootstrap: do not insert a blank line into each .gitignore file
12798         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12799
12800 2011-06-21  Eric Blake  <eblake@redhat.com>
12801
12802         perror: test for output mismatch
12803         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12804         perror on IRIX.
12805
12806         strerror_r: fix OpenBSD behavior on out-of-range
12807         * lib/strerror_r.c (strerror_r): Always use maximal string.
12808         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12809
12810         strerror_r: fix OpenBSD behavior on 0
12811         * lib/strerror-override.c (strerror_override): Also override 0
12812         when needed.
12813         * lib/strerror-override.h (strerror_override): Likewise.
12814         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12815         earlier.
12816         * lib/strerror_r.c (strerror_r): Likewise.
12817         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12818         behavior...
12819         (gl_FUNC_STRERROR_0): ...into new macro.
12820         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12821         is overridden.
12822         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12823         * modules/strerror-override (Files): Add strerror.m4.
12824         (configure.ac): Also provide override for 0 when needed.
12825         * doc/posix-functions/strerror.texi (strerror): Document this.
12826         * doc/posix-functions/perror.texi (perror): Likewise.
12827
12828         perror: adjust array size
12829         * modules/perror (Depends-on): Add strerror-override.
12830         * lib/perror.c (perror): Use it to avoid magic number.
12831
12832         strerror-override: reduce size
12833         * lib/strerror-override.c (strerror_override): Use fewer lines.
12834
12835 2011-06-20  Bruno Haible  <bruno@clisp.org>
12836
12837         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12838         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12839
12840 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12841
12842         alloca: port to compilers that can optimize like GCC 4.6.0
12843         * lib/alloca.c (find_stack_direction): New signature, taken from
12844         Autoconf git.  This works with GCC 4.6.0.  This code should never
12845         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12846         be used with other compilers that optimize as well as GCC 4.6.0 does.
12847         (alloca): Adjust to new signature.
12848         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12849         New macro, which patches Autoconf in a similar way.
12850
12851         c-stack: stop worrying about stack direction
12852         * lib/c-stack.c (find_stack_direction): Remove.
12853         (segv_handler): Don't worry about stack direction growth, as it's
12854         too much of a pain to configure this correctly, given how compilers
12855         are optimizing-away our stack-growth detection code.  Instead, assume
12856         that any access to just before or just after the stack is OK.
12857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12858         Don't require AC_FUNC_ALLOCA; no longer needed.
12859
12860 2011-06-20  Eric Blake  <eblake@redhat.com>
12861
12862         test-stat: don't allocate PATH_MAX bytes
12863         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12864         PATH_MAX-sized buffer.
12865         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12866         * modules/stat-tests (Depends-on): Likewise.
12867         * tests/test-fstatat.c (includes): Drop pathmax.h.
12868         * tests/test-stat.c (includes): Likewise.
12869         Reported by Bruno Haible.
12870
12871 2011-06-20  Bruno Haible  <bruno@clisp.org>
12872
12873         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12874         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12875         * lib/float.c: New file.
12876         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12877         REPLACE_FLOAT_LDBL.
12878         * modules/float (Files): Add lib/float.c.
12879         (configure.ac): Invoke AC_LIBOBJ.
12880         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12881
12882 2011-06-20  Bruno Haible  <bruno@clisp.org>
12883
12884         Tests for module 'float'.
12885         * modules/float-tests: New file.
12886         * tests/test-float.c: New file.
12887
12888 2011-06-19  Bruno Haible  <bruno@clisp.org>
12889
12890         isinf: Coding style.
12891         * lib/isinf.c: Use GNU coding style.
12892
12893 2011-06-19  Bruno Haible  <bruno@clisp.org>
12894
12895         linkat test: Avoid test failure on AIX 7.1.
12896         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12897         * tests/test-link.h (test_link): Likewise.
12898
12899 2011-06-19  Bruno Haible  <bruno@clisp.org>
12900
12901         pread test: Avoid test failure on OpenBSD 4.9.
12902         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12903
12904 2011-06-19  Bruno Haible  <bruno@clisp.org>
12905
12906         sprintf-posix: Fix test failure on AIX 7.1.
12907         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12908         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12909         on AIX.
12910         * doc/posix-functions/fprintf.texi: Likewise.
12911         * doc/posix-functions/printf.texi: Likewise.
12912         * doc/posix-functions/snprintf.texi: Likewise.
12913         * doc/posix-functions/sprintf.texi: Likewise.
12914         * doc/posix-functions/vdprintf.texi: Likewise.
12915         * doc/posix-functions/vfprintf.texi: Likewise.
12916         * doc/posix-functions/vprintf.texi: Likewise.
12917         * doc/posix-functions/vsnprintf.texi: Likewise.
12918         * doc/posix-functions/vsprintf.texi: Likewise.
12919
12920 2011-06-19  Bruno Haible  <bruno@clisp.org>
12921
12922         roundl-ieee: Fix test failure on AIX 7.1.
12923         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12924         * doc/posix-functions/roundl.texi: Mention problem with negative
12925         arguments.
12926
12927 2011-06-19  Bruno Haible  <bruno@clisp.org>
12928
12929         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12930         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12931         * doc/posix-functions/round.texi: Mention problem with negative
12932         arguments.
12933         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12934
12935 2011-06-19  Bruno Haible  <bruno@clisp.org>
12936
12937         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12938         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12939         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12940         * doc/posix-functions/roundf.texi: Mention problem with negative
12941         arguments.
12942         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12943
12944 2011-06-19  Bruno Haible  <bruno@clisp.org>
12945
12946         ceilf-ieee: Work around bug on MacOS X 10.5.
12947         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12948
12949         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12950         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12951         IEEE compliant, avoid compiler optimizations.
12952         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12953         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12954         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12955         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12956         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12957         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12958         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12959         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12960         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12961         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12962
12963 2011-06-19  Bruno Haible  <bruno@clisp.org>
12964
12965         ceilf-ieee: Work around bug on AIX 7.1.
12966         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12967         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12968
12969 2011-06-19  Bruno Haible  <bruno@clisp.org>
12970
12971         ceil-ieee: Work around bug on AIX 7.1.
12972         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12973         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12974
12975 2011-06-18  Bruno Haible  <bruno@clisp.org>
12976
12977         fsync test: Avoid test failure on MacOS X and AIX.
12978         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12979         EINVAL.
12980
12981 2011-06-18  Bruno Haible  <bruno@clisp.org>
12982
12983         openat, fdopendir tests: Fix link errors.
12984         * modules/openat-tests (Depends-on): Add progname.
12985         * modules/fdopendir-tests (Depends-on): Likewise.
12986         * tests/test-fchownat.c: Include progname.h.
12987         (main): Call set_program_name.
12988         * tests/test-fstatat.c: Include progname.h.
12989         (main): Call set_program_name.
12990         * tests/test-mkdirat.c: Include progname.h.
12991         (main): Call set_program_name.
12992         * tests/test-openat.c: Include progname.h.
12993         (main): Call set_program_name.
12994         * tests/test-unlinkat.c: Include progname.h.
12995         (main): Call set_program_name.
12996         * tests/test-fdopendir.c: Include progname.h.
12997         (main): Call set_program_name.
12998
12999 2011-06-18  Bruno Haible  <bruno@clisp.org>
13000
13001         Doc update.
13002         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13003         HP-UX.
13004         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13005
13006 2011-06-18  Bruno Haible  <bruno@clisp.org>
13007
13008         getcwd tests: Avoid compilation error on HP-UX 11.31.
13009         * modules/getcwd-tests (Depends-on): Add pathmax.
13010         * tests/test-getcwd.c: Include pathmax.h.
13011
13012 2011-06-18  Bruno Haible  <bruno@clisp.org>
13013
13014         isfinite, isinf: Fix link error on AIX 6 and 7.
13015         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13016         needed, also test the macro with a 'float' argument.
13017         * m4/isinf.m4 (gl_ISINF): Likewise.
13018
13019 2011-06-18  Bruno Haible  <bruno@clisp.org>
13020
13021         getloadavg: Don't clobber LIBS. Regression from previous commit.
13022         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13023         AC_CHECK_LIB from here...
13024         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13025         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13026         gl_func_getloadavg_done.
13027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13028
13029 2011-06-18  Bruno Haible  <bruno@clisp.org>
13030
13031         clean-temp: Improve documentation.
13032         * lib/clean-temp.h: Explain better how to use this module.
13033         Reported by John Darrington <john@darrington.wattle.id.au>.
13034
13035 2011-06-17  Bruno Haible  <bruno@clisp.org>
13036
13037         pread, pwrite: Avoid cc warning on AIX.
13038         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13039         (pwrite): Likewise.
13040
13041 2011-06-17  Bruno Haible  <bruno@clisp.org>
13042
13043         spawn-pipe tests: Fix link error.
13044         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13046
13047 2011-06-17  Bruno Haible  <bruno@clisp.org>
13048
13049         Tests: Remove unnecessary dependency.
13050         * modules/canonicalize-tests (Depends-on): Remove progname.
13051         * modules/chown-tests (Depends-on): Likewise.
13052         * modules/dirname-tests (Depends-on): Likewise.
13053         * modules/fdopendir-tests (Depends-on): Likewise.
13054         * modules/fdutimensat-tests (Depends-on): Likewise.
13055         * modules/hash-tests (Depends-on): Likewise.
13056         * modules/lchown-tests (Depends-on): Likewise.
13057         * modules/linkat-tests (Depends-on): Likewise.
13058         * modules/renameat-tests (Depends-on): Likewise.
13059         * modules/spawn-pipe-tests (Depends-on): Likewise.
13060         * modules/utimensat-tests (Depends-on): Likewise.
13061
13062 2011-06-17  Bruno Haible  <bruno@clisp.org>
13063
13064         spawn-pipe tests: Fix link error.
13065         * tests/test-spawn-pipe-child.c: Undefine fflush.
13066
13067 2011-06-17  Bruno Haible  <bruno@clisp.org>
13068
13069         Fix tests link errors.
13070         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13071         * modules/chown-tests (Makefile.am): Don't link test-chown with
13072         LIBINTL.
13073         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13074         LIBINTL.
13075         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13076         LIBINTL.
13077         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13078         LIBINTL.
13079
13080 2011-06-16  Bruno Haible  <bruno@clisp.org>
13081
13082         crypto/gc-sha1: Fix recent regression.
13083         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13084         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13085
13086         crypto/gc-md5: Fix recent regression.
13087         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13088
13089         crypto/gc-md4: Fix recent regression.
13090         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13091         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13092
13093         crypto/gc-arctwo: Fix recent regression.
13094         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13095         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13096
13097         crypto/gc-rijndael: Fix recent regression.
13098         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13099         (configure.ac): Invoke AC_LIBOBJ here.
13100         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13102
13103         crypto/gc-hmac-sha1: Fix recent regression.
13104         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13105         (configure.ac): Invoke AC_LIBOBJ here.
13106         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13107         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13108
13109         crypto/gc-hmac-md5: Fix recent regression.
13110         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13111         (configure.ac): Invoke AC_LIBOBJ here.
13112         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13114
13115         crypto/gc-des: Fix recent regression.
13116         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13117         (configure.ac): Invoke AC_LIBOBJ here.
13118         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13120
13121         crypto/gc-arcfour: Fix recent regression.
13122         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13123         (configure.ac): Invoke AC_LIBOBJ here.
13124         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13126
13127 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13128
13129         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13130         After the 2011-05-21 change, this macro requires
13131         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13132         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13133
13134 2011-06-16  Bruno Haible  <bruno@clisp.org>
13135
13136         fprintftime: Move AC_LIBOBJ invocations to module description.
13137         * m4/fprintftime.m4: Remove file.
13138         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13139         (configure.ac): Remove gl_FPRINTFTIME call.
13140         (Makefile.am): Augment lib_SOURCES.
13141         Reported by Jim Meyering.
13142
13143 2011-06-16  Bruno Haible  <bruno@clisp.org>
13144
13145         tmpfile-safer: Finish 2011-05-23 commit.
13146         * m4/stdio-safer.m4: Really remove file.
13147         Reported by Jim Meyering.
13148
13149 2011-06-16  Bruno Haible  <bruno@clisp.org>
13150
13151         syntax-check: Fix typo.
13152         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13153         printf-posix.m4.
13154         Reported by Jim Meyering.
13155
13156 2011-06-13  Jim Meyering  <meyering@redhat.com>
13157
13158         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13159         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13160
13161 2011-05-23  Bruno Haible  <bruno@clisp.org>
13162
13163         yesno: Move AC_LIBOBJ invocations to module description.
13164         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13165         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13166
13167 2011-05-23  Bruno Haible  <bruno@clisp.org>
13168
13169         xstrtol: Move AC_LIBOBJ invocations to module description.
13170         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13171         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13172
13173 2011-05-23  Bruno Haible  <bruno@clisp.org>
13174
13175         xstrtold: Move AC_LIBOBJ invocations to module description.
13176         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13177         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13178
13179 2011-05-23  Bruno Haible  <bruno@clisp.org>
13180
13181         xstrtod: Move AC_LIBOBJ invocations to module description.
13182         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13183         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13184
13185 2011-05-23  Bruno Haible  <bruno@clisp.org>
13186
13187         xnanosleep: Move AC_LIBOBJ invocations to module description.
13188         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13189         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13190
13191 2011-05-23  Bruno Haible  <bruno@clisp.org>
13192
13193         xgetcwd: Move AC_LIBOBJ invocations to module description.
13194         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13195         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13196
13197 2011-05-23  Bruno Haible  <bruno@clisp.org>
13198
13199         xalloc: Move AC_LIBOBJ invocations to module description.
13200         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13201         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13202
13203 2011-05-23  Bruno Haible  <bruno@clisp.org>
13204
13205         write-any-file: Move AC_LIBOBJ invocations to module description.
13206         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13207         invocation.
13208         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13209
13210 2011-05-23  Bruno Haible  <bruno@clisp.org>
13211
13212         utimens: Move AC_LIBOBJ invocations to module description.
13213         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13214         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13215
13216 2011-05-23  Bruno Haible  <bruno@clisp.org>
13217
13218         utimecmp: Move AC_LIBOBJ invocations to module description.
13219         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13220         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13221
13222 2011-05-23  Bruno Haible  <bruno@clisp.org>
13223
13224         userspec: Move AC_LIBOBJ invocations to module description.
13225         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13226         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13227
13228 2011-05-23  Bruno Haible  <bruno@clisp.org>
13229
13230         unlinkdir: Move AC_LIBOBJ invocations to module description.
13231         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13232         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13233
13234 2011-05-23  Bruno Haible  <bruno@clisp.org>
13235
13236         unistd-safer: Move AC_LIBOBJ invocations to module description.
13237         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13238         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13239
13240 2011-05-23  Bruno Haible  <bruno@clisp.org>
13241
13242         tempname: Move AC_LIBOBJ invocations to module description.
13243         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13244         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13245
13246 2011-05-23  Bruno Haible  <bruno@clisp.org>
13247
13248         strftime: Move AC_LIBOBJ invocations to module description.
13249         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13250         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13251
13252 2011-05-23  Bruno Haible  <bruno@clisp.org>
13253
13254         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13255         * m4/stdlib-safer.m4: Remove file.
13256         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13257         (configure.ac): Remove gl_STDLIB_SAFER call.
13258         (Makefile.am): Augment lib_SOURCES.
13259
13260 2011-05-23  Bruno Haible  <bruno@clisp.org>
13261
13262         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13263         * m4/stdio-safer.m4: Remove file.
13264         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13265         (configure.ac): Remove gl_TMPFILE_SAFER call.
13266         (Makefile.am): Augment lib_SOURCES.
13267
13268 2011-05-23  Bruno Haible  <bruno@clisp.org>
13269
13270         popen-safer: Move AC_LIBOBJ invocations to module description.
13271         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13272         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13273         (configure.ac): Remove gl_POPEN_SAFER call.
13274         (Makefile.am): Augment lib_SOURCES.
13275
13276 2011-05-23  Bruno Haible  <bruno@clisp.org>
13277
13278         freopen-safer: Move AC_LIBOBJ invocations to module description.
13279         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13280         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13281         (configure.ac): Remove gl_FREOPEN_SAFER call.
13282         (Makefile.am): Augment lib_SOURCES.
13283
13284 2011-05-23  Bruno Haible  <bruno@clisp.org>
13285
13286         fopen-safer: Move AC_LIBOBJ invocations to module description.
13287         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13288         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13289         (configure.ac): Remove gl_FOPEN_SAFER call.
13290         (Makefile.am): Augment lib_SOURCES.
13291
13292 2011-05-23  Bruno Haible  <bruno@clisp.org>
13293
13294         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13295         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13296         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13297
13298 2011-05-23  Bruno Haible  <bruno@clisp.org>
13299
13300         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13301         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13302         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13303
13304 2011-05-23  Bruno Haible  <bruno@clisp.org>
13305
13306         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13307         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13308         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13309
13310 2011-05-23  Bruno Haible  <bruno@clisp.org>
13311
13312         settime: Move AC_LIBOBJ invocations to module description.
13313         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13314         * modules/settime (Makefile.am): Augment lib_SOURCES.
13315
13316 2011-05-23  Bruno Haible  <bruno@clisp.org>
13317
13318         savedir: Move AC_LIBOBJ invocations to module description.
13319         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13320         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13321
13322 2011-05-23  Bruno Haible  <bruno@clisp.org>
13323
13324         save-cwd: Move AC_LIBOBJ invocations to module description.
13325         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13326         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13327
13328 2011-05-23  Bruno Haible  <bruno@clisp.org>
13329
13330         same: Move AC_LIBOBJ invocations to module description.
13331         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13332         * modules/same (Makefile.am): Augment lib_SOURCES.
13333
13334 2011-05-23  Bruno Haible  <bruno@clisp.org>
13335
13336         safe-write: Move AC_LIBOBJ invocations to module description.
13337         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13338         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13339         instead of gl_SAFE_WRITE.
13340         (Makefile.am): Augment lib_SOURCES.
13341
13342 2011-05-23  Bruno Haible  <bruno@clisp.org>
13343
13344         safe-read: Move AC_LIBOBJ invocations to module description.
13345         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13346         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13347         of gl_SAFE_READ.
13348         (Makefile.am): Augment lib_SOURCES.
13349
13350 2011-05-23  Bruno Haible  <bruno@clisp.org>
13351
13352         safe-alloc: Move AC_LIBOBJ invocations to module description.
13353         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13354         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13355
13356 2011-05-23  Bruno Haible  <bruno@clisp.org>
13357
13358         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13359         * m4/rijndael.m4: Remove file.
13360         * modules/crypto/rijndael (Files): Remove it.
13361         (configure.ac): Remove gl_RIJNDAEL call.
13362         (Makefile.am): Augment lib_SOURCES.
13363
13364 2011-05-23  Bruno Haible  <bruno@clisp.org>
13365
13366         readtokens: Move AC_LIBOBJ invocations to module description.
13367         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13368         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13369
13370 2011-05-23  Bruno Haible  <bruno@clisp.org>
13371
13372         read-file: Move AC_LIBOBJ invocations to module description.
13373         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13374         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13375         of gl_FUNC_READ_FILE.
13376         (Makefile.am): Augment lib_SOURCES.
13377
13378 2011-05-23  Bruno Haible  <bruno@clisp.org>
13379
13380         quotearg: Move AC_LIBOBJ invocations to module description.
13381         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13382         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13383
13384 2011-05-23  Bruno Haible  <bruno@clisp.org>
13385
13386         quote: Move AC_LIBOBJ invocations to module description.
13387         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13388         * modules/quote (Makefile.am): Augment lib_SOURCES.
13389
13390 2011-05-23  Bruno Haible  <bruno@clisp.org>
13391
13392         posixver: Move AC_LIBOBJ invocations to module description.
13393         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13394         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13395
13396 2011-05-23  Bruno Haible  <bruno@clisp.org>
13397
13398         posixtm: Move AC_LIBOBJ invocations to module description.
13399         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13400         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13401
13402 2011-05-23  Bruno Haible  <bruno@clisp.org>
13403
13404         physmem: Move AC_LIBOBJ invocations to module description.
13405         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13406         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13407
13408 2011-05-23  Bruno Haible  <bruno@clisp.org>
13409
13410         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13411         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13412         invocation.
13413         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13414
13415 2011-05-23  Bruno Haible  <bruno@clisp.org>
13416
13417         mpsort: Move AC_LIBOBJ invocations to module description.
13418         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13419         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13420
13421 2011-05-23  Bruno Haible  <bruno@clisp.org>
13422
13423         modechange: Move AC_LIBOBJ invocations to module description.
13424         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13425         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13426
13427 2011-05-23  Bruno Haible  <bruno@clisp.org>
13428
13429         mkdir-p: Move AC_LIBOBJ invocations to module description.
13430         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13431         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13432
13433 2011-05-23  Bruno Haible  <bruno@clisp.org>
13434
13435         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13436         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13437         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13438
13439 2011-05-23  Bruno Haible  <bruno@clisp.org>
13440
13441         mgetgroups: Move AC_LIBOBJ invocations to module description.
13442         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13443         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13444
13445 2011-05-23  Bruno Haible  <bruno@clisp.org>
13446
13447         memxor: Move AC_LIBOBJ invocations to module description.
13448         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13449         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13450
13451 2011-05-23  Bruno Haible  <bruno@clisp.org>
13452
13453         memcoll: Move AC_LIBOBJ invocations to module description.
13454         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13455         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13456
13457 2011-05-23  Bruno Haible  <bruno@clisp.org>
13458
13459         memcasecmp: Move AC_LIBOBJ invocations to module description.
13460         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13461         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13462
13463 2011-05-23  Bruno Haible  <bruno@clisp.org>
13464
13465         crypto/md5: Move AC_LIBOBJ invocations to module description.
13466         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13467         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13468
13469 2011-05-23  Bruno Haible  <bruno@clisp.org>
13470
13471         crypto/md4: Move AC_LIBOBJ invocations to module description.
13472         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13473         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13474
13475 2011-05-23  Bruno Haible  <bruno@clisp.org>
13476
13477         crypto/md2: Move AC_LIBOBJ invocations to module description.
13478         * m4/md2.m4: Remove file.
13479         * modules/crypto/md2 (Files): Remove it.
13480         (configure.ac): Remove gl_MD2 call.
13481         (Makefile.am): Augment lib_SOURCES.
13482
13483 2011-05-23  Bruno Haible  <bruno@clisp.org>
13484
13485         long-options: Move AC_LIBOBJ invocations to module description.
13486         * m4/long-options.m4: Remove file.
13487         * modules/long-options (Files): Remove it.
13488         (configure.ac): Remove gl_LONG_OPTIONS call.
13489         (Makefile.am): Augment lib_SOURCES.
13490
13491 2011-05-23  Bruno Haible  <bruno@clisp.org>
13492
13493         i-ring: Move AC_LIBOBJ invocations to module description.
13494         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13495         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13496
13497 2011-05-23  Bruno Haible  <bruno@clisp.org>
13498
13499         idcache: Move AC_LIBOBJ invocations to module description.
13500         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13501         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13502
13503 2011-05-23  Bruno Haible  <bruno@clisp.org>
13504
13505         human: Move AC_LIBOBJ invocations to module description.
13506         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13507         * modules/human (Makefile.am): Augment lib_SOURCES.
13508
13509 2011-05-23  Bruno Haible  <bruno@clisp.org>
13510
13511         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13512         * m4/hmac-sha1.m4: Remove file.
13513         * modules/crypto/hmac-sha1 (Files): Remove it.
13514         (configure.ac): Remove gl_HMAC_SHA1 call.
13515         (Makefile.am): Augment lib_SOURCES.
13516
13517 2011-05-23  Bruno Haible  <bruno@clisp.org>
13518
13519         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13520         * m4/hmac-md5.m4: Remove file.
13521         * modules/crypto/hmac-md5 (Files): Remove it.
13522         (configure.ac): Remove gl_HMAC_MD5 call.
13523         (Makefile.am): Augment lib_SOURCES.
13524
13525 2011-05-23  Bruno Haible  <bruno@clisp.org>
13526
13527         hash: Move AC_LIBOBJ invocations to module description.
13528         * m4/hash.m4: Remove file.
13529         * modules/hash (Files): Remove it.
13530         (configure.ac): Remove gl_HASH call.
13531         (Makefile.am): Augment lib_SOURCES.
13532
13533 2011-05-23  Bruno Haible  <bruno@clisp.org>
13534
13535         hard-locale: Move AC_LIBOBJ invocations to module description.
13536         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13537         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13538
13539 2011-05-23  Bruno Haible  <bruno@clisp.org>
13540
13541         getugroups: Move AC_LIBOBJ invocations to module description.
13542         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13543         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13544
13545 2011-05-23  Bruno Haible  <bruno@clisp.org>
13546
13547         gettime: Move AC_LIBOBJ invocations to module description.
13548         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13549         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13550
13551 2011-05-23  Bruno Haible  <bruno@clisp.org>
13552
13553         getndelim2: Move AC_LIBOBJ invocations to module description.
13554         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13555         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13556
13557 2011-05-23  Bruno Haible  <bruno@clisp.org>
13558
13559         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13560         * m4/gc-pbkdf2-sha1.m4: Remove file.
13561         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13562         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13563         (Makefile.am): Augment lib_SOURCES.
13564
13565 2011-05-23  Bruno Haible  <bruno@clisp.org>
13566
13567         fts: Move AC_LIBOBJ invocations to module description.
13568         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13569         * modules/fts (configure.ac): ... to here.
13570
13571 2011-05-23  Bruno Haible  <bruno@clisp.org>
13572
13573         file-type: Move AC_LIBOBJ invocations to module description.
13574         * m4/file-type.m4: Remove file.
13575         * modules/file-type (Files): Remove it.
13576         (configure.ac): Remove gl_FILE_TYPE call.
13577         (Makefile.am): Augment lib_SOURCES.
13578
13579 2011-05-23  Bruno Haible  <bruno@clisp.org>
13580
13581         filenamecat*: Respect rules for use of AC_LIBOBJ.
13582         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13583         Remove AC_LIBOBJ invocation.
13584         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13585         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13586
13587 2011-05-23  Bruno Haible  <bruno@clisp.org>
13588
13589         filemode: Move AC_LIBOBJ invocations to module description.
13590         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13591         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13592
13593 2011-05-23  Bruno Haible  <bruno@clisp.org>
13594
13595         openat-safer: Move AC_LIBOBJ invocations to module description.
13596         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13597         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13598
13599 2011-05-23  Bruno Haible  <bruno@clisp.org>
13600
13601         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13602         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13603         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13604
13605 2011-05-23  Bruno Haible  <bruno@clisp.org>
13606
13607         exclude: Move AC_LIBOBJ invocations to module description.
13608         * m4/exclude.m4: Remove file.
13609         * modules/exclude (Files): Remove it.
13610         (configure.ac): Remove gl_EXCLUDE call.
13611         (Makefile.am): Augment lib_SOURCES.
13612
13613 2011-05-23  Bruno Haible  <bruno@clisp.org>
13614
13615         dirname*: Respect rules for use of AC_LIBOBJ.
13616         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13617         invocations.
13618         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13619         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13620
13621 2011-05-23  Bruno Haible  <bruno@clisp.org>
13622
13623         dirent-safer: Move AC_LIBOBJ invocations to module description.
13624         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13625         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13626
13627 2011-05-23  Bruno Haible  <bruno@clisp.org>
13628
13629         crypto/des: Move AC_LIBOBJ invocations to module description.
13630         * m4/des.m4: Remove file.
13631         * modules/crypto/des (Files): Remove it.
13632         (configure.ac): Remove gl_DES call.
13633         (Makefile.am): Augment lib_SOURCES.
13634
13635 2011-05-23  Bruno Haible  <bruno@clisp.org>
13636
13637         cycle-check: Move AC_LIBOBJ invocations to module description.
13638         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13639         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13640
13641 2011-05-23  Bruno Haible  <bruno@clisp.org>
13642
13643         c-strtold: Move AC_LIBOBJ invocations to module description.
13644         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13645         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13646
13647 2011-05-23  Bruno Haible  <bruno@clisp.org>
13648
13649         c-strtod: Move AC_LIBOBJ invocations to module description.
13650         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13651         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13652
13653 2011-05-23  Bruno Haible  <bruno@clisp.org>
13654
13655         crc: Move AC_LIBOBJ invocations to module description.
13656         * m4/crc.m4: Remove file.
13657         * modules/crc (Files): Remove it.
13658         (configure.ac): Remove gl_CRC call.
13659         (Makefile.am): Augment lib_SOURCES.
13660
13661 2011-05-23  Bruno Haible  <bruno@clisp.org>
13662
13663         close-stream: Move AC_LIBOBJ invocations to module description.
13664         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13665         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13666
13667 2011-05-23  Bruno Haible  <bruno@clisp.org>
13668
13669         closeout: Move AC_LIBOBJ invocations to module description.
13670         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13671         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13672
13673 2011-05-23  Bruno Haible  <bruno@clisp.org>
13674
13675         closein: Move AC_LIBOBJ invocations to module description.
13676         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13677         * modules/closein (Makefile.am): Augment lib_SOURCES.
13678
13679 2011-05-23  Bruno Haible  <bruno@clisp.org>
13680
13681         cloexec: Move AC_LIBOBJ invocations to module description.
13682         * m4/cloexec.m4: Remove file.
13683         * modules/cloexec (Files): Remove it.
13684         (configure.ac): Remove gl_CLOEXEC call.
13685         (Makefile.am): Augment lib_SOURCES.
13686
13687 2011-05-23  Bruno Haible  <bruno@clisp.org>
13688
13689         check-version: Move AC_LIBOBJ invocations to module description.
13690         * m4/check-version.m4: Remove file.
13691         * modules/check-version (Files): Remove it.
13692         (configure.ac): Remove gl_CHECK_VERSION call.
13693         (Makefile.am): Augment lib_SOURCES.
13694
13695 2011-05-23  Bruno Haible  <bruno@clisp.org>
13696
13697         chdir-safer: Move AC_LIBOBJ invocations to module description.
13698         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13699         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13700
13701 2011-05-23  Bruno Haible  <bruno@clisp.org>
13702
13703         canonicalize: Move AC_LIBOBJ invocations to module description.
13704         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13705         AC_LIBOBJ invocation.
13706         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13707
13708 2011-05-23  Bruno Haible  <bruno@clisp.org>
13709
13710         canon-host: Move AC_LIBOBJ invocations to module description.
13711         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13712         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13713         instead of gl_CANON_HOST.
13714         (Makefile.am): Augment lib_SOURCES.
13715
13716 2011-05-23  Bruno Haible  <bruno@clisp.org>
13717
13718         backupfile: Move AC_LIBOBJ invocations to module description.
13719         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13720         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13721
13722 2011-05-23  Bruno Haible  <bruno@clisp.org>
13723
13724         argmatch: Move AC_LIBOBJ invocations to module description.
13725         * m4/argmatch.m4: Remove file.
13726         * modules/argmatch (Files): Remove it.
13727         (configure.ac): Remove gl_ARGMATCH call.
13728         (Makefile.am): Augment lib_SOURCES.
13729
13730 2011-05-23  Bruno Haible  <bruno@clisp.org>
13731
13732         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13733         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13734         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13735
13736 2011-05-23  Bruno Haible  <bruno@clisp.org>
13737
13738         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13739         * m4/arcfour.m4: Remove file.
13740         * modules/crypto/arcfour (Files): Remove it.
13741         (configure.ac): Remove gl_ARCFOUR call.
13742         (Makefile.am): Augment lib_SOURCES.
13743
13744 2011-05-22  Bruno Haible  <bruno@clisp.org>
13745
13746         write: Move AC_LIBOBJ invocations to module description.
13747         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13748         * modules/write (configure.ac): ... to here.
13749
13750 2011-05-22  Bruno Haible  <bruno@clisp.org>
13751
13752         wmemset: Move AC_LIBOBJ invocations to module description.
13753         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13754         here...
13755         * modules/wmemset (configure.ac): ... to here.
13756
13757 2011-05-22  Bruno Haible  <bruno@clisp.org>
13758
13759         wmemmove: Move AC_LIBOBJ invocations to module description.
13760         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13761         here...
13762         * modules/wmemmove (configure.ac): ... to here.
13763
13764 2011-05-22  Bruno Haible  <bruno@clisp.org>
13765
13766         wmemcpy: Move AC_LIBOBJ invocations to module description.
13767         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13768         here...
13769         * modules/wmemcpy (configure.ac): ... to here.
13770
13771 2011-05-22  Bruno Haible  <bruno@clisp.org>
13772
13773         wmemcmp: Move AC_LIBOBJ invocations to module description.
13774         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13775         here...
13776         * modules/wmemcmp (configure.ac): ... to here.
13777
13778 2011-05-22  Bruno Haible  <bruno@clisp.org>
13779
13780         wmemchr: Move AC_LIBOBJ invocations to module description.
13781         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13782         here...
13783         * modules/wmemchr (configure.ac): ... to here.
13784
13785 2011-05-22  Bruno Haible  <bruno@clisp.org>
13786
13787         wcswidth: Move AC_LIBOBJ invocations to module description.
13788         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13789         here...
13790         * modules/wcswidth (configure.ac): ... to here.
13791
13792 2011-05-22  Bruno Haible  <bruno@clisp.org>
13793
13794         wcwidth: Respect rules for use of AC_LIBOBJ.
13795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13796         invocation from here...
13797         * modules/wcwidth (configure.ac): ... to here.
13798         (Depends-on): Update conditions.
13799
13800 2011-05-22  Bruno Haible  <bruno@clisp.org>
13801
13802         wctype: Move AC_LIBOBJ invocations to module description.
13803         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13804         invocation from here...
13805         * modules/wctype (configure.ac): ... to here.
13806         (Depends-on): Update conditions.
13807
13808 2011-05-22  Bruno Haible  <bruno@clisp.org>
13809
13810         wctrans: Move AC_LIBOBJ invocations to module description.
13811         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13812         invocation from here...
13813         * modules/wctrans (configure.ac): ... to here.
13814
13815 2011-05-22  Bruno Haible  <bruno@clisp.org>
13816
13817         wctomb: Move AC_LIBOBJ invocations to module description.
13818         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13819         invocations from here...
13820         * modules/wctomb (configure.ac): ... to here.
13821
13822 2011-05-22  Bruno Haible  <bruno@clisp.org>
13823
13824         wctob: Move AC_LIBOBJ invocations to module description.
13825         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13826         gl_PREREQ_WCTOB invocations from here...
13827         * modules/wctob (configure.ac): ... to here.
13828         (Depends-on): Update conditions.
13829
13830 2011-05-22  Bruno Haible  <bruno@clisp.org>
13831
13832         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13833         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13834         here...
13835         * modules/wcsxfrm (configure.ac): ... to here.
13836
13837 2011-05-22  Bruno Haible  <bruno@clisp.org>
13838
13839         wcstok: Move AC_LIBOBJ invocations to module description.
13840         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13841         * modules/wcstok (configure.ac): ... to here.
13842
13843 2011-05-22  Bruno Haible  <bruno@clisp.org>
13844
13845         wcsstr: Move AC_LIBOBJ invocations to module description.
13846         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13847         * modules/wcsstr (configure.ac): ... to here.
13848
13849 2011-05-22  Bruno Haible  <bruno@clisp.org>
13850
13851         wcsspn: Move AC_LIBOBJ invocations to module description.
13852         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13853         * modules/wcsspn (configure.ac): ... to here.
13854
13855 2011-05-22  Bruno Haible  <bruno@clisp.org>
13856
13857         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13858         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13859         gl_PREREQ_WCSRTOMBS invocations from here...
13860         * modules/wcsrtombs (configure.ac): ... to here.
13861
13862 2011-05-22  Bruno Haible  <bruno@clisp.org>
13863
13864         wcsrchr: Move AC_LIBOBJ invocations to module description.
13865         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13866         here...
13867         * modules/wcsrchr (configure.ac): ... to here.
13868
13869 2011-05-22  Bruno Haible  <bruno@clisp.org>
13870
13871         wcspbrk: Move AC_LIBOBJ invocations to module description.
13872         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13873         here...
13874         * modules/wcspbrk (configure.ac): ... to here.
13875
13876 2011-05-22  Bruno Haible  <bruno@clisp.org>
13877
13878         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13879         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13880         gl_PREREQ_WCSNRTOMBS invocations from here...
13881         * modules/wcsnrtombs (configure.ac): ... to here.
13882
13883 2011-05-22  Bruno Haible  <bruno@clisp.org>
13884
13885         wcsnlen: Move AC_LIBOBJ invocations to module description.
13886         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13887         here...
13888         * modules/wcsnlen (configure.ac): ... to here.
13889
13890 2011-05-22  Bruno Haible  <bruno@clisp.org>
13891
13892         wcsncpy: Move AC_LIBOBJ invocations to module description.
13893         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13894         here...
13895         * modules/wcsncpy (configure.ac): ... to here.
13896
13897 2011-05-22  Bruno Haible  <bruno@clisp.org>
13898
13899         wcsncmp: Move AC_LIBOBJ invocations to module description.
13900         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13901         here...
13902         * modules/wcsncmp (configure.ac): ... to here.
13903
13904 2011-05-22  Bruno Haible  <bruno@clisp.org>
13905
13906         wcsncat: Move AC_LIBOBJ invocations to module description.
13907         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13908         here...
13909         * modules/wcsncat (configure.ac): ... to here.
13910
13911 2011-05-22  Bruno Haible  <bruno@clisp.org>
13912
13913         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13914         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13915         from here...
13916         * modules/wcsncasecmp (configure.ac): ... to here.
13917
13918 2011-05-22  Bruno Haible  <bruno@clisp.org>
13919
13920         wcslen: Move AC_LIBOBJ invocations to module description.
13921         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13922         * modules/wcslen (configure.ac): ... to here.
13923
13924 2011-05-22  Bruno Haible  <bruno@clisp.org>
13925
13926         wcsdup: Move AC_LIBOBJ invocations to module description.
13927         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13928         * modules/wcsdup (configure.ac): ... to here.
13929
13930 2011-05-22  Bruno Haible  <bruno@clisp.org>
13931
13932         wcscspn: Move AC_LIBOBJ invocations to module description.
13933         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13934         here...
13935         * modules/wcscspn (configure.ac): ... to here.
13936
13937 2011-05-22  Bruno Haible  <bruno@clisp.org>
13938
13939         wcscpy: Move AC_LIBOBJ invocations to module description.
13940         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13941         * modules/wcscpy (configure.ac): ... to here.
13942
13943 2011-05-22  Bruno Haible  <bruno@clisp.org>
13944
13945         wcscoll: Move AC_LIBOBJ invocations to module description.
13946         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13947         here...
13948         * modules/wcscoll (configure.ac): ... to here.
13949
13950 2011-05-22  Bruno Haible  <bruno@clisp.org>
13951
13952         wcscmp: Move AC_LIBOBJ invocations to module description.
13953         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13954         * modules/wcscmp (configure.ac): ... to here.
13955
13956 2011-05-22  Bruno Haible  <bruno@clisp.org>
13957
13958         wcschr: Move AC_LIBOBJ invocations to module description.
13959         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13960         * modules/wcschr (configure.ac): ... to here.
13961
13962 2011-05-22  Bruno Haible  <bruno@clisp.org>
13963
13964         wcscat: Move AC_LIBOBJ invocations to module description.
13965         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13966         * modules/wcscat (configure.ac): ... to here.
13967
13968 2011-05-22  Bruno Haible  <bruno@clisp.org>
13969
13970         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13971         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13972         here...
13973         * modules/wcscasecmp (configure.ac): ... to here.
13974
13975 2011-05-22  Bruno Haible  <bruno@clisp.org>
13976
13977         wcrtomb: Move AC_LIBOBJ invocations to module description.
13978         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13979         invocations from here...
13980         * modules/wcrtomb (configure.ac): ... to here.
13981
13982 2011-05-22  Bruno Haible  <bruno@clisp.org>
13983
13984         wcpncpy: Move AC_LIBOBJ invocations to module description.
13985         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13986         here...
13987         * modules/wcpncpy (configure.ac): ... to here.
13988
13989 2011-05-22  Bruno Haible  <bruno@clisp.org>
13990
13991         wcpcpy: Move AC_LIBOBJ invocations to module description.
13992         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13993         * modules/wcpcpy (configure.ac): ... to here.
13994
13995 2011-05-22  Bruno Haible  <bruno@clisp.org>
13996
13997         waitpid: Move AC_LIBOBJ invocations to module description.
13998         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13999         invocation from here...
14000         * modules/waitpid (configure.ac): ... to here.
14001
14002 2011-05-22  Bruno Haible  <bruno@clisp.org>
14003
14004         utimensat: Move AC_LIBOBJ invocations to module description.
14005         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14006         here...
14007         * modules/utimensat (configure.ac): ... to here.
14008
14009 2011-05-22  Bruno Haible  <bruno@clisp.org>
14010
14011         usleep: Move AC_LIBOBJ invocations to module description.
14012         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14013         here...
14014         * modules/usleep (configure.ac): ... to here.
14015
14016 2011-05-22  Bruno Haible  <bruno@clisp.org>
14017
14018         unlockpt: Move AC_LIBOBJ invocations to module description.
14019         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14020         gl_PREREQ_UNLOCKPT invocations from here...
14021         * modules/unlockpt (configure.ac): ... to here.
14022
14023 2011-05-22  Bruno Haible  <bruno@clisp.org>
14024
14025         unlink: Respect rules for use of AC_LIBOBJ.
14026         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14027         * modules/unlink (configure.ac): ... to here.
14028
14029 2011-05-22  Bruno Haible  <bruno@clisp.org>
14030
14031         uname: Move AC_LIBOBJ invocations to module description.
14032         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14034         here...
14035         * modules/uname (configure.ac): ... to here.
14036
14037 2011-05-22  Bruno Haible  <bruno@clisp.org>
14038
14039         ttyname_r: Move AC_LIBOBJ invocations to module description.
14040         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14041         gl_PREREQ_TTYNAME_R invocations from here...
14042         * modules/ttyname_r (configure.ac): ... to here.
14043
14044 2011-05-22  Bruno Haible  <bruno@clisp.org>
14045
14046         tsearch: Move AC_LIBOBJ invocations to module description.
14047         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14048         invocations from here...
14049         * modules/tsearch (configure.ac): ... to here.
14050
14051 2011-05-22  Bruno Haible  <bruno@clisp.org>
14052
14053         towctrans: Move AC_LIBOBJ invocations to module description.
14054         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14055         AC_LIBOBJ invocation from here...
14056         * modules/towctrans (configure.ac): ... to here.
14057
14058 2011-05-22  Bruno Haible  <bruno@clisp.org>
14059
14060         tmpfile: Move AC_LIBOBJ invocations to module description.
14061         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14062         invocations from here...
14063         * modules/tmpfile (configure.ac): ... to here.
14064
14065 2011-05-22  Bruno Haible  <bruno@clisp.org>
14066
14067         times: Move AC_LIBOBJ invocations to module description.
14068         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14069         * modules/times (configure.ac): ... to here.
14070
14071 2011-05-22  Bruno Haible  <bruno@clisp.org>
14072
14073         time_r: Move AC_LIBOBJ invocations to module description.
14074         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14075         invocations from here...
14076         * modules/time_r (configure.ac): ... to here.
14077
14078 2011-05-22  Bruno Haible  <bruno@clisp.org>
14079
14080         timegm: Move AC_LIBOBJ invocations to module description.
14081         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14082         invocations from here...
14083         * modules/timegm (configure.ac): ... to here.
14084
14085 2011-05-22  Bruno Haible  <bruno@clisp.org>
14086
14087         tcgetsid: Move AC_LIBOBJ invocations to module description.
14088         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14089         and gl_PREREQ_TCGETSID invocations from here...
14090         * modules/tcgetsid (configure.ac): ... to here.
14091         (Depends-on): Update conditions.
14092
14093 2011-05-22  Bruno Haible  <bruno@clisp.org>
14094
14095         symlinkat: Move AC_LIBOBJ invocations to module description.
14096         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14097         here...
14098         * modules/symlinkat (configure.ac): ... to here.
14099
14100 2011-05-22  Bruno Haible  <bruno@clisp.org>
14101
14102         symlink: Move AC_LIBOBJ invocations to module description.
14103         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14104         here...
14105         * modules/symlink (configure.ac): ... to here.
14106
14107 2011-05-22  Bruno Haible  <bruno@clisp.org>
14108
14109         strverscmp: Move AC_LIBOBJ invocations to module description.
14110         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14112         from here...
14113         * modules/strverscmp (configure.ac): ... to here.
14114
14115 2011-05-22  Bruno Haible  <bruno@clisp.org>
14116
14117         strtok_r: Move AC_LIBOBJ invocations to module description.
14118         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14119         and gl_PREREQ_STRTOK_R invocations from here...
14120         * modules/strtok_r (configure.ac): ... to here.
14121         (Depends-on): Update conditions.
14122
14123 2011-05-22  Bruno Haible  <bruno@clisp.org>
14124
14125         strtoumax: Move AC_LIBOBJ invocations to module description.
14126         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14128         from here...
14129         * modules/strtoumax (configure.ac): ... to here.
14130
14131 2011-05-22  Bruno Haible  <bruno@clisp.org>
14132
14133         strtoimax: Move AC_LIBOBJ invocations to module description.
14134         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14136         from here...
14137         * modules/strtoimax (configure.ac): ... to here.
14138
14139 2011-05-22  Bruno Haible  <bruno@clisp.org>
14140
14141         strtoull: Move AC_LIBOBJ invocations to module description.
14142         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14144         from here...
14145         * modules/strtoull (configure.ac): ... to here.
14146
14147 2011-05-22  Bruno Haible  <bruno@clisp.org>
14148
14149         strtoll: Move AC_LIBOBJ invocations to module description.
14150         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14152         here...
14153         * modules/strtoll (configure.ac): ... to here.
14154
14155 2011-05-22  Bruno Haible  <bruno@clisp.org>
14156
14157         strtoul: Move AC_LIBOBJ invocations to module description.
14158         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14159         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14160         * modules/strtoul (configure.ac): ... to here.
14161
14162 2011-05-22  Bruno Haible  <bruno@clisp.org>
14163
14164         strtol: Move AC_LIBOBJ invocations to module description.
14165         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14166         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14167         * modules/strtol (configure.ac): ... to here.
14168
14169 2011-05-22  Bruno Haible  <bruno@clisp.org>
14170
14171         strtod: Move AC_LIBOBJ invocations to module description.
14172         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14173         invocations from here...
14174         * modules/strtod (configure.ac): ... to here.
14175
14176 2011-05-22  Bruno Haible  <bruno@clisp.org>
14177
14178         strstr*: Move AC_LIBOBJ invocations to module description.
14179         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14180         invocations from here...
14181         * modules/strstr-simple (configure.ac): ... to here.
14182         * modules/strstr (configure.ac): ... and here.
14183
14184 2011-05-22  Bruno Haible  <bruno@clisp.org>
14185
14186         strsignal: Move AC_LIBOBJ invocations to module description.
14187         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14188         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14189         * modules/strsignal (configure.ac): ... to here.
14190         (Depends-on): Update conditions.
14191
14192 2011-05-22  Bruno Haible  <bruno@clisp.org>
14193
14194         strsep: Move AC_LIBOBJ invocations to module description.
14195         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14196         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14197         here...
14198         * modules/strsep (configure.ac): ... to here.
14199
14200 2011-05-22  Bruno Haible  <bruno@clisp.org>
14201
14202         strptime: Move AC_LIBOBJ invocations to module description.
14203         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14204         gl_PREREQ_STRPTIME invocations from here...
14205         * modules/strptime (configure.ac): ... to here.
14206
14207 2011-05-22  Bruno Haible  <bruno@clisp.org>
14208
14209         strpbrk: Move AC_LIBOBJ invocations to module description.
14210         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14212         here...
14213         * modules/strpbrk (configure.ac): ... to here.
14214
14215 2011-05-22  Bruno Haible  <bruno@clisp.org>
14216
14217         strnlen: Move AC_LIBOBJ invocations to module description.
14218         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14219         invocations from here...
14220         * modules/strnlen (configure.ac): ... to here.
14221
14222 2011-05-22  Bruno Haible  <bruno@clisp.org>
14223
14224         strndup: Move AC_LIBOBJ invocations to module description.
14225         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14226         invocations from here...
14227         * modules/strndup (configure.ac): ... to here.
14228         (Depends-on): Update conditions.
14229
14230 2011-05-22  Bruno Haible  <bruno@clisp.org>
14231
14232         strncat: Move AC_LIBOBJ invocations to module description.
14233         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14234         invocations from here...
14235         * modules/strncat (configure.ac): ... to here.
14236
14237 2011-05-22  Bruno Haible  <bruno@clisp.org>
14238
14239         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14240         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14241         invocations from here...
14242         * modules/strdup (configure.ac): ... to here.
14243         * modules/strdup-posix (configure.ac): ... and here.
14244
14245 2011-05-22  Bruno Haible  <bruno@clisp.org>
14246
14247         strcspn: Move AC_LIBOBJ invocations to module description.
14248         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14250         here...
14251         * modules/strcspn (configure.ac): ... to here.
14252
14253 2011-05-22  Bruno Haible  <bruno@clisp.org>
14254
14255         strchrnul: Move AC_LIBOBJ invocations to module description.
14256         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14257         gl_PREREQ_STRCHRNUL invocations from here...
14258         * modules/strchrnul (configure.ac): ... to here.
14259
14260 2011-05-22  Bruno Haible  <bruno@clisp.org>
14261
14262         strcasestr*: Move AC_LIBOBJ invocations to module description.
14263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14264         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14265         * modules/strcasestr-simple (configure.ac): ... to here.
14266         * modules/strcasestr (configure.ac): ... and here.
14267
14268 2011-05-22  Bruno Haible  <bruno@clisp.org>
14269
14270         strcase: Move AC_LIBOBJ invocations to module description.
14271         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14272         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14273         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14274         gl_PREREQ_STRNCASECMP invocations from here...
14275         * modules/strcase (configure.ac): ... to here.
14276
14277 2011-05-22  Bruno Haible  <bruno@clisp.org>
14278
14279         stpncpy: Move AC_LIBOBJ invocations to module description.
14280         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14281         here...
14282         * modules/stpncpy (configure.ac): ... to here.
14283
14284 2011-05-22  Bruno Haible  <bruno@clisp.org>
14285
14286         stpcpy: Move AC_LIBOBJ invocations to module description.
14287         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14289         here...
14290         * modules/stpcpy (configure.ac): ... to here.
14291
14292 2011-05-21  Bruno Haible  <bruno@clisp.org>
14293
14294         stat: Move AC_LIBOBJ invocations to module description.
14295         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14296         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14297         here...
14298         * modules/stat (configure.ac): ... to here.
14299
14300 2011-05-21  Bruno Haible  <bruno@clisp.org>
14301
14302         sleep: Move AC_LIBOBJ invocations to module description.
14303         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14304         * modules/sleep (configure.ac): ... to here.
14305
14306 2011-05-21  Bruno Haible  <bruno@clisp.org>
14307
14308         signbit: Move AC_LIBOBJ invocations to module description.
14309         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14310         * modules/signbit (configure.ac): ... to here.
14311
14312 2011-05-21  Bruno Haible  <bruno@clisp.org>
14313
14314         sigprocmask: Move AC_LIBOBJ invocations to module description.
14315         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14316         gl_PREREQ_SIGPROMASK invocations from here...
14317         * modules/sigprocmask (configure.ac): ... to here.
14318
14319 2011-05-21  Bruno Haible  <bruno@clisp.org>
14320
14321         sigaction: Move AC_LIBOBJ invocations to module description.
14322         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14323         gl_PREREQ_SIGACTION invocations from here...
14324         * modules/sigaction (configure.ac): ... to here.
14325
14326 2011-05-21  Bruno Haible  <bruno@clisp.org>
14327
14328         sig2str: Move AC_LIBOBJ invocations to module description.
14329         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14330         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14331         here...
14332         * modules/sig2str (configure.ac): ... to here.
14333
14334 2011-05-21  Bruno Haible  <bruno@clisp.org>
14335
14336         setlocale: Move AC_LIBOBJ invocations to module description.
14337         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14338         gl_PREREQ_SETLOCALE invocations from here...
14339         * modules/setlocale (configure.ac): ... to here.
14340
14341 2011-05-21  Bruno Haible  <bruno@clisp.org>
14342
14343         unsetenv: Move AC_LIBOBJ invocations to module description.
14344         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14345         and gl_PREREQ_UNSETENV invocations from here...
14346         * modules/unsetenv (configure.ac): ... to here.
14347         (Depends-on): Update.
14348
14349 2011-05-21  Bruno Haible  <bruno@clisp.org>
14350
14351         setenv: Move AC_LIBOBJ invocations to module description.
14352         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14353         here...
14354         * modules/setenv (configure.ac): ... to here.
14355
14356 2011-05-21  Bruno Haible  <bruno@clisp.org>
14357
14358         selinux-h: Move AC_LIBOBJ invocations to module description.
14359         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14360         AC_LIBOBJ invocation from here...
14361         * modules/selinux-h (configure.ac): ... to here.
14362
14363 2011-05-21  Bruno Haible  <bruno@clisp.org>
14364
14365         select: Respect rules for use of AC_LIBOBJ.
14366         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14367         here...
14368         * modules/select (configure.ac): ... to here.
14369
14370 2011-05-21  Bruno Haible  <bruno@clisp.org>
14371
14372         scandir: Move AC_LIBOBJ invocations to module description.
14373         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14374         invocations from here...
14375         * modules/scandir (configure.ac): ... to here.
14376
14377 2011-05-21  Bruno Haible  <bruno@clisp.org>
14378
14379         rpmatch: Move AC_LIBOBJ invocations to module description.
14380         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14382         here...
14383         * modules/rpmatch (configure.ac): ... to here.
14384
14385 2011-05-21  Bruno Haible  <bruno@clisp.org>
14386
14387         rmdir: Respect rules for use of AC_LIBOBJ.
14388         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14389         * modules/rmdir (configure.ac): ... to here.
14390
14391 2011-05-21  Bruno Haible  <bruno@clisp.org>
14392
14393         renameat: Move AC_LIBOBJ invocations to module description.
14394         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14395         here...
14396         * modules/renameat (configure.ac): ... to here.
14397
14398 2011-05-21  Bruno Haible  <bruno@clisp.org>
14399
14400         rename: Respect rules for use of AC_LIBOBJ.
14401         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14402         here...
14403         * modules/rename (configure.ac): ... to here.
14404
14405 2011-05-21  Bruno Haible  <bruno@clisp.org>
14406
14407         remove: Move AC_LIBOBJ invocations to module description.
14408         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14409         here...
14410         * modules/remove (configure.ac): ... to here.
14411
14412 2011-05-21  Bruno Haible  <bruno@clisp.org>
14413
14414         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14415         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14416         macro.
14417         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14418         * modules/relocatable-lib (configure.ac): ... to here.
14419         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14420         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14421
14422 2011-05-21  Bruno Haible  <bruno@clisp.org>
14423
14424         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14425         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14426         here...
14427         * modules/relocatable-prog (configure.ac): ... to here.
14428
14429 2011-05-21  Bruno Haible  <bruno@clisp.org>
14430
14431         regex: Move AC_LIBOBJ invocations to module description.
14432         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14433         invocations from here...
14434         * modules/regex (configure.ac): ... to here.
14435
14436 2011-05-21  Bruno Haible  <bruno@clisp.org>
14437
14438         realloc-*: Move AC_LIBOBJ invocations to module description.
14439         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14440         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14441         AC_LIBOBJ invocations from here...
14442         * modules/realloc-gnu (configure.ac): ... to here.
14443         * modules/realloc-posix (configure.ac): ... and here.
14444
14445 2011-05-21  Bruno Haible  <bruno@clisp.org>
14446
14447         readutmp: Move AC_LIBOBJ invocations to module description.
14448         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14449         * modules/readutmp (configure.ac): ... to here.
14450
14451 2011-05-21  Bruno Haible  <bruno@clisp.org>
14452
14453         readlinkat: Move AC_LIBOBJ invocations to module description.
14454         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14455         here...
14456         * modules/readlinkat (configure.ac): ... to here.
14457
14458 2011-05-21  Bruno Haible  <bruno@clisp.org>
14459
14460         readlink: Move AC_LIBOBJ invocations to module description.
14461         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14462         gl_PREREQ_READLINK invocations from here...
14463         * modules/readlink (configure.ac): ... to here.
14464
14465 2011-05-21  Bruno Haible  <bruno@clisp.org>
14466
14467         readline: Move AC_LIBOBJ invocations to module description.
14468         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14469         gl_PREREQ_READLINE invocations from here...
14470         * modules/readline (configure.ac): ... to here.
14471
14472 2011-05-21  Bruno Haible  <bruno@clisp.org>
14473
14474         read: Move AC_LIBOBJ invocations to module description.
14475         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14476         * modules/read (configure.ac): ... to here.
14477
14478 2011-05-21  Bruno Haible  <bruno@clisp.org>
14479
14480         rawmemchr: Move AC_LIBOBJ invocations to module description.
14481         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14482         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14483         from here...
14484         * modules/rawmemchr (configure.ac): ... to here.
14485
14486 2011-05-21  Bruno Haible  <bruno@clisp.org>
14487
14488         random_r: Move AC_LIBOBJ invocations to module description.
14489         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14490         gl_PREREQ_RANDOM_R invocations from here...
14491         * modules/random_r (configure.ac): ... to here.
14492
14493 2011-05-21  Bruno Haible  <bruno@clisp.org>
14494
14495         pwrite: Move AC_LIBOBJ invocations to module description.
14496         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14497         * modules/pwrite (configure.ac): ... to here.
14498
14499 2011-05-21  Bruno Haible  <bruno@clisp.org>
14500
14501         putenv: Move AC_LIBOBJ invocations to module description.
14502         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14503         * modules/putenv (configure.ac): ... to here.
14504
14505 2011-05-21  Bruno Haible  <bruno@clisp.org>
14506
14507         login_tty: Move AC_LIBOBJ invocations to module description.
14508         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14509         * modules/login_tty (configure.ac): ... to here.
14510
14511 2011-05-21  Bruno Haible  <bruno@clisp.org>
14512
14513         openpty: Move AC_LIBOBJ invocations to module description.
14514         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14515         * modules/openpty (configure.ac): ... to here.
14516
14517 2011-05-21  Bruno Haible  <bruno@clisp.org>
14518
14519         forkpty: Move AC_LIBOBJ invocations to module description.
14520         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14521         * modules/forkpty (configure.ac): ... to here.
14522
14523 2011-05-21  Bruno Haible  <bruno@clisp.org>
14524
14525         ptsname: Move AC_LIBOBJ invocations to module description.
14526         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14527         invocations from here...
14528         * modules/ptsname (configure.ac): ... to here.
14529
14530 2011-05-21  Bruno Haible  <bruno@clisp.org>
14531
14532         pread: Move AC_LIBOBJ invocations to module description.
14533         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14534         * modules/pread (configure.ac): ... to here.
14535
14536 2011-05-21  Bruno Haible  <bruno@clisp.org>
14537
14538         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14539         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14540         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14541         * modules/posix_spawn (configure.ac): ... to here.
14542         * modules/posix_spawnp (configure.ac): ... and here.
14543
14544 2011-05-21  Bruno Haible  <bruno@clisp.org>
14545
14546         popen: Move AC_LIBOBJ invocations to module description.
14547         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14548         invocations from here...
14549         * modules/popen (configure.ac): ... to here.
14550
14551 2011-05-21  Bruno Haible  <bruno@clisp.org>
14552
14553         poll: Move AC_LIBOBJ invocations to module description.
14554         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14555         invocations from here...
14556         * modules/poll (configure.ac): ... to here.
14557
14558 2011-05-21  Bruno Haible  <bruno@clisp.org>
14559
14560         pipe-posix: Move AC_LIBOBJ invocations to module description.
14561         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14562         * modules/pipe-posix (configure.ac): ... to here.
14563
14564 2011-05-21  Bruno Haible  <bruno@clisp.org>
14565
14566         openat: Respect rules for use of AC_LIBOBJ.
14567         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14568         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14569         * modules/openat (configure.ac): ... to here.
14570
14571 2011-05-21  Bruno Haible  <bruno@clisp.org>
14572
14573         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14574         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14575         invocation from here...
14576         * modules/obstack-printf (configure.ac): ... to here.
14577         * modules/obstack-printf-posix (configure.ac): ... and here.
14578
14579 2011-05-21  Bruno Haible  <bruno@clisp.org>
14580
14581         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14582         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14583         from here...
14584         * modules/nl_langinfo (configure.ac): ... to here.
14585
14586 2011-05-21  Bruno Haible  <bruno@clisp.org>
14587
14588         nanosleep: Move AC_LIBOBJ invocations to module description.
14589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14590         gl_PREREQ_NANOSLEEP invocations from here...
14591         * modules/nanosleep (configure.ac): ... to here.
14592
14593 2011-05-21  Bruno Haible  <bruno@clisp.org>
14594
14595         mountlist: Move AC_LIBOBJ invocations to module description.
14596         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14597         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14598         * modules/mountlist (configure.ac): ... to here.
14599
14600 2011-05-21  Bruno Haible  <bruno@clisp.org>
14601
14602         mktime: Respect rules for use of AC_LIBOBJ.
14603         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14604         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14605         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14606         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14607         * modules/mktime (configure.ac): ... to here.
14608         * modules/mktime-internal (configure.ac): ... and here.
14609         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14610
14611 2011-05-21  Bruno Haible  <bruno@clisp.org>
14612
14613         mkstemps: Move AC_LIBOBJ invocations to module description.
14614         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14615         here...
14616         * modules/mkstemps (configure.ac): ... to here.
14617
14618 2011-05-21  Bruno Haible  <bruno@clisp.org>
14619
14620         mkstemp: Move AC_LIBOBJ invocations to module description.
14621         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14622         gl_PREREQ_MKSTEMP invocations from here...
14623         * modules/mkstemp (configure.ac): ... to here.
14624
14625 2011-05-21  Bruno Haible  <bruno@clisp.org>
14626
14627         mkostemps: Move AC_LIBOBJ invocations to module description.
14628         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14629         here...
14630         * modules/mkostemps (configure.ac): ... to here.
14631
14632 2011-05-21  Bruno Haible  <bruno@clisp.org>
14633
14634         mkostemp: Move AC_LIBOBJ invocations to module description.
14635         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14636         gl_PREREQ_MKOSTEMP invocations from here...
14637         * modules/mkostemp (configure.ac): ... to here.
14638
14639 2011-05-21  Bruno Haible  <bruno@clisp.org>
14640
14641         mknod: Move AC_LIBOBJ invocations to module description.
14642         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14643         * modules/mknod (configure.ac): ... to here.
14644
14645 2011-05-21  Bruno Haible  <bruno@clisp.org>
14646
14647         mkfifoat: Move AC_LIBOBJ invocations to module description.
14648         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14649         here...
14650         * modules/mkfifoat (configure.ac): ... to here.
14651
14652 2011-05-21  Bruno Haible  <bruno@clisp.org>
14653
14654         mkfifo: Respect rules for use of AC_LIBOBJ.
14655         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14656         here...
14657         * modules/mkfifo (configure.ac): ... to here.
14658
14659 2011-05-21  Bruno Haible  <bruno@clisp.org>
14660
14661         mkdtemp: Move AC_LIBOBJ invocations to module description.
14662         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14663         invocations from here...
14664         * modules/mkdtemp (configure.ac): ... to here.
14665
14666 2011-05-21  Bruno Haible  <bruno@clisp.org>
14667
14668         mkdir: Move AC_LIBOBJ invocations to module description.
14669         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14670         * modules/mkdir (configure.ac): ... to here.
14671
14672 2011-05-21  Bruno Haible  <bruno@clisp.org>
14673
14674         memset: Move AC_LIBOBJ invocations to module description.
14675         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14676         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14677         here...
14678         * modules/memset (configure.ac): ... to here.
14679
14680 2011-05-21  Bruno Haible  <bruno@clisp.org>
14681
14682         memrchr: Move AC_LIBOBJ invocations to module description.
14683         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14685         here...
14686         * modules/memrchr (configure.ac): ... to here.
14687
14688 2011-05-21  Bruno Haible  <bruno@clisp.org>
14689
14690         mempcpy: Move AC_LIBOBJ invocations to module description.
14691         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14693         here...
14694         * modules/mempcpy (configure.ac): ... to here.
14695
14696 2011-05-21  Bruno Haible  <bruno@clisp.org>
14697
14698         memmove: Move AC_LIBOBJ invocations to module description.
14699         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14701         here...
14702         * modules/memmove (configure.ac): ... to here.
14703
14704 2011-05-21  Bruno Haible  <bruno@clisp.org>
14705
14706         memmem*: Move AC_LIBOBJ invocations to module description.
14707         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14708         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14709         here...
14710         (gl_FUNC_MEMMEM): ... and here...
14711         * modules/memmem-simple (configure.ac): ... to here.
14712         * modules/memmem (configure.ac): ... and here.
14713
14714 2011-05-21  Bruno Haible  <bruno@clisp.org>
14715
14716         memcpy: Move AC_LIBOBJ invocations to module description.
14717         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14718         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14719         here...
14720         * modules/memcpy (configure.ac): ... to here.
14721
14722 2011-05-21  Bruno Haible  <bruno@clisp.org>
14723
14724         memcmp: Simplify autoconf macro.
14725         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14726         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14727         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14728
14729 2011-05-21  Bruno Haible  <bruno@clisp.org>
14730
14731         memcmp: Move AC_LIBOBJ invocations to module description.
14732         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14733         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14734         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14735         * modules/memcmp (configure.ac): ... to here.
14736         (Depends-on): Update conditions.
14737
14738 2011-05-21  Bruno Haible  <bruno@clisp.org>
14739
14740         memchr: Respect rules for use of AC_LIBOBJ.
14741         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14742         invocations from here...
14743         * modules/memchr (configure.ac): ... to here.
14744
14745 2011-05-21  Bruno Haible  <bruno@clisp.org>
14746
14747         mbtowc: Move AC_LIBOBJ invocations to module description.
14748         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14749         invocations from here...
14750         * modules/mbtowc (configure.ac): ... to here.
14751
14752 2011-05-21  Bruno Haible  <bruno@clisp.org>
14753
14754         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14755         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14756         gl_PREREQ_MBSRTOWCS invocations from here...
14757         * modules/mbsrtowcs (configure.ac): ... to here.
14758
14759 2011-05-21  Bruno Haible  <bruno@clisp.org>
14760
14761         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14762         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14763         gl_PREREQ_MBSNRTOWCS invocations from here...
14764         * modules/mbsnrtowcs (configure.ac): ... to here.
14765
14766 2011-05-21  Bruno Haible  <bruno@clisp.org>
14767
14768         mbsinit: Move AC_LIBOBJ invocations to module description.
14769         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14770         invocations from here...
14771         * modules/mbsinit (configure.ac): ... to here.
14772
14773 2011-05-21  Bruno Haible  <bruno@clisp.org>
14774
14775         mbrlen: Move AC_LIBOBJ invocations to module description.
14776         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14777         invocations from here...
14778         * modules/mbrlen (configure.ac): ... to here.
14779
14780 2011-05-21  Bruno Haible  <bruno@clisp.org>
14781
14782         mbrtowc: Respect rules for use of AC_LIBOBJ.
14783         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14784         invocations from here...
14785         * modules/mbrtowc (configure.ac): ... to here.
14786
14787 2011-05-21  Bruno Haible  <bruno@clisp.org>
14788
14789         malloc-*: Move AC_LIBOBJ invocations to module description.
14790         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14791         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14792         AC_LIBOBJ invocations from here...
14793         * modules/malloc-gnu (configure.ac): ... to here.
14794         * modules/malloc-posix (configure.ac): ... and here.
14795
14796 2011-05-21  Bruno Haible  <bruno@clisp.org>
14797
14798         lstat, openat: Respect rules for use of AC_LIBOBJ.
14799         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14800         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14801         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14802         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14803         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14804         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14805         here.
14806         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14807
14808 2011-05-21  Bruno Haible  <bruno@clisp.org>
14809
14810         lseek: Move AC_LIBOBJ invocations to module description.
14811         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14812         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14813         * modules/lseek (configure.ac): ... to here.
14814
14815 2011-05-21  Bruno Haible  <bruno@clisp.org>
14816
14817         linkat: Move AC_LIBOBJ invocations to module description.
14818         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14819         here...
14820         * modules/linkat (configure.ac): ... to here.
14821
14822 2011-05-21  Bruno Haible  <bruno@clisp.org>
14823
14824         link: Respect rules for use of AC_LIBOBJ.
14825         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14826         * modules/link (configure.ac): ... to here.
14827
14828 2011-05-21  Bruno Haible  <bruno@clisp.org>
14829
14830         lchown: Move AC_LIBOBJ invocations to module description.
14831         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14832         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14833         * modules/lchown (configure.ac): ... to here.
14834
14835 2011-05-21  Bruno Haible  <bruno@clisp.org>
14836
14837         iswctype: Move AC_LIBOBJ invocations to module description.
14838         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14839         here...
14840         * modules/iswctype (configure.ac): ... to here.
14841
14842 2011-05-21  Bruno Haible  <bruno@clisp.org>
14843
14844         iswblank: Move AC_LIBOBJ invocations to module description.
14845         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14846         here...
14847         * modules/iswblank (configure.ac): ... to here.
14848
14849 2011-05-21  Bruno Haible  <bruno@clisp.org>
14850
14851         atanl: Move AC_LIBOBJ invocations to module description.
14852         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14853         * modules/atanl (configure.ac): ... to here.
14854
14855 2011-05-21  Bruno Haible  <bruno@clisp.org>
14856
14857         acosl: Move AC_LIBOBJ invocations to module description.
14858         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14859         * modules/acosl (configure.ac): ... to here.
14860
14861 2011-05-21  Bruno Haible  <bruno@clisp.org>
14862
14863         asinl: Respect rules for use of AC_LIBOBJ.
14864         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14865         * modules/asinl (configure.ac): ... to here.
14866
14867 2011-05-21  Bruno Haible  <bruno@clisp.org>
14868
14869         tanl: Move AC_LIBOBJ invocations to module description.
14870         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14871         * modules/tanl (configure.ac): ... to here.
14872
14873 2011-05-21  Bruno Haible  <bruno@clisp.org>
14874
14875         cosl: Move AC_LIBOBJ invocations to module description.
14876         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14877         * modules/cosl (configure.ac): ... to here.
14878
14879 2011-05-21  Bruno Haible  <bruno@clisp.org>
14880
14881         sinl: Move AC_LIBOBJ invocations to module description.
14882         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14883         * modules/sinl (configure.ac): ... to here.
14884
14885 2011-05-21  Bruno Haible  <bruno@clisp.org>
14886
14887         logl: Move AC_LIBOBJ invocations to module description.
14888         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14889         * modules/logl (configure.ac): ... to here.
14890
14891 2011-05-21  Bruno Haible  <bruno@clisp.org>
14892
14893         expl: Move AC_LIBOBJ invocations to module description.
14894         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14895         * modules/expl (configure.ac): ... to here.
14896
14897 2011-05-21  Bruno Haible  <bruno@clisp.org>
14898
14899         roundl: Move AC_LIBOBJ invocations to module description.
14900         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14901         * modules/roundl (configure.ac): ... to here.
14902
14903 2011-05-21  Bruno Haible  <bruno@clisp.org>
14904
14905         round: Move AC_LIBOBJ invocations to module description.
14906         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14907         * modules/round (configure.ac): ... to here.
14908
14909 2011-05-21  Bruno Haible  <bruno@clisp.org>
14910
14911         roundf: Move AC_LIBOBJ invocations to module description.
14912         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14913         * modules/roundf (configure.ac): ... to here.
14914
14915 2011-05-21  Bruno Haible  <bruno@clisp.org>
14916
14917         truncl: Move AC_LIBOBJ invocations to module description.
14918         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14919         * modules/truncl (configure.ac): ... to here.
14920
14921 2011-05-21  Bruno Haible  <bruno@clisp.org>
14922
14923         trunc: Move AC_LIBOBJ invocations to module description.
14924         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14925         * modules/trunc (configure.ac): ... to here.
14926
14927 2011-05-21  Bruno Haible  <bruno@clisp.org>
14928
14929         truncf: Move AC_LIBOBJ invocations to module description.
14930         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14931         * modules/truncf (configure.ac): ... to here.
14932
14933 2011-05-21  Bruno Haible  <bruno@clisp.org>
14934
14935         ceill: Move AC_LIBOBJ invocations to module description.
14936         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14937         * modules/ceill (configure.ac): ... to here.
14938
14939 2011-05-21  Bruno Haible  <bruno@clisp.org>
14940
14941         ceil: Move AC_LIBOBJ invocations to module description.
14942         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14943         * modules/ceil (configure.ac): ... to here.
14944
14945 2011-05-21  Bruno Haible  <bruno@clisp.org>
14946
14947         ceilf: Move AC_LIBOBJ invocations to module description.
14948         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14949         * modules/ceilf (configure.ac): ... to here.
14950
14951 2011-05-21  Bruno Haible  <bruno@clisp.org>
14952
14953         floorl: Respect rules for use of AC_LIBOBJ.
14954         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14955         * modules/floorl (configure.ac): ... to here.
14956
14957 2011-05-21  Bruno Haible  <bruno@clisp.org>
14958
14959         floor: Respect rules for use of AC_LIBOBJ.
14960         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14961         * modules/floor (configure.ac): ... to here.
14962
14963 2011-05-21  Bruno Haible  <bruno@clisp.org>
14964
14965         floorf: Move AC_LIBOBJ invocations to module description.
14966         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14967         * modules/floorf (configure.ac): ... to here.
14968
14969 2011-05-20  Bruno Haible  <bruno@clisp.org>
14970
14971         sqrtl: Respect rules for use of AC_LIBOBJ.
14972         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14973         * modules/sqrtl (configure.ac): ... to here.
14974
14975 2011-05-20  Bruno Haible  <bruno@clisp.org>
14976
14977         ldexpl: Respect rules for use of AC_LIBOBJ.
14978         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14979         * modules/ldexpl (configure.ac): ... to here.
14980
14981 2011-05-20  Bruno Haible  <bruno@clisp.org>
14982
14983         frexpl*: Respect rules for use of AC_LIBOBJ.
14984         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14985         invocation from here...
14986         * modules/frexpl (configure.ac): ... to here.
14987         * modules/frexpl-nolibm (configure.ac): ... and here.
14988
14989 2011-05-20  Bruno Haible  <bruno@clisp.org>
14990
14991         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14992         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14993         invocation from here...
14994         * modules/frexp (configure.ac): ... to here.
14995         * modules/frexp-nolibm (configure.ac): ... and here.
14996
14997 2011-05-20  Bruno Haible  <bruno@clisp.org>
14998
14999         isnan: Respect rules for use of AC_LIBOBJ.
15000         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15001         invocations here.
15002         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15003         REPLACE_ISNAN.
15004         * modules/isnand (configure.ac): Likewise.
15005         * modules/isnanl (configure.ac): Likewise.
15006
15007 2011-05-20  Bruno Haible  <bruno@clisp.org>
15008
15009         isnanl*: Respect rules for use of AC_LIBOBJ.
15010         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15011         invocation from here...
15012         * modules/isnanl (configure.ac): ... to here.
15013         * modules/isnanl-nolibm (configure.ac): ... and here.
15014
15015 2011-05-20  Bruno Haible  <bruno@clisp.org>
15016
15017         isnand*: Move AC_LIBOBJ invocations to module description.
15018         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15019         invocation from here...
15020         * modules/isnand (configure.ac): ... to here.
15021         * modules/isnand-nolibm (configure.ac): ... and here.
15022
15023 2011-05-20  Bruno Haible  <bruno@clisp.org>
15024
15025         isnanf*: Move AC_LIBOBJ invocations to module description.
15026         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15027         invocation from here...
15028         * modules/isnanf (configure.ac): ... to here.
15029         * modules/isnanf-nolibm (configure.ac): ... and here.
15030
15031 2011-05-20  Bruno Haible  <bruno@clisp.org>
15032
15033         isnan*: Separate the AC_LIBOBJ invocations.
15034         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15035         AC_LIBOBJ invocation.
15036         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15037         here.
15038         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15039         AC_LIBOBJ invocation.
15040         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15041         here.
15042         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15043         AC_LIBOBJ invocation.
15044         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15045         here.
15046         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15047
15048 2011-05-08  Bruno Haible  <bruno@clisp.org>
15049
15050         isinf: Move AC_LIBOBJ invocations to module description.
15051         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15052         * modules/isinf (configure.ac): ... to here.
15053
15054 2011-05-08  Bruno Haible  <bruno@clisp.org>
15055
15056         isfinite: Move AC_LIBOBJ invocations to module description.
15057         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15058         * modules/isfinite (configure.ac): ... to here.
15059
15060 2011-05-08  Bruno Haible  <bruno@clisp.org>
15061
15062         isblank: Move AC_LIBOBJ invocations to module description.
15063         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15064         here...
15065         * modules/isblank (configure.ac): ... to here.
15066
15067 2011-05-08  Bruno Haible  <bruno@clisp.org>
15068
15069         isapipe: Move AC_LIBOBJ invocations to module description.
15070         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15071         gl_PREREQ_ISAPIPE invocations from here...
15072         * modules/isapipe (configure.ac): ... to here.
15073         (Depends-on): Update condition.
15074
15075 2011-05-08  Bruno Haible  <bruno@clisp.org>
15076
15077         ioctl: Move AC_LIBOBJ invocations to module description.
15078         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15079         invocations from here...
15080         * modules/ioctl (configure.ac): ... to here.
15081         (Depends-on): Update condition.
15082
15083 2011-05-08  Bruno Haible  <bruno@clisp.org>
15084
15085         imaxdiv: Move AC_LIBOBJ invocations to module description.
15086         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15087         invocations from here...
15088         * modules/imaxdiv (configure.ac): ... to here.
15089
15090 2011-05-08  Bruno Haible  <bruno@clisp.org>
15091
15092         imaxabs: Move AC_LIBOBJ invocations to module description.
15093         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15094         invocations from here...
15095         * modules/imaxabs (configure.ac): ... to here.
15096
15097 2011-05-08  Bruno Haible  <bruno@clisp.org>
15098
15099         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15101         AC_LIBOBJ invocations from here...
15102         * modules/getaddrinfo (configure.ac): ... to here.
15103         (Depends-on): Add conditions.
15104
15105 2011-05-08  Bruno Haible  <bruno@clisp.org>
15106
15107         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15108         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15109         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15110         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15111         (gl_PREREQ_INET_PTON): ... from here.
15112         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15113         gl_PREREQ_INET_PTON here.
15114         (Depends-on): Update condition.
15115
15116 2011-05-08  Bruno Haible  <bruno@clisp.org>
15117
15118         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15119         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15120         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15121         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15122         (gl_PREREQ_INET_NTOP): ... from here.
15123         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15124         gl_PREREQ_INET_NTOP here.
15125         (Depends-on): Update condition.
15126
15127 2011-05-08  Bruno Haible  <bruno@clisp.org>
15128
15129         iconv_open: Move AC_LIBOBJ invocations to module description.
15130         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15131         AC_LIBOBJ invocations from here...
15132         * modules/iconv_open (configure.ac): ... to here.
15133
15134 2011-05-08  Bruno Haible  <bruno@clisp.org>
15135
15136         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15137         If module 'iconv_open' is among the main modules and module
15138         'iconv_open-utf' is among the tests dependencies, then
15139         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15140         return the special iconv_t values. Therefore iconv() and iconv_close()
15141         must support these special iconv_t values, already in lib, not only in
15142         tests.
15143         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15144         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15145         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15146         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15147         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15148         (Depends-on): Add the dependencies of iconv_open-utf.
15149         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15150         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15151         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15152
15153 2011-05-08  Bruno Haible  <bruno@clisp.org>
15154
15155         group-member: Move AC_LIBOBJ invocations to module description.
15156         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15157         gl_PREREQ_GROUP_MEMBER invocations from here...
15158         * modules/group-member (configure.ac): ... to here.
15159
15160 2011-05-08  Bruno Haible  <bruno@clisp.org>
15161
15162         grantpt: Move AC_LIBOBJ invocations to module description.
15163         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15164         invocations from here...
15165         * modules/grantpt (configure.ac): ... to here.
15166
15167 2011-05-08  Bruno Haible  <bruno@clisp.org>
15168
15169         glob: Move AC_LIBOBJ invocations to module description.
15170         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15171         from here...
15172         * modules/glob (configure.ac): ... to here.
15173
15174 2011-05-08  Bruno Haible  <bruno@clisp.org>
15175
15176         getusershell: Move AC_LIBOBJ invocations to module description.
15177         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15178         Move AC_LIBOBJ invocation from here...
15179         * modules/getusershell (configure.ac): ... to here.
15180         (Depends-on): Update condition.
15181
15182 2011-05-08  Bruno Haible  <bruno@clisp.org>
15183
15184         gettimeofday: Move AC_LIBOBJ invocations to module description.
15185         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15186         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15187         gl_PREREQ_GETTIMEOFDAY invocations from here...
15188         * modules/gettimeofday (configure.ac): ... to here.
15189
15190 2011-05-08  Bruno Haible  <bruno@clisp.org>
15191
15192         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15193         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15194         just gl_FUNC_TZSET.
15195         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15196         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15198         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15199
15200 2011-05-08  Bruno Haible  <bruno@clisp.org>
15201
15202         getsubopt: Move AC_LIBOBJ invocations to module description.
15203         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15204         gl_PREREQ_GETSUBOPT invocations from here...
15205         * modules/getsubopt (configure.ac): ... to here.
15206
15207 2011-05-08  Bruno Haible  <bruno@clisp.org>
15208
15209         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15210         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15211         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15212         * modules/getpass-gnu (configure.ac): ... to here.
15213
15214 2011-05-08  Bruno Haible  <bruno@clisp.org>
15215
15216         getpass: Move AC_LIBOBJ invocations to module description.
15217         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15218         gl_PREREQ_GETPASS invocations from here...
15219         * modules/getpass (configure.ac): ... to here.
15220
15221 2011-05-08  Bruno Haible  <bruno@clisp.org>
15222
15223         getpagesize: Move AC_LIBOBJ invocations to module description.
15224         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15225         from here...
15226         * modules/getpagesize (configure.ac): ... to here.
15227
15228 2011-05-08  Bruno Haible  <bruno@clisp.org>
15229
15230         getopt: Move AC_LIBOBJ invocations to module description.
15231         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15232         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15233         invocations from here...
15234         * modules/getopt-gnu (configure.ac): ... to here.
15235         * modules/getopt-posix (configure.ac): ... and here.
15236         (Depends-on): Update condition.
15237
15238 2011-05-08  Bruno Haible  <bruno@clisp.org>
15239
15240         getopt, argp: Respect rules for use of AC_LIBOBJ.
15241         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15242         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15243         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15244         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15245
15246 2011-05-08  Bruno Haible  <bruno@clisp.org>
15247
15248         getlogin_r: Move AC_LIBOBJ invocations to module description.
15249         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15250         gl_PREREQ_GETLOGIN_R invocations from here...
15251         * modules/getlogin_r (configure.ac): ... to here.
15252
15253 2011-05-08  Bruno Haible  <bruno@clisp.org>
15254
15255         getlogin: Move AC_LIBOBJ invocations to module description.
15256         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15257         here...
15258         * modules/getlogin (configure.ac): ... to here.
15259
15260 2011-05-08  Bruno Haible  <bruno@clisp.org>
15261
15262         getloadavg: Move AC_LIBOBJ invocations to module description.
15263         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15264         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15265         * modules/getloadavg (configure.ac): ... to here.
15266
15267 2011-05-08  Bruno Haible  <bruno@clisp.org>
15268
15269         gethrxtime: Move AC_LIBOBJ invocations to module description.
15270         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15271         LIB_GETHRXTIME from here...
15272         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15273         invocations from here...
15274         * modules/gethrxtime (configure.ac): ... to here.
15275
15276 2011-05-08  Bruno Haible  <bruno@clisp.org>
15277
15278         gethostname: Move AC_LIBOBJ invocations to module description.
15279         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15280         gl_PREREQ_GETHOSTNAME invocations from here...
15281         * modules/gethostname (configure.ac): ... to here.
15282
15283 2011-05-08  Bruno Haible  <bruno@clisp.org>
15284
15285         getgroups: Move AC_LIBOBJ invocations to module description.
15286         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15287         here...
15288         * modules/getgroups (configure.ac): ... to here.
15289
15290 2011-05-08  Bruno Haible  <bruno@clisp.org>
15291
15292         getdtablesize: Move AC_LIBOBJ invocations to module description.
15293         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15294         invocation from here...
15295         * modules/getdtablesize (configure.ac): ... to here.
15296
15297 2011-05-08  Bruno Haible  <bruno@clisp.org>
15298
15299         getdomainname: Move AC_LIBOBJ invocations to module description.
15300         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15301         gl_PREREQ_GETDOMAINNAME invocations from here...
15302         * modules/getdomainname (configure.ac): ... to here.
15303
15304 2011-05-08  Bruno Haible  <bruno@clisp.org>
15305
15306         getline: Move AC_LIBOBJ invocations to module description.
15307         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15308         invocations from here...
15309         * modules/getline (configure.ac): ... to here.
15310
15311 2011-05-08  Bruno Haible  <bruno@clisp.org>
15312
15313         getline: Simplify.
15314         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15315         It's already handled through the module dependency.
15316
15317 2011-05-08  Bruno Haible  <bruno@clisp.org>
15318
15319         getdelim: Move AC_LIBOBJ invocations to module description.
15320         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15321         and gl_PREREQ_GETDELIM invocations from here...
15322         * modules/getdelim (configure.ac): ... to here.
15323         (Depends-on): Fix condition.
15324
15325 2011-05-08  Bruno Haible  <bruno@clisp.org>
15326
15327         getcwd: Move AC_LIBOBJ invocations to module description.
15328         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15329         invocations from here...
15330         * modules/getcwd (configure.ac): ... to here.
15331
15332 2011-05-08  Bruno Haible  <bruno@clisp.org>
15333
15334         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15335         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15336         here...
15337         * modules/getcwd-lgpl (configure.ac): ... to here.
15338
15339 2011-05-07  Bruno Haible  <bruno@clisp.org>
15340
15341         crypto/gc: Move AC_LIBOBJ invocations to module description.
15342         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15343         * modules/crypto/gc (configure.ac): ... to here.
15344
15345 2011-05-07  Bruno Haible  <bruno@clisp.org>
15346
15347         fwriting: Move AC_LIBOBJ invocations to module description.
15348         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15349         here...
15350         * modules/fwriting (configure.ac): ... to here.
15351
15352 2011-05-07  Bruno Haible  <bruno@clisp.org>
15353
15354         fwritable: Move AC_LIBOBJ invocations to module description.
15355         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15356         here...
15357         * modules/fwritable (configure.ac): ... to here.
15358
15359 2011-05-07  Bruno Haible  <bruno@clisp.org>
15360
15361         futimens: Move AC_LIBOBJ invocations to module description.
15362         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15363         here...
15364         * modules/futimens (configure.ac): ... to here.
15365
15366 2011-05-07  Bruno Haible  <bruno@clisp.org>
15367
15368         ftruncate: Move AC_LIBOBJ invocations to module description.
15369         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15370         gl_PREREQ_FTRUNCATE invocations from here...
15371         * modules/ftruncate (configure.ac): ... to here.
15372
15373 2011-05-07  Bruno Haible  <bruno@clisp.org>
15374
15375         fsync: Move AC_LIBOBJ invocations to module description.
15376         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15377         invocations from here...
15378         * modules/fsync (configure.ac): ... to here.
15379
15380 2011-05-07  Bruno Haible  <bruno@clisp.org>
15381
15382         fsusage: Move AC_LIBOBJ invocations to module description.
15383         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15384         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15385         * modules/fsusage (configure.ac): ... to here.
15386
15387 2011-05-07  Bruno Haible  <bruno@clisp.org>
15388
15389         freopen: Move AC_LIBOBJ invocations to module description.
15390         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15391         invocations from here...
15392         * modules/freopen (configure.ac): ... to here.
15393
15394 2011-05-07  Bruno Haible  <bruno@clisp.org>
15395
15396         free: Move AC_LIBOBJ invocations to module description.
15397         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15398         invocations from here...
15399         * modules/free (configure.ac): ... to here.
15400
15401 2011-05-07  Bruno Haible  <bruno@clisp.org>
15402
15403         freadable: Move AC_LIBOBJ invocations to module description.
15404         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15405         here...
15406         * modules/freadable (configure.ac): ... to here.
15407
15408 2011-05-07  Bruno Haible  <bruno@clisp.org>
15409
15410         fpurge: Move AC_LIBOBJ invocations to module description.
15411         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15412         invocations from here...
15413         * modules/fpurge (configure.ac): ... to here.
15414
15415 2011-05-07  Bruno Haible  <bruno@clisp.org>
15416
15417         fpending: Move AC_LIBOBJ invocations to module description.
15418         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15419         gl_FUNC_FPENDING.
15420         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15421         invocations from here...
15422         * modules/fpending (configure.ac): ... to here.
15423
15424 2011-05-07  Bruno Haible  <bruno@clisp.org>
15425
15426         fopen: Move AC_LIBOBJ invocations to module description.
15427         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15428         invocations from here...
15429         * modules/fopen (configure.ac): ... to here.
15430
15431 2011-05-07  Bruno Haible  <bruno@clisp.org>
15432
15433         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15434         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15435         gl_FUNC_FNMATCH_POSIX.
15436         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15437         invocations from here...
15438         * modules/fnmatch (configure.ac): ... to here.
15439         * modules/fnmatch-gnu (configure.ac): ... and here.
15440
15441 2011-05-07  Bruno Haible  <bruno@clisp.org>
15442
15443         flock: Move AC_LIBOBJ invocations to module description.
15444         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15445         invocations from here...
15446         * modules/flock (configure.ac): ... to here.
15447
15448 2011-05-07  Bruno Haible  <bruno@clisp.org>
15449
15450         fileblocks: Move AC_LIBOBJ invocations to module description.
15451         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15452         gl_PREREQ_FILEBLOCKS invocations from here...
15453         * modules/fileblocks (configure.ac): ... to here.
15454
15455 2011-05-06  Bruno Haible  <bruno@clisp.org>
15456
15457         fflush: Move AC_LIBOBJ invocations to module description.
15458         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15459         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15460         invocations from here...
15461         * modules/fflush (configure.ac): ... to here.
15462
15463 2011-05-06  Bruno Haible  <bruno@clisp.org>
15464
15465         fdopendir: Move AC_LIBOBJ invocations to module description.
15466         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15467         here...
15468         * modules/fdopendir (configure.ac): ... to here.
15469         (Depends-on): Improve conditions.
15470
15471 2011-05-06  Bruno Haible  <bruno@clisp.org>
15472
15473         _Exit: Move AC_LIBOBJ invocations to module description.
15474         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15475         invocations from here...
15476         * modules/_Exit (configure.ac): ... to here.
15477
15478 2011-05-21  Bruno Haible  <bruno@clisp.org>
15479
15480         euidaccess: Respect rules for use of AC_LIBOBJ.
15481         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15482         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15483         from here...
15484         * modules/euidaccess (configure.ac): ... to here.
15485
15486 2011-05-06  Bruno Haible  <bruno@clisp.org>
15487
15488         error: Move AC_LIBOBJ invocations to module description.
15489         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15490         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15491         invocations from here...
15492         * modules/error (configure.ac): ... to here.
15493
15494 2011-05-06  Bruno Haible  <bruno@clisp.org>
15495
15496         duplocale: Move AC_LIBOBJ invocations to module description.
15497         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15498         gl_PREREQ_DUPLOCALE invocations from here...
15499         * modules/duplocale (configure.ac): ... to here.
15500
15501 2011-05-05  Bruno Haible  <bruno@clisp.org>
15502
15503         dirfd: Move AC_LIBOBJ invocations to module description.
15504         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15505         gl_FUNC_DIRFD.
15506         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15507         here...
15508         * modules/dirfd (configure.ac): ... to here.
15509         (Depends-on): Fix condition.
15510
15511 2011-05-05  Bruno Haible  <bruno@clisp.org>
15512
15513         chown: Respect rules for use of AC_LIBOBJ.
15514         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15515         * modules/chown (configure.ac): ... to here.
15516
15517 2011-05-05  Bruno Haible  <bruno@clisp.org>
15518
15519         chdir-long: Move AC_LIBOBJ invocations to module description.
15520         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15521         gl_PREREQ_CHDIR_LONG invocations from here...
15522         * modules/chdir-long (configure.ac): ... to here.
15523
15524 2011-05-05  Bruno Haible  <bruno@clisp.org>
15525
15526         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15527         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15528         from here...
15529         * modules/canonicalize-lgpl (configure.ac): ... to here.
15530
15531 2011-05-05  Bruno Haible  <bruno@clisp.org>
15532
15533         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15534         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15535         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15536         REPLACE_CALLOC.
15537         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15538         * modules/calloc-gnu (configure.ac): Likewise.
15539
15540 2011-05-05  Bruno Haible  <bruno@clisp.org>
15541
15542         btowc: Move AC_LIBOBJ invocations to module description.
15543         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15544         invocations from here...
15545         * modules/btowc (configure.ac): ... to here.
15546
15547 2011-05-21  Bruno Haible  <bruno@clisp.org>
15548
15549         atexit: Move AC_LIBOBJ invocations to module description.
15550         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15551         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15552         here...
15553         * modules/atexit (configure.ac): ... to here.
15554
15555 2011-05-05  Bruno Haible  <bruno@clisp.org>
15556
15557         atoll: Move AC_LIBOBJ invocations to module description.
15558         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15559         invocations from here...
15560         * modules/atoll (configure.ac): ... to here.
15561
15562 2011-05-05  Bruno Haible  <bruno@clisp.org>
15563
15564         argz: Move AC_LIBOBJ invocations to module description.
15565         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15566         * modules/argz (configure.ac): ... to here.
15567
15568 2011-05-05  Bruno Haible  <bruno@clisp.org>
15569
15570         alphasort: Move AC_LIBOBJ invocations to module description.
15571         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15572         gl_PREREQ_ALPHASORT invocations from here...
15573         * modules/alphasort (configure.ac): ... to here.
15574
15575 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15576
15577         verify: new macro verify_expr; verify_true deprecated
15578         * NEWS: Mention this.
15579         * doc/verify.texi (Compile-time Assertions): Document this.
15580         * lib/verify.h (verify_true): Deprecate.
15581         (verify_expr): New macro.
15582         * tests/test-verify.c (function): Test verify_expr.
15583
15584 2011-06-14  Jim Meyering  <meyering@redhat.com>
15585
15586         init.sh: give more portable redirection-related advice in a comment
15587         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15588         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15589         for lots of discussion.  Stefano Lattarini suggested the solution
15590         of putting "9>&2" after the command.  Reported by Bruno Haible.
15591
15592 2011-06-13  Bruno Haible  <bruno@clisp.org>
15593
15594         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15595         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15596         'none'.
15597
15598 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15599
15600         ftoastr: use strtof only if HAVE_STRTOF
15601         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15603         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15604         * modules/ftoastr (configure.ac): Check for strtof.
15605
15606 2011-06-13  Bruno Haible  <bruno@clisp.org>
15607
15608         gnulib-tool: Addendum to 2011-06-08 commit.
15609         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15610         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15611
15612 2011-06-13  Bruno Haible  <bruno@clisp.org>
15613
15614         fseeko: Provide a non-inline replacement of fseek().
15615         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15616         * modules/fseeko (Depends-on): Add fseek.
15617         * modules/fseek (License): Change to LGPLv2+.
15618
15619 2011-06-13  Bruno Haible  <bruno@clisp.org>
15620
15621         ftello: Provide a non-inline replacement of ftell().
15622         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15623         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15624         not have ftello() (such as on mingw).
15625         * modules/ftello (Depends-on): Add ftell.
15626         * modules/ftell (License): Change to LGPLv2+.
15627
15628 2011-05-07  Bruno Haible  <bruno@clisp.org>
15629
15630         ftell: Move AC_LIBOBJ invocations to module description.
15631         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15632         * modules/ftell (configure.ac): ... to here.
15633
15634 2011-05-07  Bruno Haible  <bruno@clisp.org>
15635
15636         ftello: Respect rules for use of AC_LIBOBJ.
15637         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15638         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15639         here...
15640         * modules/ftello (configure.ac): ... to here.
15641
15642 2011-05-07  Bruno Haible  <bruno@clisp.org>
15643
15644         fseeko: Simplify.
15645         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15646         (gl_FUNC_FSEEKO): Inline it here.
15647
15648 2011-05-07  Bruno Haible  <bruno@clisp.org>
15649
15650         fseek: Move AC_LIBOBJ invocations to module description.
15651         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15652         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15653         * modules/fseek (configure.ac): ... to here.
15654
15655 2011-05-07  Bruno Haible  <bruno@clisp.org>
15656
15657         fseek: Respect rules for use of AC_LIBOBJ.
15658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15659         here...
15660         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15661
15662 2011-05-07  Bruno Haible  <bruno@clisp.org>
15663
15664         fseeko: Respect rules for use of AC_LIBOBJ.
15665         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15666         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15667         here...
15668         * modules/fseeko (configure.ac): ... to here.
15669
15670 2011-06-13  Bruno Haible  <bruno@clisp.org>
15671
15672         gnulib-tool: Allow comments in the 'Depends-on' section.
15673         * doc/gnulib.texi (Module description): Mention comment syntax in the
15674         Depends-on section.
15675         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15676
15677 2011-06-13  Bruno Haible  <bruno@clisp.org>
15678
15679         file-set.h: guard __attibute__ use, now that it's not always defined
15680         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15681         versions that support it.  This fixes a coreutils build failure with
15682         the vendor cc on HP-UX 11.31.
15683
15684 2011-06-12  Bruno Haible  <bruno@clisp.org>
15685
15686         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15687         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15688         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15689         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15690         (acl, aclsort): New declarations.
15691         (aclv_nontrivial): New declaration.
15692         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15693         (file_has_acl): Read also the second kind of HP-UX ACLs.
15694         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15695         kind of HP-UX ACLs if the first kind fails.
15696         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15697         second kind of HP-UX ACLs.
15698         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15699         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15700         agree.
15701         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15702         hpuxjfs.
15703         Handle hpuxjfs.
15704         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15705         hpuxjfs.
15706         Handle hpuxjfs.
15707         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15708         (func_test_same_acls): Use both lsacl and getacl.
15709         Handle hpuxjfs.
15710         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15711         (func_test_same_acls): Use both lsacl and getacl.
15712         Handle hpuxjfs.
15713
15714 2011-06-12  Bruno Haible  <bruno@clisp.org>
15715
15716         acl: Complete the 2010-08-10 fix.
15717         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15718         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15719         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15720         explicitly.
15721         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15722         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15723
15724 2011-06-12  Bruno Haible  <bruno@clisp.org>
15725
15726         spawn-pipe tests: Comments.
15727         * tests/test-spawn-pipe-child.c (main): Update comment.
15728         Reported by James Youngman <jay@gnu.org>.
15729
15730 2011-06-11  James Youngman  <jay@gnu.org>
15731
15732         New module 'stat-size'.
15733         * modules/stat-size: New module.  Provides macros for accessing
15734         file size information in instances of struct stat.  Depends on the
15735         fileblocks module because it calls st_blocks.
15736         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15737         * doc/gnulib.texi: Include stat-size.texi.
15738         * doc/stat-size.texi: Documentation for this module.
15739         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15740         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15741         AC_STRUCT_ST_BLOCKS.
15742
15743 2011-06-09  Bruno Haible  <bruno@clisp.org>
15744
15745         thread: Support pthreads-win32.
15746         * lib/glthread/thread.h (gl_thread_self): Define differently on
15747         pthreads-win32.
15748         (gl_null_thread): New declaration.
15749         (gl_thread_self_pointer): New macro.
15750         * lib/glthread/thread.c (gl_null_thread): New constant.
15751         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15752         gl_thread_self.
15753         * tests/test-tls.c: Likewise.
15754         Suggested by Paul Eggert. Reported by Eric Blake.
15755
15756 2011-06-09  Bruno Haible  <bruno@clisp.org>
15757
15758         thread: Fix confusion between NULL and 0.
15759         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15760         Reported by Paul Eggert.
15761
15762 2011-06-09  Bruno Haible  <bruno@clisp.org>
15763
15764         spawn-pipe tests: Avoid test failure on HP-UX 11.
15765         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15766         is closed.
15767
15768 2011-06-09  Bruno Haible  <bruno@clisp.org>
15769
15770         acl tests: Fix compilation error on HP-UX 11.
15771         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15772
15773 2011-06-09  Bruno Haible  <bruno@clisp.org>
15774
15775         rmdir: Avoid test failure on HP-UX 10.20.
15776         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15777         EEXIST.
15778
15779 2011-06-08  Eric Blake  <eblake@redhat.com>
15780
15781         perror: fix test on mingw
15782         * modules/perror-tests (Depends-on): Add dup2.
15783
15784         strerror_r-posix: fix on MacOS
15785         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15786         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15787         logic bug.
15788         * lib/strerror_r.c (strerror_r): Fix the bug.
15789         * lib/strerror.c (strerror): Likewise.
15790         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15791         problem.
15792         * doc/posix-functions/strerror.texi (strerror): Likewise.
15793         * doc/posix-functions/perror.texi (perror): Likewise.
15794         * tests/test-strerror.c (main): Enhance test.
15795         * tests/test-strerror_r.c (main): Likewise.
15796
15797 2011-06-08  Bruno Haible  <bruno@clisp.org>
15798
15799         gnulib-tool: Better isolation between different gnulib-tool invocations.
15800         * gnulib-tool: New option --witness-c-macro.
15801         (witness_c_macro): New variable.
15802         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15803         AM_CPPFLAGS define it as a C macro.
15804         (func_emit_tests_Makefile_am): Likewise.
15805         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15806         read it from there.
15807         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15808         m4_define, not AC_DEFUN.
15809         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15810         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15811         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15812         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15813         s|...|...|, to substitute the values of the GNULIB_* module indicator
15814         variables.
15815         * modules/dirent (Makefile.am): Likewise.
15816         * modules/fcntl-h (Makefile.am): Likewise.
15817         * modules/iconv-h (Makefile.am): Likewise.
15818         * modules/langinfo (Makefile.am): Likewise.
15819         * modules/locale (Makefile.am): Likewise.
15820         * modules/math (Makefile.am): Likewise.
15821         * modules/netdb (Makefile.am): Likewise.
15822         * modules/poll-h (Makefile.am): Likewise.
15823         * modules/pty (Makefile.am): Likewise.
15824         * modules/search (Makefile.am): Likewise.
15825         * modules/signal (Makefile.am): Likewise.
15826         * modules/spawn (Makefile.am): Likewise.
15827         * modules/stdio (Makefile.am): Likewise.
15828         * modules/stdlib (Makefile.am): Likewise.
15829         * modules/string (Makefile.am): Likewise.
15830         * modules/sys_ioctl (Makefile.am): Likewise.
15831         * modules/sys_select (Makefile.am): Likewise.
15832         * modules/sys_socket (Makefile.am): Likewise.
15833         * modules/sys_stat (Makefile.am): Likewise.
15834         * modules/sys_times (Makefile.am): Likewise.
15835         * modules/sys_utsname (Makefile.am): Likewise.
15836         * modules/sys_wait (Makefile.am): Likewise.
15837         * modules/termios (Makefile.am): Likewise.
15838         * modules/time (Makefile.am): Likewise.
15839         * modules/unistd (Makefile.am): Likewise.
15840         * modules/wchar (Makefile.am): Likewise.
15841
15842 2011-06-08  Eric Blake  <eblake@redhat.com>
15843
15844         strerror: simplify replacement
15845         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15846         * modules/strerror (configure.ac): No prereqs needed here...
15847         * modules/strerror-override (configure.ac): ...but this needs it.
15848         (Files): Add file for needed prereq macro.
15849
15850 2011-06-08  Bruno Haible  <bruno@clisp.org>
15851
15852         strerror_r-posix: Tweaks.
15853         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15854         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15855         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15856         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15857         (gl_FUNC_STRERROR_R): ... to here.
15858         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15859
15860 2011-06-07  Eric Blake  <eblake@redhat.com>
15861
15862         perror: document fixed bugs
15863         * doc/posix-functions/perror.texi (perror): Document recent
15864         patches.
15865
15866 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15867
15868         stat-time: get_stat_birthtime failure is better-defined
15869         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15870         return a timestamp whose tv_sec and tv_nsec values are both -1.
15871         Previously, the spec said only that the tv_nsec value was negative.
15872         This upward-compatible change simplifies GNU tar a bit.
15873
15874 2011-06-07  Eric Blake  <eblake@redhat.com>
15875
15876         strerror_r-posix: work around cygwin 1.7.9
15877         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15878         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15879         bug without replacing strerror_r.
15880         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15881         strerror_r is buggy, but without requiring strerror_r compilation.
15882         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15883
15884         test-perror: relax test to ignore cygwin bug
15885         * tests/test-perror2.c (main): Relax test on requiring detection
15886         of stream errors, and use unbuffered stream.
15887         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15888         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15889         * doc/posix-functions/fputc.texi (fputc): Likewise.
15890         * doc/posix-functions/fputs.texi (fputs): Likewise.
15891         * doc/posix-functions/fputws.texi (fputws): Likewise.
15892         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15893         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15894         * doc/posix-functions/getopt.texi (getopt): Likewise.
15895         * doc/posix-functions/perror.texi (perror): Likewise.
15896         * doc/posix-functions/printf.texi (printf): Likewise.
15897         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15898         * doc/posix-functions/psignal.texi (psignal): Likewise.
15899         * doc/posix-functions/putc.texi (putc): Likewise.
15900         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15901         Likewise.
15902         * doc/posix-functions/putchar.texi (putchar): Likewise.
15903         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15904         Likewise.
15905         * doc/posix-functions/puts.texi (puts): Likewise.
15906         * doc/posix-functions/putwc.texi (putwc): Likewise.
15907         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15908         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15909         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15910         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15911         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15912         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15913         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15914         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15915
15916 2011-05-22  Bruno Haible  <bruno@clisp.org>
15917
15918         strerror: Move AC_LIBOBJ invocations to module description.
15919         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15920         gl_PREREQ_STRERROR invocations from here...
15921         * modules/strerror (configure.ac): ... to here.
15922
15923 2011-05-21  Bruno Haible  <bruno@clisp.org>
15924
15925         perror: Use common idiom.
15926         * modules/perror (configure.ac): Reorder statements.
15927
15928 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15929
15930         tests: fix usage message in 'mktempd_'
15931         * tests/init.sh (mktempd_): In the usage message, use literal
15932         'mktempd_', not '$ME' (which is even undefined), as the name of
15933         the subroutine.
15934
15935 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15936
15937         tests init: new function 'fatal_', for hard errors
15938         Before this patch, the only way offered by tests/init.sh to
15939         properly signal a hard error was the `framework_failure_'
15940         function.  But the error message issued by that function,
15941         as its name would suggest, refers to a set-up failure in the
15942         testsuite, while hard errors can obviously also be due to
15943         other reasons.  The best way to fix this inconsistency is to
15944         introduce a new function with a more general error message.
15945         * tests/init.sh (fatal_): New function.
15946
15947 2011-06-06  Eric Blake  <eblake@redhat.com>
15948
15949         canonicalize-lgpl: use common idiom
15950         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15951         over newer POSIX -Rf.
15952         Reported by Bruno Haible.
15953
15954         canonicalize-lgpl: work around AIX realpath bug
15955         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15956         * doc/posix-functions/realpath.texi (realpath): Document it.
15957         Reported by Bruno Haible.
15958
15959         strerror: work around FreeBSD bug
15960         * lib/strerror.c (strerror): Special case 0.
15961         Reported by Bruno Haible.
15962
15963         strerror-override: avoid bloating errno module
15964         * modules/errno (Files, configure.ac): Move replacement strings...
15965         * modules/strerror-override: ...to new module.
15966         * modules/strerror (Depends-on): Add strerror-override.
15967         * modules/strerror_r-posix (Depends-on): Likewise.
15968         * MODULES.html.sh: Document new module.
15969         Reported by Bruno Haible.
15970
15971 2011-06-06  Bruno Haible  <bruno@clisp.org>
15972
15973         spawn-pipe tests: Rename program.
15974         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15975         * tests/test-spawn-pipe-child.c: Update comment.
15976         * tests/test-spawn-pipe.sh: Update.
15977         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15978
15979         spawn-pipe tests: Link the child program only against libc.
15980         * tests/test-spawn-pipe-child.c: New file, extracted from
15981         tests/test-spawn-pipe.c.
15982         (main): Expect only one argument.
15983         (is_open): New function, copied from tests/test-pipe.c.
15984         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15985         (child_main): Remove function.
15986         (test_pipe): Pass only one argument to the child program.
15987         (main): Remove child process code. Expect the child program's name as
15988         first argument.
15989         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15990         argument.
15991         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15992         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15993         test-spawn-pipe-child against no libraries.
15994
15995 2011-06-06  Bruno Haible  <bruno@clisp.org>
15996
15997         careadlinkat: Avoid mismatch between ssize_t and int.
15998         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15999         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16000
16001 2011-06-06  Jim Meyering  <meyering@redhat.com>
16002
16003         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16004         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16005         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16006
16007 2011-06-05  Bruno Haible  <bruno@clisp.org>
16008
16009         ansi-c++-opt: Interoperability with libtool.
16010         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16011         set the variable to "no", not to ":".
16012         * NEWS: Mention the change.
16013
16014 2011-06-05  Bruno Haible  <bruno@clisp.org>
16015
16016         acl: Fix test failure on AIX 7.
16017         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16018         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16019
16020 2011-06-05  Bruno Haible  <bruno@clisp.org>
16021
16022         pipe-filter-ii: Fix test failure on AIX and IRIX.
16023         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16024         with EAGAIN, retry with a smaller buffer size.
16025
16026 2011-06-05  Bruno Haible  <bruno@clisp.org>
16027
16028         localename: Fix link dependencies.
16029         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16030         * modules/localename-tests (Makefile.am): Link test-localename with
16031         $(LIBTHREAD).
16032
16033 2011-06-05  Bruno Haible  <bruno@clisp.org>
16034
16035         error: Avoid gcc warning.
16036         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16037
16038 2011-06-05  Bruno Haible  <bruno@clisp.org>
16039
16040         unsetenv: Avoid gcc warning.
16041         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16042
16043 2011-06-05  Bruno Haible  <bruno@clisp.org>
16044
16045         setenv: Avoid gcc warning.
16046         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16047
16048 2011-06-05  Bruno Haible  <bruno@clisp.org>
16049
16050         sys_select: Ensure memset is declared also on AIX 7.
16051         * lib/sys_select.in.h: Include <string.h> also on AIX.
16052         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16053         self-contained also on AIX 7.1.
16054
16055 2011-06-04  Jim Meyering  <meyering@redhat.com>
16056
16057         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16058         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16059         function name, "error".
16060         (_gl_translatable_diag_func_re): New configurable variable.
16061
16062 2011-06-04  Bruno Haible  <bruno@clisp.org>
16063
16064         getopt: Avoid gcc warning.
16065         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16066
16067 2011-06-04  Bruno Haible  <bruno@clisp.org>
16068
16069         strerror_r: Fix comments.
16070         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16071         commit.
16072
16073 2011-06-04  Bruno Haible  <bruno@clisp.org>
16074
16075         perror: Fix compilation error.
16076         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16077         Undefine fprintf, not sprintf.
16078         * modules/perror (Depends-on): Remove intprops, verify.
16079
16080 2011-06-04  Bruno Haible  <bruno@clisp.org>
16081
16082         setlocale: Enable replacement on Cygwin 1.5.
16083         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16084         Cygwin 1.5.x.
16085         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16086         LC_CTYPE category also exists on Cygwin 1.5.x.
16087
16088 2011-06-04  Bruno Haible  <bruno@clisp.org>
16089
16090         strerror-override: Don't disable symbol renamings.
16091         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16092         * lib/strerror-override.c: Include config.h.
16093         (strerror_override): Don't undefine.
16094
16095 2011-06-03  Bruno Haible  <bruno@clisp.org>
16096
16097         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16098         * lib/localename.h: Update copyright header.
16099         * lib/localename.c: Likewise.
16100         * lib/relocatable.h: Likewise.
16101         * lib/relocatable.c: Likewise.
16102
16103 2011-06-02  Bruno Haible  <bruno@clisp.org>
16104
16105         doc: Fix a module name.
16106         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16107
16108 2011-06-02  Bruno Haible  <bruno@clisp.org>
16109
16110         pipe2: Remove dependency on 'nonblocking' module.
16111         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16112         O_NONBLOCK is defined by gnulib.
16113         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16114         is zero.
16115         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16116         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16117         defined by gnulib.
16118         (get_nonblocking_flag): New function.
16119         (main): Test O_NONBLOCK flag only if it is nonzero.
16120         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16121
16122 2011-06-03  Jim Meyering  <meyering@redhat.com>
16123
16124         maint: three new prohibit-header-without-use rules
16125         Prohibit use of cloexec.h, posixver.h, same.h without use.
16126         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16127         (sc_prohibit_posixver_without_use): Likewise.
16128         (sc_prohibit_same_without_use): Likewise.
16129
16130 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16131
16132         allocator: 'die' routine is now given requested size
16133         * lib/allocator.h (struct allocator.die): New size arg.
16134         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16135         If the actual problem is an ssize_t limitation, not a size_t or
16136         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16137
16138 2011-06-01  Eric Blake  <eblake@redhat.com>
16139
16140         strerror: drop strerror_r dependency
16141         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16142         * lib/strerror-override.c (strerror_override): ...to new file.
16143         * lib/strerror-override.h: Add prototype.
16144         * lib/strerror-impl.h: Delete.
16145         * lib/strerror.c (strerror): New implementation.
16146         * modules/errno (Files): Add new files.
16147         (configure.ac): Compile new file as appropriate.
16148         * modules/strerror (Files): Drop unused file.
16149         (Depends-on): Drop strerror_r-posix.
16150         * MODULES.html.sh: Document strerror_r-posix.
16151         Requested by Sam Steingold.
16152
16153         perror: call strerror_r directly
16154         * modules/perror (Files): Drop strerror-impl.h.
16155         * lib/perror.c (perror): Use our own stack buffer, rather than
16156         calling a wrapper that uses static storage.
16157         * doc/posix-functions/perror.texi (perror): Document a limitation
16158         of our replacement.
16159
16160         strerror_r: fix includes for FreeBSD
16161         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16162         since we use abort on some platforms.
16163         Reported by Matthias Bolte.
16164
16165 2011-05-31  Bruno Haible  <bruno@clisp.org>
16166
16167         Fix link errors in tests: openat-die uses gettext-h.
16168         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16169         against $(LIBINTL).
16170         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16171         against $(LIBINTL).
16172         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16173         $(LIBINTL).
16174         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16175         against $(LIBINTL).
16176         * modules/linkat-tests (Makefile.am): Link test-linkat against
16177         $(LIBINTL).
16178         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16179         $(LIBINTL).
16180         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16181         against $(LIBINTL).
16182         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16183         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16184         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16185         $(LIBINTL).
16186         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16187         $(LIBINTL).
16188         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16189         $(LIBINTL).
16190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16191
16192 2011-05-31  Bruno Haible  <bruno@clisp.org>
16193
16194         Fix link errors in tests: wait-process uses gettext-h.
16195         * modules/nonblocking-pipe-tests (Makefile.am): Set
16196         test_nonblocking_pipe_main_LDADD.
16197         * modules/nonblocking-socket-tests (Makefile.am): Link
16198         test-nonblocking-socket-main against $(LIBINTL).
16199         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16200
16201 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16202
16203         assert-h: work around 'verify' incompatibility
16204         * lib/verify.h: Use @...@ directives, not ifdef.
16205         * modules/assert-h (assert.h): Implement the directives.
16206         (assert.h): Substitute the symbol-prefix more consistently.
16207
16208 2011-05-29  Jim Meyering  <meyering@redhat.com>
16209
16210         trim: remove three superfluous assignments
16211         * lib/trim.c (trim2): Remove three superfluous assignments
16212         and correct brace positioning.
16213
16214 2011-05-29  Bruno Haible  <bruno@clisp.org>
16215
16216         wctype-h: Avoid namespace pollution on Solaris 2.6.
16217         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16218         identifiers.
16219         * doc/posix-headers/wctype.texi: Mention the problem.
16220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16221
16222 2011-05-28  Jim Meyering  <meyering@redhat.com>
16223
16224         parse-datetime.y: accommodate -Wstrict-overflow
16225         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16226         placate -Wstrict-overflow.
16227
16228         trim: avoid a warning from -O2 -Wstrict-overflow
16229         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16230
16231 2011-05-29  Bruno Haible  <bruno@clisp.org>
16232
16233         gnulib-tool: Fix bug in yesterday's commit.
16234         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16235         twice.
16236
16237 2011-05-29  Bruno Haible  <bruno@clisp.org>
16238
16239         Allow multiple gnulib generated include files to be combined.
16240         * gnulib-tool (func_compute_include_guard_prefix): New function.
16241         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16242         ${gl_include_guard_prefix} references.
16243         (func_import, func_create_testdir): Invoke
16244         func_compute_include_guard_prefix.
16245         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16246         * lib/ctype.in.h: Likewise.
16247         * lib/dirent.in.h: Likewise.
16248         * lib/errno.in.h: Likewise.
16249         * lib/fcntl.in.h: Likewise.
16250         * lib/float.in.h: Likewise.
16251         * lib/getopt.in.h: Likewise.
16252         * lib/iconv.in.h: Likewise.
16253         * lib/langinfo.in.h: Likewise.
16254         * lib/locale.in.h: Likewise.
16255         * lib/math.in.h: Likewise.
16256         * lib/netdb.in.h: Likewise.
16257         * lib/netinet_in.in.h: Likewise.
16258         * lib/poll.in.h: Likewise.
16259         * lib/pthread.in.h: Likewise.
16260         * lib/pty.in.h: Likewise.
16261         * lib/sched.in.h: Likewise.
16262         * lib/se-selinux.in.h: Likewise.
16263         * lib/search.in.h: Likewise.
16264         * lib/signal.in.h: Likewise.
16265         * lib/spawn.in.h: Likewise.
16266         * lib/stdarg.in.h: Likewise.
16267         * lib/stddef.in.h: Likewise.
16268         * lib/stdint.in.h: Likewise.
16269         * lib/stdio.in.h: Likewise.
16270         * lib/stdlib.in.h: Likewise.
16271         * lib/string.in.h: Likewise.
16272         * lib/strings.in.h: Likewise.
16273         * lib/sys_file.in.h: Likewise.
16274         * lib/sys_ioctl.in.h: Likewise.
16275         * lib/sys_select.in.h: Likewise.
16276         * lib/sys_socket.in.h: Likewise.
16277         * lib/sys_stat.in.h: Likewise.
16278         * lib/sys_time.in.h: Likewise.
16279         * lib/sys_times.in.h: Likewise.
16280         * lib/sys_uio.in.h: Likewise.
16281         * lib/sys_utsname.in.h: Likewise.
16282         * lib/sys_wait.in.h: Likewise.
16283         * lib/sysexits.in.h: Likewise.
16284         * lib/termios.in.h: Likewise.
16285         * lib/time.in.h: Likewise.
16286         * lib/unistd.in.h: Likewise.
16287         * lib/wchar.in.h: Likewise.
16288         * lib/wctype.in.h: Likewise.
16289         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16290         * modules/ctype (Makefile.am): Likewise.
16291         * modules/dirent (Makefile.am): Likewise.
16292         * modules/errno (Makefile.am): Likewise.
16293         * modules/fcntl-h (Makefile.am): Likewise.
16294         * modules/float (Makefile.am): Likewise.
16295         * modules/getopt-posix (Makefile.am): Likewise.
16296         * modules/iconv-h (Makefile.am): Likewise.
16297         * modules/langinfo (Makefile.am): Likewise.
16298         * modules/locale (Makefile.am): Likewise.
16299         * modules/math (Makefile.am): Likewise.
16300         * modules/netdb (Makefile.am): Likewise.
16301         * modules/netinet_in (Makefile.am): Likewise.
16302         * modules/poll-h (Makefile.am): Likewise.
16303         * modules/pthread (Makefile.am): Likewise.
16304         * modules/pty (Makefile.am): Likewise.
16305         * modules/sched (Makefile.am): Likewise.
16306         * modules/search (Makefile.am): Likewise.
16307         * modules/selinux-h (Makefile.am): Likewise.
16308         * modules/signal (Makefile.am): Likewise.
16309         * modules/spawn (Makefile.am): Likewise.
16310         * modules/stdarg (Makefile.am): Likewise.
16311         * modules/stddef (Makefile.am): Likewise.
16312         * modules/stdint (Makefile.am): Likewise.
16313         * modules/stdio (Makefile.am): Likewise.
16314         * modules/stdlib (Makefile.am): Likewise.
16315         * modules/string (Makefile.am): Likewise.
16316         * modules/strings (Makefile.am): Likewise.
16317         * modules/sys_file (Makefile.am): Likewise.
16318         * modules/sys_ioctl (Makefile.am): Likewise.
16319         * modules/sys_select (Makefile.am): Likewise.
16320         * modules/sys_socket (Makefile.am): Likewise.
16321         * modules/sys_stat (Makefile.am): Likewise.
16322         * modules/sys_time (Makefile.am): Likewise.
16323         * modules/sys_times (Makefile.am): Likewise.
16324         * modules/sys_uio (Makefile.am): Likewise.
16325         * modules/sys_utsname (Makefile.am): Likewise.
16326         * modules/sys_wait (Makefile.am): Likewise.
16327         * modules/sysexits (Makefile.am): Likewise.
16328         * modules/termios (Makefile.am): Likewise.
16329         * modules/time (Makefile.am): Likewise.
16330         * modules/unistd (Makefile.am): Likewise.
16331         * modules/wchar (Makefile.am): Likewise.
16332         * modules/wctype-h (Makefile.am): Likewise.
16333         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16334
16335 2011-05-29  Bruno Haible  <bruno@clisp.org>
16336
16337         assert-h: Allow multiple gnulib generated replacements to coexist.
16338         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16339
16340 2011-05-29  Bruno Haible  <bruno@clisp.org>
16341
16342         argp: Allow coexistence with strerror_r-posix module.
16343         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16344         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16345         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16346         not the glibc signature.
16347
16348 2011-05-28  Bruno Haible  <bruno@clisp.org>
16349
16350         gnulib-tool: Alternative structure of testdirs, similar to --import.
16351         * gnulib-tool: New option --single-configure.
16352         (func_usage): Document it.
16353         (single_configure): New variable.
16354         (func_modules_transitive_closure_separately,
16355         func_modules_transitive_closure_separately,
16356         func_determine_use_libtests, func_modules_add_dummy_separately,
16357         func_modules_to_filelist_separately): New functions, extracted from
16358         func_import.
16359         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16360         (func_import): Use the new functions.
16361         (func_create_testdir): Set final_modules. Handle $single_configure =
16362         true case.
16363
16364 2011-05-28  Bruno Haible  <bruno@clisp.org>
16365
16366         getloadavg: Remove an unreliable safety check.
16367         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16368         getloadavg.c is in place.
16369         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16370         Reported by Sam Steingold <sds@gnu.org>.
16371
16372 2011-05-28  Bruno Haible  <bruno@clisp.org>
16373
16374         doc: Cleanup yet another file produced by texinfo.tex.
16375         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16376
16377 2011-05-28  Bruno Haible  <bruno@clisp.org>
16378
16379         Finish the conditional dependencies mechanism.
16380         * gnulib-tool: New option --no-conditional-dependencies.
16381         (func_usage): Document it. Don't mark --conditional-dependencies as
16382         experimental.
16383         (cond_dependencies): The possible values can now be true, false, empty.
16384         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16385         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16386         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16387
16388 2011-05-28  Bruno Haible  <bruno@clisp.org>
16389
16390         doc: Use a recent texinfo.tex.
16391         * doc/Makefile (tex_opts): New variable.
16392         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16393
16394 2011-05-28  Jim Meyering  <meyering@redhat.com>
16395
16396         intprops.h: adjust comment to match code change
16397         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16398         only once, it *may* have side effects.  Also fix an unrelated typo.
16399         (_GL_INT_SIGNED): Likewise.
16400
16401 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16402
16403         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16404
16405 2011-05-26  Bruno Haible  <bruno@clisp.org>
16406
16407         mbsrchr: Avoid collision with system function on Interix.
16408         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16409         Reported by Markus Duft <mduft@gentoo.org>.
16410
16411 2011-05-15  James Youngman  <jay@gnu.org>
16412
16413         getopt: for ambiguous options, enumerate the possibilities.
16414         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16415         the ambiguous options when an ambiguous prefix is given. This was
16416         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16417         glibc change was
16418         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16419
16420 2011-05-25  Eric Blake  <eblake@redhat.com>
16421
16422         getcwd: work around mingw bug
16423         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16424         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16425         Reported by Matthias Bolte.
16426
16427 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16428
16429         test-intprops: disable -Wtype-limits diagnostics
16430         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16431         diagnostics.  Otherwise, the integer overflow macros generate many
16432         diagnostics.  Reported by Jim Meyering in
16433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16434
16435         intprops: shorten, to pacify gcc -Woverlength-strings
16436         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16437         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16438         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16439         likely to run afoul of C compiler limits for string constant lengths.
16440         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16441
16442 2011-05-24  Eric Blake  <eblake@redhat.com>
16443
16444         docs: document recently fixed glibc printf bug
16445         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16446         * doc/posix-functions/printf.texi (printf): Likewise.
16447         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16448         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16449
16450         closein-tests: convert to init.sh
16451         * modules/closein-tests (Files): Add init.sh
16452         * tests/test-closein.sh Use it.
16453
16454         yesno-tests: convert to init.sh
16455         * modules/yesno-tests (Files): Add init.sh.
16456         * tests/test-yesno.sh: Use it.
16457
16458         atexit-tests: ensure reliable exit status
16459         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16460         Reported by Bruno Haible.
16461
16462 2011-05-24  Bruno Haible  <bruno@clisp.org>
16463
16464         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16465         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16466         gl_PREREQ_STRERROR_R invocations from here...
16467         * modules/strerror_r-posix (configure.ac): ... to here.
16468
16469 2011-05-24  Eric Blake  <eblake@redhat.com>
16470
16471         strerror_r: fix missing header
16472         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16473
16474         strerror_r: fix AIX test failures
16475         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16476         ERANGE failure.
16477
16478         strerror_r: fix Solaris test failures
16479         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16480         failures.
16481         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16482
16483         strerror_r: enforce POSIX recommendations
16484         * lib/strerror_r.c (safe_copy): New helper method.
16485         (strerror_r): Guarantee a non-empty string.
16486         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16487         recent POSIX rulings and to match our strerror guarantees.
16488         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16489
16490 2011-05-24  Jim Meyering  <meyering@redhat.com>
16491
16492         test-perror2.c: avoid warning about unused variable
16493         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16494
16495 2011-05-24  Eric Blake  <eblake@redhat.com>
16496
16497         perror: avoid spurious test failure on HP-UX
16498         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16499
16500         tests: fix logic bug in init.sh
16501         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16502         shell.
16503
16504 2011-05-24  Jim Meyering  <meyering@redhat.com>
16505
16506         utimensat: do not reference an out-of-scope buffer
16507         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16508         declared in an inner scope, yet "times" would be dereferenced outside
16509         the scope in which "ts" was valid.
16510         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16511         of ts[2] "out/up", so that the use of aliased "times" (via
16512         "times = ts;") does not end up referencing an out-of-scope "ts"
16513
16514         opendir-safer.c: don't clobber errno; don't close negative FD
16515         * lib/opendir-safer.c (opendir_safer):
16516         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16517         file descriptor, and more importantly, don't clobber the
16518         offending errno value with EINVAL.  Before, upon failure
16519         of dup_safer, we would pass the negative file descriptor to
16520         fdopendir, which would clobber errno.
16521
16522 2011-05-23  Bruno Haible  <bruno@clisp.org>
16523
16524         idcache: Fix module description.
16525         * modules/idcache (Include): Set to "idcache.h".
16526
16527 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16528
16529         gnulib-tool: fix portability problem with MacOS sed
16530         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16531         before the "}".  Problem reported by Leo in
16532         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16533         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16534         sed_extract_condition1, sed_extract_condition2.
16535
16536 2011-05-23  Bruno Haible  <bruno@clisp.org>
16537
16538         hash: Simplify autoconf macro.
16539         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16540
16541 2011-05-23  Bruno Haible  <bruno@clisp.org>
16542
16543         getugroups: Fix module description.
16544         * modules/getugroups (Include): Set to "getugroups.h".
16545
16546 2011-05-23  Bruno Haible  <bruno@clisp.org>
16547
16548         linkat: Simplify autoconf macro.
16549         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16550
16551 2011-05-23  Bruno Haible  <bruno@clisp.org>
16552             Eric Blake  <eblake@redhat.com>
16553
16554         linkat, renameat: Update dependencies.
16555         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16556         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16557         symlinkat.
16558
16559 2011-05-23  Jim Meyering  <meyering@redhat.com>
16560
16561         maint.mk: more tight_scope improvements
16562         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16563         (_gl_TS_headers): Define only in if-0'd block.
16564         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16565         sometimes we must *not* use it.  Adjust uses accordingly.
16566         (sc_tight_scope): Use much simpler grep-based test to determine
16567         whether we skip this rule.
16568
16569         maint.mk: generalize/improve the tight-scope rule
16570         * top/maint.mk: Emit a warning when the test is skipped.
16571         (_gl_TS_dir): Add $(srcdir)/ prefix.
16572         (_gl_TS_function_match): Simplify, rather than trying
16573         to enumerate common types.  Otherwise, it would fail to match an
16574         "extern unsigned char const *" declaration in idutils.
16575         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16576         a way to support use of that type of macro.
16577         (_gl_TS_var_match): Simplify regexp.
16578         (_gl_TS_obj_files): New configurable variable.
16579         (_gl_TS_headers): Likewise.
16580
16581 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16582
16583         verify: fix bug when gnulib <assert.h> is also included
16584         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16585         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16586         Perhaps there's a better way, but this fixes the immediate problem.
16587         Problem reported by Bruno Haible in
16588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16589
16590 2011-05-22  Bruno Haible  <bruno@clisp.org>
16591
16592         xgetcwd: Simplify autoconf macro.
16593         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16594
16595 2011-05-22  Bruno Haible  <bruno@clisp.org>
16596
16597         New module 'mktime-internal'.
16598         * modules/mktime-internal: New file.
16599         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16600         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16601         mktime_internal as a C macro if libc has __mktime_internal.
16602         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16603         conditions.
16604         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16605
16606 2011-05-22  Bruno Haible  <bruno@clisp.org>
16607
16608         timegm: Correct mktime replacement statements.
16609         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16610         defining mktime as a C macro. This completes a 2009-07-28 commit.
16611
16612 2011-05-22  Bruno Haible  <bruno@clisp.org>
16613
16614         timegm: Simplify autoconf macro.
16615         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16616
16617 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16618
16619         clock-time: change to LGPLv2+.
16620         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16621         BSD-like but we have no mark for that; this is good enough for now.
16622
16623 2011-05-21  Bruno Haible  <bruno@clisp.org>
16624
16625         strerror_r: Fix comments.
16626         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16627
16628 2011-05-21  Bruno Haible  <bruno@clisp.org>
16629
16630         relocatable-prog-wrapper: Fix possible link error.
16631         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16632         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16633         (gl_FUNC_SETENV): ... to here.
16634         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16635         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16636
16637 2011-05-21  Bruno Haible  <bruno@clisp.org>
16638
16639         relocatable-prog-wrapper: Assume strerror() exists.
16640         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16641         m4/strerror.m4.
16642         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16643         * lib/relocwrapper.c: Remove mention of strerror module.
16644         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16645         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16646         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16647         C macro.
16648
16649 2011-05-21  Bruno Haible  <bruno@clisp.org>
16650
16651         select: Simplify replacement idiom.
16652         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16653         Win32 platforms.
16654         * lib/sys_select.in.h (select): Simplify accordingly.
16655         * modules/select (Depends-on): Likewise.
16656
16657 2011-05-21  Bruno Haible  <bruno@clisp.org>
16658
16659         mkdir-p: Simplify autoconf macro.
16660         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16661         gl_FUNC_LCHOWN.
16662
16663 2011-05-21  Eric Blake  <eblake@redhat.com>
16664
16665         strerror_r: avoid clobbering strerror on cygwin
16666         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16667         fall back instead to sys_errlist.
16668         * modules/strerror (configure.ac): Add witness.
16669         * tests/test-strerror_r.c (main): Enhance test.
16670         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16671         * tests/test-perror2.c (main): Free memory before exit.
16672
16673 2011-05-21  Bruno Haible  <bruno@clisp.org>
16674
16675         mkdtemp: Use gnulib naming conventions.
16676         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16677         * modules/mkdtemp (configure.ac): Update.
16678
16679 2011-05-20  Eric Blake  <eblake@redhat.com>
16680
16681         strerror_r: avoid corrupting errno on Solaris
16682         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16683         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16684
16685         strerror_r: avoid compiler warning
16686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16687
16688         strerror_r: simplify AIX code
16689         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16690
16691         test-perror: avoid spurious failure on FreeBSD
16692         * modules/perror-tests (Depends-on): Add strerror, now that
16693         strerror_r no longer pulls it in.
16694
16695 2011-05-20  Bruno Haible  <bruno@clisp.org>
16696
16697         strerror_r-posix: Remove unused dependencies.
16698         * modules/strerror_r-posix (Depends-on): Remove strerror.
16699         Reported by Eric Blake.
16700
16701 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16702
16703         intprops: remove assumption about A|B representation
16704         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16705         is a valid integer if both A and B are.  Although this is true for
16706         all known practical hosts, the C standard doesn't guarantee it,
16707         and the code need not assume it.  Also, this change may work around
16708         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16710
16711 2011-05-20  Eric Blake  <eblake@redhat.com>
16712
16713         perror: work around FreeBSD bug
16714         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16715         is broken.  Move AC_LIBOBJ...
16716         * modules/perror (configure.ac): Here.
16717         * doc/posix-functions/perror.texi (perror): Document this.
16718         * tests/test-perror2.c (main): Enhance test.
16719
16720         test-perror: check for strerror interactions
16721         * tests/macros.h (STREQ): Add macro.
16722         * modules/perror-tests (Files): Add second test.
16723         * tests/test-perror2.c (main): New file.
16724         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16725
16726         test-perror: rewrite to use init script
16727         * modules/perror-tests (Files): Add init.sh.
16728         * tests/test-perror.sh: Use temporary directory.
16729
16730 2011-05-20  Jim Meyering  <meyering@redhat.com>
16731
16732         maint: replace misused "a" with "an"
16733         * doc/intprops.texi: "a integer"
16734         * doc/regex.texi: "a explanation"
16735         * lib/alignof.h: "a object"
16736         * lib/argmatch.h: "a explanation"
16737         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16738         * lib/stdint.in.h: "a integer"
16739         * lib/userspec.c: "a owner"
16740         * doc/gnulib.texi: Fix "a idea", and reword.
16741
16742 2011-05-19  Jim Meyering  <meyering@redhat.com>
16743
16744         maint: correct misuse of "a" and "an"
16745         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16746         * lib/argp-help.c: "an docum...": s/an/a/
16747         * lib/argp-parse.c: "An vector": s/An/A/
16748         * lib/execute.c: "an native": s/an/a/
16749         * lib/spawn-pipe.c: Likewise.
16750         * lib/gc.h: "an Gc_rc": s/an/a/
16751         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16752         * lib/fts.c: "an stat.st_dev": s/an/a/
16753
16754 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16755
16756         intprops-tests: work around HP-UX 11.23 cc bug with constants
16757         * tests/test-intprops.c (VERIFY): New macro.
16758         (main): Use it, instead of verify, to work around the compiler bug; see
16759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16760
16761         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16762         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16763         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16764         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16765         (_GL_REMAINDER_OVERFLOW): Use it.
16766
16767         intprops-tests: revert unsigned part of previous change
16768         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16769         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16770         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16772
16773 2011-05-19  Bruno Haible  <bruno@clisp.org>
16774
16775         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16776         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16777         strerror_r() returned without filling the buffer.
16778         Reported by Eric Blake.
16779
16780 2011-05-19  Eric Blake  <eblake@redhat.com>
16781
16782         strerror_r: guarantee unchanged errno
16783         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16784         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16785         failure.
16786         * tests/test-strerror_r.c (main): Enhance test.
16787
16788 2011-05-19  Bruno Haible  <bruno@clisp.org>
16789
16790         strerror_r: Reorder #if blocks.
16791         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16792         for consistency with the previous commit.
16793
16794 2011-05-19  Bruno Haible  <bruno@clisp.org>
16795
16796         perror: Avoid clobbering the strerror buffer when possible.
16797         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16798         * lib/strerror.c: Include it.
16799         * modules/strerror (Files): Add lib/strerror-impl.h.
16800         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16801         (my_strerror): New function, defined through lib/strerror-impl.h.
16802         (perror): Use it instead of strerror.
16803         * modules/perror (Files): Add lib/strerror-impl.h.
16804         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16805
16806 2011-05-19  Eric Blake  <eblake@redhat.com>
16807
16808         strerror_r: fix on newer cygwin
16809         * lib/strerror_r.c (strerror_r): Cygwin now has
16810         __xpg_strerror_r, use it.
16811
16812 2011-05-19  Bruno Haible  <bruno@clisp.org>
16813
16814         strerror_r: Avoid clobbering the strerror buffer when possible.
16815         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16816         (sys_nerr, sys_errlist): New declarations.
16817         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16818         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16819         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16820
16821 2011-05-19  Bruno Haible  <bruno@clisp.org>
16822
16823         strerror_r: Fix test failure on mingw.
16824         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16825         EXTEND_STRERROR_R.
16826         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16827         macros from errno.in.h instead.
16828
16829 2011-05-19  Eric Blake  <eblake@redhat.com>
16830
16831         strerror: relax test for Solaris
16832         * tests/test-strerror.c (main): Permit Solaris behavior.
16833         * tests/test-strerror_r.c (main): Likewise.
16834
16835         strerror: enforce POSIX ruling on strerror(0)
16836         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16837         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16838         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16839         * doc/posix-functions/strerror.texi (strerror): Document it.
16840         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16841         * tests/test-strerror.c (main): Strengthen test.
16842         * tests/test-strerror_r.c (main): Likewise.
16843
16844 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16845
16846         intprop-tests: port to older and more-pedantic compilers
16847         * modules/intprops-tests (Files): Add tests/macros.h.
16848         * tests/test-intprops.c: Include macros.h.
16849         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16850         it's no longer documented to expand to an integer constant expression.
16851         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16852         argument is floating point, as it's no longer documented to expand
16853         to an integer constant expression in that case.
16854         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16855         compiler bugs reported by Bruno Haible.  See
16856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16857         (U0, U1): New constants, to work around the same bugs.  Also,
16858         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16859
16860         intprops: work around C compiler bugs
16861         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16862         bug in Sun C 5.11 2010/08/13 and other compilers; see
16863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16864
16865         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16866         * doc/intprops.texi (Integer Type Determination): Fix
16867         documentation for TYPE_IS_INTEGER: it returns an constant
16868         expression, not an integer constant expression.  Fix doc for
16869         TYPE_SIGNED: it returns an integer constant expression only if its
16870         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16871         hardly worth documented that way....)
16872
16873 2011-05-18  Bruno Haible  <bruno@clisp.org>
16874
16875         strerror_r: Avoid clobbering the strerror buffer when possible.
16876         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16877         Handle gnulib defined errno values here. When strerror() returns NULL
16878         or an empty string, return EINVAL.
16879         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16880         gnulib defined errno values here.
16881         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16882
16883 2011-05-18  Eric Blake  <eblake@redhat.com>
16884
16885         fnmatch: avoid compiler warning
16886         * lib/fnmatch_loop.c (FCT): Use correct type.
16887         Reported by Matthias Bolte.
16888
16889 2011-05-13  Jim Meyering  <meyering@redhat.com>
16890
16891         maint.mk: three new prohibit_<HDR>_without_use rules
16892         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16893         (sc_prohibit_stdio-safer_without_use): Likewise.
16894         (sc_prohibit_xfreopen_without_use): Likewise.
16895
16896 2011-05-17  Jim Meyering  <meyering@redhat.com>
16897
16898         announce-gen: fail if the NEWS delta is empty
16899         If there's nothing noteworthy in NEWS, then either you forgot
16900         or you shouldn't be releasing.
16901         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16902
16903 2011-05-17  Pádraig Brady <P@draigBrady.com>
16904
16905         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16906         reserved symbols starting with double underscore from the check.
16907
16908 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16909
16910         intprops: add doc
16911         * doc/intprops.texi: New file, documenting intprops.
16912         * doc/gnulib.texi (Particular Modules): Include it.
16913
16914         verify: add doc to gnulib manual and fix example
16915         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16916         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16917         (Compile-time Assertions): Fix example so it can't overflow.
16918
16919 2011-05-17  Jim Meyering  <meyering@redhat.com>
16920
16921         warnings.m4: don't usurp save_CPPFLAGS variable name
16922         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16923
16924         doc: fix typo
16925         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16926
16927 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16928             Bruno Haible  <bruno@clisp.org>
16929
16930         doc: Tweak recent change.
16931         * README (Portability guidelines): Tweak new text.
16932         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16933         Interix 6.1.
16934
16935 2011-05-16  Eric Blake  <eblake@redhat.com>
16936
16937         inttypes: avoid autoconf warning
16938         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16939         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16940
16941 2011-05-16  Sam Steingold <sds@gnu.org>
16942         and Eric Blake  <eblake@redhat.com>
16943
16944         vc-list-files: accept multiple directory operands
16945         * build-aux/vc-list-files: Iterate over all remaining operands.
16946
16947 2011-05-16  Bruno Haible  <bruno@clisp.org>
16948
16949         Fix confusion regarding deprecated modules.
16950         * modules/calloc (Status, Notice): Mark module as deprecated, not
16951         obsolete.
16952         * modules/fnmatch-posix (Status, Notice): Likewise.
16953         * modules/getdate (Status, Notice): Likewise.
16954         * modules/getopt (Status, Notice): Likewise.
16955         * modules/malloc (Status, Notice): Likewise.
16956         * modules/pipe (Status, Notice): Likewise.
16957         * modules/realloc (Status, Notice): Likewise.
16958         * modules/rename-dest-slash (Status, Notice): Likewise.
16959         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16960         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16961         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16962         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16963         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16964
16965 2011-05-16  Bruno Haible  <bruno@clisp.org>
16966
16967         doc: List the target platforms.
16968         * doc/gnulib-intro.texi (Target Platforms): New section.
16969         * doc/gnulib.texi (Introduction): Update menu.
16970         * README (Portability guidelines): Refer to the new section. Update
16971         statement about oldest supported environment. Remove rationale why
16972         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16973         unportable C89 function.
16974         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16975         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16976
16977 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16978
16979         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16980
16981 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16982
16983         intprops-tests: new module
16984         * modules/intprops-tests, tests/test-intprops.c: New files.
16985
16986         intprops: add safe, portable integer overflow checking
16987         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16988         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16989         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16990         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16991         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16992         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16993         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16994         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16995         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16996         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16997         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16998
16999 2011-05-12  James Youngman  <jay@gnu.org>
17000
17001         Add a test for glibc's Bugzilla bug #12378.
17002         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17003         doesn't allow the literal matching of a lone "[" (which is
17004         required by POSIX).
17005         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17006
17007 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17008
17009         Sync glibc change fixing Bugzilla bug #12378.
17010         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17011         beginning and fall back to matching as normal character if the
17012         string ends before the matching ']' is found.  This is what POSIX
17013         requires.
17014
17015 2011-05-13  Eric Blake  <eblake@redhat.com>
17016
17017         getcwd-lgpl: relax test for FreeBSD
17018         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17019         issue.
17020         * tests/test-getcwd-lgpl.c (main): Relax test.
17021         Reported by Matthias Bolte.
17022
17023 2011-05-11  Eric Blake  <eblake@redhat.com>
17024
17025         test-fflush: silence compiler warning
17026         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17027
17028 2011-05-11  Bruno Haible  <bruno@clisp.org>
17029
17030         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17031         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17032         * modules/canonicalize (Depends-on): Add 'nocrash'.
17033         * modules/canonicalize-lgpl (Depends-on): Likewise.
17034         * doc/posix-functions/realpath.texi: Update platforms list.
17035         Reported by Ryan Schmidt <ryandesign@macports.org>.
17036
17037 2011-05-11  Bruno Haible  <bruno@clisp.org>
17038
17039         group-member: Declare function in <unistd.h>.
17040         * lib/unistd.in.h (group_member): New declaration.
17041         * lib/group-member.h: Remove file.
17042         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17043         * tests/test-unistd-c++.cc: Check signature of group_member.
17044         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17045         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17046         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17047         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17048         HAVE_GROUP_MEMBER.
17049         * modules/group-member (Files): Remove lib/group-member.h.
17050         (Depends-on): Add unistd. Specify conditions.
17051         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17052         (Include): Change to <unistd.h>.
17053         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17054         HAVE_GROUP_MEMBER.
17055         * NEWS: Mention the change.
17056         * lib/euidaccess.c: Don't include group-member.h.
17057
17058 2011-05-11  Bruno Haible  <bruno@clisp.org>
17059
17060         group-member: Document module.
17061         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17062         module.
17063
17064 2011-05-11  Bruno Haible  <bruno@clisp.org>
17065
17066         fclose: Fix mistake earlier today.
17067         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17068
17069 2011-05-11  Eric Blake  <eblake@redhat.com>
17070
17071         fclose: preserve fflush errors
17072         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17073         Reported by Jim Meyering.
17074
17075         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17076         * build-aux/bootstrap (check_versions): When no specific version
17077         is required, merely check that the app produces an exit status
17078         that indicates its existence.
17079
17080         maint.mk: drop redundant check
17081         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17082         the same but better.
17083
17084 2011-05-11  Bruno Haible  <bruno@clisp.org>
17085
17086         fclose: Fix possible link error.
17087         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17088         unregister_shadow_fd. Improve comments.
17089         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17090         Eric Blake.
17091
17092 2011-05-11  Jim Meyering  <meyering@redhat.com>
17093
17094         maint.mk: improve "can not" detection and generalize rule name
17095         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17096         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17097         Use the same technique as in sc_prohibit_doubled_word, so that
17098         we recognize "can not" also when the words are separated by a newline.
17099         Suggested by Eric Blake.
17100         (perl_filename_lineno_text_): Define.  Factored out of...
17101         (prohibit_doubled_word_): ...here.  Use the new definition.
17102         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17103         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17104         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17105
17106 2011-05-10  Eric Blake  <eblake@redhat.com>
17107
17108         fclose: avoid double close race when possible
17109         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17110         all but WINDOWS_SOCKETS.
17111
17112 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17113
17114         openat: correct new comment
17115         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17116
17117 2011-05-10  Jim Meyering  <meyering@redhat.com>
17118
17119         openat: add comments
17120         * lib/openat-proc.c (openat_proc_name): Add comments,
17121         mostly from Eric Blake.
17122
17123 2011-05-09  Eric Blake  <eblake@redhat.com>
17124
17125         openat: reduce syscalls in first probe of /proc
17126         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17127         be a directory.  Simplify the probe for .. bugs.
17128         * modules/openat (Depends-on): Drop same-inode.
17129         Reported by Bastien ROUCARIES.
17130
17131 2011-05-09  Jim Meyering  <meyering@redhat.com>
17132
17133         maint.mk: change semantics/name of tight_scope variables
17134         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17135         Rename variables to align with semantics that make them more useful.
17136
17137         maint.mk: tweak new rule's name not to impinge
17138         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17139         (sc_tight_scope): Use new rule name rather than $@-0.
17140
17141         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17142         * top/maint.mk (sc_tight_scope): New rule.
17143         (sc_tight_scope-0): New rule, ifdef'd out.
17144         (_gl_TS_dir): Default.
17145         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17146         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17147
17148 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17149
17150         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17151         Haible <bruno@clisp.org>.
17152
17153 2011-05-08  Bruno Haible  <bruno@clisp.org>
17154
17155         Comments.
17156         * m4/isnanf.m4: Add comment.
17157         * m4/isnanl.m4: Likewise.
17158
17159 2011-05-08  Bruno Haible  <bruno@clisp.org>
17160
17161         glob: Remove obsolete macro.
17162         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17163
17164 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17165
17166         intprops: Sun C 5.11 supports __typeof__
17167         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17168         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17169         which is new.
17170         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17171
17172         intprops: switch to usual gnulib indenting and naming
17173         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17174         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17175
17176         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17177
17178 2011-05-08  Jim Meyering  <meyering@redhat.com>
17179
17180         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17181         * top/maint.mk (release-prep): Use make's --no-print-directory
17182         option when generating the announcement.  This eliminates the
17183         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17184         generated announcement template.
17185
17186 2011-05-08  Bruno Haible  <bruno@clisp.org>
17187
17188         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17189         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17190         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17191
17192 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17193
17194         ignore-value, verify: Omit include files from lib_SOURCES.
17195         * modules/ignore-value, modules/verify (Makefile.am):
17196         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17197         that leads Automake to duplicate use of am__objects_... variables
17198         in Makefile.in.  See
17199         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17200
17201 2011-05-07  Bruno Haible  <bruno@clisp.org>
17202
17203         fclose: Simplify autoconf macro.
17204         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17205         defined.
17206
17207 2011-05-07  Bruno Haible  <bruno@clisp.org>
17208
17209         canonicalize-lgpl: Fix autoconf macro ordering bug.
17210         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17211         gl_STDLIB_H_DEFAULTS.
17212
17213 2011-05-06  Eric Blake  <eblake@redhat.com>
17214
17215         maintainer-makefile: make sc_po_check easier to tune
17216         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17217         to probe for strings, such as an alternate location for gnulib.
17218
17219         fclose: guarantee behavior on seekable stdin
17220         * modules/fclose (Depends-on): Add fflush.
17221         * doc/posix-functions/fclose.texi (fclose): Document this.
17222         * tests/test-fclose.c (main): Make test for this unconditional.
17223
17224 2011-05-06  Bruno Haible  <bruno@clisp.org>
17225
17226         fflush, fpurge: Relicense under LGPLv2+.
17227         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17228         * modules/fpurge (License): Likewise.
17229         With permission from Eric Blake and Jim Meyering.
17230         Suggested by Eric Blake.
17231
17232 2011-05-06  Karl Berry  <karl@gnu.org>
17233
17234         * MODULES.html.sh (func_all_modules): remove exit.
17235
17236 2011-05-06  Jim Meyering  <meyering@redhat.com>
17237
17238         maint.mk: use info-gnu@ as the default only for a stable release
17239         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17240         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17241         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17242         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17243
17244 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17245
17246         assert-h: new module, which supports C1X-style static_assert
17247         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17248         * lib/verify.h: Revamp so that this can be copied into assert.h,
17249         while retaining the ability to use it standalone as before.
17250         Rename private identifiers so as not to encroach on the
17251         standard C namespace, since this is now used by assert.h.
17252         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17253         the old verify_true.
17254         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17255         the old verify_true.  Use _GL_VERIFY_TYPE.
17256         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17257         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17258         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17259         defined when this file is copied into the replacement assert.h.
17260         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17261         and _Static_assert is not built in.
17262         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17263         defined, and use the new macros mentioned above.
17264         * doc/posix-headers/assert.texi: Document this.
17265
17266 2011-05-05  Bruno Haible  <bruno@clisp.org>
17267
17268         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17269         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17270         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17271         gl_REPLACE_FCLOSE here.
17272         * modules/fflush (Depends-on): Remove fclose.
17273         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17274         combination with module 'fclose'.
17275
17276 2011-05-05  Bruno Haible  <bruno@clisp.org>
17277
17278         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17279         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17280         gl_FUNC_FFLUSH.
17281         (gl_FUNC_FFLUSH): Use it.
17282         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17283         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17284         gl_REPLACE_FSEEKO here.
17285
17286 2011-05-05  Bruno Haible  <bruno@clisp.org>
17287
17288         tzset: Relicense under LGPL.
17289         * modules/tzset (License): Change to LGPL.
17290         No agreement needed; it's a no-op.
17291
17292         strtoimax, strtoumax: Relicense under LGPL.
17293         * modules/strtoimax (License): Change to LGPL.
17294         * modules/strtoumax (License): Likewise.
17295         With permission from Jim Meyering, Paul Eggert:
17296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17298
17299         getgroups: Relicense under LGPL.
17300         * modules/getgroups (License): Change to LGPL.
17301         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17305
17306         nanosleep: Relicense under LGPL.
17307         * modules/nanosleep (License): Change to LGPL.
17308         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17309         Haible:
17310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17314
17315         futimens: Relicense under LGPL.
17316         * modules/futimens (License): Change to LGPL.
17317         With permission from Eric Blake:
17318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17319
17320         fflush: Relicense under LGPL.
17321         * modules/fflush (License): Change to LGPL.
17322         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17326
17327         tmpfile: Relicense under LGPL.
17328         * modules/tmpfile (License): Change to LGPL.
17329         With permission from Ben Pfaff:
17330         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17331
17332         isfinite: Relicense under LGPL.
17333         * modules/isfinite (License): Change to LGPL.
17334         With permission from Ben Pfaff, Bruno Haible:
17335         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17337
17338         acosl..tanl: Relicense under LGPL.
17339         * modules/acosl (License): Change to LGPL.
17340         * modules/asinl (License): Likewise.
17341         * modules/atanl (License): Likewise.
17342         * modules/cosl (License): Likewise.
17343         * modules/expl (License): Likewise.
17344         * modules/logl (License): Likewise.
17345         * modules/sinl (License): Likewise.
17346         * modules/sqrtl (License): Likewise.
17347         * modules/tanl (License): Likewise.
17348         Source code originally from glibc and Paolo Bonzini. Agreements:
17349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17351
17352 2011-05-05  Bruno Haible  <bruno@clisp.org>
17353
17354         signal: Define sighandler_t.
17355         * lib/signal.in.h (sighandler_t): New type.
17356         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17357         whether sighandler_t is defined.
17358         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17359         * modules/signal (Depends-on): Add extensions.
17360         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17361         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17362         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17363
17364 2011-05-05  Eric Blake  <eblake@redhat.com>
17365
17366         maint: remove useless REPLACE_*_H macros
17367         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17368         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17369         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17370         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17371         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17372         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17373         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17374         * m4/btowc.m4: Update callers.
17375         * m4/dirfd.m4: Likewise.
17376         * m4/duplocale.m4: Likewise.
17377         * m4/fchdir.m4: Likewise.
17378         * m4/fdopendir.m4: Likewise.
17379         * m4/inet_ntop.m4: Likewise.
17380         * m4/inet_pton.m4: Likewise.
17381         * m4/ioctl.m4: Likewise.
17382         * m4/mbrlen.m4: Likewise.
17383         * m4/mbrtowc.m4: Likewise.
17384         * m4/mbsinit.m4: Likewise.
17385         * m4/mbsnrtowcs.m4: Likewise.
17386         * m4/mbsrtowcs.m4: Likewise.
17387         * m4/poll.m4: Likewise.
17388         * m4/setlocale.m4: Likewise.
17389         * m4/wcrtomb.m4: Likewise.
17390         * m4/wcsnrtombs.m4: Likewise.
17391         * m4/wcsrtombs.m4: Likewise.
17392         * m4/wctob.m4: Likewise.
17393         * m4/wcwidth.m4: Likewise.
17394         * modules/posix_spawn: Likewise.
17395         * modules/posix_spawn_file_actions_addclose: Likewise.
17396         * modules/posix_spawn_file_actions_adddup2: Likewise.
17397         * modules/posix_spawn_file_actions_addopen: Likewise.
17398         * modules/posix_spawn_file_actions_destroy: Likewise.
17399         * modules/posix_spawn_file_actions_init: Likewise.
17400         * modules/posix_spawnattr_destroy: Likewise.
17401         * modules/posix_spawnattr_getflags: Likewise.
17402         * modules/posix_spawnattr_getpgroup: Likewise.
17403         * modules/posix_spawnattr_getschedparam: Likewise.
17404         * modules/posix_spawnattr_getschedpolicy: Likewise.
17405         * modules/posix_spawnattr_getsigdefault: Likewise.
17406         * modules/posix_spawnattr_getsigmask: Likewise.
17407         * modules/posix_spawnattr_init: Likewise.
17408         * modules/posix_spawnattr_setflags: Likewise.
17409         * modules/posix_spawnattr_setpgroup: Likewise.
17410         * modules/posix_spawnattr_setschedparam: Likewise.
17411         * modules/posix_spawnattr_setschedpolicy: Likewise.
17412         * modules/posix_spawnattr_setsigdefault: Likewise.
17413         * modules/posix_spawnattr_setsigmask: Likewise.
17414         * modules/posix_spawnp: Likewise.
17415
17416 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17417
17418         Add option to do-release-commit-and-tag to specify branch.
17419         * build-aux/do-release-commit-and-tag: Add --branch.
17420
17421 2011-05-03  Bruno Haible  <bruno@clisp.org>
17422
17423         Avoid unnecessary compilation units, through conditional dependencies.
17424         * modules/accept (Depends-on): Add conditions to the dependencies.
17425         * modules/acosl (Depends-on): Likewise.
17426         * modules/argz (Depends-on): Likewise.
17427         * modules/asinl (Depends-on): Likewise.
17428         * modules/atanl (Depends-on): Likewise.
17429         * modules/atoll (Depends-on): Likewise.
17430         * modules/bind (Depends-on): Likewise.
17431         * modules/btowc (Depends-on): Likewise.
17432         * modules/canonicalize-lgpl (Depends-on): Likewise.
17433         * modules/ceil (Depends-on): Likewise.
17434         * modules/ceilf (Depends-on): Likewise.
17435         * modules/ceill (Depends-on): Likewise.
17436         * modules/chdir-long (Depends-on): Likewise.
17437         * modules/chown (Depends-on): Likewise.
17438         * modules/close (Depends-on): Likewise.
17439         * modules/connect (Depends-on): Likewise.
17440         * modules/cosl (Depends-on): Likewise.
17441         * modules/dirfd (Depends-on): Likewise.
17442         * modules/dprintf (Depends-on): Likewise.
17443         * modules/dprintf-posix (Depends-on): Likewise.
17444         * modules/error (Depends-on): Likewise.
17445         * modules/euidaccess (Depends-on): Likewise.
17446         * modules/expl (Depends-on): Likewise.
17447         * modules/faccessat (Depends-on): Likewise.
17448         * modules/fchdir (Depends-on): Likewise.
17449         * modules/fclose (Depends-on): Likewise.
17450         * modules/fcntl (Depends-on): Likewise.
17451         * modules/fdopendir (Depends-on): Likewise.
17452         * modules/fflush (Depends-on): Likewise.
17453         * modules/floor (Depends-on): Likewise.
17454         * modules/floorf (Depends-on): Likewise.
17455         * modules/floorl (Depends-on): Likewise.
17456         * modules/fnmatch (Depends-on): Likewise.
17457         * modules/fopen (Depends-on): Likewise.
17458         * modules/fprintf-posix (Depends-on): Likewise.
17459         * modules/frexp (Depends-on): Likewise.
17460         * modules/frexp-nolibm (Depends-on): Likewise.
17461         * modules/frexpl (Depends-on): Likewise.
17462         * modules/frexpl-nolibm (Depends-on): Likewise.
17463         * modules/fseek (Depends-on): Likewise.
17464         * modules/fsusage (Depends-on): Likewise.
17465         * modules/ftell (Depends-on): Likewise.
17466         * modules/ftello (Depends-on): Likewise.
17467         * modules/futimens (Depends-on): Likewise.
17468         * modules/getcwd (Depends-on): Likewise.
17469         * modules/getcwd-lgpl (Depends-on): Likewise.
17470         * modules/getdelim (Depends-on): Likewise.
17471         * modules/getdomainname (Depends-on): Likewise.
17472         * modules/getgroups (Depends-on): Likewise.
17473         * modules/gethostname (Depends-on): Likewise.
17474         * modules/getline (Depends-on): Likewise.
17475         * modules/getlogin_r (Depends-on): Likewise.
17476         * modules/getopt-posix (Depends-on): Likewise.
17477         * modules/getpeername (Depends-on): Likewise.
17478         * modules/getsockname (Depends-on): Likewise.
17479         * modules/getsockopt (Depends-on): Likewise.
17480         * modules/getsubopt (Depends-on): Likewise.
17481         * modules/getusershell (Depends-on): Likewise.
17482         * modules/glob (Depends-on): Likewise.
17483         * modules/grantpt (Depends-on): Likewise.
17484         * modules/iconv_open (Depends-on): Likewise.
17485         * modules/iconv_open-utf (Depends-on): Likewise.
17486         * modules/inet_ntop (Depends-on): Likewise.
17487         * modules/inet_pton (Depends-on): Likewise.
17488         * modules/ioctl (Depends-on): Likewise.
17489         * modules/isapipe (Depends-on): Likewise.
17490         * modules/isfinite (Depends-on): Likewise.
17491         * modules/isinf (Depends-on): Likewise.
17492         * modules/lchown (Depends-on): Likewise.
17493         * modules/ldexpl (Depends-on): Likewise.
17494         * modules/link (Depends-on): Likewise.
17495         * modules/linkat (Depends-on): Likewise.
17496         * modules/listen (Depends-on): Likewise.
17497         * modules/logl (Depends-on): Likewise.
17498         * modules/lstat (Depends-on): Likewise.
17499         * modules/mbrlen (Depends-on): Likewise.
17500         * modules/mbrtowc (Depends-on): Likewise.
17501         * modules/mbsinit (Depends-on): Likewise.
17502         * modules/mbsnrtowcs (Depends-on): Likewise.
17503         * modules/mbsrtowcs (Depends-on): Likewise.
17504         * modules/mbtowc (Depends-on): Likewise.
17505         * modules/memcmp (Depends-on): Likewise.
17506         * modules/mkdir (Depends-on): Likewise.
17507         * modules/mkdtemp (Depends-on): Likewise.
17508         * modules/mkfifo (Depends-on): Likewise.
17509         * modules/mkfifoat (Depends-on): Likewise.
17510         * modules/mknod (Depends-on): Likewise.
17511         * modules/mkostemp (Depends-on): Likewise.
17512         * modules/mkostemps (Depends-on): Likewise.
17513         * modules/mkstemp (Depends-on): Likewise.
17514         * modules/mkstemps (Depends-on): Likewise.
17515         * modules/mktime (Depends-on): Likewise.
17516         * modules/nanosleep (Depends-on): Likewise.
17517         * modules/open (Depends-on): Likewise.
17518         * modules/openat (Depends-on): Likewise.
17519         * modules/perror (Depends-on): Likewise.
17520         * modules/poll (Depends-on): Likewise.
17521         * modules/popen (Depends-on): Likewise.
17522         * modules/posix_spawn (Depends-on): Likewise.
17523         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17524         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17525         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17526         * modules/posix_spawnp (Depends-on): Likewise.
17527         * modules/pread (Depends-on): Likewise.
17528         * modules/printf-posix (Depends-on): Likewise.
17529         * modules/ptsname (Depends-on): Likewise.
17530         * modules/putenv (Depends-on): Likewise.
17531         * modules/pwrite (Depends-on): Likewise.
17532         * modules/readline (Depends-on): Likewise.
17533         * modules/readlink (Depends-on): Likewise.
17534         * modules/readlinkat (Depends-on): Likewise.
17535         * modules/recv (Depends-on): Likewise.
17536         * modules/recvfrom (Depends-on): Likewise.
17537         * modules/regex (Depends-on): Likewise.
17538         * modules/remove (Depends-on): Likewise.
17539         * modules/rename (Depends-on): Likewise.
17540         * modules/renameat (Depends-on): Likewise.
17541         * modules/rmdir (Depends-on): Likewise.
17542         * modules/round (Depends-on): Likewise.
17543         * modules/roundf (Depends-on): Likewise.
17544         * modules/roundl (Depends-on): Likewise.
17545         * modules/rpmatch (Depends-on): Likewise.
17546         * modules/select (Depends-on): Likewise.
17547         * modules/send (Depends-on): Likewise.
17548         * modules/sendto (Depends-on): Likewise.
17549         * modules/setenv (Depends-on): Likewise.
17550         * modules/setlocale (Depends-on): Likewise.
17551         * modules/setsockopt (Depends-on): Likewise.
17552         * modules/shutdown (Depends-on): Likewise.
17553         * modules/sigaction (Depends-on): Likewise.
17554         * modules/signbit (Depends-on): Likewise.
17555         * modules/sigprocmask (Depends-on): Likewise.
17556         * modules/sinl (Depends-on): Likewise.
17557         * modules/sleep (Depends-on): Likewise.
17558         * modules/snprintf (Depends-on): Likewise.
17559         * modules/snprintf-posix (Depends-on): Likewise.
17560         * modules/socket (Depends-on): Likewise.
17561         * modules/sprintf-posix (Depends-on): Likewise.
17562         * modules/sqrtl (Depends-on): Likewise.
17563         * modules/stat (Depends-on): Likewise.
17564         * modules/strchrnul (Depends-on): Likewise.
17565         * modules/strdup-posix (Depends-on): Likewise.
17566         * modules/strerror (Depends-on): Likewise.
17567         * modules/strerror_r-posix (Depends-on): Likewise.
17568         * modules/strndup (Depends-on): Likewise.
17569         * modules/strnlen (Depends-on): Likewise.
17570         * modules/strptime (Depends-on): Likewise.
17571         * modules/strsep (Depends-on): Likewise.
17572         * modules/strsignal (Depends-on): Likewise.
17573         * modules/strstr-simple (Depends-on): Likewise.
17574         * modules/strtod (Depends-on): Likewise.
17575         * modules/strtoimax (Depends-on): Likewise.
17576         * modules/strtok_r (Depends-on): Likewise.
17577         * modules/strtoumax (Depends-on): Likewise.
17578         * modules/symlink (Depends-on): Likewise.
17579         * modules/symlinkat (Depends-on): Likewise.
17580         * modules/tanl (Depends-on): Likewise.
17581         * modules/tcgetsid (Depends-on): Likewise.
17582         * modules/tmpfile (Depends-on): Likewise.
17583         * modules/trunc (Depends-on): Likewise.
17584         * modules/truncf (Depends-on): Likewise.
17585         * modules/truncl (Depends-on): Likewise.
17586         * modules/uname (Depends-on): Likewise.
17587         * modules/unlink (Depends-on): Likewise.
17588         * modules/unlockpt (Depends-on): Likewise.
17589         * modules/unsetenv (Depends-on): Likewise.
17590         * modules/usleep (Depends-on): Likewise.
17591         * modules/utimensat (Depends-on): Likewise.
17592         * modules/vasprintf (Depends-on): Likewise.
17593         * modules/vdprintf (Depends-on): Likewise.
17594         * modules/vdprintf-posix (Depends-on): Likewise.
17595         * modules/vfprintf-posix (Depends-on): Likewise.
17596         * modules/vprintf-posix (Depends-on): Likewise.
17597         * modules/vsnprintf (Depends-on): Likewise.
17598         * modules/vsnprintf-posix (Depends-on): Likewise.
17599         * modules/vsprintf-posix (Depends-on): Likewise.
17600         * modules/wcrtomb (Depends-on): Likewise.
17601         * modules/wcscasecmp (Depends-on): Likewise.
17602         * modules/wcscspn (Depends-on): Likewise.
17603         * modules/wcsdup (Depends-on): Likewise.
17604         * modules/wcsncasecmp (Depends-on): Likewise.
17605         * modules/wcsnrtombs (Depends-on): Likewise.
17606         * modules/wcspbrk (Depends-on): Likewise.
17607         * modules/wcsrtombs (Depends-on): Likewise.
17608         * modules/wcsspn (Depends-on): Likewise.
17609         * modules/wcsstr (Depends-on): Likewise.
17610         * modules/wcstok (Depends-on): Likewise.
17611         * modules/wcswidth (Depends-on): Likewise.
17612         * modules/wctob (Depends-on): Likewise.
17613         * modules/wctomb (Depends-on): Likewise.
17614         * modules/wctype (Depends-on): Likewise.
17615         * modules/wcwidth (Depends-on): Likewise.
17616         * modules/write (Depends-on): Likewise.
17617
17618 2011-05-03  Bruno Haible  <bruno@clisp.org>
17619
17620         Support for conditional dependencies.
17621         * doc/gnulib.texi (Module description): Document the syntax of
17622         conditional dependencies.
17623         * gnulib-tool: New option --conditional-dependencies.
17624         (func_usage): Document it.
17625         (cond_dependencies): New variable.
17626         (func_get_automake_snippet_conditional,
17627         func_get_automake_snippet_unconditional): New functions, extracted from
17628         func_get_automake_snippet.
17629         (func_get_automake_snippet): Use them.
17630         (sed_first_32_chars): New variable.
17631         (func_module_shellfunc_name): New function.
17632         (func_module_shellvar_name): New function.
17633         (func_module_conditional_name): New function.
17634         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17635         func_cond_module_condition): New functions.
17636         (func_modules_transitive_closure): Add support for conditional
17637         dependencies.
17638         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17639         conditional automake snippet in an automake conditional.
17640         (func_emit_autoconf_snippets): Emit shell functions that contain the
17641         code for conditional modules.
17642         (func_import, func_create_testdir): Update specification.
17643
17644 2011-05-03  Eric Blake  <eblake@redhat.com>
17645
17646         test-getaddrinfo: report error information
17647         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17648
17649 2011-05-03  Jim Meyering  <meyering@redhat.com>
17650
17651         bootstrap: avoid build failure when $GZIP is set
17652         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17653         program name.  If defined at all, it is supposed to list gzip options.
17654         Reported by Alan Curry in http://debbugs.gnu.org/8609
17655
17656 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17657
17658         readme-release: new module with release instructions
17659         * modules/readme-release: New module.
17660         * top/README-release: New file, from coreutils, grep, diffutils.
17661         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17662
17663 2011-05-02  Eric Blake  <eblake@redhat.com>
17664
17665         fflush: also replace fclose when fixing fflush
17666         * modules/fflush (Depends-on): Add fclose.
17667         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17668         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17669         memstreams with no backing fd.
17670         * doc/posix-functions/fclose.texi (fclose): Document the use of
17671         fflush module to fix the bug.
17672         * tests/test-fclose.c (main): Relax test when fclose is used in
17673         isolation.
17674
17675         fclose: add some tests
17676         * modules/fclose-tests: New test module.
17677         * tests/test-fclose.c: New file.
17678         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17679
17680         fclose: reduced dependencies
17681         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17682         simpler lseek.
17683         * lib/fclose.c (rpl_fclose): Likewise.
17684         Reported by Simon Josefsson.
17685
17686         exit: drop remaining clients
17687         * modules/argmatch (Depends-on): Replace exit with stdlib.
17688         * modules/copy-file (Depends-on): Likewise.
17689         * modules/execute (Depends-on): Likewise.
17690         * modules/exitfail (Depends-on): Likewise.
17691         * modules/obstack (Depends-on): Likewise.
17692         * modules/pagealign_alloc (Depends-on): Likewise.
17693         * modules/pipe-filter-gi (Depends-on): Likewise.
17694         * modules/pipe-filter-ii (Depends-on): Likewise.
17695         * modules/savewd (Depends-on): Likewise.
17696         * modules/spawn-pipe (Depends-on): Likewise.
17697         * modules/wait-process (Depends-on): Likewise.
17698         * modules/xsetenv (Depends-on): Likewise.
17699         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17700         * modules/git-merge-changelog (Depends-on): Likewise.
17701         * modules/long-options (Depends-on): Likewise.
17702         * modules/pt_chown (Depends-on): Likewise.
17703         * modules/sysexits (Depends-on): Likewise.
17704
17705         freading: relax license from LGPLv3+ to LGPLv2+
17706         * modules/freading (License): Relax LGPL version.
17707
17708 2011-05-02  Bruno Haible  <bruno@clisp.org>
17709
17710         fchdir: Remove unused dependencies.
17711         * modules/fchdir (Depends-on): Remove include_next.
17712
17713 2011-05-02  Bruno Haible  <bruno@clisp.org>
17714
17715         gnulib-tool: Refactor.
17716         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17717         from func_emit_autoconf_snippets.
17718         (func_emit_autoconf_snippets): Use it.
17719
17720 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17721
17722         * NEWS: Document removal of 'exit'.
17723         * modules/exit: Remove file.
17724
17725 2011-05-01  Bruno Haible  <bruno@clisp.org>
17726
17727         Update DEPENDENCIES.
17728         * DEPENDENCIES (gettext): Recommend the newest release.
17729         Reported by Simon Josefsson.
17730
17731 2011-05-01  Bruno Haible  <bruno@clisp.org>
17732
17733         gnulib-tool: Reduce code duplication.
17734         * gnulib-tool (func_emit_autoconf_snippets): New function.
17735         (func_import, func_create_testdir): Use it.
17736
17737 2011-04-30  Eric Blake  <eblake@redhat.com>
17738
17739         fclose: don't fail on non-seekable input stream
17740         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17741         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17742         since fflush is allowed to fail in that case.
17743
17744 2011-04-30  Bruno Haible  <bruno@clisp.org>
17745
17746         dup3: cleanup
17747         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17748
17749 2011-04-30  Bruno Haible  <bruno@clisp.org>
17750
17751         netdb: Make it work in C++ mode.
17752         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17753         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17754         module.
17755         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17756         gl_MODULE_INDICATOR_FOR_TESTS.
17757         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17758         * modules/netdb-c++-tests: New file.
17759         * tests/test-netdb-c++.cc: New file.
17760
17761 2011-04-30  Bruno Haible  <bruno@clisp.org>
17762
17763         New modules 'vfscanf', 'vscanf'.
17764         * modules/vfscanf: New file.
17765         * modules/vscanf: New file.
17766         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17767         here.
17768         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17769         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17770
17771 2011-04-30  Bruno Haible  <bruno@clisp.org>
17772
17773         passfd: Add comments.
17774         * lib/passfd.c: Add comments about platforms.
17775
17776 2011-04-30  Bruno Haible  <bruno@clisp.org>
17777
17778         sys_uio: Make <sys/uio.h> self-contained.
17779         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17780         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17781
17782 2011-04-30  Bruno Haible  <bruno@clisp.org>
17783
17784         sys_socket: Ensure 'struct iovec' definition.
17785         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17786         <sys/socket.h>.
17787         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17788
17789 2011-04-30  Bruno Haible  <bruno@clisp.org>
17790
17791         sys_uio: Protect definition of 'struct iovec'.
17792         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17793         it as a C struct.
17794
17795 2011-04-30  Bruno Haible  <bruno@clisp.org>
17796
17797         manywarnings: fix indentation
17798         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17799
17800 2011-04-30  Pádraig Brady <P@draigBrady.com>
17801
17802         manywarnings: add -Wno-missing-field-initializers if needed.
17803         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17804         option if it's needed to allow initialization with { 0, }
17805
17806 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17807
17808         announce-gen: cosmetic improvement
17809         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17810
17811 2011-04-29  Jim Meyering  <meyering@redhat.com>
17812
17813         vc-list-files: indent with spaces, not TABs
17814         * build-aux/vc-list-files: Convert leading TABs to spaces,
17815         to match the style of most other files in gnulib.
17816
17817         announce-gen: indent with spaces, not TABs
17818         * build-aux/announce-gen: Convert all TABs to spaces, to match
17819         the style of most other files in gnulib.
17820
17821 2011-04-29  Eric Blake  <eblake@redhat.com>
17822
17823         quotearg: avoid uninitialized variable use
17824         * lib/quotearg.c (quoting_options_from_style): Initialize
17825         remaining fields, and ensure that custom styles are only used via
17826         quoting_options rather than quoting_style.
17827
17828 2011-04-29  Jim Meyering  <meyering@redhat.com>
17829
17830         maint.mk: remove unused VC-tag variable
17831         * top/maint.mk (VC-tag): Remove unused variable.
17832
17833 2011-04-29  Bruno Haible  <bruno@clisp.org>
17834
17835         netdb: fix gai_strerror replacements
17836         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17837         * modules/netdb: Substitute it.
17838
17839 2011-04-29  Jim Meyering  <meyering@redhat.com>
17840
17841         test-getcwd.c: avoid new set-but-not-used warning
17842         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17843         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17844         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17845         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17846
17847         test-hash.c: avoid a new shadowing warning
17848         * tests/test-hash.c (main): Don't shadow "dup".
17849
17850 2011-04-28  Eric Blake  <eblake@redhat.com>
17851
17852         getaddrinfo: fix gai_strerror signature
17853         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17854         and work around mingw with UNICODE defined.
17855         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17856         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17857         * modules/netdb (Makefile.am): Substitute it.
17858         * lib/netdb.in.h (gai_strerror): Declare replacement.
17859         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17860         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17861         the fix.
17862
17863         getsockopt: avoid compiler warning
17864         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17865         Reported by Matthias Bolte.
17866
17867         tests: drop unused link dependency
17868         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17869         * modules/dirent-safer-tests (Makefile.am): Likewise.
17870         * modules/fdopendir-tests (Makefile.am): Likewise.
17871         * modules/mkfifoat-tests (Makefile.am): Likewise.
17872         * modules/openat-safer-tests (Makefile.am): Likewise.
17873         * modules/openat-tests (Makefile.am): Likewise.
17874         * modules/readlinkat-tests (Makefile.am): Likewise.
17875         * modules/symlinkat-tests (Makefile.am): Likewise.
17876         * modules/linkat-tests (Makefile.am): Likewise.
17877         (Depends-on): Switch to filenamecat-lgpl.
17878         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17879         LIBINTL.
17880         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17881         * tests/test-linkat.c (main): Don't require xalloc.
17882
17883         hash, mgetgroups: drop xalloc dependency
17884         * lib/hash.c (includes): Adjust includes.
17885         * lib/mgetgroups.c (includes): Likewise.
17886         (xgetgroups): Move...
17887         * lib/xgetgroups.c: ...to new file.
17888         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17889         * modules/xgetgroups: New file, split from...
17890         * modules/mgetgroups: ...here.
17891         (Depends-on): Add xalloc-oversized.
17892         * modules/hash (Depends-on): Likewise.
17893         * modules/hash-tests (Depends-on): Drop xalloc.
17894         (test_hash_LDADD): Drop unused library.
17895         * tests/test-hash.c (main): Break xalloc dependency.
17896         (includes): Drop unused include.
17897
17898         xalloc-oversized: new module
17899         * modules/xalloc-oversized: New module.
17900         * modules/xalloc (Depends-on): Add it.
17901         * lib/xalloc.h (xalloc_oversized): Move...
17902         * lib/xalloc-oversized.h: ...into new file.
17903
17904         utimecmp: drop dependency on xmalloc
17905         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17906         due to memory pressure.
17907         * modules/utimecmp (Depends-on): Drop xalloc.
17908
17909 2011-04-27  Eric Blake  <eblake@redhat.com>
17910
17911         getcwd: fix mingw bugs
17912         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17913         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17914         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17915
17916 2011-04-27  Bruno Haible  <bruno@clisp.org>
17917
17918         mkstemps: Ensure declaration on MacOS X 10.5.
17919         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17920         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17921         MacOS X.
17922
17923 2011-04-27  Bruno Haible  <bruno@clisp.org>
17924
17925         mkstemp: More documentation.
17926         * doc/posix-functions/mkstemp.texi: Document header file problem on
17927         MacOS X.
17928
17929 2011-04-27  Bruno Haible  <bruno@clisp.org>
17930
17931         mkstemp: Tweak configure message when cross-compiling.
17932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17933         result as a guess.
17934
17935 2011-04-27  Bruno Haible  <bruno@clisp.org>
17936
17937         clean-temp: Clarify what it does.
17938         * lib/clean-temp.h: Add more comments.
17939         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17940         module.
17941         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17942         * doc/glibc-functions/mkstemps.texi: Likewise.
17943         * doc/glibc-functions/mkostemps.texi: Likewise.
17944
17945 2011-04-27  Eric Blake  <eblake@redhat.com>
17946
17947         fchdir: avoid extra chdir and fix test
17948         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17949         getcwd-lgpl.
17950         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17951         have to be canonical.
17952         (canonicalize_file_name): Drop unused macro.
17953         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17954
17955         filenamecat-lgpl: fix licence
17956         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17957         when it was first created.
17958
17959         linkat, renameat: add missing dependency
17960         * modules/linkat (Depends-on): Require getcwd-lgpl.
17961         * modules/renameat (Depends-on): Likewise.
17962
17963         tests: reduce dependencies
17964         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17965         * tests/test-renameat.c (main): Likewise.
17966         * modules/linkat-tests (Depends-on): Relax dependency.
17967         * modules/renameat-tests (Depends-on): Likewise.
17968         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17969         dependency explicit.
17970
17971         save-cwd: reduce default dependency
17972         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17973         * lib/save-cwd.c: Update comments.
17974         * NEWS: Document the semantic change.
17975
17976         getcwd: enhance tests
17977         * tests/test-getcwd-lgpl.c: New file, taken from...
17978         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17979         repeat long path stress tests from m4 probe.
17980         * modules/getcwd-lgpl-tests: New module.
17981         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17982         * m4/getcwd-abort-bug.m4: Update comment.
17983         * m4/getcwd-path-max.m4: Likewise.
17984
17985         getcwd-lgpl: new module
17986         * modules/getcwd-lgpl: New module.
17987         * lib/getcwd-lgpl.c: New file.
17988         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17989         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17990         * modules/getcwd (configure.ac): Set C witness.
17991         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17992
17993         getcwd: tweak comments
17994         * m4/getcwd-abort-bug.m4: Fix comments.
17995         * m4/getcwd-path-max.m4: Likewise.
17996         * m4/getcwd.m4: Likewise.
17997
17998 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17999         and Eric Blake  <eblake@redhat.com>
18000
18001         mkstemp: replace if system version uses wrong permissions
18002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18003         read/write mode bits set in file created by mkstemp.
18004         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18005
18006 2011-04-27  Eric Blake  <eblake@redhat.com>
18007
18008         passfd: avoid compiler warning
18009         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18010         Reported by Laine Stump.
18011
18012 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18013
18014         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18015         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18016
18017 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18018         and Eric Blake  <eblake@redhat.com>
18019
18020         mkstemp: mention clean-temp module
18021         * lib/mkstemp.c: Add comment.
18022         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18023
18024 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18025
18026         inttypes: also provide default values for 32-bit tests
18027         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18028         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18029
18030 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18031
18032         strtoumax: remove dependency on strtoimax
18033         This is like the strtoull change of yesterday.
18034         * modules/strtoumax (Files): Add lib/strtoimax.c.
18035         (Depends-on): Remove strtoimax and add verify.
18036
18037         inttypes-incomplete: new module
18038         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18039         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18040         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18041         of gl_INTTYPES_H.
18042         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18043         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18044         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18045         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18046         * modules/strtoumax, modules/xstrtol (Depends-on):
18047         Depend on inttypes-incomplete, not inttypes.
18048         * modules/inttypes-incomplete: New module, containing the contents
18049         of the old modules/inttypes module, except that the Files: section
18050         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18051         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18052         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18053         (Depends-on): Depend only on inttypes-incomplete.
18054         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18055
18056         inttypes: omit now-redundant strtoimax and strtoumax work
18057         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18058         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18059
18060         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18061         This supports apps that need pointers to strtoimax and strtoumax,
18062         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18063         nonexistent functions.  See
18064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18065         et seq.
18066         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18067         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18068         a macro.
18069         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18070
18071 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18072
18073         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18074
18075 2011-04-25  Bruno Haible  <bruno@clisp.org>
18076
18077         strtol, strtoul: Mark modules as obsolete.
18078         * modules/strtol (Status, Notice): New sections.
18079         * modules/strtoul (Status, Notice): New sections.
18080
18081 2011-04-25  Bruno Haible  <bruno@clisp.org>
18082
18083         strtod: Remove check for strtod, unless supporting old platforms.
18084         * modules/strtod-obsolete: New file.
18085         * m4/strtod-obsolete.m4: New file.
18086         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18087         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18088         * modules/strtod (Depends-on): Add strtod-obsolete.
18089         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18090
18091 2011-04-25  Bruno Haible  <bruno@clisp.org>
18092
18093         strcase: Make module obsolete.
18094         * modules/strcase (Status, Notice): New sections.
18095
18096 2011-04-25  Bruno Haible  <bruno@clisp.org>
18097
18098         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18099         * modules/dup2-obsolete: New file.
18100         * m4/dup2-obsolete.m4: New file.
18101         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18102         gl_FUNC_DUP2_OBSOLETE is not also defined.
18103         * modules/dup2 (Depends-on): Add dup2-obsolete.
18104         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18105
18106 2011-04-25  Bruno Haible  <bruno@clisp.org>
18107
18108         strnlen: Avoid memchr related link error on old obsolete platforms.
18109         * modules/memchr-obsolete: New file.
18110         * m4/memchr-obsolete.m4: New file.
18111         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18112         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18113         * modules/memchr (Depends-on): Add memchr-obsolete.
18114         * modules/strnlen (Depends-on): Likewise.
18115         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18116
18117 2011-04-25  Jim Meyering  <meyering@redhat.com>
18118
18119         maint.mk: makefile_at_at_check extend and clean up
18120         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18121         in addition to */Makefile.am.
18122         Exempt legitimate uses of @VAR@ notation, e.g.,
18123         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18124         Remove obsolete coreutils-specific comment.
18125         Prompted by discussion here:
18126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18127
18128 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18129
18130         strtoul: remove dependency on strtol
18131         This is so that 'configure' need not check for strtol merely because
18132         the application needs strtoul.
18133         * modules/strtoul (Files): Add lib/strtol.c.
18134         (Depends-on): Remove strtol.
18135
18136         strtoull: remove dependency on strtoul
18137         This is like the strtoll change.
18138         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18139         (Depends-on): Remove strtoul.
18140
18141         strtoll: remove dependency on strtol
18142         This is so that 'configure' need not check for strtol merely because
18143         the application needs strtoll.
18144         * modules/strtoll (Files): Add lib/strtol.c.
18145         (Depends-on): Remove strtol.
18146
18147 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18148
18149         inttypes: Move some configure check to module 'imaxdiv'.
18150         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18151         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18152         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18153
18154 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18155
18156         inttypes: Move some configure check to module 'imaxabs'.
18157         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18158         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18159         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18160
18161 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18162
18163         inttypes: Remove configure tests that are not needed since 2009-12-31.
18164         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18165         gl_cv_header_working_inttypes_h.
18166
18167 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18168
18169         * modules/strnlen (Depends-on): Remove memchr.
18170         The strnlen implementation doesn't need the memchr module's fixes; see
18171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18172
18173         strtol: remove dependency on wchar
18174         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18175         * modules/strtol (Depends-on): Remove wchar.
18176
18177 2011-04-21  Eric Blake  <eblake@redhat.com>
18178
18179         passfd: fix test regression on Linux
18180         * modules/passfd-tests (configure.ac): Correct socketpair check.
18181
18182         passfd: speed up configure and drop unused code
18183         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18184         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18185         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18186         Instead of probing at configure for unix_scm_rights_bsd44_way,
18187         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18188         check to a struct member probe.
18189         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18190         (sendfd, recvfd): Update preprocessor checks.
18191         * modules/passfd (Files): Reflect rename, and drop unused file.
18192         (Depends-on): Drop unused dependency.
18193
18194         passfd: allow compilation on mingw
18195         * modules/sys_socket (Depends-on): Add sys_uio.
18196         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18197         iovec and a minimal struct msghdr.
18198         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18199         * tests/test-sys_socket.c (main): Enhance test.
18200         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18201         guaranteed to provide what we need.
18202         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18203         * modules/passfd-tests (Depends-on): Add sys_wait.
18204         * tests/test-passfd.c (main): Skip test on mingw, for now.
18205         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18206         partial 'struct msghdr' implementation.
18207
18208         sys_uio: new module
18209         * modules/sys_uio: New module.
18210         * modules/sys_uio-tests: Likewise.
18211         * lib/sys_uio.in.h: New file.
18212         * m4/sys_uio_h.m4: Likewise.
18213         * tests/test-sys_uio.c: Likewise.
18214         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18215         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18216
18217 2011-04-20  Jim Meyering  <meyering@redhat.com>
18218
18219         useless-if-before-free: avoid false-positive
18220         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18221         disjunct so that it too requires a terminating ";".  Without that,
18222         this script would identify as useless one statement from gcc that
18223         was not:
18224           if (aligned_ptr)
18225             free (((void **) aligned_ptr) [-1]);
18226
18227 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18228
18229         doc: update users.txt.
18230         * users.txt: Add barcode.
18231
18232 2011-04-19  Bruno Haible  <bruno@clisp.org>
18233
18234         ioctl: Remove link dependency on native Windows.
18235         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18236         (gl_close_fn, gl_ioctl_fn): New types.
18237         (struct fd_hook): Renamed from struct close_hook. Change type of
18238         private_close_fn field. Add private_ioctl_fn field.
18239         (close_hook_fn): Add parameter for primary close method.
18240         (execute_close_hooks, execute_all_close_hooks): Likewise.
18241         (ioctl_hook_fn): New type.
18242         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18243         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18244         argument.
18245         (unregister_fd_hook): Renamed from unregister_close_hook.
18246         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18247         Don't include <unistd.h>.
18248         (close): Remove undef.
18249         (anchor): Update.
18250         (execute_close_hooks): Add argument for primary close method.
18251         (execute_all_close_hooks): Likewise.
18252         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18253         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18254         argument. Allow each argument to be NULL.
18255         (unregister_fd_hook): Renamed from unregister_close_hook.
18256         * lib/close.c (rpl_close): Pass 'close' function pointer to
18257         execute_all_close_hooks.
18258         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18259         (primary_ioctl): New function.
18260         (ioctl): Don't call ioctlsocket here. Instead, call
18261         execute_all_ioctl_hooks.
18262         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18263         close method.
18264         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18265         (fd_sockets_hook): Renamed from close_sockets_hook.
18266         (gl_sockets_startup, gl_sockets_cleanup): Update.
18267         * modules/fd-hook: Renamed from modules/close-hook. Update.
18268         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18269         * modules/sockets (Depends-on): Likewise.
18270         * modules/ioctl (Depends-on): Add fd-hook.
18271         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18272         GNULIB_SOCKET.
18273
18274 2011-04-19  Bruno Haible  <bruno@clisp.org>
18275
18276         Move the support of O_NONBLOCK in open() to the 'open' module.
18277         * modules/nonblocking (Depends-on): Remove 'open'.
18278         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18279         gl_cv_have_open_O_NONBLOCK.
18280         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18281         O_NONBLOCK support.
18282         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18283
18284 2011-04-17  Bruno Haible  <bruno@clisp.org>
18285
18286         pipe2: Simplify code.
18287         * lib/pipe2.c (pipe2): Reduce code duplication.
18288
18289 2011-04-17  Bruno Haible  <bruno@clisp.org>
18290
18291         nonblocking: Add comment.
18292         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18293
18294 2011-04-17  Bruno Haible  <bruno@clisp.org>
18295
18296         nonblocking: Add tests for sockets.
18297         * tests/test-nonblocking-socket.sh: New file.
18298         * tests/test-nonblocking-socket-main.c: New file.
18299         * tests/test-nonblocking-socket-child.c: New file.
18300         * tests/test-nonblocking-socket.h: New file.
18301         * tests/socket-server.h: New file.
18302         * tests/socket-client.h: New file.
18303         * modules/nonblocking-socket-tests: New file.
18304         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18305
18306 2011-04-17  Bruno Haible  <bruno@clisp.org>
18307
18308         nonblocking: Add tests for pipes.
18309         * tests/test-nonblocking-pipe.sh: New file.
18310         * tests/test-nonblocking-pipe-main.c: New file.
18311         * tests/test-nonblocking-pipe-child.c: New file.
18312         * tests/test-nonblocking-pipe.h: New file.
18313         * tests/test-nonblocking-writer.h: New file.
18314         * tests/test-nonblocking-reader.h: New file.
18315         * tests/test-nonblocking-misc.h: New file.
18316         * modules/nonblocking-pipe-tests: New file.
18317         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18318
18319 2011-04-16  Bruno Haible  <bruno@clisp.org>
18320
18321         gettext: Clarify the needed programmer actions.
18322         * modules/gettext (Notice): New field.
18323         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18324
18325 2011-04-16  Bruno Haible  <bruno@clisp.org>
18326
18327         strchrnul: Tweak last commit.
18328         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18329         bug.
18330         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18331         as in _GL_FUNCDECL_SYS.
18332         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18333         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18334
18335 2011-04-15  Eric Blake  <eblake@redhat.com>
18336
18337         strchrnul: work around cygwin bug
18338         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18339         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18341         * modules/string (Makefile.am): Substitute it.
18342         * lib/string.in.h (strchrnul): Use it.
18343
18344 2011-04-15  Bruno Haible  <bruno@clisp.org>
18345
18346         Don't require lib/stdio-write.c when only module 'stdio' is used.
18347         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18348         invocation.
18349         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18350
18351 2011-04-14  Bruno Haible  <bruno@clisp.org>
18352
18353         Support non-blocking pipe I/O in read() on native Windows.
18354         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18355         (read): New declaration.
18356         * lib/read.c: New file.
18357         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18358         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18359         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18360         vscanf): New declarations.
18361         * lib/stdio-read.c: New file.
18362         * m4/read.m4: New file.
18363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18364         REPLACE_READ.
18365         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18366         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18367         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18368         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18369         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18370         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18371         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18372         * modules/read: New file.
18373         * modules/nonblocking (Files): Add lib/stdio-read.c.
18374         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18375         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18376         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18377         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18378         * modules/pread (Depends-on): Add read.
18379         * modules/safe-read (Depends-on): Likewise.
18380         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18381         gets, scanf, vfscanf, vscanf): Verify signatures.
18382         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18383         problem with non-blocking pipes.
18384         * doc/posix-functions/fgetc.texi: Likewise.
18385         * doc/posix-functions/fgets.texi: Likewise.
18386         * doc/posix-functions/fread.texi: Likewise.
18387         * doc/posix-functions/fscanf.texi: Likewise.
18388         * doc/posix-functions/getc.texi: Likewise.
18389         * doc/posix-functions/getchar.texi: Likewise.
18390         * doc/posix-functions/gets.texi: Likewise.
18391         * doc/posix-functions/scanf.texi: Likewise.
18392         * doc/posix-functions/vfscanf.texi: Likewise.
18393         * doc/posix-functions/vscanf.texi: Likewise.
18394
18395 2011-04-14  Bruno Haible  <bruno@clisp.org>
18396
18397         Support non-blocking pipe I/O in write() on native Windows.
18398         * lib/write.c (rpl_write): Split a write request that failed merely
18399         because the byte count was larger than the pipe buffer's size.
18400         * doc/posix-functions/write.texi: Mention the problem with large byte
18401         counts.
18402
18403 2011-04-14  Bruno Haible  <bruno@clisp.org>
18404
18405         wchar: Ensure that wchar_t gets defined on uClibc.
18406         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18407         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18408
18409 2011-04-13  Bruno Haible  <bruno@clisp.org>
18410
18411         safe-write, full-read: Avoid unnecessary compilation units.
18412         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18413         (Depends-on): Remove safe-read. Add ssize_t.
18414         * modules/full-read (Files): Add lib/full-write.c.
18415         (Depends-on): Add full-write.
18416
18417 2011-04-13  Bruno Haible  <bruno@clisp.org>
18418
18419         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18420         * modules/pwrite (Depends-on): Add 'write'.
18421
18422 2011-04-13  Bruno Haible  <bruno@clisp.org>
18423
18424         Support non-blocking pipe I/O in write() on native Windows.
18425         * lib/unistd.in.h (write): Enable replacement also if
18426         GNULIB_UNISTD_H_NONBLOCKING is 1.
18427         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18428         (rpl_write): When failing to write on a non-blocking pipe, change
18429         errno from ENOSPC to EAGAIN.
18430         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18431         putchar, puts, vfprintf, vprintf): Enable replacement also if
18432         GNULIB_STDIO_H_NONBLOCKING is 1.
18433         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18434         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18435         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18436         CALL_WITH_SIGPIPE_EMULATION.
18437         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18438         * m4/nonblocking.m4: New file.
18439         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18440         for non-blocking I/O support.
18441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18442         GNULIB_UNISTD_H_NONBLOCKING.
18443         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18444         required for non-blocking I/O support.
18445         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18446         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18447         lib/stdio-write.c, m4/asm-underscore.m4.
18448         (Depends-on): Add stdio, unistd.
18449         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18450         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18451         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18452         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18453         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18454         problem with non-blocking pipes.
18455         * doc/posix-functions/fputc.texi: Likewise.
18456         * doc/posix-functions/fputs.texi: Likewise.
18457         * doc/posix-functions/fwrite.texi: Likewise.
18458         * doc/posix-functions/printf.texi: Likewise.
18459         * doc/posix-functions/putc.texi: Likewise.
18460         * doc/posix-functions/putchar.texi: Likewise.
18461         * doc/posix-functions/puts.texi: Likewise.
18462         * doc/posix-functions/vfprintf.texi: Likewise.
18463         * doc/posix-functions/vprintf.texi: Likewise.
18464         * doc/posix-functions/write.texi: Likewise.
18465
18466 2011-04-10  Jim Meyering  <meyering@redhat.com>
18467
18468         maint.mk: prohibit doubled words
18469         Detect them also when they're separated by a newline.
18470         There are 3 ways to customize it:
18471           - disable the test on a per file basis, as usual with rules using
18472             $(VC_LIST_EXCEPT)
18473           - replace the default doubled-word-selecting regexp (affects all files)
18474           - ignore a particular file-vs-doubled-word match
18475         I nearly used that last one to ignore the "is is" match in
18476         coreutils' NEWS file, since the text was "ls -is is ..."
18477         To do that, I would have added this line to cfg.mk:
18478           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18479         but it would have ignored any "is is" match in NEWS.
18480         Low probability, but still...
18481         Instead, I changed the text, slightly:
18482           -  ls -is is now consistent with ls -lis in ignoring values returned
18483           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18484         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18485         (prohibit_doubled_word_): Define.
18486         (sc_prohibit_doubled_word): New rule.
18487         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18488
18489 2011-04-10  Jim Meyering  <meyering@redhat.com>
18490
18491         maint: fix doubled-word typo in comment
18492         * m4/gethostname.m4: s/is is/it is/
18493         * m4/getdomainname.m4: Likewise.
18494
18495 2011-04-10  Jim Meyering  <meyering@redhat.com>
18496
18497         maint: remove doubled word: s/it it/it/
18498         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18499
18500 2011-04-10  Jim Meyering  <meyering@redhat.com>
18501
18502         maint.mk: remove useless semicolon and backslash
18503         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18504         semicolon and backslash.
18505
18506 2011-04-10  Bruno Haible  <bruno@clisp.org>
18507
18508         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18509         * modules/stdint-tests (Depends-on): Add wchar.
18510
18511 2011-04-10  Jim Meyering  <meyering@redhat.com>
18512
18513         maint: remove doubled words in comments, e.g., s/a a/a/
18514         * lib/strptime.c (day_of_the_week): s/the the/the/
18515         * tests/test-chown.h (test_chown): s/a a/a/
18516
18517         test-chown.h: correct a cast
18518         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18519         when the destination is a stat.st_gid.
18520
18521 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18522
18523         getaddrinfo: Fix test for sa_len member.
18524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18525         include <sys/types.h> before <sys/socket.h>.
18526
18527 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18528
18529         maint: change "can not" to "cannot"
18530         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18531         boundaries.
18532
18533 2011-04-09  Jim Meyering  <meyering@redhat.com>
18534
18535         maint: change "a a" to "a"
18536         * tests/test-lchown.h (test_lchown): s/a a/a/
18537
18538         maint.mk: prohibit \<the the\>
18539         * top/maint.mk (sc_prohibit_the_the): New rule.
18540
18541         maint: fix "the the" in comment
18542         * lib/count-one-bits.h: s/the the/the/
18543
18544         maint: change "can not" to "cannot"
18545         But do not change the occurrences in maintain.texi or in
18546         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18547         * doc/gnulib-tool.texi: s/can not/cannot/
18548         * doc/posix-functions/accept.texi (accept): Likewise.
18549         * doc/posix-functions/socket.texi (socket): Likewise.
18550         * lib/mbrtowc.c: Likewise.
18551
18552         maint.mk: prohibit use of "can not"
18553         * top/maint.mk (sc_prohibit_can_not): New rule.
18554         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18555
18556 2011-04-09  Bruno Haible  <bruno@clisp.org>
18557
18558         careadlinkat: Guard against misuse of careadlinkatcwd.
18559         * lib/careadlinkat.c: Include <stdlib.h>.
18560         (careadlinkatcwd): Check that the fd argument is as expected.
18561
18562 2011-04-09  Bruno Haible  <bruno@clisp.org>
18563
18564         careadlinkat: Use common coding style.
18565         * lib/careadlinkat.c: Move gnulib includes after system includes.
18566
18567 2011-04-09  Bruno Haible  <bruno@clisp.org>
18568
18569         careadlinkat: Clarify specification.
18570         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18571         (careadlinkatcwd): Add comment.
18572         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18573
18574 2011-04-09  Bruno Haible  <bruno@clisp.org>
18575
18576         areadlinkat: Avoid link error on many platforms.
18577         * modules/areadlinkat (Depends-on): Add areadlink.
18578
18579 2011-04-09  Bruno Haible  <bruno@clisp.org>
18580
18581         allocator, careadlinkat: Fix double-inclusion guard.
18582         * lib/allocator.h: Fix double-inclusion guard.
18583         * lib/careadlinkat.h: Likewise.
18584
18585 2011-04-09  Bruno Haible  <bruno@clisp.org>
18586
18587         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18588         * lib/relocwrapper.c: Update dependencies hierarchy.
18589         * build-aux/install-reloc: Update list of files to be compiled.
18590         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18591         lib/allocator.[hc].
18592
18593 2011-04-08  Eric Blake  <eblake@redhat.com>
18594
18595         strftime: silence gnulib-tool warning
18596         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18597
18598 2011-04-08  Bruno Haible  <bruno@clisp.org>
18599
18600         verify: Fix syntax error with GCC 4.6 in C++ mode.
18601         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18602         (HAVE_STATIC_ASSERT): New macro.
18603         (verify_true, verify): Use 'static_assert' if it is supported and
18604         '_Static_assert' is not supported.
18605
18606 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18607
18608         allocator: New module.
18609         * modules/allocator, lib/allocator.c: New files.
18610         * lib/allocator.h (stdlib_allocator): New decl.
18611         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18612         Remove.  Do not include <stdlib.h>.
18613         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18614         * modules/careadlinkat (Files): Remove lib/allocator.h.
18615         (Depends-on): Add allocator.
18616
18617         stdlib: let modules use system malloc, realloc
18618         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18619         if !_GL_USE_STDLIB_ALLOC.
18620         (malloc, realloc): Limit this change to a smaller scope.
18621
18622         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18623         (malloc, realloc): Don't #undef; no longer needed.
18624         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18625         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18626         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18627         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18628         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18629         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18630         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18631         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18632
18633         careadlinkat: rename members to avoid problem
18634         * lib/allocator.h (struct allocator): Rename members from
18635         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18636         and realloc are #define'd.  Reported by Eric Blake in
18637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18638         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18639
18640 2011-04-08  Eric Blake  <eblake@redhat.com>
18641
18642         nonblocking: reduce dependency
18643         * tests/test-nonblocking.c: Only test sockets when in use.
18644         * modules/nonblocking-tests (Depends-on): Drop socket.
18645         (Makefile.am): Link even if sockets are not present.
18646         * modules/pipe2-tests (Makefile.am): Likewise.
18647         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18648
18649         pipe2: fix O_NONBLOCK support on mingw
18650         * modules/pipe2 (Depends-on): Add nonblocking.
18651         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18652         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18653         * tests/test-nonblocking.c (main): Likewise.
18654         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18655
18656         fcntl-h: fix O_ACCMODE on cygwin
18657         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18658         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18659
18660         pipe-filter: drop O_NONBLOCK workarounds
18661         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18662         * modules/pipe-filter-ii (Depends-on): Likewise.
18663         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18664
18665         nonblocking: provide O_NONBLOCK for mingw
18666         * modules/nonblocking (Depends-on): Add open.
18667         (configure.ac): Set new witness macro.
18668         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18669         * modules/fcntl-h (Makefile.am): Substitute it.
18670         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18671         nonblocking module is in use.
18672         * lib/nonblocking.c: Adjust portability test.
18673         * lib/open.c (open): Don't let native open see gnulib flag.
18674         * tests/test-fcntl-h.c (main): Enhance test.
18675         * tests/test-open.h (test_open): Likewise.
18676         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18677
18678         careadlinkat: fix compilation error on mingw
18679         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18680         within struct allocator.
18681
18682 2011-04-06  Eric Blake  <eblake@redhat.com>
18683
18684         binary-io: relicense under LGPLv2+
18685         * modules/binary-io (License): Relax to LGPLv2+.
18686         Requested for libvirt, and required by pipe2.
18687
18688 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18689
18690         verify: use _Static_assert if available
18691         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18692         (verify_true, verify): Use it if available.  This generates better
18693         diagnostics with GCC 4.6.0 and later.
18694
18695 2011-04-05  Bruno Haible  <bruno@clisp.org>
18696
18697         Remove leftover generated .h files after config.status changed.
18698
18699         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18700         GL_GENERATE_ALLOCA_H.
18701         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18702         GL_GENERATE_ALLOCA_H evaluates to false.
18703
18704         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18705         GL_GENERATE_ARGZ_H.
18706         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18707         evaluates to false.
18708
18709         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18710         GL_GENERATE_BYTESWAP_H.
18711         * modules/byteswap (Makefile.am): Remove byteswap.h if
18712         GL_GENERATE_BYTESWAP_H evaluates to false.
18713
18714         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18715         GL_GENERATE_ERRNO_H.
18716         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18717         evaluates to false.
18718
18719         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18720         GL_GENERATE_FLOAT_H.
18721         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18722         evaluates to false.
18723
18724         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18725         GL_GENERATE_FNMATCH_H.
18726         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18727         GL_GENERATE_FNMATCH_H evaluates to false.
18728
18729         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18730         GL_GENERATE_GLOB_H.
18731         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18732         evaluates to false.
18733
18734         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18735         automake conditional GL_GENERATE_ICONV_H.
18736         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18737         evaluates to false.
18738
18739         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18740         GL_GENERATE_NETINET_IN_H.
18741         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18742         GL_GENERATE_NETINET_IN_H evaluates to false.
18743
18744         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18745         conditional GL_GENERATE_PTHREAD_H.
18746         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18747         * modules/pthread (Makefile.am): Remove pthread.h if
18748         GL_GENERATE_PTHREAD_H evaluates to false.
18749
18750         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18751         GL_GENERATE_SCHED_H.
18752         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18753         evaluates to false.
18754
18755         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18756         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18757         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18758         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18759
18760         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18761         GL_GENERATE_STDARG_H.
18762         * modules/stdarg (Makefile.am): Remove stdarg.h if
18763         GL_GENERATE_STDARG_H evaluates to false.
18764
18765         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18766         GL_GENERATE_STDBOOL_H.
18767         * modules/stdbool (Makefile.am): Remove stdbool.h if
18768         GL_GENERATE_STDBOOL_H evaluates to false.
18769
18770         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18771         conditional GL_GENERATE_STDDEF_H.
18772         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18773         * modules/stddef (Makefile.am): Remove stddef.h if
18774         GL_GENERATE_STDDEF_H evaluates to false.
18775
18776         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18777         GL_GENERATE_STDINT_H.
18778         * modules/stdint (Makefile.am): Remove stdint.h if
18779         GL_GENERATE_STDINT_H evaluates to false.
18780
18781         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18782         GL_GENERATE_SYSEXITS_H.
18783         * modules/sysexits (Makefile.am): Remove sysexits.h if
18784         GL_GENERATE_SYSEXITS_H evaluates to false.
18785
18786         Reported by Karl Berry and Ralf Wildenhues.
18787
18788 2011-04-05  Bruno Haible  <bruno@clisp.org>
18789
18790         Ensure to rebuild generated .h files when config.status has changed.
18791         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18792         config.status.
18793         * modules/ctype (Makefile.am): Likewise.
18794         * modules/dirent (Makefile.am): Likewise.
18795         * modules/errno (Makefile.am): Likewise.
18796         * modules/fcntl-h (Makefile.am): Likewise.
18797         * modules/float (Makefile.am): Likewise.
18798         * modules/getopt-posix (Makefile.am): Likewise.
18799         * modules/glob (Makefile.am): Likewise.
18800         * modules/iconv-h (Makefile.am): Likewise.
18801         * modules/inttypes (Makefile.am): Likewise.
18802         * modules/langinfo (Makefile.am): Likewise.
18803         * modules/locale (Makefile.am): Likewise.
18804         * modules/math (Makefile.am): Likewise.
18805         * modules/netdb (Makefile.am): Likewise.
18806         * modules/netinet_in (Makefile.am): Likewise.
18807         * modules/poll-h (Makefile.am): Likewise.
18808         * modules/pthread (Makefile.am): Likewise.
18809         * modules/pty (Makefile.am): Likewise.
18810         * modules/sched (Makefile.am): Likewise.
18811         * modules/search (Makefile.am): Likewise.
18812         * modules/selinux-h (Makefile.am): Likewise.
18813         * modules/signal (Makefile.am): Likewise.
18814         * modules/spawn (Makefile.am): Likewise.
18815         * modules/stdarg (Makefile.am): Likewise.
18816         * modules/stdbool (Makefile.am): Likewise.
18817         * modules/stddef (Makefile.am): Likewise.
18818         * modules/stdint (Makefile.am): Likewise.
18819         * modules/stdio (Makefile.am): Likewise.
18820         * modules/stdlib (Makefile.am): Likewise.
18821         * modules/string (Makefile.am): Likewise.
18822         * modules/strings (Makefile.am): Likewise.
18823         * modules/sys_file (Makefile.am): Likewise.
18824         * modules/sys_ioctl (Makefile.am): Likewise.
18825         * modules/sys_select (Makefile.am): Likewise.
18826         * modules/sys_socket (Makefile.am): Likewise.
18827         * modules/sys_stat (Makefile.am): Likewise.
18828         * modules/sys_time (Makefile.am): Likewise.
18829         * modules/sys_times (Makefile.am): Likewise.
18830         * modules/sys_utsname (Makefile.am): Likewise.
18831         * modules/sys_wait (Makefile.am): Likewise.
18832         * modules/sysexits (Makefile.am): Likewise.
18833         * modules/termios (Makefile.am): Likewise.
18834         * modules/time (Makefile.am): Likewise.
18835         * modules/unistd (Makefile.am): Likewise.
18836         * modules/wchar (Makefile.am): Likewise.
18837         * modules/wctype-h (Makefile.am): Likewise.
18838         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18839
18840 2011-04-05  Bruno Haible  <bruno@clisp.org>
18841
18842         pipe2: Relicense under LGPLv2+.
18843         * modules/pipe2 (License): Change to LGPLv2+.
18844         Requested by Eric Blake, for libvirt.
18845
18846 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18847
18848         bootstrap: compute gnulib_extra_files after updating build_aux
18849         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18850         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18851
18852 2011-04-05  Eric Blake  <eblake@redhat.com>
18853
18854         bootstrap: preserve git whitelist item sorting
18855         * build-aux/bootstrap (sort_patterns): New function.
18856         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18857
18858 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18859
18860         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18861         sc_space_tab check.
18862
18863 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18864
18865         areadlink, areadlinkat: rewrite in terms of careadlinkat
18866         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18867         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18868         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18869         (malloc, realloc): Remove #undefs.
18870         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18871         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18872         readlink, ssize_t, stdint, unistd.
18873         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18874         areadlink, stdint.
18875
18876         careadlinkat: new module
18877         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18878         * modules/careadlinkat: New files, written by me with
18879         a review and feedback from Ben Pfaff in
18880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18881
18882 2011-04-01  Bruno Haible  <bruno@clisp.org>
18883
18884         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18885         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18886         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18887         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18888         Reported by Bruce Korb <bruce.korb@gmail.com>.
18889
18890 2011-04-01  Bruno Haible  <bruno@clisp.org>
18891
18892         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18893         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18894         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18895         * modules/wcpcpy (Depends-on): Add extensions.
18896         * modules/wcpncpy (Depends-on): Likewise.
18897         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18898         systems.
18899         * doc/posix-functions/wcpncpy.texi: Likewise.
18900         * doc/posix-functions/wcwidth.texi: Likewise.
18901
18902 2011-03-31  Eric Blake  <eblake@redhat.com>
18903
18904         nonblocking: fix mingw test failures
18905         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18906         non-blocking flag on regular file.
18907         (get_nonblocking_flag): Set errno on invalid fd.
18908         * tests/test-nonblocking.c (main): Avoid test failure on
18909         directories if fchdir is not active.
18910         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18911
18912 2011-03-31  Bruno Haible  <bruno@clisp.org>
18913
18914         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18915         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18916         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18917         Reported by Simon Josefsson <simon@josefsson.org>.
18918
18919 2011-03-31  Bruno Haible  <bruno@clisp.org>
18920         and Eric Blake  <eblake@redhat.com>
18921
18922         nonblocking: new module
18923         * modules/nonblocking: New module.
18924         * modules/nonblocking-tests: Likewise.
18925         * lib/nonblocking.h: New file.
18926         * lib/nonblocking.c: Likewise.
18927         * tests/test-nonblocking.c: New test.
18928         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18929
18930 2011-03-30  Bruno Haible  <bruno@clisp.org>
18931
18932         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18933         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18934         instead of 'printf' format for GCC >= 4.4.
18935         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18936         (fprintf, printf, vfprintf, vprintf): Declare with
18937         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18938         the system's vfprintf() function.
18939         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18940
18941 2011-03-30  Eric Blake  <eblake@redhat.com>
18942
18943         passfd: fix scoping bug
18944         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18945         before sendmsg/recvmsg.
18946
18947         passfd: standardize coding conventions
18948         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18949         can be learned at compile time.
18950         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18951         ifdefs.
18952         (sendfd, recvfd): Follow gnulib code conventions.
18953
18954         passfd: fix incorrect sendmsg arguments
18955         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18956         incorrect msg_controllen value.
18957         * modules/passfd-tests (Depends-on): Check for alarm.
18958         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18959         Reported by Bastien ROUCARIES.
18960
18961 2011-03-30  Bruno Haible  <bruno@clisp.org>
18962
18963         c-strcasestr: Relicense under LGPLv2+.
18964         * modules/c-strcasestr (License): Change to LGPLv2+.
18965         Requested by Eric Blake, for libvirt.
18966
18967 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18968
18969         * users.txt: Add libidn2.  Fix libtasn1 link.
18970
18971 2011-03-30  Jim Meyering  <meyering@redhat.com>
18972
18973         tests: readlink* ("",... fails with EINVAL on newer kernels
18974         readlink and readlinkat have typically failed with ENOENT for
18975         the invalid, empty file name,  "".  However, with the advent
18976         of linux-2.6.39, they fail with EINVAL.
18977         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18978         when operating on the empty file name.
18979         * tests/test-readlink.h (test_readlink): Likewise.
18980
18981 2011-03-29  Bruno Haible  <bruno@clisp.org>
18982
18983         Relicense some modules under LGPLv2+, for libidn2.
18984         * modules/array-mergesort (License): Change to LGPLv2+.
18985         * modules/c-strcaseeq (License): Likewise.
18986         * modules/striconveh (License): Likewise.
18987         * modules/striconveha (License): Likewise.
18988         * modules/uniconv/base (License): Likewise.
18989         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18990         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18991         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18992         * modules/unictype/base (License): Likewise.
18993         * modules/unictype/bidiclass-of (License): Likewise.
18994         * modules/unictype/category-M (License): Likewise.
18995         * modules/unictype/category-none (License): Likewise.
18996         * modules/unictype/category-of (License): Likewise.
18997         * modules/unictype/category-test (License): Likewise.
18998         * modules/unictype/category-test-withtable (License): Likewise.
18999         * modules/unictype/combining-class (License): Likewise.
19000         * modules/unictype/joiningtype-of (License): Likewise.
19001         * modules/unictype/scripts (License): Likewise.
19002         * modules/uninorm/base (License): Likewise.
19003         * modules/uninorm/canonical-decomposition (License): Likewise.
19004         * modules/uninorm/composition (License): Likewise.
19005         * modules/uninorm/decompose-internal (License): Likewise.
19006         * modules/uninorm/decomposition-table (License): Likewise.
19007         * modules/uninorm/nfc (License): Likewise.
19008         * modules/uninorm/nfd (License): Likewise.
19009         * modules/uninorm/u32-normalize (License): Likewise.
19010         * modules/unistr/base (License): Likewise.
19011         * modules/unistr/u32-cpy (License): Likewise.
19012         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19013         * modules/unistr/u32-to-u8 (License): Likewise.
19014         * modules/unistr/u32-uctomb (License): Likewise.
19015         * modules/unistr/u8-check (License): Likewise.
19016         * modules/unistr/u8-mblen (License): Likewise.
19017         * modules/unistr/u8-mbtouc (License): Likewise.
19018         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19019         * modules/unistr/u8-mbtoucr (License): Likewise.
19020         * modules/unistr/u8-prev (License): Likewise.
19021         * modules/unistr/u8-strlen (License): Likewise.
19022         * modules/unistr/u8-to-u32 (License): Likewise.
19023         * modules/unistr/u8-uctomb (License): Likewise.
19024         * modules/unitypes (License): Likewise.
19025         Requested by Simon Josefsson.
19026
19027 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19028
19029         lib-symbol-visibility: Add a notice.
19030         * modules/lib-symbol-visibility (Notice): New field.
19031
19032 2011-03-29  Bruno Haible  <bruno@clisp.org>
19033
19034         getaddrinfo: Doc fix.
19035         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19036         section "fixed in Gnulib".
19037
19038 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19039
19040         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19041         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19042
19043 2011-03-26  Bruno Haible  <bruno@clisp.org>
19044
19045         unictype/property-byname: Reduce the number of load-time relocations.
19046         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19047         (UC_PROPERTY_INDEX_*): New enumeration values.
19048         (uc_property_byname): Convert an index from the lookup table to an
19049         uc_property_t.
19050         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19051         values.
19052
19053 2011-03-26  Bruno Haible  <bruno@clisp.org>
19054
19055         unictype/property-byname: Allow omitted word separators and aliases.
19056         * lib/unictype/pr_byname.gperf: Add property names without word
19057         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19058         for 'space'.
19059
19060 2011-03-26  Bruno Haible  <bruno@clisp.org>
19061
19062         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19063         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19064         also hyphens to space.
19065         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19066         without spaces.
19067         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19068
19069 2011-03-26  Bruno Haible  <bruno@clisp.org>
19070
19071         unictype/joiningtype-byname: Recognize long names as well.
19072         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19073         a long name.
19074         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19075         unictype/joiningtype_byname.h.
19076         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19077         * lib/unictype/joiningtype_byname.gperf: New file.
19078         * modules/unictype/joiningtype-byname (Files): Add
19079         lib/unictype/joiningtype_byname.gperf.
19080         (Depends-on): Add gperf.
19081         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19082         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19083         long names.
19084
19085         Tests for module 'unictype/joiningtype-longname'.
19086         * modules/unictype/joiningtype-longname-tests: New file.
19087         * tests/unictype/test-joiningtype_longname.c: New file.
19088
19089         New module 'unictype/joiningtype-longname'.
19090         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19091         * lib/unictype/joiningtype_longname.c: New file.
19092         * modules/unictype/joiningtype-longname: New file.
19093         * modules/unictype/joiningtype-all (Depends-on): Add
19094         unictype/joiningtype-longname.
19095
19096 2011-03-26  Bruno Haible  <bruno@clisp.org>
19097
19098         unictype/bidiclass-byname: Recognize long names as well.
19099         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19100         name.
19101         * lib/unictype/bidi_byname.c: Include <string.h>,
19102         unictype/bidi_byname.h.
19103         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19104         * lib/unictype/bidi_byname.gperf: New file.
19105         * modules/unictype/bidiclass-byname (Files): Add
19106         lib/unictype/bidi_byname.gperf.
19107         (Depends-on): Add gperf.
19108         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19109         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19110         long names.
19111
19112         Tests for module 'unictype/bidiclass-longname'.
19113         * modules/unictype/bidiclass-longname-tests: New file.
19114         * tests/unictype/test-bidi_longname.c: New file.
19115
19116         New module 'unictype/bidiclass-longname'.
19117         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19118         * lib/unictype/bidi_longname.c: New file.
19119         * modules/unictype/bidiclass-longname: New file.
19120         * modules/unictype/bidiclass-all (Depends-on): Add
19121         unictype/bidiclass-longname.
19122
19123 2011-03-26  Bruno Haible  <bruno@clisp.org>
19124
19125         unictype/bidi*: Rename modules.
19126         * modules/unictype/bidiclass-all: Renamed from
19127         modules/unictype/bidicategory-all.
19128         * modules/unictype/bidiclass-name: Renamed from
19129         modules/unictype/bidiclass-name.
19130         (Description): Update.
19131         * modules/unictype/bidiclass-name-tests: Renamed from
19132         modules/unictype/bidicategory-name-tests.
19133         * modules/unictype/bidiclass-byname: Renamed from
19134         modules/unictype/bidicategory-byname.
19135         (Description): Update.
19136         * modules/unictype/bidiclass-byname-tests: Renamed from
19137         modules/unictype/bidicategory-byname-tests.
19138         * modules/unictype/bidiclass-of: Renamed from
19139         modules/unictype/bidicategory-of.
19140         (Description): Update.
19141         * modules/unictype/bidiclass-of-tests: Renamed from
19142         modules/unictype/bidicategory-of-tests.
19143         * modules/unictype/bidiclass-test: Renamed from
19144         modules/unictype/bidicategory-test.
19145         (Description): Update.
19146         * modules/unictype/bidiclass-test-tests: Renamed from
19147         modules/unictype/bidicategory-test-tests.
19148         * modules/unictype/bidicategory-all: New file, a simple redirection.
19149         * modules/unictype/bidicategory-name: Likewise.
19150         * modules/unictype/bidicategory-byname: Likewise.
19151         * modules/unictype/bidicategory-of: Likewise.
19152         * modules/unictype/bidicategory-test: Likewise.
19153         * modules/unictype/property-bidi-* (Dependencies): Update.
19154         * lib/unictype/bidi_*.c: Update comment.
19155
19156 2011-03-26  Bruno Haible  <bruno@clisp.org>
19157
19158         unictype/bidi*: Rename functions, part 2.
19159         * modules/unictype/bidicategory-name (configure.ac): Update required
19160         libunistring version.
19161         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19162
19163 2011-03-25  Bruno Haible  <bruno@clisp.org>
19164
19165         New module 'unictype/combining-class-all'.
19166         * modules/unictype/combining-class-all: New file.
19167
19168         Tests for module 'unictype/combining-class-byname'.
19169         * modules/unictype/combining-class-byname-tests: New file.
19170         * tests/unictype/test-combiningclass_byname.c: New file.
19171
19172         New module 'unictype/combining-class-byname'.
19173         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19174         * lib/unictype/combiningclass_byname.c: New file.
19175         * lib/unictype/combiningclass_byname.gperf: New file.
19176         * modules/unictype/combining-class-byname: New file.
19177
19178         Tests for module 'unictype/combining-class-longname'.
19179         * modules/unictype/combining-class-longname-tests: New file.
19180         * tests/unictype/test-combiningclass_longname.c: New file.
19181
19182         New module 'unictype/combining-class-longname'.
19183         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19184         * lib/unictype/combiningclass_longname.c: New file.
19185         * modules/unictype/combining-class-longname: New file.
19186
19187         Tests for module 'unictype/combining-class-name'.
19188         * modules/unictype/combining-class-name-tests: New file.
19189         * tests/unictype/test-combiningclass_name.c: New file.
19190
19191         New module 'unictype/combining-class-name'.
19192         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19193         * lib/unictype/combiningclass_name.c: New file.
19194         * modules/unictype/combining-class-name: New file.
19195
19196 2011-03-25  Bruno Haible  <bruno@clisp.org>
19197
19198         unictype/combining-class: Rename source files.
19199         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19200         of unictype/combining.h.
19201         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19202         Update.
19203         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19204         * modules/unictype/combining-class (Description): Fix.
19205         (Files, Makefile.am): Update.
19206         * tests/unictype/test-combiningclass.c: Renamed from
19207         tests/unictype/test-combining.c.
19208         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19209
19210 2011-03-25  Bruno Haible  <bruno@clisp.org>
19211
19212         unictype: Update list of canonical combining classes.
19213         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19214
19215 2011-03-25  Bruno Haible  <bruno@clisp.org>
19216
19217         unictype/category-byname: Recognize long names as well.
19218         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19219         a long name.
19220         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19221         unictype/categ_byname.h.
19222         (UC_CATEGORY_INDEX_*): New enumeration values.
19223         (uc_general_category_byname): Use uc_general_category_lookup and
19224         convert from index to value.
19225         * lib/unictype/categ_byname.gperf: New file.
19226         * modules/unictype/category-byname (Files): Add
19227         lib/unictype/categ_byname.gperf.
19228         (Depends-on): Add gperf.
19229         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19230         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19231         long names.
19232
19233         Tests for module 'unictype/category-longname'.
19234         * modules/unictype/category-longname-tests: New file.
19235         * tests/unictype/test-categ_longname.c: New file.
19236
19237         New module 'unictype/category-longname'.
19238         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19239         * lib/unictype/categ_longname.c: New file.
19240         * modules/unictype/category-longname: New file.
19241         * modules/unictype/category-all (Depends-on): Add it.
19242
19243 2011-03-25  Bruno Haible  <bruno@clisp.org>
19244
19245         Tests for module 'unictype/category-LC'.
19246         * modules/unictype/category-LC-tests: New file.
19247         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19248
19249         New module 'unictype/category-LC'.
19250         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19251         (UC_CATEGORY_LC): New declaration.
19252         (UC_CASED_LETTER): New macro.
19253         * lib/gen-uni-tables.c (is_category_LC): New function.
19254         (output_categories): Also handle category LC.
19255         (UC_CATEGORY_MASK_LC): New enumeration value.
19256         (general_category_byname): Also handle category LC.
19257         * lib/unictype/categ_LC.c: New file.
19258         * lib/unictype/categ_LC.h: New file, automatically generated.
19259         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19260         category LC.
19261         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19262         * modules/unictype/category-LC: New file.
19263         * modules/unictype/category-byname (Depends-on): Add
19264         unictype/category-LC.
19265         * modules/unictype/category-all (Depends-on): Likewise.
19266
19267 2011-03-25  Eric Blake  <eblake@redhat.com>
19268
19269         xmalloc: revert yesterday's regression
19270         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19271         realloc's underlying behavior (allowing allocation of zero-size
19272         objects, especially if malloc-gnu is also in use).
19273
19274 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19275
19276         maint.mk: add missing version to VC-tag
19277         * top/maint.mk: git tag was missing actual tag name; add it.
19278
19279         valgrind: do leak checking, and exit with code 1 on error (not 0)
19280         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19281         to VALGRIND.
19282
19283 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19284
19285         posix-modules: say what it does.
19286         * posix-modules: Add a line to the --help output saying what it does.
19287
19288 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19289
19290         xmalloc: Do not leak if underlying realloc is C99 compatible.
19291         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19292         This avoids a leak on C99-based systems.  See
19293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19294
19295 2011-03-24  Eric Blake  <eblake@redhat.com>
19296
19297         realloc: document portability problem
19298         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19299         passing 0 size to realloc.
19300
19301 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19302
19303         doc: update users.txt
19304         * users.txt: Add cvsps, tmpwatch
19305
19306 2011-03-23  Matt Rice  <ratmice@gmail.com>
19307
19308         doc: update users.txt
19309         * users.txt: Add gdb.
19310
19311 2011-03-23  Jim Meyering  <meyering@redhat.com>
19312
19313         doc: update users.txt
19314         Looking through matches up to the following URL (there are still
19315         several more pages), I found several projects that use gnulib:
19316         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19317         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19318         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19319
19320 2011-03-22  Bruno Haible  <bruno@clisp.org>
19321
19322         unictype/bidi*: Rename functions.
19323         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19324         uc_bidi_class, uc_is_bidi_class): New declarations.
19325         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19326         uc_bidi_category_byname.
19327         (uc_bidi_category_byname): New function.
19328         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19329         u_bidi_category_name.
19330         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19331         (uc_bidi_category_name): New function.
19332         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19333         uc_bidi_category.
19334         (uc_bidi_category): New function.
19335         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19336         uc_is_bidi_category. Invoke uc_bidi_class.
19337         (uc_is_bidi_category): New function.
19338         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19339         instead of uc_bidi_category_byname.
19340         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19341         instead of uc_bidi_category_name.
19342         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19343         uc_bidi_category.
19344         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19345         instead of uc_is_bidi_category.
19346
19347 2011-03-21  Bruno Haible  <bruno@clisp.org>
19348
19349         New module 'unictype/joininggroup-all'.
19350         * modules/unictype/joininggroup-all: New file.
19351
19352         Tests for module 'unictype/joininggroup-of'.
19353         * modules/unictype/joininggroup-of-tests: New file.
19354         * tests/unictype/test-joininggroup_of.c: New file.
19355         * tests/unictype/test-joininggroup_of.h: New file, automatically
19356         generated by gen-uni-tables.
19357
19358         New module 'unictype/joininggroup-of'.
19359         * modules/unictype/joininggroup-of: New file.
19360         * lib/unictype/joininggroup_of.c: New file.
19361         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19362         gen-uni-tables.
19363
19364         Tests for module 'unictype/joininggroup-byname'.
19365         * modules/unictype/joininggroup-byname-tests: New file.
19366         * tests/unictype/test-joininggroup_byname.c: New file.
19367
19368         New module 'unictype/joininggroup-byname'.
19369         * modules/unictype/joininggroup-byname: New file.
19370         * lib/unictype/joininggroup_byname.c: New file.
19371         * lib/unictype/joininggroup_byname.gperf: New file.
19372
19373         Tests for module 'unictype/joininggroup-name'.
19374         * modules/unictype/joininggroup-name-tests: New file.
19375         * tests/unictype/test-joininggroup_name.c: New file.
19376
19377         New module 'unictype/joininggroup-name'.
19378         * modules/unictype/joininggroup-name: New file.
19379         * lib/unictype/joininggroup_name.c: New file.
19380         * lib/unictype/joininggroup_name.h: New file.
19381
19382         New module 'unictype/joiningtype-all'.
19383         * modules/unictype/joiningtype-all: New file.
19384
19385         Tests for module 'unictype/joiningtype-of'.
19386         * modules/unictype/joiningtype-of-tests: New file.
19387         * tests/unictype/test-joiningtype_of.c: New file.
19388         * tests/unictype/test-joiningtype_of.h: New file, automatically
19389         generated by gen-uni-tables.
19390
19391         New module 'unictype/joiningtype-of'.
19392         * modules/unictype/joiningtype-of: New file.
19393         * lib/unictype/joiningtype_of.c: New file.
19394         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19395         gen-uni-tables.
19396
19397         Tests for module 'unictype/joiningtype-byname'.
19398         * modules/unictype/joiningtype-byname-tests: New file.
19399         * tests/unictype/test-joiningtype_byname.c: New file.
19400
19401         New module 'unictype/joiningtype-byname'.
19402         * modules/unictype/joiningtype-byname: New file.
19403         * lib/unictype/joiningtype_byname.c: New file.
19404
19405         Tests for module 'unictype/joiningtype-name'.
19406         * modules/unictype/joiningtype-name-tests: New file.
19407         * tests/unictype/test-joiningtype_name.c: New file.
19408
19409         New module 'unictype/joiningtype-name'.
19410         * modules/unictype/joiningtype-name: New file.
19411         * lib/unictype/joiningtype_name.c: New file.
19412
19413         unictype: Add support for Arabic shaping properties.
19414         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19415         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19416         declarations.
19417         (UC_JOINING_GROUP_*): New enumeration values.
19418         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19419         declarations.
19420         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19421         (unicode_joining_type): New variable.
19422         (UC_JOINING_GROUP_*): New enumeration values.
19423         (unicode_joining_group): New variable.
19424         (fill_arabicshaping, joining_type_as_c_identifier,
19425         output_joining_type_test, output_joining_type,
19426         joining_group_as_c_identifier, output_joining_group_test,
19427         output_joining_group): New functions.
19428         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19429         fill_arabicshaping and output_joining_type_test, output_joining_type,
19430         output_joining_group_test, output_joining_group.
19431         Reported by Simon Josefsson.
19432
19433 2011-03-21  Jim Meyering  <meyering@redhat.com>
19434
19435         strftime: fix a bug in yesterday's change
19436         * lib/strftime.c (add): Accommodate width's initial value of -1.
19437         Otherwise, nstrftime would copy uninitialized data into
19438         the result buffer.
19439
19440 2011-03-21  Jim Meyering  <meyering@redhat.com>
19441
19442         tests: add strftime-tests module
19443         * tests/test-strftime.c: New file.
19444         * modules/strftime-tests: New module.
19445
19446 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19447
19448         strftime: don't assume a byte count fits in 'int'
19449         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19450         found this problem by static analysis, using gcc -Wstrict-overflow
19451         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19452         on an integer overflow having undefined behavior, but it turns out
19453         that the argument is a size, which might not fit in 'int' anyway,
19454
19455 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19456
19457         stdio: don't require ignore_value around fwrite
19458
19459         This patch works around libc bug 11959
19460         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19461         Without this patch, applications must often write
19462         ignore_value (fwrite (...)) even though the ignore_value is
19463         not helpful here.  It's common to write many objects, using
19464         fwrite/printf/etc., and then use ferror to detect output error.
19465
19466         I considered making this patch optional, but decided against it,
19467         because libc is obviously being inconsistent here: there is no
19468         reason libc should insist that user code must inspect fwrite
19469         return's value without also insisting that it inspect printf's,
19470         putchar's, etc.  If user code wants to have a strict style where
19471         all these functions' values are checked (so that ferror need not
19472         be checked), we could add support for that style in a new gnulib
19473         module, but in the meantime it's better to be consistent and to
19474         support common usage.
19475
19476         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19477         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19478         that we are compiling in checking mode, and if not C++, and
19479         if not already wrapping fwrite for some other reason.
19480         (fwrite): #define to rpl_fwrite if the latter is defined.
19481
19482 2011-03-20  Bruno Haible  <bruno@clisp.org>
19483
19484         verror: Fix compilation error introduced on 2011-02-13.
19485         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19486         instead of __attribute__.
19487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19488
19489 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19490             Bruno Haible  <bruno@clisp.org>
19491
19492         socklen: do not depend on sys_socket
19493         While trying to modify Emacs to use gnulib's socklen module,
19494         I discovered a circular dependency: socklen depends on sys_socket
19495         and vice versa.  Emacs can use socklen, but it does not need
19496         sys_socket because it has its own substitute for sys/socket.h.
19497         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19498         gl_TYPE_SOCKLEN_T.
19499         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19500         gl_PREREQ_SYS_H_SOCKET.
19501         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19502         gl_PREREQ_SYS_H_SOCKET.
19503         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19504         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19505         * modules/socklen (Depends-on): Do not depend on sys_socket.
19506         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19507
19508 2011-03-20  Jim Meyering  <meyering@redhat.com>
19509
19510         maint.mk: sort file names *after* new transformation
19511         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19512         prefix would have led to an unwarranted failure in GNU parted.
19513         Sort after that transformation.
19514
19515 2011-03-19  Jim Meyering  <meyering@redhat.com>
19516
19517         maint.mk: fix po-file syntax-check rule
19518         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19519         Patch by Bruno Haible.
19520
19521 2011-03-19  Bruno Haible  <bruno@clisp.org>
19522
19523         socklen: Update comment.
19524         * m4/socklen.m4: Update comment about platforms.
19525
19526 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19527             Bruno Haible  <bruno@clisp.org>
19528
19529         inet_ntop, inet_pton: Simplify.
19530         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19531         documented to provide socklen_t and we already depend on sys_socket.
19532         * modules/inet_pton (Depends-on): Likewise.
19533         * lib/arpa_inet.in.h: Adjust comment.
19534
19535 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19536             Bruno Haible  <bruno@clisp.org>
19537
19538         netdb: Simplify.
19539         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19540         documented to provide socklen_t and we already depend on sys_socket.
19541         * lib/netdb.in.h: Adjust comment.
19542
19543 2011-03-19  Bruno Haible  <bruno@clisp.org>
19544
19545         sys_socket, netdb: Document problem with socklen_t.
19546         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19547         platforms.
19548         * doc/posix-headers/netdb.texi: Likewise.
19549
19550 2011-03-18  Eric Blake  <eblake@redhat.com>
19551
19552         maint.mk: let po check work in VPATH build
19553         * top/maint.mk (po_file): Allow cfg.mk override.
19554         (sc_po_check): Allow VPATH use.
19555         Reported by Jiri Denemark.
19556
19557 2011-03-16  Jim Meyering  <meyering@redhat.com>
19558
19559         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19560         Before, you would have had to create one .x-sc_ file per rule in order
19561         to exempt offending files.  Now, you may instead use a Make variable --
19562         usually defined in cfg.mk -- whose name identifies the affected rule.
19563         * top/maint.mk (_sc_excl): Define.
19564         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19565         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19566
19567 2011-03-13  Bruno Haible  <bruno@clisp.org>
19568
19569         ignore-value tests: Avoid warnings.
19570         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19571         empty for gcc < 3.4.
19572
19573 2011-03-13  Bruno Haible  <bruno@clisp.org>
19574
19575         passfd: Fix link error on Solaris.
19576         * modules/passfd (Description): Correct.
19577         (Depends-on): Add socketlib.
19578         (Link): New section.
19579         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19580
19581 2011-03-13  Bruno Haible  <bruno@clisp.org>
19582
19583         passfd: Fix link error on AIX 5.2.
19584         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19585
19586 2011-03-13  Bruno Haible  <bruno@clisp.org>
19587
19588         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19589         * lib/sys_socket.in.h: Include <stddef.h>.
19590         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19591         CMSG_FIRSTHDR. Remove unused variable.
19592
19593 2011-03-13  Bruno Haible  <bruno@clisp.org>
19594
19595         passfd: Fix compilation error on OpenBSD.
19596         * lib/passfd.c: Include <sys/uio.h>.
19597
19598 2011-03-13  Bruno Haible  <bruno@clisp.org>
19599
19600         passfd test: Fix warnings.
19601         * tests/test-passfd.c: Include <sys/wait.h>.
19602         (main): Fix typo.
19603
19604 2011-03-13  Bruno Haible  <bruno@clisp.org>
19605
19606         passfd module, part 4, tweaks.
19607         * tests/test-passfd.c: Reorder includes.
19608         (main): Fix perror and printf calls.
19609
19610 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19611
19612         passfd module, part 4.
19613         * modules/passfd-tests: New file.
19614         * tests/test-passfd.c: New file.
19615
19616 2011-03-13  Jim Meyering  <meyering@redhat.com>
19617
19618         Makefile: rely on GNU make; derive syntax-check rule names
19619         Rather than requiring that each sc_ rule be listed as a dependent
19620         of "check", use features of GNU make to derive the list.
19621         * Makefile (syntax-check-rules): Define.
19622         (check): Depend on the new variable, not the hard-coded list.
19623
19624 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19625             Bruno Haible  <bruno@clisp.org>
19626
19627         passfd module, part 3.
19628         * lib/passfd.h (recvfd): Add a flags argument.
19629         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19630         (recvfd): Add a flags argument.
19631         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19632         exists.
19633         * modules/passfd (Depends-on): Add cloexec.
19634         Suggested by Eric Blake.
19635
19636 2011-03-13  Bruno Haible  <bruno@clisp.org>
19637
19638         passfd module, part 2, tweaks.
19639         * modules/passfd (Files): Reorder.
19640         (Depends-on): Remove errno.
19641         (Include): Remove <sys/socket.h>, <sys/un.h>.
19642         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19643         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19644         specification header. Include <sys/socket.h> always. Don't include
19645         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19646         (sendfd): Clarify that it sets errno when it fails.
19647         (recvfd): Fix specification.
19648
19649 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19650
19651         passfd module, part 2.
19652         * modules/passfd: New file.
19653         * lib/passfd.h: New file.
19654         * lib/passfd.c: New file.
19655
19656 2011-03-12  Bruno Haible  <bruno@clisp.org>
19657
19658         wcswidth, mbswidth: Avoid integer overflow.
19659         * lib/wcswidth.c: Include <limits.h>.
19660         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19661         * lib/mbswidth.c: Include <limits.h>.
19662         (mbsnwidth): Avoid 'int' overflow.
19663         Reported by Jim Meyering.
19664
19665 2011-03-12  Bruno Haible  <bruno@clisp.org>
19666
19667         futimens, utimensat: Avoid endless recursion on Solaris 10.
19668         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19669         Solaris.
19670         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19671         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19672
19673 2011-03-11  Jim Meyering  <meyering@redhat.com>
19674
19675         maint.mk: relax a regexp to accommodate other formatting styles
19676         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19677         between "ngettext" and the following "(".
19678
19679 2011-03-11  Pádraig Brady <P@draigBrady.com>
19680
19681         maint.mk: suppress a false positive warning
19682         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19683         diagnostics are marked with ngettext.
19684
19685 2011-03-10  Eric Blake  <eblake@redhat.com>
19686
19687         wchar: add explicit dependencies, for Tru64
19688         * modules/mbmemcasecoll (Depends-on): Add wchar.
19689         * modules/mbtowc (Depends-on): Likewise.
19690         * modules/vasnprintf (Depends-on): Likewise.
19691         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19692         * modules/wctomb (Depends-on): Likewise.
19693         Reported by Peter O'Gorman.
19694
19695 2011-03-08  Bruno Haible  <bruno@clisp.org>
19696
19697         passfd module, part 1, tweaks.
19698         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19699         Improve indentation. Improve AC_MSG_CHECKING messages.
19700         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19701         gl_SOCKET_FAMILIES.
19702
19703 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19704
19705         passfd module, part 1.
19706         * m4/afunix.m4: New file.
19707         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19708         sockets.
19709
19710 2011-03-08  Bruno Haible  <bruno@clisp.org>
19711
19712         regex-quote: New API.
19713         * lib/regex-quote.h: Include <stdbool.h>.
19714         (struct regex_quote_spec): New type.
19715         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19716         New declarations.
19717         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19718         'const struct regex_quote_spec *' argument.
19719         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19720         (pcre_special): New constant.
19721         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19722         New functions.
19723         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19724         'const struct regex_quote_spec *' argument.
19725         * modules/regex-quote (Depends-on): Add stdbool.
19726         * tests/test-regex-quote.c (check): Update for new API. Add test for
19727         anchored results.
19728         * NEWS: Mention the API change.
19729         Reported by Reuben Thomas and Eric Blake.
19730
19731 2011-03-06  Bruno Haible  <bruno@clisp.org>
19732
19733         regex-quote: Fix creation of POSIX extended regular expressions.
19734         * lib/regex-quote.c (ere_special): Add grouping and alternation
19735         operators.
19736
19737 2011-03-05  Bruno Haible  <bruno@clisp.org>
19738
19739         doc: Improve doc regarding autopoint vs. gnulib.
19740         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19741         disable autopoint while running autoreconf.
19742         Suggested by Ralf Wildenhues.
19743
19744 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19745
19746         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19747         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19748
19749 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19750
19751         parse-duration: remove xalloc.h dependency
19752         * lib/parse-duration.c (parse_period): handle NULL return from
19753         strdup instead of calling xstrdup().
19754         * modules/parse-duration: remove "xalloc" dependency
19755
19756 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19757
19758         bootstrap: honor m4_base when running aclocal
19759         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19760
19761 2011-03-02  Jim Meyering  <meyering@redhat.com>
19762
19763         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19764         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19765         on request from Matt Booth.
19766
19767 2011-03-01  Eric Blake  <eblake@redhat.com>
19768
19769         test-link: work on Hurd
19770         * tests/test-link.h (test_link): Hurd rejects linking directories
19771         with EISDIR instead of the POSIX-mandated EPERM.
19772
19773 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19774
19775         stdio: simplify by moving files to printf-posix, sigpipe
19776         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19777         since this symbol is needed only if printf is replaced.
19778         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19779         Require gl_ASM_SYMBOL_PREFIX.
19780         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19781         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19782         (Depends-on): Add 'raise'.
19783         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19784         * modules/stdio (Files): Remove lib/stdio-write.c,
19785         m4/asm-underscore.m4.
19786         (Depends-on): Remove 'raise'.
19787
19788         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19789         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19790         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19791         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19792
19793 2011-02-28  Bruno Haible  <bruno@clisp.org>
19794
19795         localcharset: Assume ANSI C behaviour of free().
19796         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19797         calling free().
19798         Suggested by Simon Josefsson <simon@josefsson.org>.
19799
19800 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19801             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19802             Bruno Haible  <bruno@clisp.org>  (tiny change)
19803
19804         On Cygwin, use /proc file system instead of win32 API.
19805         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19806         Win32 file names.
19807         (DllMain): Simplify by removing Cygwin specific code.
19808         (find_shared_library_fullname): Use Linux specific implementation also
19809         for Cygwin.
19810         (get_shared_library_fullname): Update accordingly.
19811         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19812         Win32 file names.
19813         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19814         Cygwin specific code.
19815
19816 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19817             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19818
19819         Fix OpenMP flag detection for various Fortran compilers.
19820         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19821         OpenMP-conditional compilation construct, to force compile
19822         failure with missing OpenMP flag.
19823         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19824
19825 2011-02-25  Eric Blake  <eblake@redhat.com>
19826
19827         strstr: expand test coverage
19828         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19829         compilation.
19830         * tests/test-memmem.c (main): Duplicate tests.
19831         * tests/test-strcasestr.c (main): Likewise.
19832         * tests/test-c-strcasestr.c (main): Likewise.
19833
19834 2011-02-25  Jim Meyering  <meyering@redhat.com>
19835
19836         maint.mk: detect missing-NL-at-EOF, too
19837         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19838         it also detects when a file lacks a newline at EOF.
19839         (require_exactly_one_NL_at_EOF_): Renamed from
19840         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19841         since people may well have .x-sc_... file names tied to the
19842         existing name.  Suggested by Eric Blake.
19843
19844 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19845
19846         dirname: move m4/dos.m4 functionality into lib/dosname.h
19847
19848         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19849         extracts symbols from it, puts them into config.h; but it's much
19850         easier to use the symbols directly.  filename.h already does this,
19851         but it disagrees with dos.m4 in some respects.  This patch
19852         introduces a different include file dosname.h that packages up
19853         dos.m4, and then later we can work on merging filename.h and
19854         dosname.h.  Applications that need only the easy-to-configure
19855         symbols should consider including dosname.h rather than dirname.h.
19856         * NEWS: Mention incompatible changes.
19857         * m4/dos.m4: Remove.
19858         * lib/dosname.h, modules/dosname: New files.
19859         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19860         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19861         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19862         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19863         Include dosname.h, not dirname.h.
19864         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19865         Include dosname.h, for definitions of symbols like ISSLASH
19866         that used to be in config.h.
19867         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19868         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19869         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19870         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19871         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19872         * modules/rmdir (Files): Likewise.
19873         * modules/stat (Files): Likewise.
19874         * modules/unlink (Files): Likewise.
19875         * modules/dirname-lgpl (Depends-on): Add dosname.
19876         * modules/lstat (Depends-on): Likewise.
19877         * modules/openat (Depends-on): Likewise.
19878         * modules/rmdir (Depends-on): Likewise.
19879         * modules/savewd (Depends-on): Likewise.
19880         * modules/stat (Depends-on): Likewise.
19881         * modules/unlink (Depends-on): Likewise.
19882         * modules/openat (Depends-on): Remove dirname-lgpl.
19883         * modules/savewd (Depends-on): Likewise.
19884         * tests/test-dirname.c: Do not use removed symbols like
19885         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19886         the remaining symbols, e.g., ISSLASH ('\\').
19887
19888 2011-02-25  Eric Blake  <eblake@redhat.com>
19889
19890         strstr: revert patches that introduced bug and pessimization
19891         * lib/str-two-way.h: Add another reference.
19892         (two_way_short_needle, two_way_long_needle): Revert changes from
19893         2011-02-24; they pessimize search speed.
19894         (critical_factorization): Partially revert changes from
19895         2010-06-22; they violate the requirement that the left half of the
19896         needle be smaller than the period of the needle.
19897
19898 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19899
19900         filenamecat: remove unnecessary dependency on dirname-lgpl
19901         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19902         is no direct dependency, just an indirect one via filenamecat-lgpl.
19903
19904         remove: remove unnecessary use of m4/dos.m4
19905         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19906         * modules/remove (FILES): Remove m4/dos.m4.
19907
19908         * lib/openat-proc.c: Don't include dirname.h; not needed.
19909
19910         backupfile: remove unnecessary use of m4/dos.m4
19911         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19912         of its symbols are used by the backupfile code.  backupfile.c does
19913         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19914         for the rare case of programs that want all their backup file
19915         names to live within 8+3 limits, and dos.m4 doesn't address that.
19916         * modules/backupfile (Files): Remove m4/dos.m4.
19917
19918 2011-02-24  Jim Meyering  <meyering@redhat.com>
19919
19920         strstr: fix a bug whereby strstr would mistakenly return NULL
19921         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19922         in period calculation.
19923         (two_way_long_needle): Likewise.
19924         The original problem was reported by Mike Stump in
19925         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19926         Ralf Wildenhues provided the short needle and haystack.
19927         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19928         Add a more involved test to trigger the bug in two_way_long_needle.
19929
19930 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19931
19932         gnulib-tool: remove use of bold display in help screen
19933         * gnulib-tool (func_usage): Do not use bold display anymore in the
19934         help screen.  That was just meant to be a temporary emphasis for a
19935         backward-incompatible change.
19936
19937 2011-02-23  Bruno Haible  <bruno@clisp.org>
19938
19939         Fix misindentation of preprocessor directives.
19940         * lib/argp-namefrob.h: Reindent preprocessor directives.
19941         * lib/getopt_int.h (struct _getopt_data): Likewise.
19942         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19943         * lib/vasnprintf.c (decode_long_double): Likewise.
19944         * tests/test-argmatch.c: Insert blank lines, for clarity.
19945         * tests/test-exclude.c: Likewise.
19946
19947 2011-02-22  Bruno Haible  <bruno@clisp.org>
19948
19949         ioctl: Fix for MacOS X in 64-bit mode.
19950         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19951         value.
19952         Suggested by Eric Blake.
19953         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19954
19955 2011-02-22  Jim Meyering  <meyering@redhat.com>
19956
19957         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19958         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19959         in lib/.
19960
19961 2011-02-22  Eric Blake  <eblake@redhat.com>
19962
19963         maint: avoid any CDPATH issue
19964         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19965
19966         maint: adjust cpp indentation for my modules, as well
19967         * Makefile (sc_cpp_indent_check): Add my name.
19968         * lib/fbufmode.c: Filter through cppi.
19969         * lib/fpurge.c: Likewise.
19970         * lib/freadable.c: Likewise.
19971         * lib/freading.c: Likewise.
19972         * lib/fwritable.c: Likewise.
19973         * lib/fwriting.c: Likewise.
19974         * lib/sigaction.c: Likewise.
19975
19976 2011-02-22  Jim Meyering  <meyering@redhat.com>
19977
19978         maint: adjust cpp indentation to reflect nesting depth
19979         I.e., in a block of code that begins with an unnested "#if",
19980         put one space between the "#" in column 1 and following token.
19981         For example,
19982         -#include <sys/vfs.h>
19983         +# include <sys/vfs.h>
19984         Do this only in .c files that are part of a module I maintain.
19985         * lib/linkat.c: Filter through cppi.
19986         * lib/nanosleep.c: Likewise.
19987         * lib/openat.c: Likewise.
19988         * lib/openat-die.c: Likewise.
19989         * lib/dup3.c: Likewise.
19990         * lib/fchownat.c: Likewise.
19991         * lib/flock.c: Likewise.
19992         * lib/fsync.c: Likewise.
19993         * lib/fts.c: Likewise.
19994         * lib/getpass.c: Likewise.
19995         * lib/gettimeofday.c: Likewise.
19996         * lib/userspec.c: Likewise.
19997         * Makefile (sc_cpp_indent_check): New rule, to check this.
19998
19999 2011-02-22  Bruno Haible  <bruno@clisp.org>
20000
20001         New module 'wctomb'.
20002         * lib/stdlib.in.h (wctomb): New declaration.
20003         * lib/wctomb.c: New file.
20004         * lib/wctomb-impl.h: New file.
20005         * m4/wctomb.m4: New file.
20006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20007         REPLACE_WCTOMB.
20008         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20009         REPLACE_WCTOMB.
20010         * modules/wctomb: New file.
20011         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20012         * doc/posix-functions/wctomb.texi: Mention the new module.
20013         * modules/wctob (Depends-on): Add wctomb.
20014
20015 2011-02-22  Bruno Haible  <bruno@clisp.org>
20016
20017         New module 'mbtowc'.
20018         * lib/stdlib.in.h (mbtowc): New declaration.
20019         * lib/mbtowc.c: New file.
20020         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20021         * m4/mbtowc.m4: New file.
20022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20023         REPLACE_MBTOWC.
20024         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20025         REPLACE_MBTOWC.
20026         * modules/mbtowc: New file.
20027         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20028         * doc/posix-functions/mbtowc.texi: Mention the new module.
20029         * modules/btowc (Depends-on): Add mbtowc.
20030
20031 2011-02-22  Bruno Haible  <bruno@clisp.org>
20032
20033         wcrtomb: Add more tests for native Windows platforms.
20034         * tests/test-wcrtomb-w32-1.sh: New file.
20035         * tests/test-wcrtomb-w32-2.sh: New file.
20036         * tests/test-wcrtomb-w32-3.sh: New file.
20037         * tests/test-wcrtomb-w32-4.sh: New file.
20038         * tests/test-wcrtomb-w32-5.sh: New file.
20039         * tests/test-wcrtomb-w32.c: New file.
20040         * modules/wcrtomb-tests (Files): Add them.
20041         (Makefile.am): Arrange to run these tests.
20042         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20043         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20044
20045 2011-02-20  Bruno Haible  <bruno@clisp.org>
20046
20047         wcrtomb: Enhance test.
20048         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20049
20050 2011-02-20  Bruno Haible  <bruno@clisp.org>
20051
20052         mbrtowc: Tiny optimization.
20053         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20054
20055 2011-02-20  Jim Meyering  <meyering@redhat.com>
20056
20057         test-exclude.c: remove unmatched #endif
20058         * tests/test-exclude.c: Remove stray #endif, left over from
20059         the change of a week ago.
20060
20061 2011-02-19  Jim Meyering  <meyering@redhat.com>
20062
20063         git-version-gen: skip "-dirty" check when appropriate
20064         * build-aux/git-version-gen: Don't run any git commands when the
20065         version string comes from .tarball-version.  Prior to this, we
20066         would run git update-index --refresh even from a just-unpacked
20067         tarball directory, and that could affect a .git/ directory in a
20068         parent of the build directory.  Reported by Mike Frysinger.
20069
20070 2011-02-19  Bruno Haible  <bruno@clisp.org>
20071
20072         unictype/property-byname: Reduce the size of the 'data' segment.
20073         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20074
20075 2011-02-19  Bruno Haible  <bruno@clisp.org>
20076
20077         unictype/scripts: Reduce the size of the 'data' segment.
20078         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20079         '%pic'.
20080         * lib/unictype/scripts_byname.gperf: Regenerated.
20081
20082 2011-02-19  Bruno Haible  <bruno@clisp.org>
20083
20084         stdint: Update documentation.
20085         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20086
20087 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20088
20089         stdint: omit redundant check for wchar.h
20090         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20091         always tests whether wchar.h exists, so remove the now-redundant test.
20092
20093 2011-02-18  Bruno Haible  <bruno@clisp.org>
20094
20095         stdint: Cut dependency to module 'wchar'.
20096         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20097         include the necessary prerequisites.
20098         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20099         * modules/stdint (Depends-on): Remove wchar.
20100         (Makefile.am): Substitute HAVE_WCHAR_H.
20101         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20102
20103 2011-02-18  Eric Blake  <eblake@redhat.com>
20104
20105         longlong: skip, rather than fail, on cross-compilation
20106         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20107         when cross-compiling; regression from 2011-02-16.
20108
20109 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20110
20111         * NEWS: Mention 2011-02-08 change to stdlib.
20112
20113 2011-02-17  Bruno Haible  <bruno@clisp.org>
20114
20115         getloadavg: Add comments about platforms.
20116         * m4/getloadavg.m4: Add comment.
20117         * lib/getloadavg.c: Likewise.
20118
20119 2011-02-17  Bruno Haible  <bruno@clisp.org>
20120
20121         getloadavg: Fix link error on Solaris 2.6.
20122         * modules/getloadavg (Link): New section.
20123         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20124         linking test-getloadavg.
20125         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20126         getloadavg.
20127
20128 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20129
20130         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20131         It was 'int', but this doesn't match the IRIX 6.5 manual.
20132         Suggested by Bruno Haible in
20133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20134
20135 2011-02-17  Bruno Haible  <bruno@clisp.org>
20136
20137         havelib: Fix comments.
20138         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20139         change.
20140
20141 2011-02-17  Bruno Haible  <bruno@clisp.org>
20142
20143         havelib: Update config.rpath.
20144         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20145
20146 2011-02-17  Bruno Haible  <bruno@clisp.org>
20147
20148         getloadavg test: Add some plausibility checks.
20149         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20150         is improbable.
20151
20152 2011-02-16  Eric Blake  <eblake@redhat.com>
20153
20154         maintainer-makefile: make syntax-check a no-op from tarballs
20155         * top/maint.mk (no-vc-detected): New rule.
20156         (local-checks-available): Use it to avoid hanging if someone tries
20157         'make syntax-check' from a tarball.  Also append to any non-syntax
20158         checks already defined in cfg.mk.
20159
20160 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20161
20162         longlong: tune, particularly for common case of c99
20163
20164         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20165         or running anything if c99, or if unsigned long long int does not
20166         work.  In either case, we know the answer without further tests.
20167         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20168         it at most once, and use its results for both long long int and
20169         unsigned long long int.  This is more likely to be efficient in
20170         the common case where the program wants to check for both long
20171         long int and unsigned long long int.
20172         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20173         since the answer is already known.
20174
20175 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20176
20177         getloadavg: set errno
20178         * lib/getloadavg.c: Set errno when returning -1.  If no other
20179         error number looks appropriate, set it to ENOSYS if the getloadavg
20180         looks like it can't possibly ever work, ENOTSUP otherwise.
20181         Suggested by Bruno Haible in
20182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20183
20184         getloadavg: trim unused parts and speed up 'configure'
20185         * NEWS: Document this.
20186         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20187         always compiled if getloadavg is absent.
20188         Move test code to ...
20189         * tests/test-getloadavg.c: New file, containing previous
20190         contents of test from lib/getloadavg.c.  It also contains
20191         suggestions by Bruno Haible in
20192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20193         * modules/getloadavg-tests: New file.
20194         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20195         Do tests in the same order as they're needed for getloadavg.c.
20196         Omit setgid-related tests that generate symbols KMEM_GROUP,
20197         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20198         Do only the tests that are needed to see whether the system has
20199         getloadavg, moving the other tests into ...
20200         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20201         NLIST_NAME_UNION; nobody should be using it.  Do not define
20202         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20203         relevant, as the user of this module shouldn't care how getloadavg
20204         is implemented.
20205
20206         getloadavg: omit unused var
20207         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20208
20209 2011-02-15  Jim Meyering  <meyering@redhat.com>
20210
20211         doc: update users.txt
20212         * users.txt: Update iwhd's URL.
20213
20214 2011-02-13  Bruno Haible  <bruno@clisp.org>
20215
20216         Consistent macro naming for macros that use GCC __attribute__.
20217         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20218         _ATTRIBUTE_NONNULL_.
20219         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20220         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20221         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20222         ATTRIBUTE_DEPRECATED.
20223         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20224         ATTRIBUTE_NORETURN.
20225         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20226         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20227         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20228         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20229         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20230         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20231         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20232         ATTRIBUTE_SENTINEL.
20233         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20234         ATTRIBUTE_RETURN_CHECK.
20235         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20236         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20237         ATTRIBUTE_NORETURN.
20238         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20239         Reported by Paul Eggert.
20240
20241 2011-02-13  Bruno Haible  <bruno@clisp.org>
20242
20243         Don't interfere with a program's definition of __attribute__.
20244         * lib/argp.h (__attribute__): Remove definition.
20245         (_GL_ATTRIBUTE_FORMAT): New macro.
20246         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20247         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20248         (_GL_ATTRIBUTE_FORMAT): New macro.
20249         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20250         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20251         GCC 3 or newer.
20252         * lib/error.h (__attribute__): Remove definition.
20253         (_GL_ATTRIBUTE_FORMAT): New macro.
20254         (error, error_at_line): Use it.
20255         * lib/hash.h (__attribute__): Remove definition.
20256         (ATTRIBUTE_WUR): Update definition. Define always.
20257         * lib/openat.h (__attribute__): Remove definition.
20258         (ATTRIBUTE_NORETURN): Update definition. Define always.
20259         * lib/sigpipe-die.h (__attribute__): Remove definition.
20260         (ATTRIBUTE_NORETURN): Update definition. Define always.
20261         * lib/vasnprintf.h (__attribute__): Remove definition.
20262         (_GL_ATTRIBUTE_FORMAT): New macro.
20263         (asnprintf, vasnprintf): Use it.
20264         * lib/xalloc.h (__attribute__): Remove definition.
20265         (ATTRIBUTE_NORETURN): Update definition. Define always.
20266         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20267         * lib/xmemdup0.h (__attribute__): Remove definition.
20268         (ATTRIBUTE_NORETURN): Update definition. Define always.
20269         * lib/xprintf.h (__attribute__): Remove definition.
20270         (_GL_ATTRIBUTE_FORMAT): New macro.
20271         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20272         * lib/xstrtol.h (__attribute__): Remove definition.
20273         (ATTRIBUTE_NORETURN): Update definition. Define always.
20274         * lib/xvasprintf.h (__attribute__): Remove definition.
20275         (_GL_ATTRIBUTE_FORMAT): New macro.
20276         (xasprintf, xvasprintf): Use it.
20277         * tests/test-argmatch.c (__attribute__): Remove definition.
20278         (ATTRIBUTE_NORETURN): Update definition. Define always.
20279         * tests/test-exclude.c (__attribute__): Remove definition.
20280         (ATTRIBUTE_NORETURN): Update definition. Define always.
20281         Reported by Paul Eggert.
20282
20283 2011-02-13  Bruno Haible  <bruno@clisp.org>
20284
20285         mbrtowc: Add more tests for native Windows platforms.
20286         * tests/test-mbrtowc-w32-1.sh: New file.
20287         * tests/test-mbrtowc-w32-2.sh: New file.
20288         * tests/test-mbrtowc-w32-3.sh: New file.
20289         * tests/test-mbrtowc-w32-4.sh: New file.
20290         * tests/test-mbrtowc-w32-5.sh: New file.
20291         * tests/test-mbrtowc-w32.c: New file.
20292         * modules/mbrtowc-tests (Files): Add them.
20293         (Makefile.am): Arrange to run these tests.
20294         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20295         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20296
20297 2011-02-13  Bruno Haible  <bruno@clisp.org>
20298
20299         mbrtowc: Work around native Windows bug.
20300         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20301         guess when no suitable locale for testing was found.
20302         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20303
20304 2011-02-13  Bruno Haible  <bruno@clisp.org>
20305
20306         mbsinit: Work around mingw bug.
20307         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20308         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20309         Windows.
20310         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20311
20312 2011-02-13  Bruno Haible  <bruno@clisp.org>
20313
20314         mbsinit: Don't crash for a NULL argument.
20315         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20316         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20317
20318 2011-02-13  Bruno Haible  <bruno@clisp.org>
20319
20320         Don't interfere with a program's definition of __attribute__.
20321         * lib/stdio.in.h (__attribute__): Remove definition.
20322         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20323         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20324         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20325         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20326         * lib/string.in.h (__attribute__): Remove definition.
20327         Reported by Paul Eggert.
20328
20329 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20330
20331         stdlib: don't get in the way of non-GCC __attribute__
20332         See thread starting at
20333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20334         Revert previous stdlib change, installing the following instead:
20335         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20336         to get in the way of a non-GCC compiler that supports __attribute__.
20337         (_GL_ATTRIBUTE_RETURN): New macro.
20338         (_Exit): Use it instead of __attribute__.
20339
20340 2011-02-12  Bruno Haible  <bruno@clisp.org>
20341
20342         quotearg test: Avoid test failure on mingw.
20343         * tests/test-quotearg.sh: Convert the locale identifier from native
20344         Windows syntax to Unix syntax.
20345
20346 2011-02-12  Bruno Haible  <bruno@clisp.org>
20347
20348         setlocale: Prefer gnulib's override over libintl's override.
20349         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20350         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20351         GNULIB_defined_setlocale is set.
20352
20353 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20354
20355         stdlib: support non-GCC __attribute__
20356
20357         Fix a serious and tricky problem encountered when attempting to
20358         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20359         5.5, but it crashed due to memory corruption on Solaris 10 with
20360         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20361         bits that are otherwise zero.  This tagging is optional inside
20362         Emacs but is preferred and is used when __attribute__ ((__aligned
20363         (8))) works, as it does with both recent-enough GCC and with Sun C
20364         5.11.  However, Sun C 5.11 is not GCC and does not #define
20365         __GNUC__ and __GNUC_MINOR__.
20366
20367         When I added the getloadavg module to Emacs, it brought in
20368         stdlib.in.h, which contained this fragment:
20369
20370            #ifndef __attribute__
20371            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20372            #  define __attribute__(Spec)   /* empty */
20373            # endif
20374            #endif
20375
20376         When files that include <stdlib.h> were compiled with Sun C 5.11,
20377         the above code disabled __attribute__ ((__aligned (8))), which
20378         caused variables to not be properly aligned, which eventually led
20379         to the pointer corruption mentioned above.  (This was a bit hard
20380         to diagnose, unfortunately.)
20381
20382         Several "#define __attribute__(X) /* empty */" code snippets need
20383         to be eradicated from Gnulib to work with non-GCC compilers that
20384         support __attribute__.  The Autoconf way to do this is to test for
20385         each kind of attribute that we want support for, and selectively
20386         enable that in source code.
20387
20388         Fix this problem just for stdlib.h, by adding a test for the
20389         __noreturn__ attribute, and change stdlib.in.h to use that test
20390         when needed.  This technique can be easily generalized to the
20391         other *.in.h files and attributes, and a similar technique can be
20392         used for *.h and *.c files.  This patch is enough to solve the
20393         problem for Emacs + getloadavg, and I thought I'd publish it for
20394         feedback before undertaking further, similar fixes in other
20395         modules.
20396
20397         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20398         because it's not needed for stdlib.h.  It merely substitutes the
20399         value directly into stdlib.h.  We may well need to #define it, or
20400         similar symbols, for other modules, but it's nice to also have an
20401         option to not #define it for applications like Emacs that do not
20402         need it.
20403
20404         * lib/stdlib.in.h (__attribute__): Do not #define.
20405         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20406         be defined only if the _Exit module is also used.
20407         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20409         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20410         platforms.
20411         * modules/_Exit (Files): Add m4/attribute.m4.
20412         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20413         * m4/attribute.m4: New file.
20414
20415 2011-02-12  Bruno Haible  <bruno@clisp.org>
20416
20417         wcsrtombs: Work around bug on native Windows.
20418         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20419         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20420         instead of len.
20421         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20422
20423 2011-02-12  Bruno Haible  <bruno@clisp.org>
20424
20425         mbsrtowcs: Work around bug on native Windows.
20426         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20427         against mingw bug.
20428         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20429
20430 2011-02-12  Bruno Haible  <bruno@clisp.org>
20431
20432         Avoid setlocale bugs in tests.
20433         * modules/btowc (Dependencies): Add setlocale.
20434         * modules/c-strcase (Dependencies): Likewise.
20435         * modules/mbmemcasecmp (Dependencies): Likewise.
20436         * modules/mbmemcasecoll (Dependencies): Likewise.
20437         * modules/mbrtowc (Dependencies): Likewise.
20438         * modules/mbscasecmp (Dependencies): Likewise.
20439         * modules/mbscasestr (Dependencies): Likewise.
20440         * modules/mbschr (Dependencies): Likewise.
20441         * modules/mbscspn (Dependencies): Likewise.
20442         * modules/mbsinit (Dependencies): Likewise.
20443         * modules/mbsncasecmp (Dependencies): Likewise.
20444         * modules/mbsnrtowcs (Dependencies): Likewise.
20445         * modules/mbspbrk (Dependencies): Likewise.
20446         * modules/mbspcasecmp (Dependencies): Likewise.
20447         * modules/mbsrchr (Dependencies): Likewise.
20448         * modules/mbsrtowcs (Dependencies): Likewise.
20449         * modules/mbsspn (Dependencies): Likewise.
20450         * modules/mbsstr (Dependencies): Likewise.
20451         * modules/nl_langinfo (Dependencies): Likewise.
20452         * modules/quotearg (Dependencies): Likewise.
20453         * modules/unicase/locale-language (Dependencies): Likewise.
20454         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20455         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20456         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20457         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20458         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20459         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20460         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20461         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20462         * modules/vasnprintf-posix (Dependencies): Likewise.
20463         * modules/wcrtomb (Dependencies): Likewise.
20464         * modules/wcsnrtombs (Dependencies): Likewise.
20465         * modules/wcsrtombs (Dependencies): Likewise.
20466
20467 2011-02-12  Bruno Haible  <bruno@clisp.org>
20468
20469         setlocale: Workaround native Windows bug.
20470         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20471         succeeds but sets LC_CTYPE to "C", report a failure.
20472         * tests/test-setlocale2.sh: New file.
20473         * tests/test-setlocale2.c: New file.
20474         * modules/setlocale-tests (Files): Add the new files.
20475         (Makefile.am): Enable test-setlocale2.sh test.
20476         * doc/posix-functions/setlocale.texi: Mention workaround.
20477
20478 2011-02-11  Bruno Haible  <bruno@clisp.org>
20479
20480         Tests for module 'setlocale'.
20481         * modules/setlocale-tests: New file.
20482         * tests/test-setlocale1.sh: New file.
20483         * tests/test-setlocale1.c: New file.
20484
20485         New module 'setlocale'.
20486         * lib/locale.in.h (setlocale): New declaration.
20487         * lib/setlocale.c: New file, based on
20488         gettext/gettext-runtime/intl/setlocale.c.
20489         * m4/setlocale.m4: New file.
20490         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20491         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20492         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20493         REPLACE_SETLOCALE.
20494         * modules/setlocale: New file.
20495         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20496         * doc/posix-functions/setlocale.texi: Mention the new module.
20497
20498 2011-02-11  Bruno Haible  <bruno@clisp.org>
20499
20500         Prepare for locale dependent tests on mingw.
20501         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20502         because it has the wrong locale encoding.
20503         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20504         French_France.1252 instead of "fr".
20505         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20506         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20507         because it has the wrong locale encoding.
20508         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20509         native Windows, try Turkish_Turkey.65001.
20510         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20511         Chinese_China.54936.
20512
20513         Prepare for locale dependent tests on mingw.
20514         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20515         differently.
20516         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20517         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20518         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20519         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20520
20521 2011-02-11  Eric Blake  <eblake@redhat.com>
20522
20523         strptime: avoid compiler warnings
20524         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20525         compiler warnings about dead code.
20526         Reported by Daniel P. Berrange.
20527
20528 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20529
20530         doc: update users.txt
20531         * users.txt: Add rcs.
20532
20533 2011-02-10  John W. Eaton  <jwe@gnu.org>
20534
20535         doc: update users.txt
20536         * users.txt: Add octave.
20537
20538 2011-02-10  Jim Meyering  <meyering@redhat.com>
20539
20540         doc: update users.txt
20541         * users.txt: Add iwhd.
20542
20543 2011-02-09  Bruno Haible  <bruno@clisp.org>
20544
20545         gnulib-tool: Make copyright notice adjustment more robust.
20546         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20547         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20548         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20549         License".
20550         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20551
20552 2011-02-06  Bruno Haible  <bruno@clisp.org>
20553
20554         New module 'towctrans'.
20555         * modules/towctrans: New file.
20556         * lib/wctype.in.h (towctrans): New declaration.
20557         * lib/towctrans.c: New file.
20558         * lib/towctrans-impl.h: New file.
20559         * m4/towctrans.m4: New file.
20560         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20561         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20562         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20563         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20564         * doc/posix-functions/towctrans.texi: Mention the new module.
20565
20566 2011-02-06  Bruno Haible  <bruno@clisp.org>
20567
20568         New module 'wctrans'.
20569         * modules/wctrans: New file.
20570         * lib/wctype.in.h (wctrans): New declaration.
20571         * lib/wctrans.c: New file.
20572         * lib/wctrans-impl.h: New file.
20573         * m4/wctrans.m4: New file.
20574         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20575         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20576         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20577         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20578         * doc/posix-functions/wctrans.texi: Mention the new module.
20579
20580 2011-02-06  Bruno Haible  <bruno@clisp.org>
20581
20582         New module 'iswctype'.
20583         * modules/iswctype: New file.
20584         * lib/wctype.in.h (iswctype): New declaration.
20585         * lib/iswctype.c: New file.
20586         * lib/iswctype-impl.h: New file.
20587         * m4/iswctype.m4: New file.
20588         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20589         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20590         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20591         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20592         * doc/posix-functions/iswctype.texi: Mention the new module and the
20593         HP-UX 11.00 problem.
20594
20595 2011-02-06  Bruno Haible  <bruno@clisp.org>
20596
20597         New module 'wctype'.
20598         * modules/wctype: Change to represent the wctype() substitute.
20599         * lib/wctype.in.h (wctype): New declaration.
20600         * lib/wctype.c: New file.
20601         * lib/wctype-impl.h: New file.
20602         * m4/wctype.m4: New file.
20603         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20604         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20605         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20606         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20607         * doc/posix-functions/wctype.texi: Mention the new module and the
20608         HP-UX 11.00 problem.
20609
20610 2011-02-06  Bruno Haible  <bruno@clisp.org>
20611
20612         wctype-h: Ensure wctype_t and wctrans_t are defined.
20613         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20614         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20615         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20616         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20617         HAVE_WCTRANS_T.
20618         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20619
20620 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20621
20622         flock: fix license typo
20623
20624         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20625         omitted.
20626
20627 2011-02-08  Bruno Haible  <bruno@clisp.org>
20628
20629         Split large sed scripts, for HP-UX sed.
20630         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20631         to avoid HP-UX limit of 99 commands, in the near future.
20632         * modules/stdlib (Makefile.am): Likewise.
20633         * modules/unistd (Makefile.am): Likewise.
20634         * modules/wchar (Makefile.am): Likewise.
20635         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20636         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20637         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20638
20639 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20640             Bruno Haible  <bruno@clisp.org>
20641
20642         stdlib: improve random_r modularization
20643         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20644         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20645         you also need the random_r module to get this material right.
20646         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20647         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20648         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20649
20650 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         stdlib: don't depend on stdint
20653         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20654         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20655         be independent of whether stdint.h is needed.
20656         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20657         here, instead of ...
20658         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20659         struct random_data should be using the random_r module, not just
20660         the stdlib module (which wouldn't make sense: what package needs
20661         just struct random_data without also needing random_r?).
20662         * modules/stdlib (Depends-on): Remove stdint.
20663
20664         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20665         See the thread rooted at
20666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20667         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20668         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20669         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20670         __VMS)); previously it was always included (via fcntl--.h).
20671         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20672         hand; this is good enough for load averages.  Also, do not use
20673         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20674         flags directly if available and don't bother otherwise.  (Packages
20675         that need the extra reliability should use the modules that define
20676         these flags on older platforms that lack them.)
20677         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20678         fcntl-safer.
20679
20680 2011-02-08  Jim Meyering  <meyering@redhat.com>
20681
20682         di-set.h, ino-map.h: add multiple-inclusion guard
20683         Technically, the guard is required only for ino-map.h, due to its
20684         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20685         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20686         * lib/ino-map.h: Likewise.
20687
20688 2011-02-06  Bruno Haible  <bruno@clisp.org>
20689
20690         iswblank: Ensure declaration on glibc systems.
20691         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20692         * modules/iswblank (Dependencies): Add 'extensions'.
20693         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20694
20695 2011-02-06  Bruno Haible  <bruno@clisp.org>
20696
20697         New module 'iswblank'.
20698         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20699         * modules/iswblank: New file.
20700         * modules/wctype-h (Files): Remove lib/iswblank.c.
20701         (Makefile.am): Substitute GNULIB_ISWBLANK.
20702         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20703         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20704         (gl_WCTYPE_H_DEFAULTS): New macro.
20705         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20706         * modules/iswblank-tests: New file.
20707         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20708         * tests/test-wctype-h.c (main): Remove iswblank tests.
20709         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20710         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20711         of 'wctype-h'.
20712         * NEWS: Mention the change.
20713         * modules/mbchar (Depends-on): Add iswblank.
20714
20715 2011-02-08  Bruno Haible  <bruno@clisp.org>
20716
20717         di-set tests: Refactor.
20718         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20719         unnecessary includes.
20720         (ASSERT): Remove macro.
20721         (main): Make C90 compliant by avoiding variable declaration after
20722         statement.
20723         * modules/di-set-tests (Files): Add tests/macros.h.
20724
20725 2011-02-08  Bruno Haible  <bruno@clisp.org>
20726
20727         ino-map tests: Refactor.
20728         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20729         unnecessary includes.
20730         (ASSERT): Remove macro.
20731         (main): Make C90 compliant by avoiding variable declaration after
20732         statement.
20733         * modules/ino-map-tests (Files): Add tests/macros.h.
20734
20735 2011-02-08  Jim Meyering  <meyering@redhat.com>
20736
20737         di-set: add "const" to a cast
20738         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20739         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20740
20741 2011-02-06  Bruno Haible  <bruno@clisp.org>
20742
20743         Rename module 'wctype' to 'wctype-h'.
20744         * modules/wctype-h: Renamed from modules/wctype.
20745         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20746         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20747         (Files, Depends-on, Makefile.am): Update.
20748         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20749         (Files, Makefile.am): Update.
20750         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20751         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20752         * doc/posix-headers/wctype.texi: Update.
20753         * doc/posix-functions/iswalnum.texi: Update.
20754         * doc/posix-functions/iswalpha.texi: Update.
20755         * doc/posix-functions/iswblank.texi: Update.
20756         * doc/posix-functions/iswcntrl.texi: Update.
20757         * doc/posix-functions/iswdigit.texi: Update.
20758         * doc/posix-functions/iswgraph.texi: Update.
20759         * doc/posix-functions/iswlower.texi: Update.
20760         * doc/posix-functions/iswprint.texi: Update.
20761         * doc/posix-functions/iswpunct.texi: Update.
20762         * doc/posix-functions/iswspace.texi: Update.
20763         * doc/posix-functions/iswupper.texi: Update.
20764         * doc/posix-functions/iswxdigit.texi: Update.
20765         * doc/posix-functions/towlower.texi: Update.
20766         * doc/posix-functions/towupper.texi: Update.
20767         * NEWS: Mention the change.
20768         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20769         * modules/mbchar (Dependencies): Likewise.
20770         * modules/mbswidth (Dependencies): Likewise.
20771         * modules/quotearg (Dependencies): Likewise.
20772         * modules/regex (Dependencies): Likewise.
20773         * modules/wcscasecmp (Dependencies): Likewise.
20774         * modules/wcsncasecmp (Dependencies): Likewise.
20775         * modules/wcwidth (Dependencies): Likewise.
20776
20777 2011-02-06  Bruno Haible  <bruno@clisp.org>
20778
20779         New module 'wcswidth'.
20780         * modules/wcswidth: New file.
20781         * lib/wchar.in.h (wcswidth): New declaration.
20782         * lib/wcswidth.c: New file.
20783         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20784         * m4/wcswidth.m4: New file.
20785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20787         REPLACE_WCSWIDTH.
20788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20789         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20790         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20791         * doc/posix-functions/wcswidth.texi: Mention the new module.
20792
20793 2011-02-06  Bruno Haible  <bruno@clisp.org>
20794
20795         New module 'wcstok'.
20796         * modules/wcstok: New file.
20797         * lib/wchar.in.h (wcstok): New declaration.
20798         * lib/wcstok.c: New file.
20799         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20800         * m4/wcstok.m4: New file.
20801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20804         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20805         * doc/posix-functions/wcstok.texi: Mention the new module.
20806
20807 2011-02-06  Bruno Haible  <bruno@clisp.org>
20808
20809         New module 'wcsstr'.
20810         * modules/wcsstr: New file.
20811         * lib/wchar.in.h (wcsstr): New declaration.
20812         * lib/wcsstr.c: New file.
20813         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20814         * m4/wcsstr.m4: New file.
20815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20817         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20818         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20819         * doc/posix-functions/wcsstr.texi: Mention the new module.
20820
20821 2011-02-06  Bruno Haible  <bruno@clisp.org>
20822
20823         New module 'wcspbrk'.
20824         * modules/wcspbrk: New file.
20825         * lib/wchar.in.h (wcspbrk): New declaration.
20826         * lib/wcspbrk.c: New file.
20827         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20828         * m4/wcspbrk.m4: New file.
20829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20832         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20833         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20834
20835 2011-02-06  Bruno Haible  <bruno@clisp.org>
20836
20837         New module 'wcsspn'.
20838         * modules/wcsspn: New file.
20839         * lib/wchar.in.h (wcsspn): New declaration.
20840         * lib/wcsspn.c: New file.
20841         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20842         * m4/wcsspn.m4: New file.
20843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20846         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20847         * doc/posix-functions/wcsspn.texi: Mention the new module.
20848
20849 2011-02-06  Bruno Haible  <bruno@clisp.org>
20850
20851         New module 'wcscspn'.
20852         * modules/wcscspn: New file.
20853         * lib/wchar.in.h (wcscspn): New declaration.
20854         * lib/wcscspn.c: New file.
20855         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20856         * m4/wcscspn.m4: New file.
20857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20860         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20861         * doc/posix-functions/wcscspn.texi: Mention the new module.
20862
20863 2011-02-06  Bruno Haible  <bruno@clisp.org>
20864
20865         New module 'wcsrchr'.
20866         * modules/wcsrchr: New file.
20867         * lib/wchar.in.h (wcsrchr): New declaration.
20868         * lib/wcsrchr.c: New file.
20869         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20870         * m4/wcsrchr.m4: New file.
20871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20873         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20874         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20875         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20876
20877 2011-02-06  Bruno Haible  <bruno@clisp.org>
20878
20879         New module 'wcschr'.
20880         * modules/wcschr: New file.
20881         * lib/wchar.in.h (wcschr): New declaration.
20882         * lib/wcschr.c: New file.
20883         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20884         * m4/wcschr.m4: New file.
20885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20887         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20888         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20889         * doc/posix-functions/wcschr.texi: Mention the new module.
20890
20891 2011-02-06  Bruno Haible  <bruno@clisp.org>
20892
20893         New module 'wcsdup'.
20894         * modules/wcsdup: New file.
20895         * lib/wchar.in.h (wcsdup): New declaration.
20896         * lib/wcsdup.c: New file.
20897         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20898         * m4/wcsdup.m4: New file.
20899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20902         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20903         * doc/posix-functions/wcsdup.texi: Mention the new module.
20904
20905 2011-02-06  Bruno Haible  <bruno@clisp.org>
20906
20907         New module 'wcsxfrm'.
20908         * modules/wcsxfrm: New file.
20909         * lib/wchar.in.h (wcsxfrm): New declaration.
20910         * lib/wcsxfrm.c: New file.
20911         * lib/wcsxfrm-impl.h: New file.
20912         * m4/wcsxfrm.m4: New file.
20913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20916         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20917         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20918
20919 2011-02-06  Bruno Haible  <bruno@clisp.org>
20920
20921         New module 'wcscoll'.
20922         * modules/wcscoll: New file.
20923         * lib/wchar.in.h (wcscoll): New declaration.
20924         * lib/wcscoll.c: New file.
20925         * lib/wcscoll-impl.h: New file.
20926         * m4/wcscoll.m4: New file.
20927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20930         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20931         * doc/posix-functions/wcscoll.texi: Mention the new module.
20932
20933 2011-02-06  Bruno Haible  <bruno@clisp.org>
20934
20935         New module 'wcsncasecmp'.
20936         * modules/wcsncasecmp: New file.
20937         * lib/wchar.in.h (wcsncasecmp): New declaration.
20938         * lib/wcsncasecmp.c: New file.
20939         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20940         * m4/wcsncasecmp.m4: New file.
20941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20943         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20944         HAVE_WCSNCASECMP.
20945         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20946         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20947
20948 2011-02-06  Bruno Haible  <bruno@clisp.org>
20949
20950         New module 'wcscasecmp'.
20951         * modules/wcscasecmp: New file.
20952         * lib/wchar.in.h (wcscasecmp): New declaration.
20953         * lib/wcscasecmp.c: New file.
20954         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20955         * m4/wcscasecmp.m4: New file.
20956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20958         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20959         HAVE_WCSCASECMP.
20960         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20961         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20962
20963 2011-02-05  Bruno Haible  <bruno@clisp.org>
20964
20965         New module 'wcsncmp'.
20966         * modules/wcsncmp: New file.
20967         * lib/wchar.in.h (wcsncmp): New declaration.
20968         * lib/wcsncmp.c: New file.
20969         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20970         * m4/wcsncmp.m4: New file.
20971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20974         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20975         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20976
20977 2011-02-05  Bruno Haible  <bruno@clisp.org>
20978
20979         New module 'wcscmp'.
20980         * modules/wcscmp: New file.
20981         * lib/wchar.in.h (wcscmp): New declaration.
20982         * lib/wcscmp.c: New file.
20983         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20984         * m4/wcscmp.m4: New file.
20985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20988         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20989         * doc/posix-functions/wcscmp.texi: Mention the new module.
20990
20991 2011-02-05  Bruno Haible  <bruno@clisp.org>
20992
20993         New module 'wcsncat'.
20994         * modules/wcsncat: New file.
20995         * lib/wchar.in.h (wcsncat): New declaration.
20996         * lib/wcsncat.c: New file.
20997         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20998         * m4/wcsncat.m4: New file.
20999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21002         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21003         * doc/posix-functions/wcsncat.texi: Mention the new module.
21004
21005 2011-02-05  Bruno Haible  <bruno@clisp.org>
21006
21007         New module 'wcscat'.
21008         * modules/wcscat: New file.
21009         * lib/wchar.in.h (wcscat): New declaration.
21010         * lib/wcscat.c: New file.
21011         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21012         * m4/wcscat.m4: New file.
21013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21016         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21017         * doc/posix-functions/wcscat.texi: Mention the new module.
21018
21019 2011-02-05  Bruno Haible  <bruno@clisp.org>
21020
21021         New module 'wcpncpy'.
21022         * modules/wcpncpy: New file.
21023         * lib/wchar.in.h (wcpncpy): New declaration.
21024         * lib/wcpncpy.c: New file.
21025         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21026         * m4/wcpncpy.m4: New file.
21027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21029         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21030         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21031         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21032
21033 2011-02-05  Bruno Haible  <bruno@clisp.org>
21034
21035         New module 'wcsncpy'.
21036         * modules/wcsncpy: New file.
21037         * lib/wchar.in.h (wcsncpy): New declaration.
21038         * lib/wcsncpy.c: New file.
21039         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21040         * m4/wcsncpy.m4: New file.
21041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21043         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21044         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21045         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21046
21047 2011-02-05  Bruno Haible  <bruno@clisp.org>
21048
21049         New module 'wcpcpy'.
21050         * modules/wcpcpy: New file.
21051         * lib/wchar.in.h (wcpcpy): New declaration.
21052         * lib/wcpcpy.c: New file.
21053         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21054         * m4/wcpcpy.m4: New file.
21055         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21056         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21057         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21058         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21059         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21060
21061 2011-02-05  Bruno Haible  <bruno@clisp.org>
21062
21063         New module 'wcscpy'.
21064         * modules/wcscpy: New file.
21065         * lib/wchar.in.h (wcscpy): New declaration.
21066         * lib/wcscpy.c: New file.
21067         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21068         * m4/wcscpy.m4: New file.
21069         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21070         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21072         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21073         * doc/posix-functions/wcscpy.texi: Mention the new module.
21074
21075 2011-02-05  Bruno Haible  <bruno@clisp.org>
21076
21077         New module 'wcsnlen'.
21078         * modules/wcsnlen: New file.
21079         * lib/wchar.in.h (wcsnlen): New declaration.
21080         * lib/wcsnlen.c: New file.
21081         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21082         * m4/wcsnlen.m4: New file.
21083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21086         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21087         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21088
21089 2011-02-05  Bruno Haible  <bruno@clisp.org>
21090
21091         New module 'wcslen'.
21092         * modules/wcslen: New file.
21093         * lib/wchar.in.h (wcslen): New declaration.
21094         * lib/wcslen.c: New file.
21095         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21096         * m4/wcslen.m4: New file.
21097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21099         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21100         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21101         * doc/posix-functions/wcslen.texi: Mention the new module.
21102
21103 2011-02-05  Bruno Haible  <bruno@clisp.org>
21104
21105         New module 'wmemset'.
21106         * modules/wmemset: New file.
21107         * lib/wchar.in.h (wmemset): New declaration.
21108         * lib/wmemset.c: New file.
21109         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21110         * m4/wmemset.m4: New file.
21111         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21112         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21113         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21114         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21115         * doc/posix-functions/wmemset.texi: Mention the new module.
21116
21117 2011-02-05  Bruno Haible  <bruno@clisp.org>
21118
21119         New module 'wmemmove'.
21120         * modules/wmemmove: New file.
21121         * lib/wchar.in.h (wmemmove): New declaration.
21122         * lib/wmemmove.c: New file.
21123         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21124         * m4/wmemmove.m4: New file.
21125         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21126         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21127         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21128         HAVE_WMEMMOVE.
21129         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21130         * doc/posix-functions/wmemmove.texi: Mention the new module.
21131
21132 2011-02-05  Bruno Haible  <bruno@clisp.org>
21133
21134         New module 'wmemcpy'.
21135         * modules/wmemcpy: New file.
21136         * lib/wchar.in.h (wmemcpy): New declaration.
21137         * lib/wmemcpy.c: New file.
21138         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21139         * m4/wmemcpy.m4: New file.
21140         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21141         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21142         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21143         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21144         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21145
21146 2011-02-05  Bruno Haible  <bruno@clisp.org>
21147
21148         New module 'wmemcmp'.
21149         * modules/wmemcmp: New file.
21150         * lib/wchar.in.h (wmemcmp): New declaration.
21151         * lib/wmemcmp.c: New file.
21152         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21153         * m4/wmemcmp.m4: New file.
21154         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21155         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21156         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21157         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21158         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21159
21160 2011-02-07  Jim Meyering  <meyering@redhat.com>
21161
21162         di-set, ino-map: new modules, from coreutils
21163         * lib/di-set.c: New file.
21164         * lib/di-set.h: Likewise.
21165         * lib/ino-map.c: Likewise.
21166         * lib/ino-map.h: Likewise.
21167         * modules/di-set: Likewise.
21168         * modules/di-set-tests: Likewise.
21169         * modules/ino-map: Likewise.
21170         * modules/ino-map-tests: Likewise.
21171         * tests/test-di-set.c: Likewise.
21172         * tests/test-ino-map.c: Likewise.
21173
21174 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21175
21176         getloadavg: merge minor changes from Emacs
21177
21178         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21179         (getloadavg): Use memset, not bzero.
21180
21181         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21182         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21183         clash (bug#86).
21184
21185 2010-11-14  Bruno Haible  <bruno@clisp.org>
21186
21187         Allow multiple gnulib generated replacements to coexist.
21188         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21189         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21190         * lib/langinfo.in.h (nl_item): Likewise.
21191         * lib/math.in.h (_NaN, NAN): Likewise.
21192         * lib/netdb.in.h (struct addrinfo): Likewise.
21193         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21194         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21195         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21196         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21197         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21198         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21199         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21200         pthread_mutexattr_init, pthread_mutexattr_settype,
21201         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21202         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21203         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21204         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21205         * lib/sched.in.h (struct sched_param): Likewise.
21206         * lib/se-selinux.in.h (security_class_t, security_context_t,
21207         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21208         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21209         lsetfilecon, fsetfilecon, security_check_context,
21210         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21211         Likewise.
21212         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21213         Likewise.
21214         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21215         _gl_function_taking_int_returning_void_t, union sigval,
21216         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21217         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21218         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21219         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21220         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21221         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21222         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21223         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21224         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21225         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21226         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21227         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21228         socklen_t, rpl_fd_isset): Likewise.
21229         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21230         * lib/sys_time.in.h (struct timeval): Likewise.
21231         * lib/sys_times.in.h (struct tms): Likewise.
21232         * lib/sys_utsname.in.h (struct utsname):
21233         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21234         * lib/unistd.in.h (getpagesize): Likewise.
21235         * lib/wchar.in.h (mbstate_t): Likewise.
21236         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21237         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21238         towlower, towupper): Likewise.
21239         Reported by Sam Steingold <sds@gnu.org>.
21240
21241 2011-02-05  Eric Blake  <eblake@redhat.com>
21242
21243         unsetenv: work around Haiku issues
21244         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21245         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21246
21247 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21248
21249         libposix: avoid calling error() within libposix
21250         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21251         is defined.
21252
21253 2011-02-05  Eric Blake  <eblake@redhat.com>
21254
21255         strerror_r-posix: port to cygwin
21256         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21257         implementation.
21258         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21259         * tests/test-strerror_r.c (main): Fix test.
21260         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21261         issue.
21262
21263 2011-02-05  Bruno Haible  <bruno@clisp.org>
21264
21265         New module 'wmemchr'.
21266         * modules/wmemchr: New file.
21267         * lib/wchar.in.h (wmemchr): New declaration.
21268         * lib/wmemchr.c: New file.
21269         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21270         * m4/wmemchr.m4: New file.
21271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21273         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21274         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21275         * doc/posix-functions/wmemchr.texi: Mention the new module.
21276
21277 2011-02-04  Eric Blake  <eblake@redhat.com>
21278
21279         fdopendir: detect FreeBSD bug
21280         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21281         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21282
21283 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21284
21285         stdbool: do not define HAVE_STDBOOL_H
21286         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21287         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21288         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21289         imported from the latest Autoconf git.  It was motivated by Emacs,
21290         which uses gnulib but does not need HAVE_STDBOOL_H.
21291
21292 2011-02-04  Bruno Haible  <bruno@clisp.org>
21293
21294         wcsnrtombs: Prepare for new module wwcsnrtombs.
21295         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21296         * lib/wcsnrtombs.c: Include it.
21297         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21298
21299         wcsrtombs: Prepare for new module wwcsrtombs.
21300         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21301         * lib/wcsrtombs.c: Include it.
21302         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21303
21304         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21305         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21306         * lib/mbsnrtowcs.c: Include it.
21307         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21308
21309         mbsrtowcs: Prepare for new module mbsrtowwcs.
21310         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21311         * lib/mbsrtowcs.c: Include it.
21312         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21313
21314 2011-02-04  Bruno Haible  <bruno@clisp.org>
21315
21316         vasnprintf: Reduce use of malloc for small format strings.
21317         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21318         (arguments): Add room for the first 7 arguments.
21319         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21320         (char_directives, u8_directives, u16_directives, u32_directives): Add
21321         room for the first 7 directives.
21322         * lib/printf-parse.c: Include <string.h>.
21323         (PRINTF_PARSE): Change memory handling code so that it uses the first
21324         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21325         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21326         Reported by Pádraig Brady <P@draigbrady.com>.
21327
21328 2011-01-31  Eric Blake  <eblake@redhat.com>
21329
21330         dup2: work around Haiku bug
21331         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21332         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21333         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21334         * tests/test-dup2.c (main): Enhance test.
21335
21336 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21337
21338         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21339         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21340         declared by eglibc 2.11.2.
21341         * lib/stdio.in.h: Likewise.
21342
21343 2011-01-31  Eric Blake  <eblake@redhat.com>
21344
21345         ignore-value: add missing test dependency
21346         * tests/test-ignore-value.c: Revert previous change; stdio.h
21347         provides off_t.
21348         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21349
21350 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21351
21352         mktime: clarify long_int width checking
21353         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21354         the top level, to make it clearer that the assumption about
21355         long_int width is being checked.  See
21356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21357
21358 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21359
21360         ignore-value: Fix self-test.
21361         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21362
21363 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21364
21365         TYPE_MAXIMUM: avoid theoretically undefined behavior
21366         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21367         negative number, which the C Standard says has undefined behavior.
21368         In practice this is not a problem, but might as well do it by the book.
21369         Reported by Rich Felker and Eric Blake; see
21370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21371         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21372         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21374         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21375         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21376         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21377
21378         mktime: #undef mktime before #defining it
21379         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21380
21381         mktime: systematically normalize tm_isdst comparisons
21382         * lib/mktime.c (isdst_differ): New function.
21383         (__mktime_internal): Use it systematically for all isdst comparisons.
21384         This completes the fix for libc BZ #6723, and removes the need for
21385         normalizing tm_isdst.  See
21386         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21387         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21388
21389         mktime: fix some integer overflow issues and sidestep the rest
21390
21391         This was prompted by a bug report by Benjamin Lindner for MinGW
21392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21393         His bug is due to signed integer overflow (0 - INT_MIN), and I
21394         I scanned through mktime.c looking for other integer overflow
21395         problems, fixing all the bugs I found.
21396
21397         Although the C Standard says the resulting code is still not safe
21398         in the presence of integer overflow, in practice it should be good
21399         enough for all real-world two's-complement implementations, except
21400         for debugging environments that deliberately trap on integer
21401         overflow (e.g., gcc -ftrapv).
21402
21403         * lib/mktime.c (WRAPV): New macro.
21404         (SHR): Also check that long_int and time_t shift right in the
21405         usual way, before using the fast-but-unportable method.
21406         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21407         used.  The code already assumed two's complement, so there's
21408         no need to test for alternatives.  All uses removed.
21409         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21410         the C standard.  Problem reported by Rich Felker in
21411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21412         (twos_complement_arithmetic): Also check long_int and time_t.
21413         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21414         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21415         (__mktime_internal): Avoid integer overflow with unary subtraction
21416         in two instances where -1 - X is an adequate replacement for -X,
21417         since the calculations are approximate.
21418
21419 2011-01-29  Eric Blake  <eblake@redhat.com>
21420
21421         mktime: avoid infinite loop
21422         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21423         type; behavior is still undefined but portable to all known targets.
21424         Reported by Rich Felker.
21425
21426 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21427
21428         rename, unlink, same-inode: Relicense.
21429         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21430         * modules/unlink (License): Likewise.
21431         * modules/same-inode (License): Likewise.
21432
21433 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21434
21435         mktime: avoid problems on NetBSD 5 / i386
21436         * lib/mktime.c (long_int): New type.  This works around a problem
21437         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21438         but time_t is 64 bits, and where I expect the existing code is
21439         wrong in some cases.
21440         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21441         (ydhms_diff): Bring back the compile-time check for wide-enough
21442         year and yday.
21443
21444         mktime: fix misspelling in comment
21445         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21446         This merges all recent glibc changes of importance.
21447
21448 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21449
21450         move-if-change: cope with concurrent mv of identical file.
21451         * build-aux/move-if-change (CMPPROG): Accept environment
21452         variable as an override for `cmp'.
21453         (usage): Document CMPPROG.
21454         Adjust comparison to drop stdout.  Cope with failure of mv if
21455         the target file exists and is identical to the source, for
21456         parallel builds.
21457         Report from H.J. Lu against binutils in PR binutils/12283.
21458
21459 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21460
21461         * users.txt: Mention sharutils.
21462
21463 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21464
21465         * users.txt: Mention OATH Toolkit.
21466
21467 2011-01-27  Bruno Haible  <bruno@clisp.org>
21468
21469         Prepare for supporting FreeBSD 10.
21470         * build-aux/config.libpath: Remove handling of freebsd1*.
21471
21472 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21473
21474         Prepare for supporting FreeBSD 10.
21475         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21476         match FreeBSD 10.0.
21477
21478 2011-01-27  Bruno Haible  <bruno@clisp.org>
21479
21480         vma-iter, get-rusage-as: Add OpenBSD support.
21481         * modules/vma-iter (configure.ac): Test for mquery.
21482         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21483         * lib/vma-iter.c: Include <sys/mman.h>.
21484         (vma_iterate): Add an implementation based on mquery().
21485         * lib/resource-ext.h (get_rusage_as): Update comments.
21486         * lib/get-rusage-as.c: Likewise.
21487         * lib/get-rusage-data.c: Likewise.
21488
21489 2011-01-26  Karl Berry  <karl@gnu.org>
21490
21491         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21492         variables to make it easier to override the makeinfo program used.
21493
21494 2011-01-26  Eric Blake  <eblake@redhat.com>
21495
21496         fcntl: work around Haiku F_DUPFD bugs
21497         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21498         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21499         cloexec bit on duplication.
21500         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21501
21502 2011-01-26  Bruno Haible  <bruno@clisp.org>
21503
21504         Enable memory leak tests on AIX.
21505         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21506         * tests/test-fprintf-posix3.c (main): Likewise.
21507
21508 2011-01-26  Bruno Haible  <bruno@clisp.org>
21509
21510         Tests for module 'get-rusage-data'.
21511         * modules/get-rusage-data-tests: New file.
21512         * tests/test-get-rusage-data.c: New file.
21513
21514         New module 'get-rusage-data'.
21515         * lib/resource-ext.h (get_rusage_data): New declaration.
21516         * lib/get-rusage-data.c: New file.
21517         * modules/get-rusage-data: New file.
21518
21519 2011-01-25  Bruno Haible  <bruno@clisp.org>
21520
21521         get-rusage-as: Allow for easier testing.
21522         * lib/resource-ext.h (get_rusage_as): Add comment.
21523         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21524         (main): New function for interactive testing.
21525
21526 2011-01-25  Bruno Haible  <bruno@clisp.org>
21527
21528         vma-iter: Treat Haiku like BeOS.
21529         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21530         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21531
21532 2011-01-25  Eric Blake  <eblake@redhat.com>
21533
21534         c-stack: fix regression on cygwin when libsigsegv is present
21535         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21536
21537 2011-01-24  Bruno Haible  <bruno@clisp.org>
21538
21539         vma-iter: Avoid empty intervals.
21540         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21541         on an empty interval.
21542
21543 2011-01-24  Jim Meyering  <meyering@redhat.com>
21544
21545         u64: remove unnecessary #include
21546         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21547
21548 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21549
21550         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21551         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21552
21553 2011-01-23  Bruno Haible  <bruno@clisp.org>
21554
21555         New module 'vma-iter'.
21556         * lib/vma-iter.h: New file.
21557         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21558         * modules/vma-iter: New file.
21559         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21560         for get_rusage_as_via_iterator.
21561         (vma_iterate_callback): New function.
21562         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21563         * modules/get-rusage-as (Depends-on): Add vma-iter.
21564
21565 2011-01-23  Bruno Haible  <bruno@clisp.org>
21566
21567         uninorm: Tweak includes.
21568         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21569         Reported by Jim Meyering.
21570
21571 2011-01-23  Bruno Haible  <bruno@clisp.org>
21572
21573         get-rusage-as: Improve on NetBSD.
21574         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21575         /proc, like on FreeBSD.
21576
21577 2011-01-23  Jim Meyering  <meyering@redhat.com>
21578
21579         xreadlink.h: remove unnecessary #include
21580         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21581
21582         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21583         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21584
21585 2011-01-23  Bruno Haible  <bruno@clisp.org>
21586
21587         get-rusage-as: Fix bug.
21588         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21589         original limit when aborting the first loop.
21590
21591 2011-01-23  Bruno Haible  <bruno@clisp.org>
21592
21593         wctype: Ensure valid C syntax.
21594         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21595         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21596
21597 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21598
21599         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21601         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21602         as they are needed only for configure's test case.
21603         This removes two unnecessary symbols from config.h.
21604
21605         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21606         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21607         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21608         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21609         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21610         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21611         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21612         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21613         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21614         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21615         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21617         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21618         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21619         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21620         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21621         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21622         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21623
21624 2011-01-21  Eric Blake  <eblake@redhat.com>
21625
21626         maintainer-makefile: work with older git for submodule check
21627         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21628         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21629         Reported by Matthias Bolte.
21630
21631         bootstrap: minor portability fixes
21632         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21633         (usage): Omit leading capital and trailing . on help phrases, per
21634         GNU Coding Standards.
21635         (check_versions, top level): Prefix messages with script name.
21636
21637 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21638
21639         bootstrap: support --no-git option
21640         * build-aux/bootstrap: Add --no-git option, to be used when
21641         --gnulib-srcdir points to the exact desired checkout.
21642
21643 2011-01-21  Eric Blake  <eblake@redhat.com>
21644
21645         strerror_r-posix: work with glibc 2.13
21646         * lib/strerror_r.c (strerror_r): Fix return type.
21647
21648 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21649             Bruno Haible  <bruno@clisp.org>
21650
21651         uN_strstr: New unit tests.
21652         * modules/unistr/u8-strstr-tests: New file.
21653         * modules/unistr/u16-strstr-tests: New file.
21654         * modules/unistr/u32-strstr-tests: New file.
21655         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21656         * tests/unistr/test-u8-strstr.c: New file.
21657         * tests/unistr/test-u16-strstr.c: New file.
21658         * tests/unistr/test-u32-strstr.c: New file.
21659
21660 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21661             Bruno Haible  <bruno@clisp.org>
21662
21663         Make uN_strstr functions O(n) worst-case.
21664         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21665         16-bit and 32-bit unit cases, use the unibyte algorithm from
21666         lib/mbsstr.c.
21667         * lib/unistr/u8-strstr.c: Include <string.h>.
21668         (UNIT_IS_UINT8_T): New macro.
21669         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21670         (U_STRLEN, U_STRNLEN): New macros.
21671         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21672         (U_STRLEN, U_STRNLEN): New macros.
21673         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21674         (configure.ac): Update required libunistring version.
21675         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21676         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21677         malloca.
21678         (configure.ac): Update required libunistring version.
21679         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21680         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21681         malloca.
21682         (configure.ac): Update required libunistring version.
21683
21684 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21685             Bruno Haible  <bruno@clisp.org>
21686
21687         Prepare for faster uN_strstr functions.
21688         * lib/str-kmp.h: Support definable UNITs.
21689         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21690         needle_len argument.
21691         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21692         * lib/mbscasestr.c (mbscasestr): Likewise.
21693
21694 2011-01-21  Pádraig Brady <P@draigBrady.com>
21695
21696         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21697         * tests/test-malloca.c (main): Unset the environment variable
21698         to greatly speed up the test.
21699         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21700         * modules/malloca-tests: Depend on unsetenv.
21701
21702 2011-01-21  Pádraig Brady <P@draigBrady.com>
21703
21704         ignore-value: remove stdint dependency
21705         * lib/ignore-value.h: Remove <stdint.h>
21706         * modules/ignore-value: Remove stdint dependency.
21707
21708 2011-01-21  Jim Meyering  <meyering@redhat.com>
21709
21710         maint.mk: adjust variable name to be consistent with other gl_ vars
21711         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21712         to be lower case.
21713
21714 2011-01-20  Jim Meyering  <meyering@redhat.com>
21715
21716         maint.mk: make "check" depend on public-submodule-commit by default
21717         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21718
21719 2011-01-20  Bruno Haible  <bruno@clisp.org>
21720
21721         mbfile, mbiter: Complete change from 2008-12-21.
21722         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21723         * m4/mbiter.m4 (gl_MBITER): Likewise.
21724
21725 2011-01-20  Jim Meyering  <meyering@redhat.com>
21726
21727         init.sh: insert space between each function name and "()"
21728         * tests/init.sh: Make it a little easier to see that a function's
21729         name is "warn_", and not "warn" when looking at the first part of
21730         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21731
21732 2011-01-20  Jim Meyering  <meyering@redhat.com>
21733
21734         mountlist: clean up code formatting
21735         * lib/mountlist.c (read_file_system_list): Split a long line,
21736         correct bracing style, use NULL in place of "(struct statfs *)0",
21737         don't parenthesize return value, add spaces around "=" and after
21738         ";-in-for-stmt".
21739
21740 2011-01-14  Markus Duft <mduft@gentoo.org>
21741
21742         mountlist: add support for Interix
21743         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21744         Apply statvfs to all entries of /dev/fs.
21745         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21746         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21747
21748 2011-01-20  Jim Meyering  <meyering@redhat.com>
21749
21750         maint.mk: improve the public-submodule-commit rule
21751         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21752         to suppress printing of its commands... unless V=1.
21753         Add git submodule's --quiet option to suppress printing of e.g.,
21754         "Entering gnulib" output.
21755         "cd" into $(srcdir) before running git submodule.
21756
21757 2011-01-20  Bruno Haible  <bruno@clisp.org>
21758
21759         include_next: Fix bug introduced on 2011-01-18.
21760         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21761         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21762         ac_cv_header_... variable if the second argument is not 'check'.
21763         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21764         gl_NEXT_HEADERS_INTERNAL.
21765
21766 2011-01-20  Bruno Haible  <bruno@clisp.org>
21767
21768         Allow the user to avoid the GNULIB_TEST_* macros.
21769         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21770         Suggested by Paul Eggert.
21771
21772 2011-01-14  Jim Meyering  <meyering@redhat.com>
21773
21774         bootstrap: avoid failure when there is no .gitmodules file
21775         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21776         has been assigned to, even when its value is the empty string.
21777         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21778         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21779         Reported by John W. Eaton <jwe@gnu.org>.
21780
21781 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21782
21783         assume <ctype.h>, ..., <time.h> exist
21784         For years gnulib has been assuming the existence of the headers
21785         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21786         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21787         them, since they don't appear to be needed.
21788         * README (Portability guidelines): Document this.
21789         * lib/flock.c: Assume <fcntl.h> exists.
21790         * lib/regex_internal.h: Assume <locale.h> exists.
21791         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21792         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21793         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21794         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21795         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21796         * m4/regex.m4 (gl_REGEX): Likewise.
21797         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21798         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21799         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21800         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21801         * tests/test-argp.c: Likewise.
21802         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21803
21804         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21805         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21806         AA_APPLE_UNIVERSAL_BUILD.  See
21807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21808         * NEWS: Document this.
21809
21810 2011-01-19  Eric Blake  <eblake@redhat.com>
21811
21812         c-stack: assume stack overflow if SA_SIGINFO unsupported
21813         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21814         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21815         sigaction will work.
21816         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21817         behavior match Linux.
21818         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21819
21820         stdbool-tests: accommodate Haiku
21821         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21822
21823         binary-io: fix O_TEXT on Haiku
21824         * modules/binary-io (Depends-on): Add fcntl-h.
21825         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21826         than blindly undefining O_TEXT.
21827         Reported by Scott McCreary.
21828
21829 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21830
21831         include_next: do not check for standard headers like stddef.h
21832
21833         I found this problem when modifying Emacs to use gnulib.
21834         I noticed that it added HAVE_STDDEF_H to config.h, even though
21835         gnulib always assumes <stddef.h> exists as per README and this
21836         symbol is unnecessary.
21837         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21838         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21839         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21840         faster for headers like stddef.h that are known to exist.
21841         (gl_CHECK_NEXT_HEADERS): Use it.
21842         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21843         rather than gl_CHECK_NEXT_HEADERS.
21844         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21845         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21846
21847 2011-01-18  Eric Blake  <eblake@redhat.com>
21848
21849         ansi-c++-opt: skip C++ dependency style if C++ is unused
21850         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21851         tests when we know C++ compilation is not desired.
21852         Reported by Scott McCreary.
21853
21854 2011-01-18  Bruno Haible  <bruno@clisp.org>
21855
21856         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21857         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21858         (main): Perform test also when getrlimit and setrlimit don't exist or
21859         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21860         limiting the address space size using setrlimit, compare the address
21861         space size before and after the the test.
21862         * tests/test-dprintf-posix2.c: Likewise.
21863         * tests/test-fprintf-posix3.sh: Update skip messages.
21864         * tests/test-dprintf-posix2.sh: Likewise.
21865         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21866         * modules/dprintf-posix-tests (Depends-on): Likewise.
21867         Reported by Bruce Korb <bkorb@gnu.org> and
21868         Gary V. Vaughan <gary@gnu.org>.
21869
21870 2011-01-18  Bruno Haible  <bruno@clisp.org>
21871
21872         get-rusage-as: Improvement for Cygwin.
21873         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21874         areas that are merely reserved.
21875
21876 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21877
21878         strftime: remove dependencies on multibyte modules
21879
21880         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21881         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21882         only if __osf__ is defined, and I suspect OSF doesn't need these
21883         other modules.  If my guess is wrong, we'll need to come up with a
21884         variant of strftime that doesn't need the multibyte modules.
21885
21886         I discovered this problem when attempting modify Emacs to use the
21887         strftime module.  With the previous gnulib, this caused Emacs to
21888         need 31 new files, ranging from lib/config.charset to
21889         m4/wint_t.m4.  This was overkill and I expect would be offputting
21890         to the Emacs maintainers.  After this change, only 6 new files are
21891         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21892         stdbool.m4, and tm_gmtoff.m4.
21893
21894         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21895         Suggested by Bruno Haible in
21896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21897         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21898         and do not check for wchar.h.
21899         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21900         (Depends-on): Remove mbrlen, mbsinit, wchar.
21901
21902 2011-01-18  Bruno Haible  <bruno@clisp.org>
21903
21904         Tests for module 'get-rusage-as'.
21905         * modules/get-rusage-as-tests: New file.
21906         * tests/test-get-rusage-as.c: New file.
21907
21908         New module 'get-rusage-as'.
21909         * modules/get-rusage-as: New file.
21910         * lib/resource-ext.h: New file.
21911         * lib/get-rusage-as.c: New file.
21912
21913 2011-01-17  Eric Blake  <eblake@redhat.com>
21914
21915         sigaction: relax license from LGPLv3+ to LGPLv2+
21916         * modules/sigaction (License): Relax to LGPLv2+.
21917
21918 2011-01-14  Bruno Haible  <bruno@clisp.org>
21919
21920         filemode: Make function declarations usable in C++ mode.
21921         * lib/filemode.h: Enclose function declarations in extern "C" block.
21922         Reported by John W. Eaton <jwe@gnu.org>.
21923
21924 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21925
21926         save-cwd: no longer include "xgetcwd.h"
21927         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21928         This avoids a compilation failure in projects that use save-cwd
21929         without also using the xgetcwd module.
21930
21931 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21932
21933         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21934         This is so that a program like Emacs, which needs only dtoastr,
21935         does not have to bother with distributing and compiling ftoastr
21936         and ldtoastr.
21937         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21938         * modules/dtoastr, modules/ldtoastr: New files.
21939         * modules/ftoastr: Now works just for 'float'.
21940         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21941         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21942         dtoastr.c, ldtoastr.c.
21943
21944 2011-01-11  Jim Meyering  <meyering@redhat.com>
21945
21946         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21947         There is no need to work around the lack of the fchdir function,
21948         since gnulib can now provide a replacement when required.
21949         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21950         * modules/save-cwd (Depends-on): Add fchdir.
21951
21952 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21953
21954         openat, save-cwd: avoid xmalloc
21955
21956         This removes a direct (but undocumented) dependency of openat on
21957         xalloc, along with an indirect dependency via save-cwd.  It also
21958         removes a dependency of save-cwd on xgetcwd, and thereby
21959         indirectly on xalloc.  This change causes the openat substitute
21960         to fall back on save_cwd when memory is tight, and for save_cwd to
21961         fail instead of dying when memory is tight, but that's good enough.
21962         Problem and initial idea for fix reported by Bastien Roucaries in
21963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21964
21965         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21966         xalloc.h (for xmalloc).
21967         (openat_proc_name): Use malloc, not xmalloc.
21968         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21969         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21970
21971         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21972         This avoids heap allocation for file names whose lengths are in
21973         the range 512..1023, with the upper bound increasing to at most
21974         4031 depending on the platform's PATH_MAX.  (We do not want
21975         pathmax.h here as it might supply a non-constant PATH_MAX.)
21976         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21977         Perhaps they should be moved to malloca.h?
21978         (OPENAT_BUFFER_SIZE): Use them.
21979
21980 2011-01-10  Bruno Haible  <bruno@clisp.org>
21981
21982         doc: Update users.txt.
21983         * users.txt: Add recutils.
21984
21985 2011-01-09  Karl Berry  <karl@gnu.org>
21986
21987         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21988
21989         * doc/configmake.texi: New file.
21990         * doc/gnulib.texi: Include it.
21991         * modules/configmake: Move documentation from here.
21992
21993 2011-01-09  Bruno Haible  <bruno@clisp.org>
21994
21995         Update to Unicode 6.0.0.
21996         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21997         (get_lbp): Update for Unicode 6.0.0.
21998         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21999         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22000         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22001         U+11001, U+11038..U+11046. Remove U+06DE.
22002         (uc_width): Fix bounds of planes.
22003         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22004         lib/uniwidth/width.c.
22005         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22006         trailing whitespace removed.
22007         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22008         without comments, but with the original copyright notice.
22009         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22010         * lib/unicase/ignorable.h: Likewise.
22011         * lib/unicase/tocasefold.h: Likewise.
22012         * lib/unicase/tolower.h: Likewise.
22013         * lib/unicase/totitle.h: Likewise.
22014         * lib/unicase/toupper.h: Likewise.
22015         * lib/unictype/bidi_of.h: Likewise.
22016         * lib/unictype/blocks.h: Likewise.
22017         * lib/unictype/categ_C.h: Likewise.
22018         * lib/unictype/categ_Cn.h: Likewise.
22019         * lib/unictype/categ_L.h: Likewise.
22020         * lib/unictype/categ_Ll.h: Likewise.
22021         * lib/unictype/categ_Lm.h: Likewise.
22022         * lib/unictype/categ_Lo.h: Likewise.
22023         * lib/unictype/categ_Lu.h: Likewise.
22024         * lib/unictype/categ_M.h: Likewise.
22025         * lib/unictype/categ_Mc.h: Likewise.
22026         * lib/unictype/categ_Me.h: Likewise.
22027         * lib/unictype/categ_Mn.h: Likewise.
22028         * lib/unictype/categ_N.h: Likewise.
22029         * lib/unictype/categ_Nd.h: Likewise.
22030         * lib/unictype/categ_No.h: Likewise.
22031         * lib/unictype/categ_P.h: Likewise.
22032         * lib/unictype/categ_Po.h: Likewise.
22033         * lib/unictype/categ_S.h: Likewise.
22034         * lib/unictype/categ_Sc.h: Likewise.
22035         * lib/unictype/categ_Sk.h: Likewise.
22036         * lib/unictype/categ_Sm.h: Likewise.
22037         * lib/unictype/categ_So.h: Likewise.
22038         * lib/unictype/categ_of.h: Likewise.
22039         * lib/unictype/combining.h: Likewise.
22040         * lib/unictype/ctype_alnum.h: Likewise.
22041         * lib/unictype/ctype_alpha.h: Likewise.
22042         * lib/unictype/ctype_graph.h: Likewise.
22043         * lib/unictype/ctype_lower.h: Likewise.
22044         * lib/unictype/ctype_print.h: Likewise.
22045         * lib/unictype/ctype_punct.h: Likewise.
22046         * lib/unictype/ctype_upper.h: Likewise.
22047         * lib/unictype/decdigit.h: Likewise.
22048         * lib/unictype/digit.h: Likewise.
22049         * lib/unictype/numeric.h: Likewise.
22050         * lib/unictype/pr_alphabetic.h: Likewise.
22051         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22052         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22053         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22054         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22055         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22056         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22057         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22058         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22059         * lib/unictype/pr_case_ignorable.h: Likewise.
22060         * lib/unictype/pr_cased.h: Likewise.
22061         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22062         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22063         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22064         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22065         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22066         * lib/unictype/pr_combining.h: Likewise.
22067         * lib/unictype/pr_composite.h: Likewise.
22068         * lib/unictype/pr_currency_symbol.h: Likewise.
22069         * lib/unictype/pr_decimal_digit.h: Likewise.
22070         * lib/unictype/pr_deprecated.h: Likewise.
22071         * lib/unictype/pr_format_control.h: Likewise.
22072         * lib/unictype/pr_grapheme_base.h: Likewise.
22073         * lib/unictype/pr_grapheme_extend.h: Likewise.
22074         * lib/unictype/pr_grapheme_link.h: Likewise.
22075         * lib/unictype/pr_id_continue.h: Likewise.
22076         * lib/unictype/pr_id_start.h: Likewise.
22077         * lib/unictype/pr_ideographic.h: Likewise.
22078         * lib/unictype/pr_lowercase.h: Likewise.
22079         * lib/unictype/pr_math.h: Likewise.
22080         * lib/unictype/pr_numeric.h: Likewise.
22081         * lib/unictype/pr_other_alphabetic.h: Likewise.
22082         * lib/unictype/pr_other_id_continue.h: Likewise.
22083         * lib/unictype/pr_other_math.h: Likewise.
22084         * lib/unictype/pr_punctuation.h: Likewise.
22085         * lib/unictype/pr_sentence_terminal.h: Likewise.
22086         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22087         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22088         * lib/unictype/pr_unified_ideograph.h: Likewise.
22089         * lib/unictype/pr_uppercase.h: Likewise.
22090         * lib/unictype/pr_xid_continue.h: Likewise.
22091         * lib/unictype/pr_xid_start.h: Likewise.
22092         * lib/unictype/scripts.h: Likewise.
22093         * lib/unictype/scripts_byname.gperf: Likewise.
22094         * lib/unictype/sy_java_ident.h: Likewise.
22095         * lib/unigbrk/gbrkprop.h: Likewise.
22096         * lib/unilbrk/lbrkprop1.h: Likewise.
22097         * lib/unilbrk/lbrkprop2.h: Likewise.
22098         * lib/uninorm/decomposition-table2.h: Likewise.
22099         * lib/uniwbrk/wbrkprop.h: Likewise.
22100         * tests/unicase/test-cased.c: Likewise.
22101         * tests/unicase/test-ignorable.c: Likewise.
22102         * tests/unicase/test-uc_tolower.c: Likewise.
22103         * tests/unicase/test-uc_totitle.c: Likewise.
22104         * tests/unicase/test-uc_toupper.c: Likewise.
22105         * tests/unictype/test-categ_C.c: Likewise.
22106         * tests/unictype/test-categ_Cn.c: Likewise.
22107         * tests/unictype/test-categ_L.c: Likewise.
22108         * tests/unictype/test-categ_Ll.c: Likewise.
22109         * tests/unictype/test-categ_Lm.c: Likewise.
22110         * tests/unictype/test-categ_Lo.c: Likewise.
22111         * tests/unictype/test-categ_Lu.c: Likewise.
22112         * tests/unictype/test-categ_M.c: Likewise.
22113         * tests/unictype/test-categ_Mc.c: Likewise.
22114         * tests/unictype/test-categ_Me.c: Likewise.
22115         * tests/unictype/test-categ_Mn.c: Likewise.
22116         * tests/unictype/test-categ_N.c: Likewise.
22117         * tests/unictype/test-categ_Nd.c: Likewise.
22118         * tests/unictype/test-categ_No.c: Likewise.
22119         * tests/unictype/test-categ_P.c: Likewise.
22120         * tests/unictype/test-categ_Po.c: Likewise.
22121         * tests/unictype/test-categ_S.c: Likewise.
22122         * tests/unictype/test-categ_Sc.c: Likewise.
22123         * tests/unictype/test-categ_Sk.c: Likewise.
22124         * tests/unictype/test-categ_Sm.c: Likewise.
22125         * tests/unictype/test-categ_So.c: Likewise.
22126         * tests/unictype/test-ctype_alnum.c: Likewise.
22127         * tests/unictype/test-ctype_alpha.c: Likewise.
22128         * tests/unictype/test-ctype_graph.c: Likewise.
22129         * tests/unictype/test-ctype_lower.c: Likewise.
22130         * tests/unictype/test-ctype_print.c: Likewise.
22131         * tests/unictype/test-ctype_punct.c: Likewise.
22132         * tests/unictype/test-ctype_upper.c: Likewise.
22133         * tests/unictype/test-decdigit.h: Likewise.
22134         * tests/unictype/test-digit.h: Likewise.
22135         * tests/unictype/test-numeric.h: Likewise.
22136         * tests/unictype/test-pr_alphabetic.c: Likewise.
22137         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22138         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22139         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22140         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22141         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22142         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22143         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22144         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22145         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22146         * tests/unictype/test-pr_cased.c: Likewise.
22147         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22148         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22149         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22150         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22151         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22152         * tests/unictype/test-pr_combining.c: Likewise.
22153         * tests/unictype/test-pr_composite.c: Likewise.
22154         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22155         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22156         * tests/unictype/test-pr_deprecated.c: Likewise.
22157         * tests/unictype/test-pr_format_control.c: Likewise.
22158         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22159         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22160         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22161         * tests/unictype/test-pr_id_continue.c: Likewise.
22162         * tests/unictype/test-pr_id_start.c: Likewise.
22163         * tests/unictype/test-pr_ideographic.c: Likewise.
22164         * tests/unictype/test-pr_lowercase.c: Likewise.
22165         * tests/unictype/test-pr_math.c: Likewise.
22166         * tests/unictype/test-pr_numeric.c: Likewise.
22167         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22168         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22169         * tests/unictype/test-pr_other_math.c: Likewise.
22170         * tests/unictype/test-pr_punctuation.c: Likewise.
22171         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22172         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22173         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22174         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22175         * tests/unictype/test-pr_uppercase.c: Likewise.
22176         * tests/unictype/test-pr_xid_continue.c: Likewise.
22177         * tests/unictype/test-pr_xid_start.c: Likewise.
22178         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22179         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22180         changes.
22181         * lib/unictype/categ_Cc.h: Likewise.
22182         * lib/unictype/categ_Cf.h: Likewise.
22183         * lib/unictype/categ_Co.h: Likewise.
22184         * lib/unictype/categ_Cs.h: Likewise.
22185         * lib/unictype/categ_Lt.h: Likewise.
22186         * lib/unictype/categ_Nl.h: Likewise.
22187         * lib/unictype/categ_Pc.h: Likewise.
22188         * lib/unictype/categ_Pd.h: Likewise.
22189         * lib/unictype/categ_Pe.h: Likewise.
22190         * lib/unictype/categ_Pf.h: Likewise.
22191         * lib/unictype/categ_Pi.h: Likewise.
22192         * lib/unictype/categ_Ps.h: Likewise.
22193         * lib/unictype/categ_Z.h: Likewise.
22194         * lib/unictype/categ_Zl.h: Likewise.
22195         * lib/unictype/categ_Zp.h: Likewise.
22196         * lib/unictype/categ_Zs.h: Likewise.
22197         * lib/unictype/ctype_blank.h: Likewise.
22198         * lib/unictype/ctype_cntrl.h: Likewise.
22199         * lib/unictype/ctype_digit.h: Likewise.
22200         * lib/unictype/ctype_space.h: Likewise.
22201         * lib/unictype/ctype_xdigit.h: Likewise.
22202         * lib/unictype/mirror.h: Likewise.
22203         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22204         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22205         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22206         * lib/unictype/pr_bidi_control.h: Likewise.
22207         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22208         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22209         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22210         * lib/unictype/pr_bidi_pdf.h: Likewise.
22211         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22212         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22213         * lib/unictype/pr_dash.h: Likewise.
22214         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22215         * lib/unictype/pr_diacritic.h: Likewise.
22216         * lib/unictype/pr_extender.h: Likewise.
22217         * lib/unictype/pr_hex_digit.h: Likewise.
22218         * lib/unictype/pr_hyphen.h: Likewise.
22219         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22220         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22221         * lib/unictype/pr_ignorable_control.h: Likewise.
22222         * lib/unictype/pr_iso_control.h: Likewise.
22223         * lib/unictype/pr_join_control.h: Likewise.
22224         * lib/unictype/pr_left_of_pair.h: Likewise.
22225         * lib/unictype/pr_line_separator.h: Likewise.
22226         * lib/unictype/pr_logical_order_exception.h: Likewise.
22227         * lib/unictype/pr_non_break.h: Likewise.
22228         * lib/unictype/pr_not_a_character.h: Likewise.
22229         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22230         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22231         * lib/unictype/pr_other_id_start.h: Likewise.
22232         * lib/unictype/pr_other_lowercase.h: Likewise.
22233         * lib/unictype/pr_other_uppercase.h: Likewise.
22234         * lib/unictype/pr_paired_punctuation.h: Likewise.
22235         * lib/unictype/pr_paragraph_separator.h: Likewise.
22236         * lib/unictype/pr_pattern_syntax.h: Likewise.
22237         * lib/unictype/pr_pattern_white_space.h: Likewise.
22238         * lib/unictype/pr_private_use.h: Likewise.
22239         * lib/unictype/pr_quotation_mark.h: Likewise.
22240         * lib/unictype/pr_radical.h: Likewise.
22241         * lib/unictype/pr_soft_dotted.h: Likewise.
22242         * lib/unictype/pr_space.h: Likewise.
22243         * lib/unictype/pr_titlecase.h: Likewise.
22244         * lib/unictype/pr_variation_selector.h: Likewise.
22245         * lib/unictype/pr_white_space.h: Likewise.
22246         * lib/unictype/pr_zero_width.h: Likewise.
22247         * lib/unictype/sy_c_ident.h: Likewise.
22248         * lib/unictype/sy_c_whitespace.h: Likewise.
22249         * lib/unictype/sy_java_whitespace.h: Likewise.
22250         * lib/uninorm/composition-table.gperf: Likewise.
22251         * lib/uninorm/decomposition-table1.h: Likewise.
22252         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22253         LB8.
22254         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22255         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22256         * modules/unictype/*: Bump version number of expected libunistring
22257         version.
22258
22259 2011-01-09  Bruno Haible  <bruno@clisp.org>
22260
22261         Update to Unicode 5.2.0.
22262         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22263         trailing whitespace removed.
22264
22265 2011-01-09  Bruno Haible  <bruno@clisp.org>
22266
22267         New Unicode character properties, from Unicode 5.2.0.
22268         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22269         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22270         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22271         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22272         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22273         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22274         uc_is_property_cased, uc_is_property_case_ignorable,
22275         uc_is_property_changes_when_lowercased,
22276         uc_is_property_changes_when_uppercased,
22277         uc_is_property_changes_when_titlecased,
22278         uc_is_property_changes_when_casefolded,
22279         uc_is_property_changes_when_casemapped): New declarations.
22280         * lib/unictype/pr_byname.gperf: Add the new properties.
22281         * modules/unictype/property-byname (Depends-on): Depend on the new
22282         properties modules.
22283         * modules/unictype/property-all (Depends-on): Likewise.
22284         * MODULES.html.sh (Unicode string functions): Add
22285         unictype/property-case-ignorable, unictype/property-cased,
22286         unictype/property-changes-when-casefolded,
22287         unictype/property-changes-when-casemapped,
22288         unictype/property-changes-when-lowercased,
22289         unictype/property-changes-when-titlecased,
22290         unictype/property-changes-when-uppercased.
22291
22292         New module 'unictype/property-changes-when-casemapped'.
22293         * modules/unictype/property-changes-when-casemapped: New file.
22294         * lib/unictype/pr_changes_when_casemapped.c: New file.
22295         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22296         generated by gen-uni-tables.
22297         * modules/unictype/property-changes-when-casemapped-tests: New file.
22298         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22299         automatically generated by gen-uni-tables.
22300
22301         New module 'unictype/property-changes-when-casefolded'.
22302         * modules/unictype/property-changes-when-casefolded: New file.
22303         * lib/unictype/pr_changes_when_casefolded.c: New file.
22304         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22305         generated by gen-uni-tables.
22306         * modules/unictype/property-changes-when-casefolded-tests: New file.
22307         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22308         automatically generated by gen-uni-tables.
22309
22310         New module 'unictype/property-changes-when-titlecased'.
22311         * modules/unictype/property-changes-when-titlecased: New file.
22312         * lib/unictype/pr_changes_when_titlecased.c: New file.
22313         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22314         generated by gen-uni-tables.
22315         * modules/unictype/property-changes-when-titlecased-tests: New file.
22316         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22317         automatically generated by gen-uni-tables.
22318
22319         New module 'unictype/property-changes-when-uppercased'.
22320         * modules/unictype/property-changes-when-uppercased: New file.
22321         * lib/unictype/pr_changes_when_uppercased.c: New file.
22322         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22323         generated by gen-uni-tables.
22324         * modules/unictype/property-changes-when-uppercased-tests: New file.
22325         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22326         automatically generated by gen-uni-tables.
22327
22328         New module 'unictype/property-changes-when-lowercased'.
22329         * modules/unictype/property-changes-when-lowercased: New file.
22330         * lib/unictype/pr_changes_when_lowercased.c: New file.
22331         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22332         generated by gen-uni-tables.
22333         * modules/unictype/property-changes-when-lowercased-tests: New file.
22334         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22335         automatically generated by gen-uni-tables.
22336
22337         New module 'unictype/property-case-ignorable'.
22338         * modules/unictype/property-case-ignorable: New file.
22339         * lib/unictype/pr_case_ignorable.c: New file.
22340         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22341         by gen-uni-tables.
22342         * modules/unictype/property-case-ignorable-tests: New file.
22343         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22344         generated by gen-uni-tables.
22345
22346         New module 'unictype/property-cased'.
22347         * modules/unictype/property-cased: New file.
22348         * lib/unictype/pr_cased.c: New file.
22349         * lib/unictype/pr_cased.h: New file, automatically generated by
22350         gen-uni-tables.
22351         * modules/unictype/property-cased-tests: New file.
22352         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22353         gen-uni-tables.
22354
22355 2011-01-09  Bruno Haible  <bruno@clisp.org>
22356
22357         Update to Unicode 5.2.0.
22358         * lib/gen-uni-tables.c (output_predicate, output_category,
22359         output_combclass, output_bidi_category, output_decimal_digit_test,
22360         output_decimal_digit, output_digit_test, output_digit,
22361         output_numeric_test, output_numeric, output_mirror, output_scripts,
22362         output_scripts_byname, output_blocks, output_ident_category): Fix
22363         comment header.
22364         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22365         get_wbp.
22366         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22367         items.
22368         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22369         Changes_When_Lowercased, Changes_When_Uppercased,
22370         Changes_When_Titlecased, Changes_When_Casefolded,
22371         Changes_When_Casemapped.
22372         (is_property_alphabetic, is_property_default_ignorable_code_point):
22373         Update for Unicode 5.2.0.
22374         (is_property_cased, is_property_case_ignorable,
22375         is_property_changes_when_lowercased,
22376         is_property_changes_when_uppercased,
22377         is_property_changes_when_titlecased,
22378         is_property_changes_when_casefolded,
22379         is_property_changes_when_casemapped): New functions.
22380         (output_properties): Output also the properties cased, case_ignorable,
22381         changes_when_lowercased, changes_when_uppercased,
22382         changes_when_titlecased, changes_when_casefolded,
22383         changes_when_casemapped.
22384         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22385         Unicode TR#11 revision 17 -> 19.
22386         (LBP_CP): New enumeration value.
22387         (LBP_*): Adjust values accordingly.
22388         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22389         TR#14 revision 22 -> 24.
22390         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22391         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22392         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22393         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22394         is_WBP_MIDLETTER.
22395         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22396         the code1 and code2 of each composition rule.
22397         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22398         * lib/unicase/ignorable.h: Likewise.
22399         * lib/unicase/tocasefold.h: Likewise.
22400         * lib/unicase/tolower.h: Likewise.
22401         * lib/unicase/totitle.h: Likewise.
22402         * lib/unicase/toupper.h: Likewise.
22403         * lib/unictype/bidi_of.h: Likewise.
22404         * lib/unictype/blocks.h: Likewise.
22405         * lib/unictype/categ_C.h: Likewise.
22406         * lib/unictype/categ_Cf.h: Likewise.
22407         * lib/unictype/categ_Cn.h: Likewise.
22408         * lib/unictype/categ_L.h: Likewise.
22409         * lib/unictype/categ_Ll.h: Likewise.
22410         * lib/unictype/categ_Lm.h: Likewise.
22411         * lib/unictype/categ_Lo.h: Likewise.
22412         * lib/unictype/categ_Lu.h: Likewise.
22413         * lib/unictype/categ_M.h: Likewise.
22414         * lib/unictype/categ_Mc.h: Likewise.
22415         * lib/unictype/categ_Mn.h: Likewise.
22416         * lib/unictype/categ_N.h: Likewise.
22417         * lib/unictype/categ_Nd.h: Likewise.
22418         * lib/unictype/categ_Nl.h: Likewise.
22419         * lib/unictype/categ_No.h: Likewise.
22420         * lib/unictype/categ_P.h: Likewise.
22421         * lib/unictype/categ_Pd.h: Likewise.
22422         * lib/unictype/categ_Po.h: Likewise.
22423         * lib/unictype/categ_S.h: Likewise.
22424         * lib/unictype/categ_Sc.h: Likewise.
22425         * lib/unictype/categ_So.h: Likewise.
22426         * lib/unictype/categ_of.h: Likewise.
22427         * lib/unictype/combining.h: Likewise.
22428         * lib/unictype/ctype_alnum.h: Likewise.
22429         * lib/unictype/ctype_alpha.h: Likewise.
22430         * lib/unictype/ctype_graph.h: Likewise.
22431         * lib/unictype/ctype_lower.h: Likewise.
22432         * lib/unictype/ctype_print.h: Likewise.
22433         * lib/unictype/ctype_punct.h: Likewise.
22434         * lib/unictype/ctype_upper.h: Likewise.
22435         * lib/unictype/decdigit.h: Likewise.
22436         * lib/unictype/digit.h: Likewise.
22437         * lib/unictype/numeric.h: Likewise.
22438         * lib/unictype/pr_alphabetic.h: Likewise.
22439         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22440         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22441         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22442         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22443         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22444         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22445         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22446         * lib/unictype/pr_combining.h: Likewise.
22447         * lib/unictype/pr_composite.h: Likewise.
22448         * lib/unictype/pr_currency_symbol.h: Likewise.
22449         * lib/unictype/pr_dash.h: Likewise.
22450         * lib/unictype/pr_decimal_digit.h: Likewise.
22451         * lib/unictype/pr_deprecated.h: Likewise.
22452         * lib/unictype/pr_diacritic.h: Likewise.
22453         * lib/unictype/pr_extender.h: Likewise.
22454         * lib/unictype/pr_grapheme_base.h: Likewise.
22455         * lib/unictype/pr_grapheme_extend.h: Likewise.
22456         * lib/unictype/pr_grapheme_link.h: Likewise.
22457         * lib/unictype/pr_id_continue.h: Likewise.
22458         * lib/unictype/pr_id_start.h: Likewise.
22459         * lib/unictype/pr_ideographic.h: Likewise.
22460         * lib/unictype/pr_ignorable_control.h: Likewise.
22461         * lib/unictype/pr_logical_order_exception.h: Likewise.
22462         * lib/unictype/pr_lowercase.h: Likewise.
22463         * lib/unictype/pr_numeric.h: Likewise.
22464         * lib/unictype/pr_other_alphabetic.h: Likewise.
22465         * lib/unictype/pr_punctuation.h: Likewise.
22466         * lib/unictype/pr_sentence_terminal.h: Likewise.
22467         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22468         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22469         * lib/unictype/pr_unified_ideograph.h: Likewise.
22470         * lib/unictype/pr_uppercase.h: Likewise.
22471         * lib/unictype/pr_xid_continue.h: Likewise.
22472         * lib/unictype/pr_xid_start.h: Likewise.
22473         * lib/unictype/pr_zero_width.h: Likewise.
22474         * lib/unictype/scripts.h: Likewise.
22475         * lib/unictype/scripts_byname.gperf: Likewise.
22476         * lib/unictype/sy_java_ident.h: Likewise.
22477         * lib/unigbrk/gbrkprop.h: Likewise.
22478         * lib/unilbrk/lbrkprop1.h: Likewise.
22479         * lib/unilbrk/lbrkprop2.h: Likewise.
22480         * lib/unilbrk/lbrktables.h: Likewise.
22481         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22482         LBP_CP. Implement rule LB30.
22483         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22484         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22485         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22486         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22487         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22488         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22489         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22490         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22491         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22492         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22493         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22494         bits instead of 16 bits in the code1 and code2 of each composition
22495         rule.
22496         (uc_composition): Update for Unicode 5.2.0.
22497         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22498         * lib/uninorm/decomposition-table2.h: Likewise.
22499         * lib/uniwbrk/wbrkprop.h: Likewise.
22500         * tests/unicase/test-cased.c: Likewise.
22501         * tests/unicase/test-ignorable.c: Likewise.
22502         * tests/unicase/test-uc_tolower.c: Likewise.
22503         * tests/unicase/test-uc_totitle.c: Likewise.
22504         * tests/unicase/test-uc_toupper.c: Likewise.
22505         * tests/unictype/test-categ_C.c: Likewise.
22506         * tests/unictype/test-categ_Cf.c: Likewise.
22507         * tests/unictype/test-categ_Cn.c: Likewise.
22508         * tests/unictype/test-categ_L.c: Likewise.
22509         * tests/unictype/test-categ_Ll.c: Likewise.
22510         * tests/unictype/test-categ_Lm.c: Likewise.
22511         * tests/unictype/test-categ_Lo.c: Likewise.
22512         * tests/unictype/test-categ_Lu.c: Likewise.
22513         * tests/unictype/test-categ_M.c: Likewise.
22514         * tests/unictype/test-categ_Mc.c: Likewise.
22515         * tests/unictype/test-categ_Mn.c: Likewise.
22516         * tests/unictype/test-categ_N.c: Likewise.
22517         * tests/unictype/test-categ_Nd.c: Likewise.
22518         * tests/unictype/test-categ_Nl.c: Likewise.
22519         * tests/unictype/test-categ_No.c: Likewise.
22520         * tests/unictype/test-categ_P.c: Likewise.
22521         * tests/unictype/test-categ_Pd.c: Likewise.
22522         * tests/unictype/test-categ_Po.c: Likewise.
22523         * tests/unictype/test-categ_S.c: Likewise.
22524         * tests/unictype/test-categ_Sc.c: Likewise.
22525         * tests/unictype/test-categ_So.c: Likewise.
22526         * tests/unictype/test-ctype_alnum.c: Likewise.
22527         * tests/unictype/test-ctype_alpha.c: Likewise.
22528         * tests/unictype/test-ctype_graph.c: Likewise.
22529         * tests/unictype/test-ctype_lower.c: Likewise.
22530         * tests/unictype/test-ctype_print.c: Likewise.
22531         * tests/unictype/test-ctype_punct.c: Likewise.
22532         * tests/unictype/test-ctype_upper.c: Likewise.
22533         * tests/unictype/test-decdigit.h: Likewise.
22534         * tests/unictype/test-digit.h: Likewise.
22535         * tests/unictype/test-numeric.h: Likewise.
22536         * tests/unictype/test-pr_alphabetic.c: Likewise.
22537         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22538         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22539         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22540         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22541         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22542         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22543         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22544         * tests/unictype/test-pr_combining.c: Likewise.
22545         * tests/unictype/test-pr_composite.c: Likewise.
22546         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22547         * tests/unictype/test-pr_dash.c: Likewise.
22548         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22549         * tests/unictype/test-pr_deprecated.c: Likewise.
22550         * tests/unictype/test-pr_diacritic.c: Likewise.
22551         * tests/unictype/test-pr_extender.c: Likewise.
22552         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22553         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22554         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22555         * tests/unictype/test-pr_id_continue.c: Likewise.
22556         * tests/unictype/test-pr_id_start.c: Likewise.
22557         * tests/unictype/test-pr_ideographic.c: Likewise.
22558         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22559         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22560         * tests/unictype/test-pr_lowercase.c: Likewise.
22561         * tests/unictype/test-pr_numeric.c: Likewise.
22562         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22563         * tests/unictype/test-pr_punctuation.c: Likewise.
22564         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22565         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22566         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22567         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22568         * tests/unictype/test-pr_uppercase.c: Likewise.
22569         * tests/unictype/test-pr_xid_continue.c: Likewise.
22570         * tests/unictype/test-pr_xid_start.c: Likewise.
22571         * tests/unictype/test-pr_zero_width.c: Likewise.
22572         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22573         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22574         changed behaviour: line breaking is now disallowed between a letter
22575         or '=' and '('.
22576         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22577         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22578         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22579         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22580         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22581         lib/uniwidth/width.c.
22582         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22583         without comments, but with the original copyright notice.
22584         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22585         changes.
22586         * lib/unictype/categ_Cc.h: Likewise.
22587         * lib/unictype/categ_Co.h: Likewise.
22588         * lib/unictype/categ_Cs.h: Likewise.
22589         * lib/unictype/categ_Lt.h: Likewise.
22590         * lib/unictype/categ_Me.h: Likewise.
22591         * lib/unictype/categ_Pc.h: Likewise.
22592         * lib/unictype/categ_Pe.h: Likewise.
22593         * lib/unictype/categ_Pf.h: Likewise.
22594         * lib/unictype/categ_Pi.h: Likewise.
22595         * lib/unictype/categ_Ps.h: Likewise.
22596         * lib/unictype/categ_Sk.h: Likewise.
22597         * lib/unictype/categ_Sm.h: Likewise.
22598         * lib/unictype/categ_Z.h: Likewise.
22599         * lib/unictype/categ_Zl.h: Likewise.
22600         * lib/unictype/categ_Zp.h: Likewise.
22601         * lib/unictype/categ_Zs.h: Likewise.
22602         * lib/unictype/ctype_blank.h: Likewise.
22603         * lib/unictype/ctype_cntrl.h: Likewise.
22604         * lib/unictype/ctype_digit.h: Likewise.
22605         * lib/unictype/ctype_space.h: Likewise.
22606         * lib/unictype/ctype_xdigit.h: Likewise.
22607         * lib/unictype/mirror.h: Likewise.
22608         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22609         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22610         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22611         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22612         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22613         * lib/unictype/pr_bidi_control.h: Likewise.
22614         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22615         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22616         * lib/unictype/pr_bidi_pdf.h: Likewise.
22617         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22618         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22619         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22620         * lib/unictype/pr_format_control.h: Likewise.
22621         * lib/unictype/pr_hex_digit.h: Likewise.
22622         * lib/unictype/pr_hyphen.h: Likewise.
22623         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22624         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22625         * lib/unictype/pr_iso_control.h: Likewise.
22626         * lib/unictype/pr_join_control.h: Likewise.
22627         * lib/unictype/pr_left_of_pair.h: Likewise.
22628         * lib/unictype/pr_line_separator.h: Likewise.
22629         * lib/unictype/pr_math.h: Likewise.
22630         * lib/unictype/pr_non_break.h: Likewise.
22631         * lib/unictype/pr_not_a_character.h: Likewise.
22632         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22633         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22634         * lib/unictype/pr_other_id_continue.h: Likewise.
22635         * lib/unictype/pr_other_id_start.h: Likewise.
22636         * lib/unictype/pr_other_lowercase.h: Likewise.
22637         * lib/unictype/pr_other_math.h: Likewise.
22638         * lib/unictype/pr_other_uppercase.h: Likewise.
22639         * lib/unictype/pr_paired_punctuation.h: Likewise.
22640         * lib/unictype/pr_paragraph_separator.h: Likewise.
22641         * lib/unictype/pr_pattern_syntax.h: Likewise.
22642         * lib/unictype/pr_pattern_white_space.h: Likewise.
22643         * lib/unictype/pr_private_use.h: Likewise.
22644         * lib/unictype/pr_quotation_mark.h: Likewise.
22645         * lib/unictype/pr_radical.h: Likewise.
22646         * lib/unictype/pr_soft_dotted.h: Likewise.
22647         * lib/unictype/pr_space.h: Likewise.
22648         * lib/unictype/pr_titlecase.h: Likewise.
22649         * lib/unictype/pr_variation_selector.h: Likewise.
22650         * lib/unictype/pr_white_space.h: Likewise.
22651         * lib/unictype/sy_c_ident.h: Likewise.
22652         * lib/unictype/sy_c_whitespace.h: Likewise.
22653         * lib/unictype/sy_java_whitespace.h: Likewise.
22654         * modules/uni*/*: Bump version number of expected libunistring version.
22655         Reported by Simon Josefsson.
22656
22657 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22658
22659         useless-if-before-free: fix typo in --help and make the internal,
22660         automatic version date update process work once again.
22661         --help output contained a NUL character instead of the
22662         backslash-zero that was intended.  Also, the "must lie within
22663         the first 8 lines" line is on line 9, and hence not getting
22664         automatically updated.
22665         * build-aux/useless-if-before-free: Fix the former by adding a
22666         backslash, and the latter by condensing the three lines of what-it-does
22667         to a single line, leaving one line of slack for the future.
22668
22669 2011-01-09  Bruno Haible  <bruno@clisp.org>
22670
22671         uniwidth/width: Fix width of U+1D173..U+1D17A.
22672         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22673         symbolic_width, output_width_property_test): New functions.
22674         (main): Invoke output_nonspacing_property, output_width_property_test.
22675         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22676         U+1D173..U+1D17A.
22677         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22678         1.
22679         * modules/uniwidth/*: Bump version number of expected libunistring
22680         version.
22681         * modules/unilbrk/*: Likewise.
22682
22683 2011-01-08  Bruno Haible  <bruno@clisp.org>
22684
22685         uninorm tests: Preserve copyright of Unicode data file.
22686         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22687         Mention modifications.
22688
22689 2011-01-08  Bruno Haible  <bruno@clisp.org>
22690
22691         gen-uni-tables: Prepare for Unicode 5.2.0.
22692         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22693         (debug_output_lbp, output_lbp): Update.
22694
22695 2011-01-08  Bruno Haible  <bruno@clisp.org>
22696
22697         unilbrk: Clarify gen-uni-tables.c code.
22698         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22699         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22700         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22701
22702 2011-01-07  Bruno Haible  <bruno@clisp.org>
22703
22704         strtod: Restore errno when successfully parsing Infinity or NaN.
22705         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22706         restore the original errno.
22707
22708 2011-01-07  Bruno Haible  <bruno@clisp.org>
22709
22710         remove test: Avoid failure on HP-UX 11.
22711         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22712
22713 2011-01-07  Bruno Haible  <bruno@clisp.org>
22714
22715         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22716         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22717         error code.
22718
22719 2011-01-07  Pádraig Brady <P@draigBrady.com>
22720
22721         ignore-value: fixup comments, and add Eric Blake
22722         as an author since he rewrote the macros.
22723         * lib/ignore-value.h (ignore_value):  State that
22724         we now support aggregates.  Also specify exactly
22725         when the GCC warn_unused_result feature was added.
22726
22727 2011-01-06  Eric Blake  <eblake@redhat.com>
22728
22729         ignore-value: support aggregate types
22730         * lib/ignore-value.h (ignore_value): Provide separate gcc
22731         definition.
22732         * modules/ignore-value-tests: New test module.
22733         * tests/test-ignore-value.c: New test.
22734
22735         maint.mk: improve sc_prohibit_strcmp regex
22736         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22737         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22738         definition of STRNEQ.
22739
22740         signal: work around Haiku issue with SIGBUS
22741         * lib/siglist.h: Add comment.
22742         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22743         strsignal's favoring of SIGSEGV.
22744         * tests/test-signal.c (main): Avoid test failure.
22745         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22746         Reported by Scott McCreary.
22747
22748         maint.mk: add pre-release check to ensure submodule commits are public
22749         * top/maint.mk (public-submodule-commit): New rule.
22750         (submodule-checks): New variable.
22751         (alpha beta stable): Depend on the variable.
22752
22753 2011-01-05  Pádraig Brady <P@draigBrady.com>
22754         and Jim Meyering  <meyering@redhat.com>
22755
22756         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22757         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22758         (ATTRIBUTE_DEPRECATED): Define.
22759         (_ignore_case): New function.
22760         (ignore_value): New macro, to replace the old function.
22761         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22762         * modules/ignore-value (Depends-on): Add stdint.
22763
22764 2011-01-04  Eric Blake  <eblake@redhat.com>
22765
22766         doc: regenerate INSTALL
22767         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22768         @firstparagraphindent support, now that autoconf dropped it.
22769         (INSTALL_PRELUDE): Reinstate old macro.
22770         * doc/install.texi: Resync from autoconf.
22771         * doc/INSTALL: Reflect recent autoconf update.
22772         * doc/INSTALL.ISO: Likewise.
22773         * doc/INSTALL.UTF-8: Likewise.
22774         Reported by Karl Berry.
22775
22776 2011-01-04  Bruce Korb  <address@hidden>
22777
22778         git-version-gen: avoid a sub-shell
22779         * build-aux/git-version-gen: Redirect stderr in `...` via
22780         "exec 2>...", rather than via an added sub-shell.
22781
22782 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22783
22784         git-version-gen: use (...) rather than sh -c '...'
22785         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22786         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22787
22788 2011-01-03  Jim Meyering  <meyering@redhat.com>
22789
22790         git-version-gen: convert leading TABs to spaces
22791         * build-aux/git-version-gen: Expand leading TABs.
22792
22793         git-version-gen: handle failed "git rev-list"
22794         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22795         from git and proceeding as if it had succeeded but printed no SHA1
22796         checksums, suppress the diagnostic and handle the failure.
22797         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22798
22799         git-version-gen: include command name in one more diagnostic
22800         * build-aux/git-version-gen: When the required .tarball-version file
22801         was missing or unreadable, you might see the diagnostic from "cat",
22802         but no trace of the name of the invoking script.  Now, you still see
22803         the diagnostic from cat, but also get one from "git-version-gen: ".
22804         Inspired by a patch from Bruce Korb.
22805
22806         update-copyright: adjust test to match changed code
22807         * tests/test-update-copyright.sh: Change test's expected output
22808         to match new actual output.
22809
22810 2011-01-02  Bruno Haible  <bruno@clisp.org>
22811
22812         getlogin_r: Avoid test failure on HP-UX 11.
22813         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22814         ERANGE when the second argument is zero.
22815         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22816         portability problem.
22817
22818 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22819
22820         * build-aux/update-copyright: doc Simon's changes
22821
22822 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22823
22824         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22825         environment variable.
22826
22827 2011-01-02  Bruno Haible  <bruno@clisp.org>
22828
22829         unigbrk: Avoid gcc warnings.
22830         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22831         unused variable.
22832         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22833         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22834         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22835         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22836         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22837         Change type of first argument to 'const char *'.
22838         (main): Remove unused variable.
22839         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22840         type of first argument to 'const char *'.
22841         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22842         Likewise.
22843         (main): Change type of variable 's'.
22844         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22845         to 'int'.
22846
22847 2011-01-02  Bruno Haible  <bruno@clisp.org>
22848
22849         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22850         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22851         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22852         bug.
22853         * lib/pwrite.c: Undo 2010-12-31 patch.
22854         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22855
22856 2011-01-02  Bruno Haible  <bruno@clisp.org>
22857
22858         pread: Fix test whether it works.
22859         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22860
22861 2011-01-02  Bruno Haible  <bruno@clisp.org>
22862
22863         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22864         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22865         ends in "6". Don't require a specific month name. Try also the locale
22866         names found on HP-UX 11 and Solaris 7.
22867
22868 2011-01-02  Bruno Haible  <bruno@clisp.org>
22869
22870         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22871         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22872         C linkage.
22873         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22874
22875 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22876
22877         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22878         for consistency, since the "cluster" term is not used elsewhere.
22879         * lib/unigbrk.in.h: Update name.
22880         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22881         * lib/unigbrk/u16-grapheme-next.c: Update name.
22882         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22883         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22884         * lib/unigbrk/u32-grapheme-next.c: Update name.
22885         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22886         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22887         * lib/unigbrk/u8-grapheme-next.c: Update name.
22888         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22889         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22890         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22891         Suggested by Bruno Haible.
22892
22893 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22894
22895         Remove module 'u8-grapheme-len' as too redundant with
22896         'u8-grapheme-next'.
22897         * modules/unigbrk/u8-grapheme-len: Delete file.
22898         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22899         * lib/unigbrk.in.h: Remove prototype for deleted function.
22900         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22901         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22902
22903         Remove module 'u16-grapheme-len' as too redundant with
22904         'u16-grapheme-next'.
22905         * modules/unigbrk/u16-grapheme-len: Delete file.
22906         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22907         * lib/unigbrk.in.h: Remove prototype for deleted function.
22908         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22909         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22910
22911         Remove module 'u32-grapheme-len' as too redundant with
22912         'u32-grapheme-next'.
22913         * modules/unigbrk/u32-grapheme-len: Delete file.
22914         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22915         * lib/unigbrk.in.h: Remove prototype for deleted function.
22916         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22917         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22918
22919         Suggested by Bruno Haible.
22920
22921 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22922
22923         * unigbrk.in.h: Fix typo: "ben" => "been".
22924         Reported by Bruno Haible.
22925
22926 2011-01-01  Jim Meyering  <meyering@redhat.com>
22927
22928         maint: update almost all copyright ranges to include 2011
22929         Run the new "make update-copyright" rule.
22930
22931 2011-01-01  Jim Meyering  <meyering@redhat.com>
22932
22933         maint: update-copyright: exempt doc/INSTALL*
22934         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22935         since they are generated.  Suggested by Bruno Haible.
22936
22937 2011-01-01  Jim Meyering  <meyering@redhat.com>
22938
22939         maint: refine the update-copyright rule
22940         * Makefile (update-copyright): Also exclude any file that includes
22941         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22942         code that merely generates the comment.
22943
22944 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22945
22946         New module 'u8-grapheme-len'.
22947         * modules/unigbrk/u8-grapheme-len: New file.
22948         * modules/unigbrk/u8-grapheme-len-tests: New file.
22949         * lib/unigbrk.in.h: Add prototype for new function.
22950         * lib/unigbrk/u8-grapheme-len.c: New file.
22951         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22952
22953         New module 'u16-grapheme-len'.
22954         * modules/unigbrk/u16-grapheme-len: New file.
22955         * modules/unigbrk/u16-grapheme-len-tests: New file.
22956         * lib/unigbrk.in.h: Add prototype for new function.
22957         * lib/unigbrk/u16-grapheme-len.c: New file.
22958         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22959
22960         New module 'u32-grapheme-len'.
22961         * modules/unigbrk/u32-grapheme-len: New file.
22962         * modules/unigbrk/u32-grapheme-len-tests: New file.
22963         * lib/unigbrk.in.h: Add prototype for new function.
22964         * lib/unigbrk/u32-grapheme-len.c: New file.
22965         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22966
22967         New module 'u8-grapheme-next'.
22968         * modules/unigbrk/u8-grapheme-next: New file.
22969         * modules/unigbrk/u8-grapheme-next-tests: New file.
22970         * lib/unigbrk.in.h: Add prototype for new function.
22971         * lib/unigbrk/u8-grapheme-next.c: New file.
22972         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22973
22974         New module 'u16-grapheme-next'.
22975         * modules/unigbrk/u16-grapheme-next: New file.
22976         * modules/unigbrk/u16-grapheme-next-tests: New file.
22977         * lib/unigbrk.in.h: Add prototype for new function.
22978         * lib/unigbrk/u16-grapheme-next.c: New file.
22979         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22980
22981         New module 'u32-grapheme-next'.
22982         * modules/unigbrk/u32-grapheme-next: New file.
22983         * modules/unigbrk/u32-grapheme-next-tests: New file.
22984         * lib/unigbrk.in.h: Add prototype for new function.
22985         * lib/unigbrk/u32-grapheme-next.c: New file.
22986         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22987
22988         New module 'u8-grapheme-prev'.
22989         * modules/unigbrk/u8-grapheme-prev: New file.
22990         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22991         * lib/unigbrk.in.h: Add prototype for new function.
22992         * lib/unigbrk/u8-grapheme-prev.c: New file.
22993         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22994
22995         New module 'u16-grapheme-prev'.
22996         * modules/unigbrk/u16-grapheme-prev: New file.
22997         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22998         * lib/unigbrk.in.h: Add prototype for new function.
22999         * lib/unigbrk/u16-grapheme-prev.c: New file.
23000         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23001
23002         New module 'u32-grapheme-prev'.
23003         * modules/unigbrk/u32-grapheme-prev: New file.
23004         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23005         * lib/unigbrk.in.h: Add prototype for new function.
23006         * lib/unigbrk/u32-grapheme-prev.c: New file.
23007         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23008
23009         New module 'u8-grapheme-breaks'.
23010         * modules/unigbrk/u8-grapheme-breaks: New file.
23011         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23012         * lib/unigbrk.in.h: Add prototype for new function.
23013         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23014         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23015
23016         New module 'u16-grapheme-breaks'.
23017         * modules/unigbrk/u16-grapheme-breaks: New file.
23018         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23019         * lib/unigbrk.in.h: Add prototype for new function.
23020         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23021         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23022
23023         New module 'u32-grapheme-breaks'.
23024         * modules/unigbrk/u32-grapheme-breaks: New file.
23025         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23026         * lib/unigbrk.in.h: Add prototype for new function.
23027         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23028         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23029
23030         New module 'ulc-grapheme-breaks'.
23031         * modules/unigbrk/ulc-grapheme-breaks: New file.
23032         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23033         * m4/locale-ar.m4: New file.
23034         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23035         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23036         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23037
23038 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23039
23040         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23041         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23042         modified how this file was generated before I initially submitted
23043         the module, but failed to regenerate it.  This meant that several
23044         of the level2 entries were wrong.
23045         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23046         Remove the division-by-2 that is folded into the table now that
23047         gbrkprop.h has been regenerated properly.  Now -1 entries are
23048         handled correctly.
23049
23050         New module 'unigbrk/uc-gbrk-prop-tests'.
23051         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23052         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23053         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23054         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23055
23056 2011-01-01  Bruno Haible  <bruno@clisp.org>
23057
23058         Avoid use of hexadecimal escapes.
23059         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23060         instead of hexadecimal escapes.
23061
23062 2011-01-01  Jim Meyering  <meyering@redhat.com>
23063
23064         maint: new rule to update copyright year ranges
23065         * Makefile (update-copyright): New rule.
23066
23067         maint: indent with TABs in Makefile
23068         * Makefile: Expand leading sequences of spaces to TABs
23069
23070         version-etc: update the copyright year it reports
23071         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23072
23073 2010-12-31  Bruno Haible  <bruno@clisp.org>
23074
23075         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23076         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23077         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23078         zero.
23079
23080 2010-12-31  Bruno Haible  <bruno@clisp.org>
23081
23082         pwrite: Work around HP-UX 11.11 bug.
23083         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23084         works and set REPLACE_PWRITE if not.
23085         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23086         function.
23087         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23088
23089 2010-12-31  Bruno Haible  <bruno@clisp.org>
23090
23091         pread: Work around HP-UX 11 bugs.
23092         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23093         and set REPLACE_PREAD if not.
23094         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23095
23096 2010-12-31  Eric Blake  <eblake@redhat.com>
23097
23098         nl_langinfo: fix YESEXPR on Irix 6.5
23099         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23100         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23101         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23102         it.
23103
23104 2010-12-31  Bruno Haible  <bruno@clisp.org>
23105
23106         iconv: Document HP-UX 11 bug.
23107         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23108
23109 2010-12-31  Bruno Haible  <bruno@clisp.org>
23110
23111         ldexpl: Fix link error on HP-UX 11.
23112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23113         LDEXPL_LIBM, using $ISNANL_LIBM.
23114
23115 2010-12-31  Eric Blake  <eblake@redhat.com>
23116
23117         ftello: avoid compilation failure with SunStudio c89
23118         * lib/ftello.c (ftello): Use lseek, not llseek.
23119
23120         tests: avoid failing coreutils tests on cygwin
23121         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23122         (create_exe_shims_): Return 0 when skipping.
23123
23124 2010-12-31  Bruno Haible  <bruno@clisp.org>
23125
23126         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23127         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23128
23129 2010-12-31  Bruno Haible  <bruno@clisp.org>
23130
23131         waitpid: Fix link error in C++ mode.
23132         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23133
23134 2010-12-31  Bruno Haible  <bruno@clisp.org>
23135
23136         isnan: Use GCC built-ins when possible.
23137         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23138         __builtin_isnan.
23139         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23140         (isnan): Define using GCC built-ins for GCC >= 4.0.
23141
23142 2010-12-31  Bruno Haible  <bruno@clisp.org>
23143
23144         isnand: Fix mistake.
23145         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23146         __builtin_isnand.
23147
23148 2010-12-31  Bruno Haible  <bruno@clisp.org>
23149
23150         open: Avoid C++ error on HP-UX 11.
23151         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23152
23153 2010-12-31  Bruno Haible  <bruno@clisp.org>
23154
23155         time_r: Add missing declarations on HP-UX 11.
23156         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23157         instead of HAVE_LOCALTIME_R.
23158         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23159         HAVE_LOCALTIME_R always.
23160         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23161         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23162         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23163         HAVE_LOCALTIME_R.
23164         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23165         * doc/posix-functions/localtime_r.texi: Likewise.
23166
23167 2010-12-29  Eric Blake  <eblake@redhat.com>
23168
23169         mountlist: tweak previous commit
23170         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23171         Reported by Paul Eggert.
23172
23173         mountlist: fix local drive detection on cygwin
23174         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23175         that works for cygwin.
23176
23177 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23178
23179         ftoastr, snprintf: ftoastr + snprintf module
23180         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23181         since the snprintf module now should be good enough here.
23182         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23183         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23184         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23185         GNULIB_SNPRINTF only for the test directory, and the latter
23186         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23187         seems to suffice by itself.
23188
23189 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23190
23191         alloca: one step towards thread-safety
23192         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23193         need for a static variable.  All callers changed.  This does not
23194         make the alloca replacement thread-safe, but it's one step.
23195
23196         tests: minor indenting change
23197         * tests/init.sh: Sync from coreutils housekeeping patch
23198         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23199         to keep lines within 80 columns.
23200
23201 2010-12-28  Jim Meyering  <meyering@redhat.com>
23202
23203         regex: don't infloop on persistent failing calloc
23204         * lib/regexec.c (build_trtable): Return failure indication upon
23205         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23206         In glibc, this was fixed for version 2.13:
23207         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23208
23209 2010-12-28  Bruno Haible  <bruno@clisp.org>
23210             Paul Eggert <eggert@cs.ucla.edu>
23211
23212         linkat: Make implementation robust against system behaviour variations.
23213         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23214         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23215         way, and to -2 if it needs a generic runtime test.
23216         * lib/linkat.c (solaris_optimized_link_immediate,
23217         solaris_optimized_link_follow): New functions.
23218         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23219         (check_same_link): Use it.
23220
23221 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23222
23223         New module 'unigbrk/base'.
23224         * modules/unigbrk/base: New file.
23225         * lib/unigbrk.in.h: New file.
23226
23227         New module 'unigbrk/uc-gbrk-prop'.
23228         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23229         * modules/unigbrk/uc-gbrk-prop: New file.
23230         * lib/unigbrk/gbrkprop.h: New file.
23231         * lib/unigbrk/uc-gbrk-prop.c: New file.
23232
23233         New module 'unigbrk/uc-is-grapheme-break'.
23234         * modules/unigbrk/uc-is-grapheme-break: New file.
23235         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23236         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23237         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23238         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23239         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23240
23241         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23242
23243 2010-12-27  Bruno Haible  <bruno@clisp.org>
23244
23245         linkat test: Avoid failure on Solaris 11 2010-11.
23246         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23247
23248 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23249
23250         utimens: work around glibc rounding bug on more platforms
23251         * lib/utimens.c (fdutimens): Work around rounding bug even if
23252         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23253         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23254
23255 2010-12-27  Bruno Haible  <bruno@clisp.org>
23256
23257         select tests: Improve comments.
23258         * tests/test-select.c (do_select): Add comments.
23259
23260 2010-12-27  Bruno Haible  <bruno@clisp.org>
23261
23262         select tests: Safer way of handling timeout.
23263         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23264         at every invocation.
23265
23266 2010-12-27  Bruno Haible  <bruno@clisp.org>
23267
23268         select tests: Use 'bool' where appropriate.
23269         * tests/test-select.c (connect_to_socket): Change argument type to
23270         'bool'.
23271
23272 2010-12-27  Bruno Haible  <bruno@clisp.org>
23273
23274         select tests: Use existing modules.
23275         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23276         (configure.ac): Don't test for unistd.h.
23277         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23278         declared in <unistd.h>.
23279
23280 2010-12-27  Bruno Haible  <bruno@clisp.org>
23281
23282         mbrtowc: Work around a Solaris 7 bug.
23283         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23284         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23285         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23286         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23287         MBRTOWC_NULL_ARG1_BUG.
23288         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23289         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23290         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23291         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23292
23293 2010-12-27  Jim Meyering  <meyering@redhat.com>
23294
23295         read-file.c: tweak syntax
23296         * lib/read-file.c (fread_file): Remove space after "*" in function
23297         definitions.
23298
23299 2010-12-27  Bruno Haible  <bruno@clisp.org>
23300
23301         times test: Avoid gcc warnings on OSF/1.
23302         * tests/test-times.c (main): Cast printf arguments from clock_t to
23303         'long int'.
23304
23305 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23306
23307         utimens: work around glibc rounding bug on older Linux kernels
23308         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23309         on Linux with a glibc whose utimes might not work, then work
23310         around a longstanding glibc bug involving rounding rather than
23311         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23312         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23313
23314 2010-12-26  Bruno Haible  <bruno@clisp.org>
23315
23316         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23317         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23318         _GL_CXXALIAS_SYS.
23319         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23320
23321 2010-12-26  Bruno Haible  <bruno@clisp.org>
23322
23323         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23324         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23325         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23326         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23327         looking for the declaration.
23328         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23329         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23330         problem.
23331         * doc/posix-functions/inet_pton.texi: Likewise.
23332
23333 2010-12-26  Bruno Haible  <bruno@clisp.org>
23334
23335         arpa_inet: Use the common idioms with C++ support.
23336         * lib/arpa_inet.in.h: Include c++defs.h.
23337         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23338         support.
23339         * modules/arpa_inet (Depends-on): Add c++defs.
23340         (Makefile.am): Substitute the contents of c++defs.h.
23341         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23342         * modules/arpa_inet-c++-tests: New file.
23343         * tests/test-arpa_inet-c++.cc: New file.
23344
23345 2010-12-25  Bruno Haible  <bruno@clisp.org>
23346
23347         Fix more C++ link errors on Solaris 8.
23348         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23349         $(LIB_EACCESS).
23350         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23351         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23352         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23353         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23354         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23355
23356 2010-12-25  Bruno Haible  <bruno@clisp.org>
23357
23358         printf-posix: Fix link error when a non-GCC compiler is used.
23359         * lib/stdio.in.h (printf): When not using GCC, override printf
23360         correctly.
23361         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23362
23363 2010-12-25  Bruno Haible  <bruno@clisp.org>
23364
23365         strerror_r-posix: Update doc.
23366         * doc/posix-functions/strerror_r.texi: Update doc about the return
23367         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23368
23369 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23370
23371         utimens: simplify the logic of the previous change
23372         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23373         This should not affect whether the test succeeds or fails.
23374
23375         utimens: configure better on hosts with NFS clock skew
23376         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23377         uses the clock of the local host.  It might use the clock of the
23378         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23379         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23380
23381 2010-12-25  Bruno Haible  <bruno@clisp.org>
23382
23383         ptsname test: Avoid failure on Solaris.
23384         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23385         open a pseudo-terminal; don't use BSD-style ptys.
23386         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23387
23388 2010-12-25  Bruno Haible  <bruno@clisp.org>
23389
23390         ptsname: Avoid ERANGE failure on some systems.
23391         * lib/ptsname.c (buffer): Increase size.
23392
23393 2010-12-25  Bruno Haible  <bruno@clisp.org>
23394
23395         rename, renameat: Avoid test failures at NFS mounted locations.
23396         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23397         so that subsequent mkdir calls succeed.
23398
23399 2010-12-25  Bruno Haible  <bruno@clisp.org>
23400
23401         iswblank: Fix C++ link error on Solaris 8.
23402         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23403         _GL_FUNCDECL_SYS.
23404
23405 2010-12-25  Bruno Haible  <bruno@clisp.org>
23406
23407         unistd: Fix C++ link error on Solaris 8.
23408         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23409
23410 2010-12-25  Bruno Haible  <bruno@clisp.org>
23411
23412         readlink doc: Mention an old glibc bug.
23413         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23414
23415 2010-12-25  Bruno Haible  <bruno@clisp.org>
23416
23417         fcntl-h: Fix for use of C++ on glibc systems.
23418         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23419         also on glibc systems in C++ mode.
23420         Reported by Gary V. Vaughan <gary@gnu.org>.
23421
23422 2010-12-25  Bruno Haible  <bruno@clisp.org>
23423
23424         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23425         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23426
23427 2010-12-25  Bruno Haible  <bruno@clisp.org>
23428
23429         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23430         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23431         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23432         test whether truncl works according to ISO C 99 with IEC 60559.
23433         * m4/truncl-ieee.m4: New file.
23434         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23435         m4/signbit.m4.
23436         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23437
23438 2010-12-25  Bruno Haible  <bruno@clisp.org>
23439
23440         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23441         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23442         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23443         test whether ceill works according to ISO C 99 with IEC 60559.
23444         * m4/ceill-ieee.m4: New file.
23445         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23446         m4/signbit.m4.
23447         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23448
23449 2010-12-25  Bruno Haible  <bruno@clisp.org>
23450
23451         Ensure all prerequisites of <wchar.h> are included.
23452         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23453         before <wchar.h>.
23454         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23455         gl_MBRLEN_NUL_RETVAL): Likewise.
23456         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23457         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23458         AC_FUNC_MBRTOWC): Likewise.
23459         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23460         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23461         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23462         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23463         Likewise.
23464         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23465         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23466         (gl_WCHAR_H): Improve comments.
23467         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23468
23469 2010-12-25  Bruno Haible  <bruno@clisp.org>
23470
23471         strtok_r: Fix C syntax error in autoconf macro.
23472         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23473         characters in test program.
23474
23475 2010-12-24  Bruno Haible  <bruno@clisp.org>
23476
23477         ceil, trunc, round: Fix gcc warnings.
23478         * lib/ceil.c (MIN): Undefine before redefining.
23479         * lib/trunc.c (MIN): Likewise.
23480         * lib/round.c (MIN): Likewise.
23481         Include <math.h> first.
23482
23483 2010-12-24  Bruno Haible  <bruno@clisp.org>
23484
23485         select tests: Avoid failures on OSF/1 5.1.
23486         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23487         failure of closing the last socket; it may fail with ECONNRESET.
23488
23489 2010-12-24  Eric Blake  <eblake@redhat.com>
23490
23491         stdint: avoid HP-UX 10.20 preprocessor bug
23492         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23493         than #if.
23494         * tests/test-floor2.c (main): Likewise.
23495         Reported by Peter O'Gorman.
23496
23497         pipe: make obsoletion transition easier
23498         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23499         * modules/pipe (Files): Include revived file.
23500         (Include): Drop reference, to mirror getdate's behavior.
23501
23502 2010-12-24  Bruno Haible  <bruno@clisp.org>
23503
23504         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23505         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23506         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23507         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23508
23509 2010-12-24  Bruno Haible  <bruno@clisp.org>
23510
23511         gethostname: Ensure declaration on NonStop Kernel.
23512         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23513         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23514
23515 2010-12-24  Bruno Haible  <bruno@clisp.org>
23516
23517         sys_select: Ensure all necessary types on NonStop Kernel.
23518         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23519         include <sys/time.h>.
23520         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23521         NonStop Kernel.
23522         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23523
23524 2010-12-24  Bruno Haible  <bruno@clisp.org>
23525
23526         sys_select: Remove unneeded include.
23527         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23528         have <sys/select.h>.
23529
23530 2010-12-24  Bruno Haible  <bruno@clisp.org>
23531
23532         gethostname: Provide a fallback for HOST_NAME_MAX.
23533         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23534         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23535         instead.
23536         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23537
23538 2010-12-24  Bruno Haible  <bruno@clisp.org>
23539
23540         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23541         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23542         (SA_RESTART): Likewise.
23543         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23544
23545 2010-12-24  Bruno Haible  <bruno@clisp.org>
23546
23547         signal: Define NSIG.
23548         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23549         * tests/test-signal.c (nsig): New variable.
23550         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23551
23552 2010-12-24  Bruno Haible  <bruno@clisp.org>
23553
23554         rename, renameat: Avoid test failures on OSF/1 5.1.
23555         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23556         alternative error codes.
23557         * tests/test-renameat.c (main): Likewise.
23558
23559 2010-12-24  Bruno Haible  <bruno@clisp.org>
23560
23561         *printf: Detect large precisions bug on Solaris 10/SPARC.
23562         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23563         by Paul Eggert.
23564         * tests/test-snprintf-posix.h (test_function): Add this test code here
23565         too.
23566         * tests/test-sprintf-posix.h (test_function): Likewise.
23567         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23568         * tests/test-vasprintf-posix.c (test_function): Likewise.
23569         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23570         around by gnulib.
23571         * doc/posix-functions/printf.texi: Likewise.
23572         * doc/posix-functions/snprintf.texi: Likewise.
23573         * doc/posix-functions/sprintf.texi: Likewise.
23574         * doc/posix-functions/vfprintf.texi: Likewise.
23575         * doc/posix-functions/vprintf.texi: Likewise.
23576         * doc/posix-functions/vsnprintf.texi: Likewise.
23577         * doc/posix-functions/vsprintf.texi: Likewise.
23578         * doc/posix-functions/dprintf.texi: Undo last commit.
23579         * doc/posix-functions/vdprintf.texi: Likewise.
23580
23581 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23582
23583         tests: port test-fdutimensat.c to Solaris 8
23584         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23585         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23586         On Solaris 8, it fails with errno == ENOSYS, because there is no
23587         futimens (so it can't use the fd), and there is no lutimens (so it
23588         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23589
23590         vsnprintf: make more consistent with snprintf; doc fixes
23591
23592         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23593         the byte count return problem was promoted from the snprintf-posix
23594         to the snprintf module.
23595         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23596         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23597         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23598         * tests/test-snprintf.c (main): Check the byte count returned.
23599         * tests/test-vsnprintf.c (main): Likewise.
23600
23601 2010-12-23  Eric Blake  <eblake@redhat.com>
23602
23603         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23604         * modules/sigpipe (License): Relax license.
23605
23606 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23607
23608         doc: document Solaris printf bug with large float precisions
23609         * doc/posix-functions/dprintf.texi (dprintf):
23610         * doc/posix-functions/fprintf.texi (fprintf):
23611         * doc/posix-functions/printf.texi (printf):
23612         * doc/posix-functions/snprintf.texi (snprintf):
23613         * doc/posix-functions/sprintf.texi (sprintf):
23614         * doc/posix-functions/vdprintf.texi (vdprintf):
23615         * doc/posix-functions/vfprintf.texi (vfprintf):
23616         * doc/posix-functions/vprintf.texi (vprintf):
23617         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23618         * doc/posix-functions/vsprintf.texi (vsprintf):
23619         Mention that these functions mishandle large floating point
23620         precisions on Solaris 10.  The same bug is also present in Solaris
23621         8, and I assume earlier.  This causes "cd gnulib-tests; make
23622         check" to fail on Solaris 8 (and I assume, later) when building
23623         the latest coreutils, in test-vasprintf-posix's call to
23624         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23625         the wide flavors (e.g., wprintf) so this patch just updates the
23626         documentation for the narrow ones.
23627
23628         test-posixtm.c: add two tests
23629         * tests/test-posixtm.c: Add two tests, to highlight the
23630         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23631         around this bug; this is merely to document it.
23632
23633 2010-12-22  Bruno Haible  <bruno@clisp.org>
23634
23635         getlogin_r: Work around portability problem on OSF/1.
23636         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23637         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23638         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23639         test for a truncated result.
23640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23641         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23642         * modules/getlogin_r (Depends-on): Add memchr.
23643         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23644
23645 2010-12-22  Bruno Haible  <bruno@clisp.org>
23646
23647         ptsname: Avoid test failure on OSF/1 5.1.
23648         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23649         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23650         (same_slave): New function.
23651         (main): Use it to compare ptsname's result with the expected file name.
23652
23653 2010-12-22  Bruno Haible  <bruno@clisp.org>
23654
23655         Port extended stdio modules to HP NonStop Kernel.
23656         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23657         macros.
23658         * lib/fbufmode.c: Update comments.
23659         * lib/fflush.c: Likewise.
23660         * lib/fpurge.c: Likewise.
23661         * lib/freadable.c: Likewise.
23662         * lib/freadahead.c: Likewise.
23663         * lib/freading.c: Likewise.
23664         * lib/freadptr.c: Likewise.
23665         * lib/freadseek.c: Likewise.
23666         * lib/fseeko.c: Likewise.
23667         * lib/fseterr.c: Likewise.
23668         * lib/fwritable.c: Likewise.
23669         * lib/fwriting.c: Likewise.
23670         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23671
23672 2010-12-22  Bruno Haible  <bruno@clisp.org>
23673
23674         ttyname_r: Work around bug on OSF/1 5.1.
23675         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23676         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23677         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23678         present.
23679         * lib/ttyname_r.c (ttyname_r): Update comments.
23680
23681 2010-12-22  Bruno Haible  <bruno@clisp.org>
23682
23683         round: Implement result sign according to IEEE 754.
23684         * lib/round.c (MIN, MINUS_ZERO): New macros.
23685         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23686         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23687         * tests/test-round-ieee.c (main): Likewise.
23688         * tests/test-roundl-ieee.c (main): Likewise.
23689
23690         trunc: Implement result sign according to IEEE 754.
23691         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23692         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23693         * tests/test-trunc2.c: Include minus-zero.h.
23694         (MINUS_ZERO): New macro.
23695         (trunc_reference): Keep in sync with lib/trunc.c.
23696         * tests/test-truncf2.c: Include minus-zero.h.
23697         (MINUS_ZERO): New macro.
23698         (truncf_reference): Keep in sync with lib/trunc.c.
23699         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23700         * tests/test-trunc-ieee.c (main): Likewise.
23701         * tests/test-truncl-ieee.c (main): Likewise.
23702
23703         ceil: Implement result sign according to IEEE 754.
23704         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23705         (FUNC): Return -0.0 for -1 < x < 0.
23706         * tests/test-ceil2.c: Include minus-zero.h.
23707         (MINUS_ZERO): New macro.
23708         (ceil_reference): Keep in sync with lib/ceil.c.
23709         * tests/test-ceilf2.c: Include minus-zero.h.
23710         (MINUS_ZERO): New macro.
23711         (ceilf_reference): Keep in sync with lib/ceil.c.
23712         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23713         * tests/test-ceil-ieee.c (main): Likewise.
23714         * tests/test-ceill-ieee.c (main): Likewise.
23715
23716         floor: Implement result sign according to IEEE 754.
23717         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23718         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23719         * tests/test-floorf2.c (floorf_reference): Likewise.
23720         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23721         * tests/test-floor-ieee.c (main): Likewise.
23722         * tests/test-floorl-ieee.c (main): Likewise.
23723
23724 2010-12-22  Bruno Haible  <bruno@clisp.org>
23725
23726         getaddrinfo: Update doc.
23727         * doc/posix-functions/gai_strerror.texi: Return type is also different
23728         on AIX and HP-UX.
23729
23730 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23731
23732         getaddrinfo, inet_ntop: Update doc for Solaris.
23733         * doc/posix-functions/gai_strerror.texi: Return type is also an
23734         issue on Solaris 9 and earlier.
23735         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23736         on Solaris 10 and earlier.
23737
23738 2010-12-21  Bruno Haible  <bruno@clisp.org>
23739
23740         New module 'roundl-ieee'.
23741         * modules/roundl-ieee: New file.
23742         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23743         test whether roundl works according to ISO C 99 with IEC 60559.
23744         * m4/roundl-ieee.m4: New file.
23745         * modules/roundl-ieee-tests: New file.
23746         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23747         * tests/test-roundl.c (main): Remove signbit tests.
23748         * modules/roundl-tests (Depends-on): Remove signbit.
23749         * doc/posix-functions/roundl.texi: Mention the new module.
23750
23751 2010-12-21  Bruno Haible  <bruno@clisp.org>
23752
23753         New module 'truncl-ieee'.
23754         * modules/truncl-ieee: New file.
23755         * modules/truncl-ieee-tests: New file.
23756         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23757         * tests/test-truncl.c (main): Remove signbit tests.
23758         * modules/truncl-tests (Depends-on): Remove signbit.
23759         * doc/posix-functions/truncl.texi: Mention the new module.
23760
23761 2010-12-21  Bruno Haible  <bruno@clisp.org>
23762
23763         New module 'ceill-ieee'.
23764         * modules/ceill-ieee: New file.
23765         * modules/ceill-ieee-tests: New file.
23766         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23767         * tests/test-ceill.c (main): Remove signbit tests.
23768         * modules/ceill-tests (Depends-on): Remove signbit.
23769         * doc/posix-functions/ceill.texi: Mention the new module.
23770
23771 2010-12-21  Bruno Haible  <bruno@clisp.org>
23772
23773         New module 'floorl-ieee'.
23774         * modules/floorl-ieee: New file.
23775         * modules/floorl-ieee-tests: New file.
23776         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23777         * tests/test-floorl.c (main): Remove signbit tests.
23778         * modules/floorl-tests (Depends-on): Remove signbit.
23779         * doc/posix-functions/floorl.texi: Mention the new module.
23780
23781 2010-12-21  Bruno Haible  <bruno@clisp.org>
23782
23783         New module 'round-ieee'.
23784         * modules/round-ieee: New file.
23785         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23786         whether round works according to ISO C 99 with IEC 60559.
23787         * m4/round-ieee.m4: New file.
23788         * modules/round-ieee-tests: New file.
23789         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23790         * tests/test-round1.c (main): Remove signbit tests.
23791         * modules/round-tests (Depends-on): Remove 'signbit'.
23792         * doc/posix-functions/round.texi: Mention the new module.
23793
23794 2010-12-21  Bruno Haible  <bruno@clisp.org>
23795
23796         New module 'trunc-ieee'.
23797         * modules/trunc-ieee: New file.
23798         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23799         whether trunc works according to ISO C 99 with IEC 60559.
23800         * m4/trunc-ieee.m4: New file.
23801         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23803         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23804         * modules/trunc-ieee-tests: New file.
23805         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23806         * tests/test-trunc1.c (main): Remove signbit tests.
23807         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23808         * doc/posix-functions/trunc.texi: Mention the new module.
23809
23810 2010-12-21  Bruno Haible  <bruno@clisp.org>
23811
23812         New module 'ceil-ieee'.
23813         * modules/ceil-ieee: New file.
23814         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23815         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23816         ISO C 99 with IEC 60559.
23817         * m4/ceil-ieee.m4: New file.
23818         * modules/ceil (Files): Add lib/ceil.c.
23819         (Depends-on): Add 'float'.
23820         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23821         * lib/math.in.h (ceil): New declaration.
23822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23823         REPLACE_CEIL.
23824         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23825         * modules/ceil-ieee-tests: New file.
23826         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23827         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23828         * doc/posix-functions/ceil.texi: Mention the new module.
23829
23830 2010-12-21  Bruno Haible  <bruno@clisp.org>
23831
23832         New module 'floor-ieee'.
23833         * modules/floor-ieee: New file.
23834         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23835         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23836         ISO C 99 with IEC 60559.
23837         * m4/floor-ieee.m4: New file.
23838         * modules/floor (Files): Add lib/floor.c.
23839         (Depends-on): Add 'float'.
23840         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23841         * lib/math.in.h (floor): New declaration.
23842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23843         REPLACE_FLOOR.
23844         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23845         * modules/floor-ieee-tests: New file.
23846         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23847         * tests/test-math-c++.cc: Check the signature of 'floor'.
23848         * doc/posix-functions/floor.texi: Mention the new module.
23849
23850 2010-12-21  Bruno Haible  <bruno@clisp.org>
23851
23852         New module 'roundf-ieee'.
23853         * modules/roundf-ieee: New file.
23854         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23855         test whether roundf works according to ISO C 99 with IEC 60559.
23856         * m4/roundf-ieee.m4: New file.
23857         * modules/roundf-ieee-tests: New file.
23858         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23859         * tests/test-roundf1.c (main): Remove signbit tests.
23860         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23861         * doc/posix-functions/roundf.texi: Mention the new module.
23862
23863 2010-12-21  Bruno Haible  <bruno@clisp.org>
23864
23865         New module 'truncf-ieee'.
23866         * modules/truncf-ieee: New file.
23867         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23868         test whether truncf works according to ISO C 99 with IEC 60559.
23869         * m4/truncf-ieee.m4: New file.
23870         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23872         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23873         * modules/truncf-ieee-tests: New file.
23874         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23875         * tests/test-truncf1.c (main): Remove signbit tests.
23876         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23877         * doc/posix-functions/truncf.texi: Mention the new module.
23878
23879 2010-12-21  Bruno Haible  <bruno@clisp.org>
23880
23881         New module 'ceilf-ieee'.
23882         * modules/ceilf-ieee: New file.
23883         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23884         test whether ceilf works according to ISO C 99 with IEC 60559.
23885         * m4/ceilf-ieee.m4: New file.
23886         * modules/ceilf-ieee-tests: New file.
23887         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23888         * tests/test-ceilf1.c (main): Remove signbit tests.
23889         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23890         * doc/posix-functions/ceilf.texi: Mention the new module.
23891
23892 2010-12-21  Bruno Haible  <bruno@clisp.org>
23893
23894         New module 'floorf-ieee'.
23895         * modules/floorf-ieee: New file.
23896         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23897         test whether floorf works according to ISO C 99 with IEC 60559.
23898         * m4/floorf-ieee.m4: New file.
23899         * modules/floorf-ieee-tests: New file.
23900         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23901         * tests/test-floorf1.c (main): Remove signbit tests.
23902         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23903         * doc/posix-functions/floorf.texi: Mention the new module.
23904
23905 2010-12-21  Bruno Haible  <bruno@clisp.org>
23906
23907         Support for minus zero in autoconf macros.
23908         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23909         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23910         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23911         * tests/minus-zero.h: Update comments.
23912
23913 2010-12-21  Bruno Haible  <bruno@clisp.org>
23914
23915         Tests for module 'ceil'.
23916         * modules/ceil-tests: New file.
23917         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23918         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23919
23920 2010-12-21  Bruno Haible  <bruno@clisp.org>
23921
23922         Tests for module 'floor'.
23923         * modules/floor-tests: New file.
23924         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23925         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23926
23927 2010-12-21  Bruno Haible  <bruno@clisp.org>
23928
23929         math: Fix indentation.
23930         * lib/math.in.h (floorf): Fix indentation.
23931
23932 2010-12-21  Bruno Haible  <bruno@clisp.org>
23933
23934         Fix cross-compilation guesses on Solaris.
23935         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23936         not match "solaris2.10".
23937         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23938         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23939         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23940
23941 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23942
23943         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23944         This fixes a problem observed with the latest coreutils snapshot
23945         that caused a test to fail on Solaris 8.  src/csplit.c's call
23946         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23947         earlier, instead of returning the number of bytes that would have
23948         been generated; this causes csplit to incorrectly report memory
23949         exhaustion.
23950         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23951         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23952         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23953         comments to match.
23954         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23955         Fix typo in matching older versions of Solaris: "solaris2.10"
23956         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23957         only for guessing while cross-compiling.
23958         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23959
23960 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23961
23962         ftoastr: fix comment again
23963         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23964         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23965         Also, simplify example a bit by using flags = 0.
23966
23967 2010-12-20  Bruno Haible  <bruno@clisp.org>
23968
23969         round*, trunc*: Update documentation regarding glibc.
23970         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23971         * doc/posix-functions/round.texi: Likewise.
23972         * doc/posix-functions/roundl.texi: Likewise.
23973         * doc/posix-functions/truncf.texi: Likewise.
23974         * doc/posix-functions/trunc.texi: Likewise.
23975         * doc/posix-functions/truncl.texi: Likewise.
23976
23977 2010-12-20  Bruno Haible  <bruno@clisp.org>
23978
23979         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23980         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23981         * doc/posix-functions/round.texi: Likewise.
23982         * doc/posix-functions/roundl.texi: Likewise.
23983
23984 2010-12-20  Bruno Haible  <bruno@clisp.org>
23985
23986         ttyname_r: Add missing declaration on HP-UX 11.
23987         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23988         HAVE_TTYNAME_R.
23989         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23990         declared. Set HAVE_TTYNAME_R always.
23991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23992         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23993         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23994         HAVE_TTYNAME_R.
23995         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23996
23997 2010-12-20  Bruno Haible  <bruno@clisp.org>
23998
23999         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24000         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24001         * doc/posix-functions/getlogin_r.texi: Likewise.
24002         * tests/test-getlogin.c: Include <errno.h>.
24003         (main): Avoid test failure on HP-UX 11.11.
24004         * tests/test-getlogin_r.c (main): Likewise.
24005
24006 2010-12-20  Bruno Haible  <bruno@clisp.org>
24007
24008         getlogin_r: Add missing declaration on HP-UX 11.
24009         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24010         declared also when it exists as a function.
24011         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24012
24013 2010-12-20  Bruno Haible  <bruno@clisp.org>
24014
24015         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24016         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24017         through wcrtomb.
24018
24019 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24020
24021         ftoastr: fix comment
24022         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24023         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24024
24025 2010-12-19  Bruno Haible  <bruno@clisp.org>
24026
24027         isnan: Ensure it is a macro.
24028         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24029         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24030         Solaris.
24031
24032 2010-12-19  Bruno Haible  <bruno@clisp.org>
24033
24034         ldexpl test: Fix link error on OSF/1 5.1.
24035         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24036
24037 2010-12-19  Bruno Haible  <bruno@clisp.org>
24038
24039         wctype: Make it work in C++ mode on OSF/1 5.1.
24040         * lib/wctype.in.h (iswblank): Declare but not define here.
24041         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24042         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24043         * modules/wctype (Files): Add lib/iswblank.c.
24044
24045 2010-12-19  Bruno Haible  <bruno@clisp.org>
24046
24047         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24048         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24049         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24050
24051 2010-12-19  Bruno Haible  <bruno@clisp.org>
24052
24053         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24054         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24055         _POSIX_PII_SOCKET.
24056         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24057         * doc/posix-functions/recvfrom.texi: Likewise.
24058         * doc/posix-functions/send.texi: Likewise.
24059         * doc/posix-functions/sendto.texi: Likewise.
24060
24061 2010-12-19  Bruno Haible  <bruno@clisp.org>
24062
24063         tcgetsid: Add missing declaration on OSF/1 5.1.
24064         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24065         HAVE_TCGETSID.
24066         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24067         Don't set HAVE_TCGETSID.
24068         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24069         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24070         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24071         HAVE_TCGETSID.
24072         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24073
24074 2010-12-19  Bruno Haible  <bruno@clisp.org>
24075
24076         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24077         * lib/stdio.in.h: During the include_next statement, let recursive
24078         includes of this file include only the system header file.
24079
24080 2010-12-19  Bruno Haible  <bruno@clisp.org>
24081
24082         iconv_open: Fix regression from 2010-12-04.
24083         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24084         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24085
24086 2010-12-19  Bruno Haible  <bruno@clisp.org>
24087
24088         stdbool test: Avoid a gcc warning.
24089         * tests/test-stdbool.c (main): Fail if e1 is false.
24090         Reported by Jim Meyering.
24091
24092 2010-12-19  Jim Meyering  <meyering@redhat.com>
24093
24094         setenv: restore to working order
24095         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24096         mistakenly removed.
24097         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24098         HAVE_SETENV.
24099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24100         HAVE_SETENV.
24101
24102 2010-12-19  Bruno Haible  <bruno@clisp.org>
24103
24104         Document some different function declarations on OSF/1 5.1.
24105         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24106         * doc/posix-functions/inet_ntop.texi: Likewise.
24107         * doc/posix-functions/gethostname.texi: Likewise.
24108         * lib/unistd.in.h (gethostname): Update comment.
24109
24110 2010-12-19  Bruno Haible  <bruno@clisp.org>
24111
24112         doc: Mention vasprintf-posix module.
24113         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24114         the 'vasprintf-posix' module.
24115         * doc/glibc-functions/vasprintf.texi: Likewise.
24116
24117 2010-12-19  Bruno Haible  <bruno@clisp.org>
24118
24119         unsetenv: Add missing declaration on OSF/1 5.1.
24120         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24121         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24122         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24124         not HAVE_UNSETENV.
24125         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24126         HAVE_UNSETENV.
24127         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24128
24129 2010-12-19  Bruno Haible  <bruno@clisp.org>
24130
24131         setenv: Add missing declaration on OSF/1 5.1.
24132         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24133         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24134         declared. Don't set HAVE_SETENV.
24135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24136         not HAVE_SETENV.
24137         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24138         HAVE_SETENV.
24139         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24140
24141 2010-12-19  Bruno Haible  <bruno@clisp.org>
24142
24143         nl_langinfo tests: Avoid gcc warning.
24144         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24145
24146 2010-12-19  Bruno Haible  <bruno@clisp.org>
24147
24148         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24149         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24150         _GL_CXXALIAS_SYS.
24151
24152 2010-12-19  Bruno Haible  <bruno@clisp.org>
24153
24154         stdbool: Relax test.
24155         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24156         address to 'bool' work in static initializer, for compilers other than
24157         GCC.
24158
24159 2010-12-19  Bruno Haible  <bruno@clisp.org>
24160
24161         ftello: Add missing declaration on OSF/1 5.1.
24162         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24163         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24165         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24166         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24167
24168 2010-12-19  Bruno Haible  <bruno@clisp.org>
24169
24170         fseeko: Add missing declaration on OSF/1 5.1.
24171         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24172         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24174         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24175         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24176
24177 2010-12-19  Bruno Haible  <bruno@clisp.org>
24178
24179         fchdir: Add missing declaration on OSF/1 5.1.
24180         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24183         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24184         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24185
24186 2010-12-19  Bruno Haible  <bruno@clisp.org>
24187
24188         relocatable-prog-wrapper: Separate from relocatable-prog.
24189         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24190         uninstall-relocwrapper rule here.
24191         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24192         Reported by Ian Beckwith <ianb@erislabs.net>.
24193
24194 2010-12-19  Bruno Haible  <bruno@clisp.org>
24195
24196         unistr/u8-mbsnlen: Add missing dependency.
24197         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24198         Reported by Ian Beckwith <ianb@erislabs.net>.
24199
24200 2010-12-19  Bruno Haible  <bruno@clisp.org>
24201
24202         iconv: Make it possible again to use this module without 'iconv-h'.
24203         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24204         if it is not defined.
24205         Reported by Ian Beckwith <ianb@erislabs.net>.
24206
24207 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24208
24209         acl: port to Solaris 8 when copying from tmpfs to ufs
24210         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24211         error number.  Problem observed on Solaris 8 with latest
24212         coreutils, with "mv A B", where A is on a tmpfs file system and B
24213         is on a ufs file system.  This caused coreutils' mv/part-symlink
24214         test to fail.
24215
24216         tests: set fail=0 at start
24217         * tests/init.sh (setup_): Move fail=0 initialization here ...
24218         (mktempd_): ... from here, so that tests can rely on fail being
24219         set to 0 initially.  This fixes a problem in coreutils; see:
24220         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24221
24222 2010-12-18  Bruno Haible  <bruno@clisp.org>
24223
24224         memmem-simple: Stylistic changes.
24225         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24226         Fix preprocessor directive indentation.
24227
24228 2010-12-15  Pádraig Brady <P@draigBrady.com>
24229
24230         memmem, memmem-simple: reorganize and expand empty needle check
24231         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24232         functional checks to memmem-simple so that one has a fully functional
24233         memmem by using just this module.
24234         Restrict the performance only check to the memmem module.
24235         Also expand the empty needle check to ensure the correct
24236         pointer is returned, not just a non NULL pointer.
24237         * doc/glibc-functions/memmem.texi: Rearrange the portability
24238         documentation to correlate with the rearranged checks.
24239         Clarify exactly how the memmem and memmem-simple modules
24240         relate to each other.
24241
24242 2010-12-15  Pádraig Brady <P@draigBrady.com>
24243             Bruno Haible  <bruno@clisp.org>
24244
24245         Improve cross-compilation guesses for uClibc.
24246         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24247         that uClibc does not have the glibc bug.
24248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24249         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24250
24251 2010-12-14  Eric Blake  <eblake@redhat.com>
24252
24253         configmake: provide fallbacks for oldest supported autotools
24254         * m4/configmake.m4: New file.
24255         * modules/configmake (Files): Ship it.
24256         (configure.ac): Use it to guarantee fallbacks.
24257
24258 2010-12-13  Pádraig Brady <P@draigBrady.com>
24259
24260         read-file: Improve handling of large files
24261         * lib/read-file.c (fread_file): Minimize realloc()s
24262         for regular files, and better manage sizes around SIZE_MAX.
24263
24264 2010-12-13  Eric Blake  <eblake@redhat.com>
24265
24266         cloexec, fcntl: relax license
24267         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24268         consent from all contributors.
24269         * modules/fcntl (License): Likewise.
24270
24271 2010-12-10  Bruno Haible  <bruno@clisp.org>
24272
24273         Tests for module 'pipe-posix'.
24274         * modules/pipe-posix-tests: New file.
24275         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24276
24277 2010-12-10  Bruno Haible  <bruno@clisp.org>
24278
24279         pipe-posix: Make it work in C++ mode.
24280         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24281         (pipe): Use common idiom, not a macro definition.
24282         * lib/pipe.c: New file.
24283         * m4/pipe.m4: New file.
24284         * modules/pipe-posix (Description): Enhance.
24285         (Files): Add lib/pipe.c, m4/pipe.m4.
24286         (configure.ac): Invoke gl_FUNC_PIPE.
24287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24288         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24289         * tests/test-unistd-c++.cc: Check the signature of pipe.
24290
24291 2010-12-10  Bruno Haible  <bruno@clisp.org>
24292
24293         Rename module 'pipe' to 'spawn-pipe'.
24294         * modules/spawn-pipe: New file, renamed from modules/pipe.
24295         (Files, configure.ac, Makefile.am): Update.
24296         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24297         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24298         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24299         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24300         "spawn-pipe.h" instead of "pipe.h".
24301         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24302         to gl_SPAWN_PIPE.
24303         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24304         (Files, Makefile.am): Update.
24305         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24306         Update.
24307         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24308         Include "spawn-pipe.h" instead of "pipe.h".
24309         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24310         * lib/javacomp.c: Likewise.
24311         * lib/javaversion.c: Likewise.
24312         * lib/pipe-filter-gi.c: Likewise.
24313         * lib/pipe-filter-ii.c: Likewise.
24314         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24315         * modules/javacomp (Depends-on): Likewise.
24316         * modules/javaversion (Depends-on): Likewise.
24317         * modules/pipe-filter-gi (Depends-on): Likewise.
24318         * modules/pipe-filter-ii (Depends-on): Likewise.
24319         * MODULES.html.sh (Executing programs): Update.
24320         * NEWS: Mention the change.
24321
24322 2010-12-10  Eric Blake  <eblake@redhat.com>
24323
24324         pipe-posix: new module
24325         * modules/pipe-posix: New file.
24326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24327         (gl_UNISTD_H): Check for declaration.
24328         * modules/unistd (Makefile.am): Substitute it.
24329         * lib/unistd.in.h (pipe): Provide it for mingw.
24330         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24331         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24332
24333 2010-12-07  Bruno Haible  <bruno@clisp.org>
24334
24335         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24336         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24337         u8_strcmp_gnu.
24338         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24339
24340 2010-12-06  Bruno Haible  <bruno@clisp.org>
24341
24342         Update internal documentation.
24343         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24344
24345 2010-12-04  Bruno Haible  <bruno@clisp.org>
24346
24347         Put more information about failed tests into the test return codes.
24348         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24349         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24350         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24351         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24352         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24353         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24354         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24355         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24356         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24358         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24359         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24360         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24361         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24362         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24363         returns a bit mask.
24364         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24365         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24366         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24367         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24368         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24369         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24370         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24372         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24373         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24374         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24375         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24376         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24378         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24379         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24380         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24381         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24382         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24383         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24384         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24385         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24386         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24387         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24388         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24389         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24390         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24391         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24392         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24393         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24394         gl_PRINTF_PRECISION): Likewise.
24395         * m4/regex.m4 (gl_REGEX): Likewise.
24396         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24397         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24398         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24399         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24400         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24402         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24403         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24404         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24405         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24406         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24407         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24408         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24409         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24410         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24411         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24412         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24413         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24415         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24416         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24417         enumerated value.
24418         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24419
24420 2010-12-04  Bruno Haible  <bruno@clisp.org>
24421
24422         Update for Solaris 11 2010-11.
24423         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24424         Express, released in November 2010.
24425
24426 2010-12-04  Bruno Haible  <bruno@clisp.org>
24427
24428         nproc: Relax license.
24429         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24430         and Paul Eggert.
24431         Requested by Ludovic Courtès <ludo@gnu.org>.
24432
24433 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24434
24435         utimecmp: fine-grained src to nearby coarse-grained dest
24436
24437         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24438         and the source is on a file system with higher-resolution time
24439         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24440         not work, and the time stamps are close together, the algorithm to
24441         determine the exact resolution from the read-back mtime was buggy:
24442         it had a "!=" where it should have had an "==".  This bug has been
24443         in the code ever since it was introduced to gnulib.
24444         Problem reported by Dan Jacobson in
24445         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24446
24447 2010-11-30  Bruno Haible  <bruno@clisp.org>
24448
24449         strerror_r-posix: Fix autoconf test.
24450         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24451
24452 2010-11-28  Bruno Haible  <bruno@clisp.org>
24453             Paul Eggert  <eggert@cs.ucla.edu>
24454
24455         Tests for module 'getdomainname'.
24456         * modules/getdomainname-tests: New file.
24457         * tests/test-getdomainname.c: New file, based on
24458         tests/test-gethostname.c.
24459
24460 2010-11-28  Bruno Haible  <bruno@clisp.org>
24461             Paul Eggert  <eggert@cs.ucla.edu>
24462
24463         getdomainname: Use the system function when possible.
24464         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24465         (getdomainname): Replace if needed. Provide the declaration if it is
24466         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24467         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24468         (getdomainname): When the system has getdomainname, call the system
24469         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24470         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24471         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24472         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24473         the function if its second argument is of type 'int' or if it is found
24474         in libnsl.
24475         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24476         <sys/systeminfo.h> and sysinfo().
24477         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24479         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24480         HAVE_GETDOMAINNAME.
24481         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24482         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24483         * doc/glibc-functions/getdomainname.texi: Document the problems with
24484         the getdomainname declaration.
24485
24486 2010-11-28  Bruno Haible  <bruno@clisp.org>
24487
24488         sys_socket: Ensure ss_family field on AIX.
24489         * lib/sys_socket.in.h (ss_family): New macro definition.
24490         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24491         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24492         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24493         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24494         * modules/sys_socket (Makefile.am): Substitute
24495         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24496         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24497
24498 2010-11-27  Bruno Haible  <bruno@clisp.org>
24499
24500         readline: Improve configure output.
24501         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24502         "checking for readline..." result understandable.
24503
24504 2010-11-27  Bruno Haible  <bruno@clisp.org>
24505
24506         *printf-posix: Detect a bug on Solaris 10/x86.
24507         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24508         for floating-point output.
24509         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24510         directive.
24511         * tests/test-snprintf-posix.h (test_function): Likewise.
24512         * tests/test-sprintf-posix.h (test_function): Likewise.
24513         * tests/test-vasprintf-posix.c (test_function): Likewise.
24514         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24515         * doc/posix-functions/printf.texi: Likewise.
24516         * doc/posix-functions/snprintf.texi: Likewise.
24517         * doc/posix-functions/sprintf.texi: Likewise.
24518         * doc/posix-functions/vfprintf.texi: Likewise.
24519         * doc/posix-functions/vprintf.texi: Likewise.
24520         * doc/posix-functions/vsnprintf.texi: Likewise.
24521         * doc/posix-functions/vsprintf.texi: Likewise.
24522         * doc/glibc-functions/obstack_printf.texi: Likewise.
24523         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24524
24525 2010-11-27  Bruno Haible  <bruno@clisp.org>
24526
24527         Fix link error when module libunistring-optional is in use.
24528         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24529         * modules/striconveha-tests (Makefile.am): Likewise.
24530
24531 2010-11-27  Bruno Haible  <bruno@clisp.org>
24532
24533         regex: Mention link dependencies.
24534         * modules/regex (Link): New section.
24535         * modules/rpmatch (Link): Likewise.
24536         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24537
24538 2010-11-27  Bruno Haible  <bruno@clisp.org>
24539
24540         ftoastr: Fix compilation error on Solaris.
24541         * lib/ftoastr.c: Include <config.h>.
24542
24543 2010-11-27  Bruno Haible  <bruno@clisp.org>
24544
24545         getloadavg: Update documentation.
24546         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24547
24548 2010-11-27  Bruno Haible  <bruno@clisp.org>
24549
24550         sys_socket: Fix test whether the functions are declared.
24551         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24552         not <sys/select.h>.
24553
24554 2010-11-27  Bruno Haible  <bruno@clisp.org>
24555
24556         getpass: Make sure to get system declaration on some platforms.
24557         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24558         gl_USE_SYSTEM_EXTENSIONS.
24559         * modules/getpass (Depends-on): Add extensions.
24560
24561 2010-11-26  Bruno Haible  <bruno@clisp.org>
24562
24563         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24564         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24565         'iconv' module is present.
24566         (ICONV_CONST): New macro.
24567         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24568         ICONV_CONST.
24569         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24570         set ICONV_CONST.
24571         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24572         here.
24573         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24574         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24575         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24576         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24577         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24578         present.
24579
24580 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24581
24582         ftoastr: comment fix
24583         * lib/ftoastr.c: "little" -> "little or no" in comment
24584
24585 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24586
24587         stdint: port to GCC 4.3 + OSX + Octave
24588         On this platform, stdint.h is buggy and defines int64_t to long
24589         long int.  The replacement defined it to long int, causing
24590         problems with C++ style name mangling.  Instead, trust the system
24591         definition if INT64_MAX is defined, and likewise for the unsigned
24592         variant.   Problem reported by Jarno Rajahalme in
24593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24594         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24595         and don't mess with int64_t and INT64_MAX in this case.
24596         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24597
24598 2010-11-24  Bruno Haible  <bruno@clisp.org>
24599
24600         doc: Corrections regarding MacOS X 10.4 and 10.5.
24601         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24602         MacOS X.
24603         Reported by Simon Josefsson.
24604
24605 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24606
24607         Uninstall ".bin" files installed by relocwrapper.
24608         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24609         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24610         unless it is already there.
24611
24612 2010-11-21  Bruno Haible  <bruno@clisp.org>
24613
24614         Update for NetBSD 5.0.
24615         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24616         NetBSD; the test fails on NetBSD 5.0.
24617         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24618         about NetBSD.
24619
24620 2010-11-21  Bruno Haible  <bruno@clisp.org>
24621
24622         Update for HP-UX 11.23 and HP-UX 11.31.
24623         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24624         HP-UX.
24625
24626 2010-11-21  Bruno Haible  <bruno@clisp.org>
24627
24628         Update for MacOS X 10.5.
24629         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24630         MacOS X; the test fails on MacOS X 10.5.8.
24631         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24632         about MacOS X.
24633
24634 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24635
24636         bootstrap: add bootstrap_sync option.
24637         See discussion at
24638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24639         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24640         * build-aux/bootstrap: Accept --bootstrap-sync to update
24641         bootstrap if it is not identical to the local gnulib's
24642         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24643         enable this by default.  Accept --no-bootstrap-sync to disable
24644         it.
24645
24646 2010-11-20  Bruno Haible  <bruno@clisp.org>
24647
24648         Ensure that <features.h> is included before __GLIBC__ is tested.
24649         * lib/printf-parse.h: Include <features.h>.
24650         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24651         Reported by Mike Frysinger <vapier@gentoo.org>.
24652
24653         Ensure that <features.h> is included before __GLIBC__ is tested.
24654         * lib/wchar.in.h: Include <features.h>.
24655         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24656         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24657         Reported by Mike Frysinger <vapier@gentoo.org>.
24658
24659         Ensure that <features.h> is included before __GLIBC__ is tested.
24660         * lib/arpa_inet.in.h: Include <features.h>.
24661         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24662         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24663         Reported by Mike Frysinger <vapier@gentoo.org>.
24664
24665         Ensure that <features.h> is included before __GLIBC__ is tested.
24666         * build-aux/link-warning.h: Include <features.h>.
24667         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24668         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24669         Reported by Mike Frysinger <vapier@gentoo.org>.
24670
24671         Ensure that <features.h> is included before __GLIBC__ is tested.
24672         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24673         Reported by Mike Frysinger <vapier@gentoo.org>.
24674
24675 2010-11-20  Bruno Haible  <bruno@clisp.org>
24676
24677         memmem: Fix autoconf test.
24678         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24679
24680 2010-11-20  Bruno Haible  <bruno@clisp.org>
24681
24682         Port to uClibc.
24683         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24684         * lib/fcntl.in.h: Likewise.
24685         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24686         * lib/mbrtowc.c (mbrtowc): Likewise.
24687         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24688         * lib/strerror_r.c: Likewise.
24689         * lib/unistr/u8-strnlen.c: Likewise.
24690         * lib/vasnprintf.c (decimal_point_char): Likewise.
24691         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24692         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24694         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24695         * tests/test-sigaction.c (handler, main): Likewise.
24696         * lib/freading.h: Treat uClibc like a non-glibc platform.
24697         * lib/freading.c: Likewise.
24698         * lib/gettext.h: Likewise.
24699         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24700         Likewise.
24701         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24702         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24703         * lib/propername.c (proper_name_utf8): Likewise.
24704         * lib/spawn.in.h: Likewise.
24705         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24706         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24707         mem_cd_iconveh_internal): Likewise.
24708         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24709         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24710         strstr, strcasestr): Likewise.
24711         * lib/unicodeio.c (unicode_to_mb): Likewise.
24712         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24713         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24714         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24715         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24716         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24717         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24718         * lib/unistr/u8-stpncpy.c: Likewise.
24719         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24720         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24721         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24722         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24723         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24724         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24725         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24726         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24728         Likewise.
24729         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24730         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24731         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24732         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24734         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24735         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24736         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24737         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24738         * tests/test-striconveha.c (main): Likewise.
24739         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24740         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24741         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24742         * doc/posix-functions/getline.texi: Likewise.
24743         Reported by Mike Frysinger <vapier@gentoo.org>.
24744
24745 2010-11-20  Bruno Haible  <bruno@clisp.org>
24746
24747         nproc: Fix condition.
24748         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24749         HAVE_PTHREAD_AFFINITY_NP.
24750
24751 2010-11-20  Bruno Haible  <bruno@clisp.org>
24752
24753         Fix a comment.
24754         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24755
24756 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24757
24758         ftoastr: don't assume snprintf
24759         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24760         Implement a subset of snprintf here, by using sprintf safely.
24761         * modules/ftoastr (Depends-on): Remove snprintf.
24762
24763 2010-11-19  Jim Meyering  <meyering@redhat.com>
24764
24765         test-rename.h: fix compilation failure
24766         * tests/test-rename.h (test_rename): Add omitted "}".
24767
24768 2010-11-17  Jim Meyering  <meyering@redhat.com>
24769
24770         maint.mk: add a URL discussing the no-@acronym policy
24771         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24772
24773 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24774
24775         ftoastr: depend on snprintf, improve comments
24776         * lib/ftoastr.c: Also mention Loitsch's draft.
24777         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24778         needed in the current implementation, but it might simplify
24779         speeding up the code later.
24780         * modules/ftoastr: Depend on snprintf; this improves portability.
24781         Suggested by Bruno Haible in the same email.
24782
24783         ftoastr: port to hosts lacking strtof and strtold
24784         Problem reported by Bruno Haible in
24785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24786         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24787         environment and strtold (and presumably strtof) are not available.
24788         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24789         (configure.ac): Require gl_C99_STRTOLD.
24790
24791 2010-11-18  Bruno Haible  <bruno@clisp.org>
24792
24793         c-strtold: Avoid link error on AIX 7.
24794         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24795         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24796         (gl_C_STRTOLD): Test whether strtold_l exists.
24797         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24798
24799 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24800
24801         intprops: new macro INT_BITS_STRLEN_BOUND
24802         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24803         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24804         not exposed.  Also, it uses a slightly tighter bound than before;
24805         though this makes no practical difference, we might as well be as
24806         tight as we easily can.
24807
24808         ftoastr: new module, for lossless conversion of floats to short strings
24809         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24810         * modules/ftoastr: New files.
24811
24812 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24813
24814         bootstrap: port to Solaris sed
24815         * build-aux/bootstrap (get_version): Port to Solaris sed.
24816         See Ralf Wildenhues's note in
24817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24818
24819 2010-11-14  Jim Meyering  <meyering@redhat.com>
24820
24821         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24822         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24823         and move definition closer to sole use.
24824
24825 2010-11-13  Jim Meyering  <meyering@redhat.com>
24826
24827         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24828         Now we require at least autoconf-2.59, which means the work-around
24829         is no longer needed.
24830         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24831         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24832         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24833         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24834         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24835
24836 2010-11-13  Bruno Haible  <bruno@clisp.org>
24837
24838         rename, renameat: Avoid test failures at NFS mounted locations.
24839         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24840         functions.
24841         (test_rename): Use assert_nonexistent.
24842         * tests/test-rename.c: Include <dirent.h>.
24843         * tests/test-renameat.c: Likewise.
24844         Reported by Gary V. Vaughan <gary@gnu.org>.
24845
24846         rename, renameat: Document Linux bug with NFS
24847         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24848         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24849         * doc/posix-functions/renameat.texi: Likewise.
24850         Suggested by Eric Blake.
24851
24852 2010-11-13  Bruno Haible  <bruno@clisp.org>
24853
24854         rename test: Add comments.
24855         * tests/test-rename.h (test_rename): Add structure and comments.
24856
24857 2010-11-13  Eric Blake  <eblake@redhat.com>
24858
24859         maintainer-makefile: cover a few more files
24860         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24861         scripts generated within C files, for libvirt.
24862
24863 2010-11-13  Bruno Haible  <bruno@clisp.org>
24864
24865         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24866         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24867         character, return the number of bytes that belong together, not always
24868         1.
24869         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24870         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24871         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24872         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24873         number of bytes of an invalid character.
24874         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24875         (main): Invoke it.
24876         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24877         results.
24878         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24879         malformed byte sequences.
24880         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24881         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24882         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24883         Reported by Ben Pfaff and Paolo Bonzini.
24884
24885 2010-11-13  Bruno Haible  <bruno@clisp.org>
24886
24887         openat: Work around glibc bug with fchownat() and empty file names.
24888         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24889         (gl_FUNC_FCHOWNAT): Invoke it.
24890         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24891         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24892         Reported by Gary V. Vaughan <gary@gnu.org>.
24893
24894 2010-11-13  Bruno Haible  <bruno@clisp.org>
24895
24896         openat: Ensure autoconf macro ordering.
24897         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24898         gl_USE_SYSTEM_EXTENSIONS.
24899         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24900
24901 2010-11-13  Bruno Haible  <bruno@clisp.org>
24902
24903         Update comments.
24904         * lib/unistr/u8-check.c: Update file name in comments.
24905         * lib/unistr/u8-mblen.c: Likewise.
24906         * lib/unistr/u8-prev.c: Likewise.
24907         * lib/unistr/u8-strmblen.c: Likewise.
24908         * lib/unistr/u8-strmbtouc.c: Likewise.
24909
24910 2010-11-13  Jim Meyering  <meyering@redhat.com>
24911
24912         tests: avoid test failure on Solaris 10 due to lack of PATH export
24913         * tests/test-update-copyright.sh: Don't forget to export PATH.
24914
24915         init.sh: ensure that IFS is defined, just in case...
24916         * tests/init.sh (setup_): Ensure that IFS is defined,
24917         so that saving and restoring it works as expected.  This
24918         appears to be useful at least for an old version of dash
24919         from a long time ago (RH 6).  See here for details:
24920         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24921
24922         maint.mk: tighten "test a == b" check
24923         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24924         test to files that contain something like #!/bin/sh.
24925         Without this, coreutils would get two false positives in
24926         the comments of C source files.
24927
24928 2010-11-12  Eric Blake  <eblake@redhat.com>
24929
24930         bootstrap: fix typo in previous attempt
24931         * build-aux/bootstrap (buildreq): Correct the grouping.
24932         Reported by Paul Eggert.
24933
24934         maintainer-makefile: prohibit test x == x
24935         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24936         Based on a report by Matthias Bolte.
24937
24938         bootstrap: allow FreeBSD gzip
24939         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24940         which has no '.' and goes to stderr.
24941         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24942         Reported by Matthias Bolte.
24943
24944         maintainer-makefile: check for i18n setup
24945         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24946         will likely work.
24947
24948 2010-11-12  Bruno Haible  <bruno@clisp.org>
24949
24950         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24951         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24952         * lib/nanosleep.c (nanosleep): Likewise.
24953
24954 2010-11-11  Bruno Haible  <bruno@clisp.org>
24955
24956         fcntl-h: Fix for use of C++ on glibc systems.
24957         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24958         also on glibc systems in C++ mode.
24959         Reported by Gary V. Vaughan <gary@gnu.org>.
24960
24961 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24962
24963         mknod: avoid false failure with dash
24964         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24965
24966 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24967
24968         unlink: Fix "is it should" typo in diagnostic.
24969         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24970         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24971
24972 2010-11-11  Bruno Haible  <bruno@clisp.org>
24973
24974         Tests for module 'strerror_r-posix'.
24975         * modules/strerror_r-posix-tests: New file.
24976         * tests/test-strerror_r.c: New file.
24977         * tests/test-string-c++.cc: Check the signature of strerror_r.
24978
24979         New module 'strerror_r-posix'.
24980         * lib/string.in.h (strerror_r): New declaration.
24981         * lib/strerror_r.c: New file.
24982         * m4/strerror_r.m4: New file.
24983         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24984         of strerror_r.
24985         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24986         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24987         * modules/strerror_r-posix: New file.
24988         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24989         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24990         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24991         portability problems.
24992
24993 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24994
24995         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24996         line is also considered for output. Quoted function name in shell
24997         command, so temporary files for functions like MyClass::operator()
24998         are removed correctly without errors.
24999
25000 2010-11-09  Bruno Haible  <bruno@clisp.org>
25001
25002         * doc/posix-functions/strerror.texi: List more failing platforms.
25003
25004         * doc/posix-functions/strerror.texi: Add a comment.
25005
25006 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25007
25008         fdopendir: fix bug on MacOS X when low on file descriptors
25009
25010         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25011         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25012         All callers changed.
25013         (fdopendir): Invoke save_cwd at the top level, not after using
25014         multiple dup() calls to use up file descriptors.  Then retry
25015         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25016         less than the maximum number of open file descriptors, because
25017         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25018         on Mac OS X 10.6.4 for tar 1.24
25019         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25020         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25021         and for tar 1.25
25022         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25023
25024 2010-11-07  Bruno Haible  <bruno@clisp.org>
25025
25026         vasnprintf: Support I flag on glibc systems.
25027         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25028         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25029         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25030         snprintf function.
25031         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25032         glibc systems.
25033         * tests/test-vasnprintf-posix3.c: New file.
25034         * modules/vasnprintf-posix-tests (Files): Add it.
25035         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25036
25037 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25038
25039         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25040         * MODULES.html.sh: For compiler warnings, use name
25041         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25042
25043 2010-11-05  Eric Blake  <eblake@redhat.com>
25044
25045         ceil, floor: avoid spurious failure with icc
25046         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25047         [denormals-as-zero] when optimizing without -mieee-fp option.
25048         * tests/test-floorf2.c (floorf_reference): Likewise.
25049         * tests/test-ceilf1.c (dummy): New function.
25050         (main): Use it to outsmart icc's optimization.
25051         * tests/test-floorf1.c (dummy, main): Likewise.
25052
25053         tests: require working signbit
25054         * modules/ceilf-tests (Depends-on): Add signbit.
25055         * modules/ceill-tests (Depends-on): Likewise.
25056         * modules/floorf-tests (Depends-on): Likewise.
25057         * modules/floorl-tests (Depends-on): Likewise.
25058         * modules/round-tests (Depends-on): Likewise.
25059         * modules/roundf-tests (Depends-on): Likewise.
25060         * modules/roundl-tests (Depends-on): Likewise.
25061         * modules/trunc-tests (Depends-on): Likewise.
25062         * modules/truncf-tests (Depends-on): Likewise.
25063         * modules/truncl-tests (Depends-on): Likewise.
25064
25065         strtod: work around icc bug
25066         * lib/strtod.c (minus_zero): Define to working value.
25067         (strtod): Use it to avoid icc bug.
25068
25069         copysign: enhance tests
25070         * modules/copysign-tests (Files): Add minus-zero.h.
25071         * tests/test-copysign.c (main): Also test zeros.
25072
25073 2010-11-04  Eric Blake  <eblake@redhat.com>
25074
25075         ceil, floor, round, trunc: enhance tests of -0
25076         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25077         * tests/test-ceill.c (main): Likewise.
25078         * tests/test-floorf1.c (main): Likewise.
25079         * tests/test-floorl.c (main): Likewise.
25080         * tests/test-round1.c (main): Likewise.
25081         * tests/test-roundf1.c (main): Likewise.
25082         * tests/test-roundl.c (main): Likewise.
25083         * tests/test-trunc1.c (main): Likewise.
25084         * tests/test-truncf1.c (main): Likewise.
25085         * tests/test-truncl.c (main): Likewise.
25086
25087 2010-11-04  Eric Blake  <eblake@redhat.com>
25088
25089         frexp, tests: work around ICC bug with -zero
25090         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25091         works with more compilers.
25092         * tests/minus-zero.h: New file.
25093         * modules/ceilf-tests (Files): Include it.
25094         * modules/ceill-tests (Files): Likewise.
25095         * modules/floorf-tests (Files): Likewise.
25096         * modules/floorl-tests (Files): Likewise.
25097         * modules/frexp-nolibm-tests (Files): Likewise.
25098         * modules/frexp-tests (Files): Likewise.
25099         * modules/frexpl-nolibm-tests (Files): Likewise.
25100         * modules/frexpl-tests (Files): Likewise.
25101         * modules/isnan-tests (Files): Likewise.
25102         * modules/isnand-nolibm-tests (Files): Likewise.
25103         * modules/isnand-tests (Files): Likewise.
25104         * modules/isnanf-nolibm-tests (Files): Likewise.
25105         * modules/isnanf-tests (Files): Likewise.
25106         * modules/isnanl-nolibm-tests (Files): Likewise.
25107         * modules/isnanl-tests (Files): Likewise.
25108         * modules/round-tests (Files): Likewise.
25109         * modules/roundf-tests (Files): Likewise.
25110         * modules/roundl-tests (Files): Likewise.
25111         * modules/ldexpl-tests (Files): Likewise.
25112         * modules/signbit-tests (Files): Likewise.
25113         * modules/snprintf-posix-tests (Files): Likewise.
25114         * modules/sprintf-posix-tests (Files): Likewise.
25115         * modules/strtod-tests (Files): Likewise.
25116         * modules/trunc-tests (Files): Likewise.
25117         * modules/truncf-tests (Files): Likewise.
25118         * modules/truncl-tests (Files): Likewise.
25119         * modules/vsnprintf-posix-tests (Files): Likewise.
25120         * modules/vsprintf-posix-tests (Files): Likewise.
25121         * modules/vasnprintf-posix-tests (Files): Likewise.
25122         * modules/vasprintf-posix-tests (Files): Likewise.
25123         * tests/test-ceilf1.c (main): Use it.
25124         * tests/test-ceill.c (main): Likewise.
25125         * tests/test-floorf1.c (main): Likewise.
25126         * tests/test-floorl.c (main): Likewise.
25127         * tests/test-frexp.c (main): Likewise.
25128         * tests/test-frexpl.c (main): Likewise.
25129         * tests/test-isnan.c (main): Likewise.
25130         * tests/test-isnand.h (main): Likewise.
25131         * tests/test-isnanf.h (main): Likewise.
25132         * tests/test-isnanl.h (main): Likewise.
25133         * tests/test-ldexpl.c (main): Likewise.
25134         * tests/test-round.c (main): Likewise.
25135         * tests/test-roundf.c (main): Likewise.
25136         * tests/test-roundl.c (main): Likewise.
25137         * tests/test-signbit.c (test_signbitf, test_signbitd)
25138         (test_signbitl): Likewise.
25139         * tests/test-snprintf-posix.h (test_function): Likewise.
25140         * tests/test-sprintf-posix.h (test_function): Likewise.
25141         * tests/test-strtod.c (main): Likewise.
25142         * tests/test-trunc1.c (main): Likewise.
25143         * tests/test-truncf1.c (main): Likewise.
25144         * tests/test-truncl.c (main): Likewise.
25145
25146         isnanl: work around icc bug
25147         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25148
25149 2010-11-03  Eric Blake  <eblake@redhat.com>
25150
25151         tests: fix compiler warnings
25152         * tests/test-getopt.h (test_getopt): Fix condition.
25153         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25154         * tests/test-pipe2.c (main): Likewise.
25155         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25156
25157         utimens: fix broken m4 test
25158         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25159
25160 2010-10-28  Bruno Haible  <bruno@clisp.org>
25161
25162         posix_spawn*, getdtablesize: Relax license.
25163         * modules/posix_spawn (License): Change to LGPLv2+.
25164         * modules/posix_spawnp (License): Likewise.
25165         * modules/posix_spawn-internal (License): Likewise.
25166         * modules/posix_spawnattr_init (License): Likewise.
25167         * modules/posix_spawnattr_getflags (License): Likewise.
25168         * modules/posix_spawnattr_setflags (License): Likewise.
25169         * modules/posix_spawnattr_getpgroup (License): Likewise.
25170         * modules/posix_spawnattr_setpgroup (License): Likewise.
25171         * modules/posix_spawnattr_getschedparam (License): Likewise.
25172         * modules/posix_spawnattr_setschedparam (License): Likewise.
25173         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25174         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25175         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25176         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25177         * modules/posix_spawnattr_getsigmask (License): Likewise.
25178         * modules/posix_spawnattr_setsigmask (License): Likewise.
25179         * modules/posix_spawnattr_destroy (License): Likewise.
25180         * modules/posix_spawn_file_actions_init (License): Likewise.
25181         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25182         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25183         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25184         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25185         * modules/getdtablesize (License): Likewise.
25186         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25187
25188 2010-10-26  Bruno Haible  <bruno@clisp.org>
25189
25190         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25191         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25192         Cygwin and mingw.
25193         Suggested by Eric Blake.
25194
25195 2010-10-26  Bruno Haible  <bruno@clisp.org>
25196
25197         stdio: Work around compilation error due to renameat() on Solaris 10.
25198         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25199         * lib/renameat.c: Don't include <unistd.h> here.
25200         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25201         Reported by Paul Eggert and Eric Blake.
25202
25203 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25204
25205         renameat: port to Solaris 10, which declares renameat in unistd.h
25206
25207         * lib/renameat.c: Include unistd.h before stdio.h, because
25208         Solaris 10 declares renameat in unistd.h.  Problem encountered
25209         when building GNU tar 1.24 on Solaris 10.
25210
25211 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25212
25213         fdopendir: fix C89 compilation
25214         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25215         compilers.
25216
25217 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25218
25219         inttostr: simplify by removing unnecessary redundancy
25220         * lib/anytostr.c: Don't include verify.h.
25221         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25222         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25223         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25224         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25225         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25226         Likewise.
25227         * modules/inttostr (Depends-on): Remove 'verify'.
25228
25229 2010-10-23  Bruno Haible  <bruno@clisp.org>
25230
25231         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25232         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25233         Reported by Eric Blake.
25234
25235 2010-10-23  Bruno Haible  <bruno@clisp.org>
25236
25237         Tests: Fix LOCALE_JA on MirBSD 10.
25238         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25239         to an UTF-8 locale.
25240         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25241         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25242         Reported by Eric Blake.
25243
25244 2010-10-21  Bruno Haible  <bruno@clisp.org>
25245
25246         nl_langinfo test: Avoid test failure on NetBSD 5.
25247         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25248         Reported by Eric Blake.
25249
25250 2010-10-21  Eric Blake  <eblake@redhat.com>
25251
25252         c-stack: work around libsigsegv 2.8 bug
25253         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25254         overflow on at least PowerPC64.
25255
25256 2010-10-17  Bruno Haible  <bruno@clisp.org>
25257
25258         userspec: Drop redundant file.
25259         * modules/userspec (Files): Remove lib/inttostr.h.
25260
25261 2010-10-17  Bruno Haible  <bruno@clisp.org>
25262
25263         nl_langinfo tests: Silence some warnings.
25264         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25265         Reported by Jim Meyering.
25266
25267 2010-10-17  Bruno Haible  <bruno@clisp.org>
25268
25269         Make use of GCC's attribute __alloc_size__.
25270         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25271         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25272         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25273         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25274         __alloc_size__.
25275         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25276         Suggested by Jim Meyering.
25277
25278 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25279
25280         bootstrap: anchor .gitignore entries.
25281         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25282         with...
25283         (insert_vc_ignore): ... this new function, which prepends `/' to
25284         all .gitignore entries before passing them to
25285         insert_sorted_if_absent.
25286
25287 2010-10-16  Bruno Haible  <bruno@clisp.org>
25288
25289         nextafter: Fix configure check.
25290         * modules/nextafter (configure.ac): Correct expected prototype.
25291
25292 2010-10-16  Bruno Haible  <bruno@clisp.org>
25293
25294         termios: Update documentation.
25295         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25296
25297 2010-10-16  Bruno Haible  <bruno@clisp.org>
25298
25299         tests: Make them compile with TinyCC.
25300         * tests/test-strstr.c (main): Remove parentheses around array
25301         initializer.
25302
25303 2010-10-15  Eric Blake  <eblake@redhat.com>
25304
25305         ignore-value: make header idempotent
25306         * lib/ignore-value.h: Add double-inclusion guards.
25307         Reported by Stefan Berger.
25308
25309 2010-10-15  Jim Meyering  <meyering@redhat.com>
25310
25311         GNUmakefile: handle "stable" target, not "major"
25312         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25313         lists in maint.mk and announce-gen.  Without this, "make stable"
25314         would fail to ensure that $(VERSION) is up to date.
25315
25316 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25317
25318         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25319         & co.
25320
25321 2010-10-14  Bruno Haible  <bruno@clisp.org>
25322
25323         vasnprintf: Don't set errno to 0.
25324         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25325         block that sets it to 0.
25326         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25327
25328 2010-10-14  Bruno Haible  <bruno@clisp.org>
25329
25330         socketlib: Fix.
25331         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25332         gl_PREREQ_SYS_H_WINSOCK2.
25333         Reported by Ian Beckwith <ianb@erislabs.net>.
25334
25335 2010-10-13  Jim Meyering  <meyering@redhat.com>
25336
25337         test-select-stdin.c: avoid warn_unused_result warnings
25338         * tests/test-select-stdin.c: Include "macros.h".
25339         ASSERT that read and fflush succeed.
25340
25341 2010-10-13  Jim Meyering  <meyering@redhat.com>
25342
25343         git-version-gen: do require git-VC'd files in cwd
25344         * build-aux/git-version-gen: Reject a git version string
25345         if there are no commits associated with the current directory.
25346         This avoids an unlikely false-positive (unrelated dir whose parent
25347         repository also contains a tag matching v*), as pointed out
25348         by Giuseppe Scrivano in
25349         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25350
25351 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25352
25353         argv-iter: omit nonconforming declaration
25354         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25355         enum arg_iter_err declaration, which doesn't conform to C99.
25356         Solaris 10 cc warns about this.
25357
25358 2010-10-13  Eric Blake  <eblake@redhat.com>
25359
25360         termios: fix compilation on mingw
25361         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25362         (gl_TERMIOS_H): Adjust it on mingw.
25363         * modules/termios (Makefile.am): Substitute new key.
25364         * lib/termios.in.h (includes): Make include_next conditional.
25365         * doc/posix-headers/termios.texi (termios.h): Update
25366         documentation.
25367         Reported by Daniel P. Berrange.
25368
25369 2010-10-13  Jim Meyering  <meyering@redhat.com>
25370
25371         git-version-gen: don't require that .git/ be in the current dir
25372         * build-aux/git-version-gen: Adjust this script so that it works
25373         when run from any working directory beneath the top-level .git/-
25374         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25375         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25376
25377         test-select: avoid warn_unused_result warnings
25378         * tests/test-select.c: Include "macros.h".
25379         ASSERT that each call to read, write, and pipe succeeds.
25380         While not technically required, also check each "close".
25381         * modules/select-tests (Files): Add tests/macros.h.
25382
25383         test-symlinkat: remove declaration of unused local
25384         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25385
25386         test-inttostr: avoid shadowing warnings
25387         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25388         and use malloc rather than the stack for the same reason as
25389         mentioned in the comment justifying the other allocation.
25390
25391 2010-10-11  Bruno Haible  <bruno@clisp.org>
25392
25393         stdlib: Allow multiple gnulib generated replacements to coexist.
25394         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25395         Reported by Sam Steingold <sds@gnu.org>.
25396
25397 2010-10-11  Jim Meyering  <meyering@redhat.com>
25398
25399         fix a documentation typo
25400         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25401
25402 2010-10-11  Eric Blake  <eblake@redhat.com>
25403
25404         futimens: work around Solaris 11 bug
25405         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25406         * tests/test-futimens.h (test_futimens): Enhance, rather than
25407         weaken test.
25408         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25409
25410 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25411
25412         Indentation.
25413         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25414         higher-level operators more to the left.
25415
25416 2010-10-11  Jim Meyering  <meyering@redhat.com>
25417
25418         test-futimens: avoid unwarranted test failure on Solaris 5.11
25419         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25420         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25421         because it tries to dereference the NULL name argument.
25422
25423 2010-10-11  Bruno Haible  <bruno@clisp.org>
25424
25425         Indentation.
25426         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25427         indentation.
25428
25429 2010-10-11  Jim Meyering  <meyering@redhat.com>
25430
25431         spawn.in.h: make indentation consistent with parentheses
25432         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25433         Make indentation consistent with parentheses.
25434
25435 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25436
25437         Fix mismatched parens in previous commit
25438         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25439         parens.
25440
25441 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25442
25443         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25444
25445         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25446         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25447         * lib/malloca.c: Include "verify.h".
25448         (verify1): Remove, replacing with a verify call.
25449         * lib/relocwrapper.c (verify1): Likewise.
25450         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25451         Likewise.
25452         * modules/malloca (Depends-on): Add 'verify'.
25453         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25454         * modules/vasnprintf (Depends-on): Add 'verify'.
25455         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25456         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25457         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25458         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25459         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25460         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25461         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25462
25463         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25464
25465         Formerly the style was sometimes 2*X - 1, because the C standard
25466         was wrongly thought to disallow ?: in integral constant expressions.
25467         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25468         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25469         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25470         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25471         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25472         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25473         verify that time_t cannot be floating.
25474
25475 2010-10-08  Eric Blake  <eblake@redhat.com>
25476
25477         time: enforce recent POSIX ruling that time_t is integral
25478         * lib/time.in.h (__time_t_must_be_integral): Detect any
25479         problematic systems, allowing the rest of gnulib to assume POSIX.
25480
25481 2010-10-08  Jim Meyering  <meyering@redhat.com>
25482
25483         fdopendir: fix a bug on systems lacking openat and /proc support
25484         OpenBSD 4.7 is one such system.  The most noticeable effect was
25485         failure of any application making nontrivial use of fts: rm, du,
25486         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25487           ./rm: traversal failed: `a': Bad file descriptor
25488         Debugging that, you see that even though FD 6 was closed just
25489         prior to the opendir call in fd_clone_opendir, its resulting
25490         dir->dd_fd was 8, rather than the expected value of 6:
25491
25492         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25493         93                close (fd);
25494         (gdb) n
25495         94                dir = fd_clone_opendir (dupfd);
25496         (gdb) n
25497         95                saved_errno = errno;
25498         (gdb) p dir->dd_fd
25499         $11 = 8
25500
25501         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25502         The problem is that on OpenBSD, fd_clone_opendir has to resort
25503         to using the old-style save/restore CWD mechanism, due to its
25504         lack of openat/proc support, and *that* would steal the FD (6)
25505         that opendir was supposed to use.
25506
25507         The fix is to squirrel away the desired FD so that save_cwd uses a
25508         different one, and then free the dest FD right before calling opendir.
25509         That guarantees opendir will use the required file descriptor.
25510
25511         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25512
25513 2010-10-08  Bruno Haible  <bruno@clisp.org>
25514
25515         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25516         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25517
25518 2010-10-08  Bruno Haible  <bruno@clisp.org>
25519
25520         nanosleep: Make replacement POSIX compliant.
25521         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25522         is out of range.
25523         Reported by Jim Meyering.
25524
25525 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25526
25527         bootstrap: add hook for altering gnulib.mk, for Bison
25528         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25529         the Bison bootstrapping process can rewrite file names and variables
25530         in this file before later parts of 'bootstrap' use the file.
25531         Bison wants to include lib/gnulib.mk from the top-level makefile,
25532         so it needs the file names in this file to be relative to the top
25533         level, not relative to lib; plus it needs variable names to be
25534         rewritten.
25535         (slurp): Use the new function.
25536
25537         bootstrap: reformat for readability
25538         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25539
25540 2010-10-08  Eric Blake  <eblake@redhat.com>
25541
25542         docs: update cygwin progress
25543         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25544         1.7.7.
25545         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25546         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25547         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25548         * doc/posix-functions/carg.texi (carg): Likewise.
25549         * doc/posix-functions/cargf.texi (cargf): Likewise.
25550         * doc/posix-functions/casin.texi (casin): Likewise.
25551         * doc/posix-functions/casinf.texi (casinf): Likewise.
25552         * doc/posix-functions/casinh.texi (casinh): Likewise.
25553         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25554         * doc/posix-functions/catan.texi (catan): Likewise.
25555         * doc/posix-functions/catanf.texi (catanf): Likewise.
25556         * doc/posix-functions/catanh.texi (catanh): Likewise.
25557         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25558         * doc/posix-functions/ccos.texi (ccos): Likewise.
25559         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25560         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25561         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25562         * doc/posix-functions/cexp.texi (cexp): Likewise.
25563         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25564         * doc/posix-functions/cimag.texi (cimag): Likewise.
25565         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25566         * doc/posix-functions/clog.texi (clog): Likewise.
25567         * doc/posix-functions/clogf.texi (clogf): Likewise.
25568         * doc/posix-functions/conj.texi (conj): Likewise.
25569         * doc/posix-functions/conjf.texi (conjf): Likewise.
25570         * doc/posix-functions/cpow.texi (cpow): Likewise.
25571         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25572         * doc/posix-functions/cproj.texi (cproj): Likewise.
25573         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25574         * doc/posix-functions/creal.texi (creal): Likewise.
25575         * doc/posix-functions/crealf.texi (crealf): Likewise.
25576         * doc/posix-functions/csin.texi (csin): Likewise.
25577         * doc/posix-functions/csinf.texi (csinf): Likewise.
25578         * doc/posix-functions/csinh.texi (csinh): Likewise.
25579         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25580         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25581         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25582         * doc/posix-functions/ctan.texi (ctan): Likewise.
25583         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25584         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25585         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25586         * doc/posix-headers/complex.texi (complex.h): Likewise.
25587
25588 2010-10-07  Jim Meyering  <meyering@redhat.com>
25589
25590         parse-datetime: avoid compilation failure on OpenBSD 4.7
25591         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25592         This works around a compilation failure on OpenBSD 4.7:
25593         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25594
25595 2010-10-07  Eric Blake  <eblake@redhat.com>
25596
25597         docs: update cygwin progress
25598         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25599         1.7.6.
25600         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25601         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25602         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25603         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25604         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25605         Likewise.
25606         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25607         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25608         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25609         Likewise.
25610         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25611         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25612         Likewise.
25613         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25614         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25615         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25616         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25617         Likewise.
25618         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25619         Likewise.
25620         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25621
25622         docs: update parse-datetime history
25623         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25624         documentation of this function's history and alternatives.
25625
25626         cygwin: use more robust version check
25627         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25628         exclude an eventual cygwin 1.9.1.
25629         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25631         (gl_FUNC_STRCASESTR): Likewise.
25632         Reported by Bruno Haible.
25633
25634 2010-10-06  Bruno Haible  <bruno@clisp.org>
25635
25636         string, sys_select: Avoid #including large headers unless necessary.
25637         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25638         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25639         OSF/1, BeOS, Haiku.
25640         Reported by Jim Meyering.
25641
25642 2010-10-05  Eric Blake  <eblake@redhat.com>
25643
25644         memmem, strstr, strcasestr: fix bug with long periodic needle
25645         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25646         periodic needle having false positive.
25647         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25648         and cygwin 1.7.7.
25649         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25651         (gl_FUNC_STRCASESTR): Likewise.
25652         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25653         * tests/test-memmem.c (main): Expose the bug.
25654         * tests/test-strcasestr.c (main): Likewise.
25655         * tests/test-strstr.c (main): Likewise.
25656         * tests/test-c-strcasestr.c (main): Likewise.
25657         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25658         * doc/posix-functions/strstr.texi (strstr): Likewise.
25659         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25660         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25661
25662 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25663
25664         parse-datetime: do some more renaming
25665         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25666         parse_datetime, not get_date.  Mention the renaming.
25667         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25668         in comments.
25669         * m4/bison.m4: Likewise.
25670
25671 2010-10-05  Eric Blake  <eblake@redhat.com>
25672
25673         parse-datetime: better name than get_date
25674         * NEWS: Reword the deprecation notice.
25675         * modules/get_date: Rename to modules/parse-datetime.
25676         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25677         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25678         * lib/get_date.y: Rename to lib/parse-datetime.y.
25679         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25680         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25681         * doc/getdate.texi: Provide fallback wrapper.
25682         * lib/getdate.h: Move guts, and wrap...
25683         * lib/parse-datetime.h: ...new file.
25684         * lib/parse-datetime.y (get_date): Rename...
25685         (parse_datetime): ...to this.
25686         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25687         (gl_PARSE_DATETIME): ...to this.
25688         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25689         documentation.
25690         * modules/getdate (Files): Provide fallback docs and header.
25691         (Notice, Depends-on): Update references.
25692         * tests/test-parse-datetime.c: Likewise.
25693         * DEPENDENCIES: Likewise.
25694         * MODULES.html.sh (Date and time <time.h>): Likewise.
25695         * doc/parse-datetime.texi (Date input formats)
25696         (Authors of parse_datetime): Likewise.
25697         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25698         (Include): Likewise.
25699         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25700         * gnulib-tool: Likewise.
25701         * m4/bison.m4 (gl_BISON): Likewise.
25702         Suggested by Bruno Haible.
25703
25704 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25705
25706         more ports to Solaris tr, which needs [] around ranges
25707         * gnulib-tool: Solaris tr needs [] around ranges.
25708         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25709         * tests/test-pipe-filter-gi1.c (main): Likewise.
25710         * tests/test-pipe-filter-ii1.c (main): Likewise.
25711
25712 2010-10-05  Eric Blake  <eblake@redhat.com>
25713
25714         bootstrap: fix Solaris regression
25715         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25716         around ranges.
25717         Reported by Pádraig Brady.
25718
25719         bootstrap: work with pkg-config
25720         * build-aux/bootstrap (check_versions): Also transliterate - in
25721         prerequisite name.
25722         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25723         prerequisites that were already found, to avoid confusion.
25724         Reported by Justin Clift.
25725
25726         faccessat: remove unused wrappers
25727         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25728         presence of these wrappers dragged in -lgen on Solaris.
25729         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25730
25731 2010-10-05  Jim Meyering  <meyering@redhat.com>
25732
25733         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25734         * Makefile (sc_pragma_columns): New syntax-check rule.
25735
25736 2010-10-04  Bruno Haible  <bruno@clisp.org>
25737
25738         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25739         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25740         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25741         Reported by Bruce Korb and Eric Blake.
25742
25743 2010-10-04  Bruno Haible  <bruno@clisp.org>
25744
25745         threadlib: Make option --with-libpth-prefix work.
25746         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25747         use $LIBPTH, not just -lpth.
25748
25749 2010-10-04  Bruno Haible  <bruno@clisp.org>
25750
25751         Avoid line length limitation from HP NonStop system header files.
25752         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25753         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25754         * lib/ctype.in.h: Likewise.
25755         * lib/dirent.in.h: Likewise.
25756         * lib/errno.in.h: Likewise.
25757         * lib/fcntl.in.h: Likewise.
25758         * lib/float.in.h: Likewise.
25759         * lib/getopt.in.h: Likewise.
25760         * lib/iconv.in.h: Likewise.
25761         * lib/inttypes.in.h: Likewise.
25762         * lib/langinfo.in.h: Likewise.
25763         * lib/locale.in.h: Likewise.
25764         * lib/math.in.h: Likewise.
25765         * lib/netdb.in.h: Likewise.
25766         * lib/netinet_in.in.h: Likewise.
25767         * lib/poll.in.h: Likewise.
25768         * lib/pthread.in.h: Likewise.
25769         * lib/pty.in.h: Likewise.
25770         * lib/sched.in.h: Likewise.
25771         * lib/se-selinux.in.h: Likewise.
25772         * lib/search.in.h: Likewise.
25773         * lib/signal.in.h: Likewise.
25774         * lib/spawn.in.h: Likewise.
25775         * lib/stdarg.in.h: Likewise.
25776         * lib/stddef.in.h: Likewise.
25777         * lib/stdint.in.h: Likewise.
25778         * lib/stdio.in.h: Likewise.
25779         * lib/stdlib.in.h: Likewise.
25780         * lib/string.in.h: Likewise.
25781         * lib/strings.in.h: Likewise.
25782         * lib/sys_file.in.h: Likewise.
25783         * lib/sys_ioctl.in.h: Likewise.
25784         * lib/sys_select.in.h: Likewise.
25785         * lib/sys_socket.in.h: Likewise.
25786         * lib/sys_stat.in.h: Likewise.
25787         * lib/sys_time.in.h: Likewise.
25788         * lib/sys_times.in.h: Likewise.
25789         * lib/sys_utsname.in.h: Likewise.
25790         * lib/sys_wait.in.h: Likewise.
25791         * lib/sysexits.in.h: Likewise.
25792         * lib/termios.in.h: Likewise.
25793         * lib/time.in.h: Likewise.
25794         * lib/unistd.in.h: Likewise.
25795         * lib/wchar.in.h: Likewise.
25796         * lib/wctype.in.h: Likewise.
25797         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25798         * modules/ctype (Makefile.am): Likewise.
25799         * modules/dirent (Makefile.am): Likewise.
25800         * modules/errno (Makefile.am): Likewise.
25801         * modules/fcntl-h (Makefile.am): Likewise.
25802         * modules/float (Makefile.am): Likewise.
25803         * modules/getopt-posix (Makefile.am): Likewise.
25804         * modules/iconv-h (Makefile.am): Likewise.
25805         * modules/inttypes (Makefile.am): Likewise.
25806         * modules/langinfo (Makefile.am): Likewise.
25807         * modules/locale (Makefile.am): Likewise.
25808         * modules/math (Makefile.am): Likewise.
25809         * modules/netdb (Makefile.am): Likewise.
25810         * modules/netinet_in (Makefile.am): Likewise.
25811         * modules/poll-h (Makefile.am): Likewise.
25812         * modules/pthread (Makefile.am): Likewise.
25813         * modules/pty (Makefile.am): Likewise.
25814         * modules/sched (Makefile.am): Likewise.
25815         * modules/search (Makefile.am): Likewise.
25816         * modules/selinux-h (Makefile.am): Likewise.
25817         * modules/signal (Makefile.am): Likewise.
25818         * modules/spawn (Makefile.am): Likewise.
25819         * modules/stdarg (Makefile.am): Likewise.
25820         * modules/stddef (Makefile.am): Likewise.
25821         * modules/stdint (Makefile.am): Likewise.
25822         * modules/stdio (Makefile.am): Likewise.
25823         * modules/stdlib (Makefile.am): Likewise.
25824         * modules/string (Makefile.am): Likewise.
25825         * modules/strings (Makefile.am): Likewise.
25826         * modules/sys_file (Makefile.am): Likewise.
25827         * modules/sys_ioctl (Makefile.am): Likewise.
25828         * modules/sys_select (Makefile.am): Likewise.
25829         * modules/sys_socket (Makefile.am): Likewise.
25830         * modules/sys_stat (Makefile.am): Likewise.
25831         * modules/sys_time (Makefile.am): Likewise.
25832         * modules/sys_times (Makefile.am): Likewise.
25833         * modules/sys_utsname (Makefile.am): Likewise.
25834         * modules/sys_wait (Makefile.am): Likewise.
25835         * modules/sysexits (Makefile.am): Likewise.
25836         * modules/termios (Makefile.am): Likewise.
25837         * modules/time (Makefile.am): Likewise.
25838         * modules/unistd (Makefile.am): Likewise.
25839         * modules/wchar (Makefile.am): Likewise.
25840         * modules/wctype (Makefile.am): Likewise.
25841
25842 2010-10-04  Bruno Haible  <bruno@clisp.org>
25843
25844         read-file tests: Avoid a test failure on NonStop Kernel.
25845         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25846         a regular file.
25847         Reported by Joachim Schmitz <schmitz@hp.com>.
25848
25849 2010-10-03  Bruno Haible  <bruno@clisp.org>
25850
25851         gnulib-tool: Fixes for --create-testdir with --libtool.
25852         * gnulib-tool (func_get_automake_snippet): Don't augment
25853         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25854         an executable.
25855         (func_create_testdir): Handle module 'alloca' like func_import.
25856         Reported by Bruce Korb <bruce.korb@gmail.com>.
25857
25858 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25859
25860         Avoid some lines longer than 80 characters.
25861         * lib/stdint.in.h: Break long comment lines.
25862         * lib/math.in.h: Likewise.
25863         (_GL_NUM_UINT_WORDS): New macro, for readability.
25864         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25865         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25866         * lib/stdlib.in.h: Likewise.
25867         * lib/spawn.in.h: Likewise.
25868         * lib/sys_socket.in.h: Update an URL.
25869         * lib/sys_stat.in.h: Break long line.
25870
25871 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25872
25873         Improve pmccabe2html.
25874         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25875         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25876         when the sources change. Remove the line in the HTML about "Used
25877         ranges" (which implied that there might be other unused ranges),
25878         rename "Resume" to "Summary" (easier to understand for more users).
25879         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25880         styles, and some unnecessary blank lines.
25881
25882 2010-10-03  Bruno Haible  <bruno@clisp.org>
25883             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25884
25885         acl: Add support for ACLs on NonStop Kernel.
25886         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25887         Check whether the function aclsort() exists.
25888         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25889         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25890         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25891         (acl_nontrivial [HAVE_ACLSORT]: New function.
25892         (file_has_acl): Implement for NonStop Kernel.
25893         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25894         (qset_acl): Implement for NonStop Kernel.
25895         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25896         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25897         (main): Implement for NonStop Kernel.
25898         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25899         Kernel. Handle this flavor.
25900         * tests/test-set-mode-acl.sh: Likewise.
25901         * tests/test-copy-acl.sh: Likewise.
25902         * tests/test-copy-file.sh: Likewise.
25903
25904 2010-10-03  Bruno Haible  <bruno@clisp.org>
25905
25906         Info about ACLs on NonStop Kernel.
25907         * doc/acl-resources.txt: Add info about NonStop Kernel.
25908         References by Joachim Schmitz <schmitz@hp.com>.
25909
25910 2010-10-02  Bruno Haible  <bruno@clisp.org>
25911
25912         Define missing EDQUOT on NonStop Kernel.
25913         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25914         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25916         missing.
25917         * doc/posix-headers/errno.texi: Mention the NSK bug.
25918         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25919         Reported by Joachim Schmitz <schmitz@hp.com>.
25920
25921 2010-10-02  Bruno Haible  <bruno@clisp.org>
25922
25923         Update doc for POSIX:2008.
25924         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25925         Update URL of POSIX specification.
25926
25927 2010-10-02  Bruno Haible  <bruno@clisp.org>
25928
25929         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25930         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25931         from gnulib, not from Automake.
25932
25933 2010-10-02  Bruno Haible  <bruno@clisp.org>
25934
25935         New module 'system-posix'.
25936         * modules/system-posix: New file.
25937         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25938         module is present.
25939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25940         GNULIB_SYSTEM_POSIX.
25941         * modules/stdlib (Depends-on): Remove sys_wait.
25942         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25943         * doc/posix-functions/system.texi: Mention the new module.
25944         * doc/posix-headers/stdlib.texi: Likewise.
25945         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25946         define test_sys_wait_macros to a no-op.
25947         Reported by Sam Steingold <sds@gnu.org>.
25948
25949 2010-09-30  Bruno Haible  <bruno@clisp.org>
25950
25951         More renaming from 'getdate' to 'get_date'.
25952         * doc/get_date.texi: Renamed from doc/getdate.texi.
25953         * modules/get_date (Files): Update.
25954         * MODULES.html.sh (Date and time <time.h>): Update.
25955         * DEPENDENCIES: Update.
25956         * gnulib-tool: Update comment.
25957         * m4/bison.m4 (gl_BISON): Likewise.
25958         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25959
25960 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25961
25962         bootstrap: support ACLOCAL_FLAGS during aclocal
25963         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25964         can add additional -I dir for third-party .m4 files.
25965
25966 2010-09-30  Eric Blake  <eblake@redhat.com>
25967
25968         bootstrap: use glibtoolize on MacOS
25969         * build-aux/bootstrap (check_versions): Convert libtool into
25970         libtoolize.
25971         (tool search): Move libtool check earlier, and look for
25972         glibtoolize for MacOS.
25973         (gnulib_tool_options): Auto-add --libtool when appropriate.
25974         Reported by Justin Clift.
25975
25976         poll: fix typo that broke test on MacOS
25977         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25978         Reported by Justin Clift.
25979
25980         getdate: rename to get_date
25981         Note: getdate.h is not renamed, to minimize client impact.
25982         * modules/getdate: Mark obsolete.  Move old contents...
25983         * modules/get_date: ...to new module name.
25984         * modules/getdate-tests: Move...
25985         * modules/get_date-tests: ...here.
25986         * m4/getdate.m4: Move...
25987         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25988         * lib/getdate.y: Move...
25989         * lib/get_date.y: ...here.
25990         * tests/test-getdate.c: Move...
25991         * tests/test-get_date.c: ...here.
25992         * doc/posix-functions/getdate.texi (getdate): Update name.
25993         * NEWS: Mention the change.
25994
25995 2010-09-29  Bruno Haible  <bruno@clisp.org>
25996
25997         Separate the module 'waitpid' from the module 'sys_wait'.
25998         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25999         present.
26000         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26001         gl_MODULE_INDICATOR_FOR_TESTS.
26002         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26003         * modules/sys_wait (Depends-on): Remove waitpid.
26004         (Makefile.am): Substitute GNULIB_WAITPID.
26005         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26006         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26007         signature only if the 'waitpid' module is present.
26008         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26009         * NEWS: Mention the change.
26010         * modules/grantpt (Depends-on): Add waitpid.
26011         * modules/wait-process (Depends-on): Likewise.
26012
26013 2010-09-29  Bruno Haible  <bruno@clisp.org>
26014
26015         More tests for module 'sys_wait'.
26016         * modules/sys_wait-c++-tests: New file.
26017         * tests/test-sys_wait-c++.cc: New file.
26018         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26019         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26020
26021 2010-09-29  Bruno Haible  <bruno@clisp.org>
26022
26023         New module 'waitpid'.
26024         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26025         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26026         Don't include <process.h>.
26027         (waitpid): Declare only, using modern idiom.
26028         * m4/waitpid.m4: New file.
26029         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26030         * modules/waitpid: New file.
26031         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26032         (Makefile.am): Update.
26033         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26034
26035 2010-09-28  Bruno Haible  <bruno@clisp.org>
26036
26037         poll: Assume ANSI C.
26038         * lib/poll.c (poll): Use an ANSI C declaration.
26039
26040 2010-09-28  Bruno Haible  <bruno@clisp.org>
26041
26042         poll-h: Create poll.h on all platforms.
26043         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26044         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26045         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26046         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26047         (gl_REPLACE_POLL_H): Don't set POLL_H.
26048         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26049         * modules/poll-h (Depends-on): Add include_next.
26050         (Makefile.am): Create poll.h unconditionally. Substitute also
26051         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26052
26053 2010-09-28  Bruno Haible  <bruno@clisp.org>
26054
26055         Tests for module 'poll-h'.
26056         * modules/poll-h-c++-tests: New file.
26057         * tests/test-poll-h-c++.cc: New file.
26058
26059         Tests for module 'poll-h'.
26060         * modules/poll-h-tests: New file.
26061         * tests/test-poll-h.c: New file.
26062
26063 2010-09-28  Bruno Haible  <bruno@clisp.org>
26064
26065         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26066         * modules/poll-h (Depends-on): Add 'extensions'.
26067
26068 2010-09-28  Bruno Haible  <bruno@clisp.org>
26069
26070         New module 'poll-h'.
26071         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26072         (poll): Use modern idiom.
26073         * modules/poll-h: New file.
26074         * modules/poll (Files): Remove lib/poll.in.h.
26075         (Depends-on): Add poll-h.
26076         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26077         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26078         * m4/poll_h.m4: New file.
26079         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26080         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26081         and invoke gl_REPLACE_POLL_H.
26082         * lib/poll.c: Use common idiom.
26083         * tests/test-poll.c: Likewise.
26084         * doc/posix-headers/poll.texi: Mention the poll-h module.
26085         Suggested by Eric Blake.
26086
26087 2010-09-26  Bruno Haible  <bruno@clisp.org>
26088
26089         sys_wait: Implement WSTOPSIG.
26090         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26091         Reported by Simon Josefsson.
26092
26093 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26094
26095         stdlib, sys_wait: Avoid compilation error on mingw.
26096         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26097
26098 2010-09-26  Bruno Haible  <bruno@clisp.org>
26099
26100         stdlib tests: Avoid code duplication.
26101         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26102         * modules/sys_wait-tests (Files): Likewise.
26103         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26104         * tests/test-stdlib.c: Include test-sys_wait.h.
26105         (main): Invoke test_sys_wait_macros.
26106         * tests/test-sys_wait.c: Include test-sys_wait.h.
26107         (main): Invoke test_sys_wait_macros.
26108
26109 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26110
26111         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26112         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26113         sure Windows sockets are working before calling getaddrinfo.
26114         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26115         * doc/gnulib.texi (Windows sockets): Fix typo.
26116
26117 2010-09-25  Bruno Haible  <bruno@clisp.org>
26118
26119         Tests for module 'regex-quote'.
26120         * modules/regex-quote-tests: New file.
26121         * tests/test-regex-quote.c: New file.
26122
26123         New module 'regex-quote'.
26124         * lib/regex-quote.h: New file.
26125         * lib/regex-quote.c: New file.
26126         * modules/regex-quote: New file.
26127         Suggested by Reuben Thomas <rrt@sc3d.org>.
26128
26129 2010-09-24  Bruno Haible  <bruno@clisp.org>
26130
26131         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26132         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26133
26134 2010-09-23  Bruno Haible  <bruno@clisp.org>
26135
26136         setenv: Relax license.
26137         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26138         Blake.
26139         Requested by Eric Blake.
26140
26141 2010-09-22  Bruno Haible  <bruno@clisp.org>
26142
26143         termios: Relax license.
26144         * modules/termios (License): Change to LGPLv2+.
26145         Requested by Eric Blake.
26146
26147 2010-09-22  Bruno Haible  <bruno@clisp.org>
26148
26149         threadlib: Allow the package to change the default to 'no'.
26150         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26151         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26152         Reported by Paul Eggert.
26153
26154 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26155             Bruno Haible  <bruno@clisp.org>
26156
26157         Fix endless loop in mbmemcasecoll.
26158         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26159         byte.
26160         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26161
26162 2010-09-22  Bruno Haible  <bruno@clisp.org>
26163
26164         Tests for module 'memcoll'.
26165         * modules/memcoll-tests: New file.
26166         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26167
26168         memcoll, xmemcoll: Clarify size vs. length.
26169         * modules/memcoll.c (memcoll0): Clarify specification.
26170         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26171         passed to collate_error.
26172
26173 2010-09-22  Bruno Haible  <bruno@clisp.org>
26174
26175         Tests for module 'memcasecmp'.
26176         * modules/memcasecmp-tests: New file.
26177         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26178
26179 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26180
26181         * lib/pthread.in.h: Add split double-inclusion guard, and include
26182         system <pthread.h> if there is one.  Use @@-style as in other
26183         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26184         pthread.h doesn't.
26185         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26186         (pthread_mutexattr_settype, pthread_mutex_trylock):
26187         New static inline functions, if there's no system <pthread.h>.
26188         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26189         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26190         Approximate with mutexes if the system lacks spinlocks, as in
26191         MacOS.
26192         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26193         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26194         @@-style.  Check for spinlocks separately.
26195         (gl_PTHREAD_DEFAULTS): New macro.
26196         * modules/pthread: Redo to use a more typical style for in.h files.
26197
26198 2010-09-21  Eric Blake  <eblake@redhat.com>
26199
26200         net_if: enhance tests
26201         * tests/test-net_if.c (main): Move signature checks earlier.
26202         Print failures to stderr.
26203         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26204         Document the bug that we do not yet fix.
26205
26206 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26207
26208         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26209         about gnulib, not GSS.
26210
26211 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26212
26213         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26214         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26215         for Emacs.
26216         * build-aux/pmccabe2html: Make Makefile.am example code more
26217         cut-and-paste friendly.
26218
26219 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26220
26221         * tests/test-net_if.c: New file.
26222         * modules/net_if-tests: New file.
26223
26224 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26225
26226         pthread: add pthread_spin_destroy
26227         * lib/pthread.in.h (pthread_spin_destroy): New function.
26228
26229 2010-09-19  Bruno Haible  <bruno@clisp.org>
26230
26231         gnulib-tool: Fix --help output.
26232         * gnulib-tool (func_usage): Fix help message.
26233         Reported by Reuben Thomas <rrt@sc3d.org>.
26234
26235 2010-09-18  Jim Meyering  <meyering@redhat.com>
26236
26237         maint.mk: avoid unexpanded \n in two diagnostics
26238         * top/maint.mk (sc_prohibit_always_true_header_tests):
26239         Don't use a literal \n in a halt=... assignment.  It would not be
26240         expanded, and the two \n bytes would appear in the diagnostic output
26241         rather than the desired newline.  Use halt=$$(printf ... instead.
26242         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26243
26244 2010-09-18  Bruno Haible  <bruno@clisp.org>
26245
26246         netinet_in: Doc tweak.
26247         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26248         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26249
26250 2010-09-18  Jim Meyering  <meyering@redhat.com>
26251
26252         init.sh: correct an outdated comment
26253         * tests/init.sh (create_exe_shims_):  s/function/alias/
26254
26255         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26256         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26257         a file named "*.exe" is removed between the glob expansion and the
26258         processing of that oddly named file.
26259
26260 2010-09-17  Eric Blake  <eblake@redhat.com>
26261
26262         mirbsd: add some more support
26263         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26264         in BSD family.
26265         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26266         devices as OpenBSD.
26267         * m4/host-os.m4 (mirbsd): Add MirBSD.
26268
26269         tests: fix unportable assumption on sys/wait.h
26270         * tests/test-sys_wait.c (main): Relax test.
26271         * tests/test-stdlib.c (main): Likewise.
26272
26273         init.sh: accommodate directory with no .exes
26274         * tests/init.sh: Accomodate directory containing only scripts.
26275
26276         tests: avoid compiler warning
26277         * tests/test-stdlib.c (main): Use the variable.
26278
26279         fdutimens, fdutimensat: update signature, again
26280         * lib/utimens.h (gl_futimens): Delete, and move signature...
26281         (fdutimens): ...here.
26282         (fdutimensat): Rearrange signature.
26283         (lutimensat): Rename variable for clarity.
26284         * lib/fdutimensat.c (fdutimensat): Update signature.
26285         * lib/utimens.c (fdutimens): Likewise.
26286         (gl_futimens): Delete.
26287         (utimens, lutimens): Update callers.
26288         * lib/futimens.c (futimens): Likewise.
26289         * tests/test-fdutimensat.c: Likewise.
26290         * tests/test-utimens.c: Likewise.
26291         * tests/test-futimens.h: Update comment.
26292         * NEWS: Mention this.
26293         Suggested by Paul Eggert.
26294
26295 2010-09-17  Bruno Haible  <bruno@clisp.org>
26296
26297         Take over the maintenance of some older macros from Autoconf.
26298         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26299         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26300         GNU Autoconf.
26301         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26302         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26303
26304 2010-09-17  Eric Blake  <eblake@redhat.com>
26305
26306         fdutimensat: drop atflag validation
26307         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26308         with valid fd, to close a race scenario where futimens is
26309         unsupported and FILE was replaced by a symlink.
26310         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26311         accordingly.
26312         Suggested by Paul Eggert.
26313
26314 2010-09-16  Bruno Haible  <bruno@clisp.org>
26315
26316         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26317         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26318
26319 2010-09-16  Bruno Haible  <bruno@clisp.org>
26320
26321         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26322         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26323         login_tty exists.
26324         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26325
26326 2010-09-16  Bruno Haible  <bruno@clisp.org>
26327
26328         login_tty: Make the replacement code work on BSD systems.
26329         * lib/login_tty.c: Include <sys/ioctl.h>.
26330         (login_tty): Use ioctl TIOCSCTTY when available.
26331         * modules/login_tty (Depends-on): Add sys_ioctl.
26332         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26333
26334 2010-09-16  Bruno Haible  <bruno@clisp.org>
26335
26336         login_tty: Stricter unit test.
26337         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26338         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26339         and tcgetsid() after login_tty.
26340         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26341
26342 2010-09-16  Bruno Haible  <bruno@clisp.org>
26343
26344         New module 'tcgetsid'.
26345         * lib/tcgetsid.c: New file.
26346         * m4/tcgetsid.m4: New file.
26347         * modules/tcgetsid: New file.
26348         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26349         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26350         GNULIB_TCGETSID, HAVE_TCGETSID.
26351         * lib/termios.in.h: Include <sys/types.h>.
26352         (tcgetsid): New declaration.
26353         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26354         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26355         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26356         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26357
26358 2010-09-16  Bruno Haible  <bruno@clisp.org>
26359
26360         Tests for module 'termios'.
26361         * modules/termios-c++-tests: New file.
26362         * modules/termios-tests: New file.
26363         * tests/test-termios-c++.cc: New file.
26364         * tests/test-termios.c: New file.
26365
26366         New module 'termios'.
26367         * modules/termios: New file.
26368         * lib/termios.in.h: New file.
26369         * m4/termios_h.m4: New file.
26370         * doc/posix-headers/termios.texi: Mention the new module.
26371
26372 2010-09-16  Eric Blake  <eblake@redhat.com>
26373
26374         fdutimensat: add an atflag parameter
26375         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26376         * lib/utimens.h (fdutimensat): Update prototype.
26377         * tests/test-fdutimensat.c: Adjust test to match.
26378         * NEWS: Document the change.
26379         Suggested by Paul Eggert.
26380
26381 2010-09-16  Bruno Haible  <bruno@clisp.org>
26382
26383         Fix typos in comments.
26384         * lib/striconveh.h: Fix typo in comment.
26385         * lib/login_tty.c (login_tty): Likewise.
26386
26387 2010-09-15  Bruno Haible  <bruno@clisp.org>
26388
26389         stdlib: clarify MirBSD WEXITSTATUS bug
26390         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26391         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26392
26393 2010-09-15  Eric Blake  <eblake@redhat.com>
26394
26395         stdlib: work around MirBSD WEXITSTATUS bug
26396         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26397         * modules/stdlib (Depends-on): Add sys_wait.
26398         * tests/test-sys_wait.c (main): Enhance test.
26399         * tests/test-stdlib.c (main): Likewise.
26400         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26401
26402         docs: mention MacOS issue with WEXITSTATUS(constant)
26403         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26404         issue.
26405         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26406
26407         strnlen: add tests
26408         * modules/strnlen-tests: New file.
26409         * tests/test-strnlen.c: Likewise.
26410
26411 2010-09-14  Bruno Haible  <bruno@clisp.org>
26412
26413         unistr/base: Avoid link errors when module 'libunistring' is also used.
26414         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26415         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26416         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26417         Declare also when HAVE_LIBUNISTRING is set.
26418         Reported by Pádraig Brady <P@draigbrady.com>.
26419
26420 2010-09-14  Eric Blake  <eblake@redhat.com>
26421
26422         test-rawmemchr: make more robust
26423         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26424         (Depends-on, configure.ac): Add needed prerequisites to use it.
26425         * modules/memchr-tests (Files, Depends-on, configure.ac):
26426         Likewise, to avoid implicit reliance on memchr module prereqs.
26427         * tests/test-memchr.c (main): Ensure proper masking.
26428         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26429         reads.
26430
26431         memchr: detect glibc Alpha bug
26432         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26433         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26434         Alpha.
26435         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26436         * tests/test-memchr.c (main): Enhance test.
26437         Reported by Nelson H. F. Beebe.
26438
26439 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26440
26441         fts, getcwd, glob: audit for dirfd returning -1
26442         * lib/fts.c (opendir): Remove #define; no longer used.
26443         (opendirat): New arg PDIR_FD.  All callers changed.
26444         (fts_build, _opendir2): Use new opendirat to avoid the need for
26445         dirfd, or for checking whether dirfd returns a negative value.
26446         Don't use opendir; always use openat followed by fdopendir.
26447         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26448         it.
26449         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26450         returns -1 here.
26451         * modules/fts (Depends-on): Remove dirfd.
26452         * modules/getcwd (Depends-on): Likewise.
26453
26454 2010-09-13  Eric Blake  <eblake@redhat.com>
26455
26456         float: fix broken MirBSD header
26457         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26458         * doc/posix-headers/float.texi (float.h): Document it.
26459
26460 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26461
26462         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26463         * lib/fts.c (opendirat): New arg extra_flags.
26464         (__opendir2): Use it to avoid following symlinks when opening
26465         a directory, if symlinks are not supposed to be followed.  See
26466         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26467
26468         fdopendir: preserve argument fd before returning
26469         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26470         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26471         (fdopendir): Use them, arranging for FD to be open to the same
26472         directory that it was when it started.  (It might be temporarily
26473         closed while fdopendir is running, so this not thread- or
26474         signal-safe.)  Be careful to do the right thing even when file
26475         descriptors are scarce and dup fails with errno == EMFILE.  See
26476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26477
26478 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26479
26480         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26481         * NEWS: Document change.
26482         * m4/regex.m4: Disable test for regoff_t size.
26483
26484 2010-09-13  Jim Meyering  <meyering@redhat.com>
26485
26486         fts: don't operate on an invalid file descriptor after failed dup
26487         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26488         negative file descriptor.
26489
26490 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26491
26492         savedir: add streamsavedir, deprecate fdsavedir
26493         * NEWS: Mention deprecation of fdsavedir.
26494         * lib/savedir.c (streamsavedir): New extern function, whose name
26495         ends in "savedir" to be consistent with the others.  This differs
26496         from savedirstream in that it doesn't close its argument.  The
26497         next version of GNU tar will use this instead of fdsavedir, to
26498         avoid some race conditions and conserve file descriptors.
26499         (savedirstream): Reimplement as a wrapper around streamsavedir.
26500         (fdsavedir): Add a comment deprecating this function.  As far as
26501         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26502         * lib/savedir.h (streamsavedir): New decl.
26503         (fdsavedir): Add a comment deprecating this.
26504
26505 2010-09-10  Bruno Haible  <bruno@clisp.org>
26506
26507         langinfo: Fix last commit.
26508         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26509         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26511
26512 2010-09-10  Bruno Haible  <bruno@clisp.org>
26513
26514         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26515         * lib/progreloc.c (O_EXEC): Define fallback.
26516
26517 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26518
26519         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26520         * NEWS: Document recent changes to fcntl-h.
26521         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26522         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26523         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26524         Similarly for O_SEARCH; this last was already true, but not documented.
26525         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26526         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26527         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26528         Likewise.
26529         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26530         is zero, not whether it is defined.
26531         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26532         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26533         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26534
26535 2010-09-10  Bruno Haible  <bruno@clisp.org>
26536
26537         langinfo, nl_langinfo: Fix for IRIX 5.3.
26538         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26539         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26540         HAVE_LANGINFO_YESEXPR.
26541         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26542         HAVE_LANGINFO_YESEXPR.
26543         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26544         HAVE_LANGINFO_T_FMT_AMPM is 0.
26545         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26546         HAVE_LANGINFO_YESEXPR is 0.
26547         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26548         NOEXPR.
26549         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26550         * doc/posix-functions/nl_langinfo.texi: Likewise.
26551         Reported by Eric Blake.
26552
26553 2010-09-10  Bruno Haible  <bruno@clisp.org>
26554
26555         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26556         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26557         on FreeBSD 8.0 and OpenBSD 4.6.
26558         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26559         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26560         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26561         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26562         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26563         ac_includes_default.
26564         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26565
26566 2010-09-09  Eric Blake  <eblake@redhat.com>
26567
26568         strsignal: work around NetBSD bug
26569         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26570         * lib/string.in.h (includes): Likewise.
26571         * doc/posix-functions/strsignal.texi (strsignal): Document the
26572         bug.
26573         Reported by Nelson H. F. Beebe.
26574
26575         gnulib-tool: work with NetBSD /bin/sh
26576         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26577         (func_get_description, func_get_comment, func_get_status)
26578         (func_get_notice, func_get_applicability, func_get_filelist)
26579         (func_get_dependencies, func_get_autoconf_early_snippet)
26580         (func_get_autoconf_snippet, func_get_automake_snippet)
26581         (func_get_include_directive, func_get_link_directive)
26582         (func_get_license, func_get_maintainer, func_import): Avoid
26583         shell syntax errors from parsing syntax extensions.
26584
26585 2010-09-09  Bruno Haible  <bruno@clisp.org>
26586
26587         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26588         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26589         a reliable way to determine whether the 'alias' command works.
26590
26591 2010-09-08  Jim Meyering  <meyering@redhat.com>
26592
26593         init.sh: penalize a set-x-impaired shell; don't disqualify it
26594         * tests/init.sh: Too many shells corrupt application stderr when
26595         you set -x, so we can't afford to disqualify them, since at least
26596         on Irix-6.5, that would disqualify all bourne shells.
26597         Instead, use a two-pass approach.
26598         On the first pass, try to find a shell that meets the stricter
26599         condition that set -x does not corrupt stderr.
26600         If no shell meets the stricter condition, retest each candidate
26601         shell, but without that extra condition.  Finally, when
26602         VERBOSE=yes is requested and set -x might cause trouble, simply
26603         issue a warning and refrain from enabling debug output.
26604
26605 2010-09-08  Eric Blake  <eblake@redhat.com>
26606
26607         unsetenv: fix OpenBSD bug
26608         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26609         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26610         documentation.
26611         Reported by Jim Meyering.
26612
26613         strtod: work around IRIX 6.5 bug
26614         * lib/strtod.c (strtod): Reparse number on shorter string if
26615         exponent parse was invalid.
26616         * tests/test-strtod.c (main): Add check for "0x1p 2".
26617         Reported by Tom G. Christensen.
26618
26619         getopt: optimize previous patch
26620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26621         empty variable.  Speed up awk script.
26622         Reported by Paolo Bonzini.
26623
26624 2010-09-08  Jim Meyering  <meyering@redhat.com>
26625
26626         test.sh: disqualify shells for which set -x corrupts stderr
26627         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26628         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26629         appear in stderr output.  For example, this command:
26630             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26631         prints "P=1" on those two systems:
26632
26633 2010-09-08  Bruno Haible  <bruno@clisp.org>
26634
26635         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26636         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26637         commands, because some shells ignore redirections when there is an
26638         error in the command lookup.
26639         Reported by Eric Blake.
26640
26641 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26642
26643         * lib/regex.h: Fix a mention of `regex_compile' (should be
26644         `re_compile_pattern').
26645         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26646         (re_set_registers): Correct name of parameter in comment.
26647
26648         * doc/regex.texi: Add documentation for missing syntax flags.
26649         Remove commented-out documentation of defunct syntax option
26650         RE_NO_EMPTY_ALTS.
26651         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26652         Add documentation of re_set_registers.
26653         Document trick to re-use a pattern buffer by setting fastmap manually.
26654         Update documentation of struct re_pattern_buffer per public members.
26655         Uncomment documentation of equivalence class operators and
26656         collating symbol operators, since they are now implemented,
26657         Explain leftmost-longest matching in relation to alternatives.
26658         Tidy documentation of substring matching.
26659         Remove POSIX documentation, which is done better in
26660         glibc, and refer the reader there. Keep BSD API documentation, as
26661         that is not readily available elsewhere.
26662
26663 2010-09-07  Eric Blake  <eblake@redhat.com>
26664
26665         getopt: handle POSIXLY_CORRECT set but not exported
26666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26667         export state of POSIXLY_CORRECT, due to bash set -o posix.
26668         Reported by Dustin J. Mitchell.
26669
26670 2010-09-05  Bruno Haible  <bruno@clisp.org>
26671
26672         gnulib-tool: Highlight the changed options.
26673         * gnulib-tool (func_usage): Display the --import, --add-import,
26674         --remove-import explanations in bold font.
26675
26676 2010-09-06  Karl Berry  <karl@gnu.org>
26677
26678         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26679
26680 2010-09-05  Bruno Haible  <bruno@clisp.org>
26681
26682         uniwidth/width: Update comment.
26683         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26684         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26685
26686 2010-09-05  Bruno Haible  <bruno@clisp.org>
26687
26688         isinf, isnan: Relax license.
26689         * modules/isinf (License): Change from GPL to LGPL, with consent from
26690         Ben Pfaff.
26691         * modules/isnan (License): Likewise.
26692         Requested by Ludovic Courtès.
26693
26694 2010-09-04  Bruno Haible  <bruno@clisp.org>
26695
26696         gnulib-tool: Help migration from --import to --add-import or --update.
26697         * gnulib-tool: Emit a verbose error message when --import is used
26698         without any module name.
26699
26700 2010-09-04  Bruno Haible  <bruno@clisp.org>
26701
26702         Update doc about gnulib-tool.
26703         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26704         'gnulib-tool --update' in more detail.
26705         Reported by Eric Blake.
26706
26707 2010-09-04  Bruno Haible  <bruno@clisp.org>
26708
26709         gnulib-tool: Change --import. New options --add/remove-import.
26710         * gnulib-tool: New options --add-import, --remove-import.
26711         (func_usage): Document them.
26712         (have_associative): Define always.
26713         (func_import): In import mode, don't merge the specified settings with
26714         the cached settings. Implement remove-import mode.
26715         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26716         Explain when to use them versus --import.
26717         (Simple update): Use --add-import instead of --import.
26718         * NEWS: Mention the change.
26719
26720 2010-09-04  Bruno Haible  <bruno@clisp.org>
26721
26722         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26723         separate gnulib.mk.
26724
26725 2010-09-04  Bruno Haible  <bruno@clisp.org>
26726
26727         gnulib-tool: Don't talk about CVS any more.
26728         * gnulib-tool (func_usage, func_import): Write "version control"
26729         instead of CVS.
26730
26731 2010-09-04  Jim Meyering  <meyering@redhat.com>
26732
26733         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26734         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26735         false positives (whose names may be ill-chosen) when searching
26736         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26737         would cause a false-positive.
26738
26739         avoid coreutils "make distcheck" failure
26740         Coreutils tests with an absolute build directory name that contains
26741         a space.  Not quoting this directory name caused a failure.
26742         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26743         * tests/test-vc-list-files-cvs.sh: Likewise.
26744
26745 2010-09-04  Bruno Haible  <bruno@clisp.org>
26746
26747         gnulib-tool: Avoid error when run in a package without Makefile.am.
26748         * gnulib-tool: When collecting the m4dirs in a package that does not
26749         have a Makefile.am, eliminate those directories that contain no
26750         gnulib-cache.m4. Fix expression that counts these directories.
26751
26752 2010-09-04  Bruno Haible  <bruno@clisp.org>
26753
26754         update-copyright test: Improve output when perl is missing or too old.
26755         * tests/test-update-copyright.sh: Move test of Perl version down after
26756         the test whether Perl exists. Provide an explanation relating Perl's
26757         error message to Automake's SKIP: message.
26758
26759 2010-09-04  Bruno Haible  <bruno@clisp.org>
26760
26761         Don't augment PATH in TESTS_ENVIRONMENT.
26762         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26763         set abs_aux_dir instead of augmenting PATH.
26764         * modules/vc-list-files-tests (Makefile.am): Likewise.
26765         * tests/test-update-copyright.sh: Augment PATH here.
26766         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26767         path_prepend_.
26768         * tests/test-vc-list-files-git.sh: Likewise.
26769
26770 2010-09-04  Jim Meyering  <meyering@redhat.com>
26771
26772         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26773         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26774
26775 2010-09-04  Bruno Haible  <bruno@clisp.org>
26776
26777         strdup: Fix compilation error in C++ mode.
26778         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26779         the macro.
26780
26781 2010-09-04  Bruno Haible  <bruno@clisp.org>
26782
26783         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26784         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26785         macro into a function.
26786         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26787
26788 2010-09-04  Bruno Haible  <bruno@clisp.org>
26789
26790         Set PATH_SEPARATOR the same way autoconf does.
26791         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26792         the value of PATH_SEPARATOR the same way autoconf-generated configure
26793         scripts do.
26794         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26795         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26796
26797 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26798
26799         Set PATH_SEPARATOR the same way autoconf does.
26800         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26801         the same way autoconf-generated configure scripts do.
26802         * posix-modules: Likewise.
26803
26804 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26805
26806         hash: fix safe_hasher const typo
26807         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26808         const; otherwise, there is a type error later.
26809
26810 2010-09-02  Jim Meyering  <meyering@redhat.com>
26811
26812         test-update-copyright.sh: require perl 5.8.0
26813         * tests/test-update-copyright.sh: Require 5.8.0,
26814         which Tom G. Christensen has confirmed is adequate,
26815         while 5.6.1 is not.
26816
26817 2010-09-02  Eric Blake  <eblake@redhat.com>
26818
26819         tests: init.sh improvements for re-exec'ing with zsh
26820         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26821         -vx through shell re-exec.
26822         Reported by Tom G. Christensen.
26823
26824         wctype: fix typo in previous commit
26825         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26826         Reported by Ludovic Courtès.
26827
26828 2010-09-02  Jim Meyering  <meyering@redhat.com>
26829
26830         test-update-copyright.sh: skip test if Perl is too old
26831         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26832         Reported by Tom G. Christensen.
26833
26834 2010-09-02  Bruno Haible  <bruno@clisp.org>
26835
26836         wctype: Avoid compilation error on IRIX 6.5.30.
26837         * lib/wctype.in.h (iswblank): Declare with a replacement if
26838         REPLACE_ISWBLANK is set.
26839         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26840         declared. Set REPLACE_ISWBLANK.
26841         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26842         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26843         * doc/posix-headers/wctype.texi: Likewise.
26844         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26845
26846 2010-09-01  Bruno Haible  <bruno@clisp.org>
26847
26848         New module 'socketlib'.
26849         * modules/socketlib: New file.
26850         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26851         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26852         * modules/sockets (Depends-on): Add socketlib.
26853         Suggested by Sam Steingold <sds@gnu.org>.
26854
26855 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26856
26857         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26858
26859         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26860         when one needs search access to a directory but not read access.
26861         On systems where it is available, it works in some cases where
26862         O_RDONLY does not, namely on directories that are searchable but
26863         not readable, and which need only to be searchable.  If O_SEARCH
26864         is not available, fall back to the traditional method of using
26865         O_RDONLY.
26866
26867         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26868         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26869         when opening a directory that needs only to be searchable.
26870         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26871         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26872         * lib/openat-proc.c (openat_proc_name): Likewise.
26873         * lib/openat.c (openat_needs_fchdir): Likewise.
26874         * lib/save-cwd.c (save_cwd): Likewise.
26875         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26876
26877 2010-08-28  Bruno Haible  <bruno@clisp.org>
26878
26879         New module 'host-cpu-c-abi'.
26880         * modules/host-cpu-c-abi: New file.
26881         * m4/host-cpu-c-abi.m4: New file, based on part of
26882         clisp/src/m4/general.m4.
26883         Requested by Sam Steingold <sds@gnu.org>.
26884
26885 2010-08-31  Eric Blake  <eblake@redhat.com>
26886         and Jim Meyering  <meyering@redhat.com>
26887
26888         hash: factor, and guard against misbehaving hasher function
26889         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26890         of table->hasher's return value.  Also protect against a hash value
26891         so large that adding it to table->bucket results in a NULL pointer.
26892         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26893         Use it in place of open-coded check-and-abort.
26894
26895 2010-08-30  Bruno Haible  <bruno@clisp.org>
26896
26897         hash: silence spurious clang warning
26898         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26899         Reported by Eric Blake.
26900
26901 2010-08-30  Eric Blake  <eblake@redhat.com>
26902
26903         strstr, memmem, strcasestr: avoid leaked shell message
26904         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26905         FreeBSD.
26906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26907         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26908
26909         tests: silence clang warning
26910         * tests/test-malloca.c (do_allocation): Avoid dead store.
26911
26912 2010-08-29  Bruno Haible  <bruno@clisp.org>
26913
26914         gettext: Fix recent mistake.
26915         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26916
26917 2010-08-29  Bruno Haible  <bruno@clisp.org>
26918
26919         selinux-h: Offer a --without-selinux option.
26920         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26921         --without-selinux was specified, skip all tests and define
26922         HAVE_SELINUX_SELINUX_H to 0.
26923         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26924         set LIB_SELINUX to empty.
26925         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26926         gl_LIBSELINUX. If --without-selinux was specified, replace
26927         selinux/context.h.
26928         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26929
26930 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26931             Bruno Haible  <bruno@clisp.org>
26932
26933         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26934         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26935         of HAVE_REALLOC.
26936         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26937         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26938         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26939         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26940
26941 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26942             Bruno Haible  <bruno@clisp.org>
26943
26944         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26945         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26946         HAVE_CALLOC.
26947         * lib/xmalloc.c: Update accordingly.
26948         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26949         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26950         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26951
26952 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26953             Bruno Haible  <bruno@clisp.org>
26954
26955         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26956         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26957         HAVE_MALLOC.
26958         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26959         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26960         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26961
26962 2010-08-29  Bruno Haible  <bruno@clisp.org>
26963
26964         Update modules list.
26965         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26966         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26967         (String handling <string.h>): Add astrxfrm.
26968         (File system functions): Add readlinkat.
26969
26970 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26971
26972         Tests for module 'realloc-gnu'.
26973         * modules/realloc-gnu-tests: New file.
26974         * tests/test-realloc-gnu.c: New file.
26975
26976         Tests for module 'calloc-gnu'.
26977         * modules/calloc-gnu-tests: New file.
26978         * tests/test-calloc-gnu.c: New file.
26979
26980         Tests for module 'malloc-gnu'.
26981         * modules/malloc-gnu-tests: New file.
26982         * tests/test-malloc-gnu.c: New file.
26983
26984 2010-08-28  Bruno Haible  <bruno@clisp.org>
26985
26986         Rename module 'realloc' -> 'realloc-gnu'.
26987         * modules/realloc-gnu: New file, copied from modules/realloc.
26988         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26989         obsolete.
26990         * modules/mgetgroups (Depends-on): Update.
26991         * doc/posix-functions/realloc.texi: Update.
26992         * NEWS: Mention the change.
26993
26994         Rename module 'calloc' -> 'calloc-gnu'.
26995         * modules/calloc-gnu: New file, copied from modules/calloc.
26996         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26997         obsolete.
26998         * doc/posix-functions/calloc.texi: Update.
26999         * NEWS: Mention the change.
27000
27001         Rename module 'malloc' -> 'malloc-gnu'.
27002         * modules/malloc-gnu: New file, copied from modules/malloc.
27003         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27004         obsolete.
27005         * modules/argp (Depends-on): Update.
27006         * modules/regex (Depends-on): Update.
27007         * doc/posix-functions/malloc.texi: Update.
27008         * NEWS: Mention the change.
27009
27010 2010-08-28  Eric Blake  <eblake@redhat.com>
27011
27012         pread, pwrite: add missing dependency
27013         * modules/pread (Depends-on): Add extensions.
27014         * modules/pwrite (Depends-on): Likewise.
27015
27016 2010-08-28  Bruno Haible  <bruno@clisp.org>
27017
27018         unistr/u*-strchr: Fix tests dependencies.
27019         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27020         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27021         Reported by Ian Beckwith <ianb@erislabs.net>.
27022
27023 2010-08-28  Bruno Haible  <bruno@clisp.org>
27024
27025         read-file: Don't occupy too much unused memory.
27026         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27027
27028 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27029             Eric Blake  <eblake@redhat.com>
27030             Bruno Haible  <bruno@clisp.org>
27031
27032         read-file: Avoid memory reallocations with regular files.
27033         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27034         (fread_file): With regular files, use the remaining length as the
27035         initial buffer size.  Check against overflow.
27036         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27037         sys_stat.
27038
27039 2010-08-28  Bruno Haible  <bruno@clisp.org>
27040
27041         ftello: Relax license.
27042         * modules/ftello (License): Relax to LGPLv2+.
27043         Reported by Eric Blake.
27044
27045 2010-08-28  Bruno Haible  <bruno@clisp.org>
27046
27047         Avoid relocwrapper link errors due to gnulib replacement functions.
27048         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27049         function.
27050         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27051
27052 2010-08-28  Bruno Haible  <bruno@clisp.org>
27053
27054         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27055         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27056         defined.
27057         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27058         Suggested by Eric Blake.
27059
27060 2010-08-28  Bruno Haible  <bruno@clisp.org>
27061
27062         sys_socket, netdb: Ensure socklen_t gets defined.
27063         * modules/sys_socket (Depends-on): Add socklen.
27064         * modules/netdb (Depends-on): Likewise.
27065         * modules/getaddrinfo (Depends-on): Remove socklen.
27066         * modules/getsockopt (Depends-on): Likewise.
27067         * modules/setsockopt (Depends-on): Likewise.
27068         * tests/test-sys_socket.c: Check that socklen_t is defined.
27069         * tests/test-netdb.c: Likewise.
27070         * m4/socklen.m4: Update comments.
27071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27072
27073 2010-08-27  Eric Blake  <eblake@redhat.com>
27074
27075         login_tty: add missing dependency
27076         * modules/login_tty (Depends-on): Add pty.
27077
27078 2010-08-26  Eric Blake  <eblake@redhat.com>
27079
27080         lib-symbol-versions: fix m4 quoting
27081         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27082         format for AC_LINK_IFELSE.
27083
27084         glob: fix compile test
27085         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27086
27087         btowc: fix missing file
27088         * modules/btowc (Files): Also ship locale-fr.m4.
27089
27090         lseek: fix link test
27091         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27092         AC_LINK_IFELSE.
27093
27094         include_next: silence autoconf 2.68 warning
27095         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27096         AC_COMPILE_IFELSE as special.
27097         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27098         autoconf < 2.68.
27099
27100         acl: fix compilation test
27101         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27102         AC_COMPILE_IFELSE.
27103
27104 2010-08-26  Bruno Haible  <bruno@clisp.org>
27105
27106         Modernize AC_TRY_RUN invocations.
27107         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27108         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27109         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27110         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27111         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27112         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27113         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27115         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27116         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27117         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27118         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27119         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27120         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27121         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27122         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27123         gl_MBRLEN_NUL_RETVAL): Likewise.
27124         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27125         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27126         Likewise.
27127         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27128         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27129         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27130         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27131         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27132         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27133         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27134         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27135         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27136         Likewise.
27137         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27138         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27139         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27140         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27141         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27142         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27143         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27144         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27145         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27147
27148 2010-08-26  Bruno Haible  <bruno@clisp.org>
27149
27150         Modernize AC_TRY_LINK invocations.
27151         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27152         AC_TRY_LINK.
27153         * m4/argp.m4 (gl_ARGP): Likewise.
27154         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27155         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27156         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27157         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27158         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27159         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27160         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27161         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27162         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27163         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27164         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27165         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27166         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27167         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27168         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27169         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27170         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27171         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27172         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27173         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27174         Likewise.
27175         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27176         Likewise.
27177         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27178         Likewise.
27179         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27181         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27182         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27183         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27184         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27185         * m4/servent.m4 (gl_SERVENT): Likewise.
27186         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27187         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27188         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27189         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27190         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27191         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27192         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27193         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27194         * modules/tsearch-tests (configure.ac): Likewise.
27195
27196 2010-08-26  Bruno Haible  <bruno@clisp.org>
27197
27198         Modernize AC_TRY_COMPILE invocations.
27199         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27200         AC_TRY_COMPILE.
27201         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27202         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27203         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27204         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27205         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27206         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27207         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27208         * m4/lock.m4 (gl_LOCK): Likewise.
27209         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27210         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27211         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27212         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27213         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27214         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27215         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27216         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27217         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27218         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27219         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27220         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27221         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27222         extraneous semicolon.
27223
27224 2010-08-26  Jim Meyering  <meyering@redhat.com>
27225
27226         stat-time: relax license LGPL
27227         * modules/stat-time (License): Change from GPL to LGPL,
27228         with consent from all contributors, for use in libguile.
27229         Requested by Ludovic Courtès.
27230
27231 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27232
27233         poll: return immediately on POLLHUP.
27234         * lib/poll.c (poll): Always set timeout before wait_timeout is
27235         computed.
27236
27237 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27238
27239         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27240         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27241         rmdir ("dir/.//"), unlinkat.
27242
27243 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27244
27245         stdbool: avoid spurious failure with modern xlc
27246         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27247
27248 2010-08-24  Bruno Haible  <bruno@clisp.org>
27249
27250         getloadavg: simplify code
27251         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27252         gl_have_func. Update comments.
27253
27254 2010-08-24  Eric Blake  <eblake@redhat.com>
27255
27256         getloadavg: don't define SVR4 on cygwin
27257         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27258         only define SVR4 when -lkvm is required.
27259         Reported by Yaakov Selkowitz.
27260
27261 2010-08-24  Bruno Haible  <bruno@clisp.org>
27262
27263         priv-set: fix comment
27264         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27265
27266 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27267
27268         priv-set: fix comments
27269         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27270         to match code, as suggested by David Bartley in:
27271         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27272
27273 2010-08-23  Eric Blake  <eblake@redhat.com>
27274
27275         stdbool: avoid rejecting clang
27276         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27277         * tests/test-stdbool.c: Enable more tests if using the system
27278         <stdbool.h> instead of the gnulib replacement.
27279         (main): Move xlc bug test to a runtime test for all compilers.
27280         Reported by Anders Kaseorg.
27281
27282         argz: fix shell quoting issue
27283         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27284         Reported by Charles Wilson.
27285
27286 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27287             Erik Faye-Lund <kusmabite@gmail.com>
27288
27289         poll, select: handle ERROR_BROKEN_PIPE.
27290         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27291         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27292         * lib/select.c (win32_compute_revents): Do not mark a pipe
27293         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27294
27295 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27296
27297         fts: allow compilation with C++
27298         * lib/fts_.h: Specify extern "C" linkage with C++.
27299
27300 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27301
27302         Fix gnulib-tool sed script de-commentation for AIX sed.
27303         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27304         sed.
27305
27306 2010-08-17  Eric Blake  <eblake@redhat.com>
27307
27308         test-stddef: test for (some) offsetof bugs
27309         * tests/test-stddef.c: Enhance test to ensure correct type of
27310         offsetof.
27311         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27312         that we are not fixing at this time.
27313
27314 2010-08-15  Bruno Haible  <bruno@clisp.org>
27315
27316         stpncpy: Allow stpncpy to be defined as a macro.
27317         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27318         if it's already correctly declared.
27319         * lib/string.in.h (stpncpy): Undefine before redefining.
27320         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27321
27322 2010-08-14  Bruno Haible  <bruno@clisp.org>
27323
27324         Rename module 'memxfrm' to 'amemxfrm'.
27325         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27326         (amemxfrm): Renamed from memxfrm.
27327         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27328         (amemxfrm): Renamed from memxfrm.
27329         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27330         * NEWS: Mention the change.
27331         * MODULES.html.sh (String handling <string.h>): Update.
27332         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27333         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27334         * lib/unicase/u16-casexfrm.c: Likewise.
27335         * lib/unicase/u32-casexfrm.c: Likewise.
27336         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27337         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27338         * lib/uninorm/u16-normxfrm.c: Likewise.
27339         * lib/uninorm/u32-normxfrm.c: Likewise.
27340         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27341         memxfrm.
27342         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27343         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27344         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27345         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27346         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27347         Suggested by Paul Eggert.
27348
27349 2010-08-14  Bruno Haible  <bruno@clisp.org>
27350
27351         Tests for module 'astrxfrm'.
27352         * modules/astrxfrm-tests: New file.
27353         * tests/test-astrxfrm.c: New file.
27354
27355         New module 'astrxfrm'.
27356         * lib/astrxfrm.h: New file.
27357         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27358         * modules/astrxfrm: New file.
27359
27360 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27361
27362         regex: Tweak doc.
27363         * doc/regex.texi (Overview): Don't mention regex.c.
27364         (GNU Regular Expression Compiling): Likewise.
27365         (Match-end-of-line Operator): Mention 'not_eol'.
27366
27367 2010-08-14  Brian Gough  <bjg@gnu.org>
27368             Bruno Haible  <bruno@clisp.org>
27369
27370         git-merge-changelog: add doc relating to use with bzr and hg.
27371         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27372
27373 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27374
27375         pthread: fix pthread.h creation for srcdir != builddir
27376         * modules/pthread (Makefile.am): Fix the rule to work also in a
27377         non-srcdir build.
27378
27379 2010-08-13  Karl Berry  <karl@gnu.org>
27380
27381         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27382         * doc/posix-*/*: force line break before @url of POSIX
27383         specifications.
27384         Suggested by Werner Lemberg.
27385
27386 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27387
27388         strtod: fix const diagnostic
27389         * lib/strtod.c (strtod): Don't assign const char * to char *,
27390         as this elicits a warning from GCC when warnings are enabled.
27391
27392 2010-08-10  Pádraig Brady <P@draigbrady.com>
27393         and Eric Blake  <eblake@redhat.com>
27394
27395         copy-acl: ignore ENOTSUP on HP-UX
27396         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27397         so that it is available for HP-UX.
27398         * lib/copy-acl.c (qcopy_acl): Use it.
27399         Reported by Patrick M. Callahan.
27400
27401 2010-08-10  Eric Blake  <eblake@redhat.com>
27402
27403         open, chown: relax license
27404         * modules/open (License): Change to LGPLv2+, with consent by all
27405         authors, for use in augeas.
27406         * modules/chown (License): Likewise.
27407         * modules/lchown (Likewise): Likewise.
27408         Requested by Adam Stokes.
27409
27410 2010-08-09  Karl Berry  <karl@gnu.org>
27411
27412         * build-aux/ar-lib: new file, import from Automake.
27413         * config/srclist.txt: autocheck for updates.
27414
27415 2010-08-09  Eric Blake  <eblake@redhat.com>
27416
27417         readlinkat: adjust client modules
27418         * modules/areadlinkat (Depends-on): Use readlinkat, not
27419         symlinkat.
27420         * modules/areadlinkat-with-size (Depends-on): Likewise.
27421
27422         mknod: be more vocal about danger of running tests as root
27423         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27424         root, since that is just asking for problems.
27425         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27426
27427         readlinkat: split into its own module
27428         * modules/symlinkat: Split readlinkat...
27429         * modules/readlinkat: ...into separate module.
27430         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27431         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27432         * lib/symlinkat.c (readlinkat): Move...
27433         * lib/readlinkat.c: ...into new file.
27434         * modules/symlinkat-tests: Split readlinkat test...
27435         * modules/readlinkat-tests: ...into separate module.
27436         * tests/test-symlinkat.c: Split...
27437         * tests/test-readlinkat.c: ...into new file.
27438         * NEWS: Document the split.
27439         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27440         * lib/unistd.in.h (readlinkat): Likewise.
27441         Suggested by Bruno Haible.
27442
27443 2010-08-08  Bruno Haible  <bruno@clisp.org>
27444
27445         memxfrm: Speed up.
27446         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27447         that usually only one call to strxfrm is necessary for each string
27448         part.
27449         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27450
27451 2010-08-07  Karl Berry  <karl@gnu.org>
27452
27453         * doc/posix-headers/limits.texi,
27454         * doc/posix-functions/malloc.texi,
27455         * doc/posix-functions/strsignal.texi: missing @item.
27456         * doc/ld-version-script.texi: spurious leading i.
27457         * doc/regex.texi (Interval Operators): no commas inside @var.
27458
27459 2010-08-01  Bruno Haible  <bruno@clisp.org>
27460
27461         Integrate the regex documentation.
27462         * doc/gnulib.texi: Define 'cn' index.
27463         (Regular expressions): New a chapter that includes regex.texi and
27464         regexprops-generic.texi.
27465         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27466         syntax.
27467
27468         Whitespace cleanup.
27469         * doc/regex.texi: Remove trailing spaces.
27470
27471         Add regex documentation.
27472         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27473         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27474         Written by Kathy A. Hargreaves and Karl Berry.
27475
27476 2010-08-01  Bruno Haible  <bruno@clisp.org>
27477
27478         link: Update documentation.
27479         * doc/posix-functions/link.texi: Update regarding Solaris.
27480
27481 2010-07-31  Bruno Haible  <bruno@clisp.org>
27482
27483         Update modules list.
27484         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27485         (String handling <string.h>): Add memcmp2, memxfrm.
27486         (Container data structures): Add xlist, xsublist, xoset.
27487         (Core language properties): Add alignof, unused-parameter.
27488         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27489         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27490         (Unibyte characters <ctype.h>): New section.
27491         (String handling <string.h>): New section.
27492         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27493         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27494         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27495         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27496         tan, tanh, tanl, y0, y1, yn.
27497         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27498         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27499         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27500         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27501         unlockpt, vdprintf, vdprintf-posix.
27502         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27503         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27504         xconcat-filename.
27505         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27506         getdtablesize, pipe2, pipe2-safer.
27507         (Security): New section.
27508         (Networking functions): Add accept4.
27509         (Signal handling): Add sigpipe.
27510         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27511         mbmemcasecoll.
27512         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27513         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27514         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27515         pipe-filter-ii.
27516         (Misc): Add argp-version-etc, login_tty, parse-duration.
27517
27518 2010-07-31  Bruno Haible  <bruno@clisp.org>
27519
27520         Improve doc in MODULES.html.
27521         * modules/linkat (Description): Add the word "function".
27522         * modules/mkfifo (Description): Likewise.
27523         * modules/mknod (Description): Likewise.
27524         * modules/remove (Description): Likewise.
27525         * modules/renameat (Description): Likewise.
27526         * modules/stat (Description): Likewise.
27527         * modules/symlink (Description): Likewise.
27528         * modules/unlink (Description): Likewise.
27529
27530 2010-07-31  Bruno Haible  <bruno@clisp.org>
27531
27532         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27533         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27534         option --enable/disable-c++ instead of --enable/disable-cxx.
27535         * NEWS: Mention the change.
27536
27537 2010-07-31  Bruno Haible  <bruno@clisp.org>
27538
27539         readlink, areadlink: Relax test a bit.
27540         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27541         alternative to ENOTDIR.
27542         * tests/test-areadlink.h (test_areadlink): Likewise.
27543         Reported by Rainer Tammer.
27544
27545 2010-07-31  Bruno Haible  <bruno@clisp.org>
27546
27547         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27548         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27549         character, perform the search using U_STRCHR.
27550         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27551         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27552         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27553         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27554         Suggested by Paolo Bonzini.
27555
27556 2010-07-31  Bruno Haible  <bruno@clisp.org>
27557
27558         unistr/u*-strstr: Fix dependencies.
27559         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27560         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27561         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27562
27563 2010-07-31  Bruno Haible  <bruno@clisp.org>
27564
27565         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27566         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27567         the beginning of the loop.
27568         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27569         cases in 'switch' statement.
27570
27571         unistr/u8-strchr: Fix several bugs.
27572         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27573         the string. When not found, return NULL, not a pointer near the end.
27574
27575         More tests for unistr/u8-strchr.
27576         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27577         that the function does not read past the first occurrence of the byte
27578         being searched.
27579         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27580         * tests/unistr/test-u16-strchr.c (main): New function.
27581         * tests/unistr/test-u32-strchr.c (main): New function.
27582
27583 2010-07-31  Bruno Haible  <bruno@clisp.org>
27584
27585         posix-modules: Ignore backup files of documentation files.
27586         * posix-modules: grep only through files named *.texi.
27587
27588 2010-07-31  Bruno Haible  <bruno@clisp.org>
27589
27590         symlinkat: Fix documentation.
27591         * doc/posix-functions/readlinkat.texi: Fix module name.
27592
27593 2010-07-31  Bruno Haible  <bruno@clisp.org>
27594
27595         fchownat: Replace also when chown has the trailing slash bug.
27596         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27597         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27598         introduced on 2010-04-10.
27599         Reported by Rainer Tammer.
27600
27601 2010-07-31  Bruno Haible  <bruno@clisp.org>
27602
27603         linkat: Work around AIX 7.1 bug.
27604         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27605         whether linkat handles trailing slash correctly. If not, replace linkat
27606         and define LINKAT_TRAILING_SLASH_BUG.
27607         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27608         check whether (fd1,file1) points to a directory if file1 or file2 ends
27609         in a slash. Code taken from lib/link.c.
27610         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27611         Reported by Rainer Tammer.
27612
27613 2010-07-31  Bruno Haible  <bruno@clisp.org>
27614
27615         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27616         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27617         This disables an xlc optimization that was causing wrong test results.
27618         Reported by Rainer Tammer.
27619
27620 2010-07-31  Bruno Haible  <bruno@clisp.org>
27621
27622         iconv: Work around AIX 6.1..7.1 bug.
27623         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27624         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27625         cross-compiling, guess no on all versions of AIX.
27626         Reported by Rainer Tammer.
27627
27628 2010-07-31  Bruno Haible  <bruno@clisp.org>
27629
27630         readlink: Relax test a bit.
27631         * tests/test-readlink.h (test_readlink): Allow different errno value
27632         when readlink is called with a file name that ends in / and refers to
27633         a file.
27634         Suggested by Eric Blake.
27635         Reported by Rainer Tammer.
27636
27637 2010-07-31  Bruno Haible  <bruno@clisp.org>
27638
27639         copysign: Does not require -lm on glibc systems.
27640         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27641         gl_COMMON_DOUBLE_MATHFUNC.
27642         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27643
27644 2010-07-31  Bruno Haible  <bruno@clisp.org>
27645
27646         duplocale: Work around AIX 7.1 bug.
27647         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27648         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27649         * lib/duplocale.c (rpl_duplocale): Update comment.
27650         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27651         Reported by Rainer Tammer.
27652
27653 2010-07-30  Bruno Haible  <bruno@clisp.org>
27654
27655         dirfd: Avoid link error on AIX 7.1.
27656         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27657         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27658         exist, set REPLACE_DIRFD.
27659         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27660         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27661         * doc/posix-functions/dirfd.texi: Update.
27662         Reported by Rainer Tammer.
27663
27664 2010-07-30  Eric Blake  <eblake@redhat.com>
27665
27666         strtod: next round of AIX fixes
27667         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27668         exponent.
27669         * tests/test-strtod.c (main): Enhance tests.
27670         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27671         Reported by Rainer Tammer.
27672
27673         futimens: fix configure check
27674         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27675         Reported by Bruno Haible.
27676
27677 2010-07-30  Bruno Haible  <bruno@clisp.org>
27678
27679         getline: Update regarding AIX.
27680         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27681         Reported by Rainer Tammer.
27682
27683 2010-07-30  Bruno Haible  <bruno@clisp.org>
27684
27685         wcwidth: Drop replacement on AIX 7.
27686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27687         AIX 7.
27688         Reported by Rainer Tammer.
27689
27690 2010-07-30  Bruno Haible  <bruno@clisp.org>
27691
27692         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27694         a 'char *'.
27695         Reported by Rainer Tammer.
27696
27697 2010-07-30  Bruno Haible  <bruno@clisp.org>
27698
27699         unlink: Update regarding AIX.
27700         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27701         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27702         Reported by Rainer Tammer.
27703
27704 2010-07-30  Bruno Haible  <bruno@clisp.org>
27705
27706         symlink: Update regarding AIX.
27707         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27708         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27709         Reported by Rainer Tammer.
27710
27711 2010-07-30  Bruno Haible  <bruno@clisp.org>
27712
27713         strndup: Update regarding AIX.
27714         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27715         AIX 7.
27716         Reported by Rainer Tammer.
27717
27718 2010-07-30  Bruno Haible  <bruno@clisp.org>
27719
27720         stat: Update regarding AIX.
27721         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27722         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27723         Reported by Rainer Tammer.
27724
27725 2010-07-30  Bruno Haible  <bruno@clisp.org>
27726
27727         truncl: Fix autoconf test.
27728         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27729         whether truncl works.
27730         Reported by Rainer Tammer.
27731
27732 2010-07-30  Bruno Haible  <bruno@clisp.org>
27733
27734         round: Update regarding AIX.
27735         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27736         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27737         Reported by Rainer Tammer.
27738
27739 2010-07-30  Bruno Haible  <bruno@clisp.org>
27740
27741         rename: Update regarding AIX.
27742         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27743         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27744         Reported by Rainer Tammer.
27745
27746 2010-07-30  Bruno Haible  <bruno@clisp.org>
27747
27748         printf.m4: Update regarding AIX.
27749         * m4/printf.m4: Update comments regarding AIX.
27750         Reported by Rainer Tammer.
27751
27752 2010-07-30  Bruno Haible  <bruno@clisp.org>
27753
27754         iconv: Update regarding AIX.
27755         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27756         AIX 7.
27757         Reported by Rainer Tammer.
27758
27759 2010-07-30  Bruno Haible  <bruno@clisp.org>
27760
27761         getopt: Update regarding AIX.
27762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27763         no on AIX.
27764         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27765         Reported by Rainer Tammer.
27766
27767 2010-07-30  Bruno Haible  <bruno@clisp.org>
27768
27769         ldexpl; Update regarding AIX.
27770         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27771         on AIX 7.
27772         Reported by Rainer Tammer.
27773
27774 2010-07-30  Bruno Haible  <bruno@clisp.org>
27775
27776         frexpl: Update regarding AIX.
27777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27778         on AIX 7.
27779         Reported by Rainer Tammer.
27780
27781 2010-07-30  Bruno Haible  <bruno@clisp.org>
27782
27783         open, fopen: Update regarding AIX.
27784         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27785         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27786         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27787         * doc/posix-functions/fopen.texi: Likewise.
27788         Reported by Rainer Tammer.
27789
27790 2010-07-30  Bruno Haible  <bruno@clisp.org>
27791
27792         chown: Update doc regarding AIX.
27793         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27794         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27795         Reported by Rainer Tammer.
27796
27797 2010-07-30  Eric Blake  <eblake@redhat.com>
27798
27799         strtod: fix bug in replacement function on AIX
27800         * lib/strtod.c (strtod): Special case broken "0x" parse in
27801         underlying strtod.
27802         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27803         * doc/posix-functions/strtod.texi (strtod): Likewise.
27804         Reported by Rainer Tammer.
27805
27806 2010-07-30  Bruno Haible  <bruno@clisp.org>
27807
27808         mbrlen: Fix cross-compilation guess for AIX.
27809         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27810         guess. Leftover from 2008-12-22.
27811
27812 2010-07-30  Bruno Haible  <bruno@clisp.org>
27813
27814         mbrtowc: Fix cross-compilation guess for AIX.
27815         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27816         guess. Leftover from 2008-12-21.
27817
27818 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27819
27820         init.sh: work around trap limitation of some shells
27821         * tests/init.sh (setup_): Move exit trap outside of shell function.
27822
27823 2010-07-29  Eric Blake  <eblake@redhat.com>
27824
27825         strtod: aid debugging
27826         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27827         understanding why strtod is rejected.
27828
27829 2010-07-28  Bruno Haible  <bruno@clisp.org>
27830
27831         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27832         * lib/unistr/u8-chr.c: Include <string.h>.
27833         * tests/unistr/test-u8-chr.c: Likewise.
27834         * tests/unistr/test-u16-chr.c: Likewise.
27835         * tests/unistr/test-u32-chr.c: Likewise.
27836         * tests/unistr/test-u8-strchr.c: Likewise.
27837         * tests/unistr/test-u16-strchr.c: Likewise.
27838         * tests/unistr/test-u32-strchr.c: Likewise.
27839         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27840         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27841         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27842         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27843
27844 2010-07-28  Bruno Haible  <bruno@clisp.org>
27845
27846         Use spaces for indentation, not tabs.
27847         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27848
27849 2010-07-27  Bruno Haible  <bruno@clisp.org>
27850
27851         mbspcasecmp: Fix function specification.
27852         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27853         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27854         Reported by Eric Blake <eblake@redhat.com>.
27855
27856 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27857
27858         timespec: use cast and not conditional, as truncation isn't possible
27859         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27860         instead of a conditional.  Comment about the situation in more detail.
27861         This undoes most of the 2009-10-29 patch.
27862
27863 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27864
27865         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27866         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27867         * lib/unistr/u8-strchr.c: Likewise.
27868         * modules/unistr/u8-chr: Depend on memchr.
27869
27870         unistr/u*-strchr: add tests
27871         * modules/unistr/u8-strchr-tests: New file.
27872         * modules/unistr/u16-strchr-tests: New file.
27873         * modules/unistr/u32-strchr-tests: New file.
27874         * tests/unistr/test-strchr.h: New file.
27875         * tests/unistr/test-u8-strchr.c: New file.
27876         * tests/unistr/test-u16-strchr.c: New file.
27877         * tests/unistr/test-u32-strchr.c: New file.
27878
27879         unistr/u*-chr: test multibyte sequences more
27880         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27881         test vector.
27882         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27883         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27884         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27885
27886         unistr/u*-chr: test multibyte sequences
27887         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27888
27889         unistr/u*-chr: prepare for multibyte tests
27890         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27891         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27892         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27893         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27894         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27895         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27896
27897 2010-07-18  Bruno Haible  <bruno@clisp.org>
27898
27899         unistr/u8-strchr: Optimize non-ASCII argument case.
27900         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27901         because the first byte often matches anyway.
27902         Reported by Pádraig Brady <P@draigbrady.com>.
27903
27904 2010-07-15  Karl Berry  <karl@gnu.org>
27905
27906         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27907
27908 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27909
27910         getcwd: on Solaris, work better if ancestors are inaccessible
27911         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27912         buffer and size, try again with a large buffer.  This works better
27913         on Solaris, since its getcwd succeeds even if the path to the root
27914         is inaccessible, and this is helpful in common cases such as .zfs
27915         hidden directories.  Problem reported by J Chapman Flack in
27916         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27917         Use system getcwd if it's declared, not merely if it's partly
27918         working; use the partly-working test only to avoid needless effort
27919         if the system getcwd fails.
27920         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27921         comment that was already obsolete and is now even more obsolete.
27922         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27923         now might call strdup.
27924
27925 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27926
27927         pthread: Add enough so that coreutils/src/sort.c compiles.
27928         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27929         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27930         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27931         Include <sys/types.h>, in case it defines pthread_t.
27932         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27933         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27934         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27935         (pthread_rwlockattr_t, pthread_spinlock_t):
27936         New typedefs, if HAVE_PTHREAD_T is not defined.
27937         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27938         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27939         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27940         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27941         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27942         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27943         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27944         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27945         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27946         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27947         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27948         New macros.
27949         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27950         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27951         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27952         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27953         (pthread_spin_unlock): New dummy functions.
27954         (pthread_create): Return EAGAIN; don't set errno.
27955         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27956         require AC_C_INLINE.
27957         * modules/pthread (Depends-on): Add sched, time.
27958         (pthread.h): Use AM_V_GEN.
27959
27960 2010-07-13  Bruno Haible  <bruno@clisp.org>
27961
27962         striconveh: Don't malloc memory if the result buffer is sufficient.
27963         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27964         buffer if its size is sufficient.
27965         Reported by Ludovic Courtès <ludo@gnu.org>.
27966
27967 2010-07-13  Bruno Haible  <bruno@clisp.org>
27968
27969         strtod: Add safety check.
27970         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27971
27972 2010-07-12  Bruno Haible  <bruno@clisp.org>
27973
27974         Unify tests that set gl_cv_func_ldexpl_no_libm.
27975         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27976         gl_FUNC_LDEXPL.
27977         (gl_FUNC_LDEXPL): Invoke it.
27978         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27979
27980 2010-07-12  Bruno Haible  <bruno@clisp.org>
27981
27982         Unify tests that set gl_cv_func_ldexp_no_libm.
27983         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27984         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27985         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27986         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27987         * modules/strtod (Files): Add m4/ldexp.m4.
27988
27989 2010-07-12  Bruno Haible  <bruno@clisp.org>
27990
27991         Unify tests that set gl_cv_func_frexpl_no_libm.
27992         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27993         gl_FUNC_FREXPL_NO_LIBM.
27994         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27995         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27996
27997 2010-07-12  Bruno Haible  <bruno@clisp.org>
27998
27999         Unify tests that set gl_cv_func_frexp_no_libm.
28000         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28001         gl_FUNC_FREXP_NO_LIBM.
28002         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28003         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28004
28005 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28006
28007         memcoll: clarify sizes versus lengths, document better, and tweak perf
28008         * lib/memcoll.c (strcoll_loop, memcoll0):
28009         Improve quality of descriptive comments.  Name variables
28010         consistently as to whether they are lengths (which do not include
28011         terminating null) versus sizes (which do).
28012         * lib/xmemcoll.c (xmemcoll0): Likewise.
28013         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28014         returned when s1size == 0; this is easier to compile and saves
28015         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28016
28017 2010-07-12  Bruno Haible  <bruno@clisp.org>
28018
28019         Tests for module '_Exit'.
28020         * modules/_Exit-tests: New file.
28021         * tests/test-_Exit.sh: New file.
28022         * tests/test-_Exit.c: New file.
28023
28024         New module '_Exit'.
28025         * lib/stdlib.in.h (__attribute__): New macro.
28026         (_Exit): New declaration.
28027         * lib/_Exit.c: New file.
28028         * m4/_Exit.m4: New file.
28029         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28030         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28031         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28032         * modules/_Exit: New file.
28033         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28034         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28035
28036 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28037
28038         strtod: make it more-accurate typically, and don't require libm
28039         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28040         Include limits.h.  Don't include string.h.
28041         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28042         (locale_isspace): New function, so that no casts are needed to
28043         check whether *s is a space.
28044         (ldexp): Provide an unused dummy if not available.
28045         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28046         (strtod): Use them.  This implementation prefers to use the
28047         underlying strtod if available, falling back on our own code
28048         only to fix known bugs.  This is more likely to produce an
28049         accurate result.  Also, it avoids the use of libm functions.
28050         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28051         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28052         was absent, but it caused a test failure with coreutils.
28053         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28054         with libm.
28055         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28056         * modules/strtod-tests (Makefile.am): Likewise.
28057
28058 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28059             Bruno Haible  <bruno@clisp.org>
28060
28061         unistr/u8-strchr: Optimize ASCII argument case.
28062         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28063
28064 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28065
28066         (x)memcoll: minor tweaks
28067         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28068         is after the type that it qualifies.
28069         (memcoll0): Likewise.
28070         * lib/memcoll.h (memcoll0): Likewise.
28071         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28072         * lib/xmemcoll.h (xmemcoll0): Likewise.
28073         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28074         differs from memcoll in that the NUL byte is part of the argument.
28075         Omit the abort-checks, as performance is a real issue here.  Plus,
28076         the checks were wrong anyway (an off-by-one error).  Omit local
28077         variable 'diff', as it's a bit clearer that way.
28078         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28079         no longer needed.
28080
28081 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28082
28083         (x)memcoll: speedup when input is known to be NUL delimited
28084         * lib/memcoll.c: Include stdlib.
28085         (memcoll0): New function.
28086         (strcoll_loop): New function, refactored for use in both memcoll
28087         and memcoll0.
28088         * lib/memcoll.h (memcoll0): Add prototype.
28089         * lib/xmemcoll.c (xmemcoll0): New function.
28090         (collate_error): New function, refactored for use in both xmemcoll
28091         and xmemcoll0.
28092         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28093         * m4/memcoll.m4: add inline invocation.
28094
28095 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28096
28097         * build-aux/bootstrap: Remove any local translations
28098         from the translation project synchronization directory,
28099         so that local only translations are not distributed.
28100
28101 2010-07-04  Bruno Haible  <bruno@clisp.org>
28102
28103         fsusage: Clarify which code applies to which platforms.
28104         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28105         platform.
28106         * lib/fsusage.c (get_fs_usage): Likewise.
28107
28108 2010-07-04  Bruno Haible  <bruno@clisp.org>
28109
28110         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28111         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28112         Reported by Martin Lambers <marlam@marlam.de>.
28113
28114 2010-07-04  Jim Meyering  <meyering@redhat.com>
28115
28116         hash: once again explicitly disallow insertion of NULL
28117         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28118         inserting a NULL pointer cannot work with these functions.
28119         Add a comment with details.
28120         This reverts part of the 2010-07-01 commit, 5bef1a35
28121         "hash: extend module to deal with non-pointer keys".
28122
28123 2010-07-01  Bruno Haible  <bruno@clisp.org>
28124
28125         stdbool: Update doc.
28126         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28127         Info from Christian Weisgerber <naddy@mips.inka.de>.
28128
28129 2010-07-01  Jim Meyering  <meyering@redhat.com>
28130
28131         hash: extend module to deal with non-pointer keys
28132         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28133         but that allows insertion of non-pointer entries.
28134         Do not disallow an ENTRY value of NULL.
28135         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28136         * lib/hash.h (hash_insert0): Declare.
28137
28138 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28139
28140         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28141         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28142         not present (i.e. with autoconf 2.59 and when using gettextize, not
28143         gnulib), require AC_GNU_SOURCE instead.
28144
28145 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28146
28147         idpriv-drop: Fix tests.
28148         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28149         not to the test-idpriv-droptemp program.
28150
28151 2010-06-29  Bruno Haible  <bruno@clisp.org>
28152
28153         string: Fix syntax error with g++ 2.96.
28154         * lib/string.in.h (__pure__): Remove definition.
28155         (_GL_ATTRIBUTE_PURE): New macro.
28156         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28157         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28158         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28159
28160 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28161
28162         unitypes: Fix bug introduced on 2010-05-18.
28163         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28164
28165 2010-06-22  Eric Blake  <eblake@redhat.com>
28166
28167         memmem: slight optimization
28168         * lib/str-two-way.h (critical_factorization): Update comments.
28169         Reduce work during factorization phase.
28170         Reported by Carlos Bueno <carlos@bueno.org>.
28171
28172 2010-06-21  Bruno Haible  <bruno@clisp.org>
28173
28174         Fix HAVE_CALLOC_POSIX misnomer.
28175         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28176         !HAVE_CALLOC_POSIX.
28177         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28178         HAVE_CALLOC_POSIX.
28179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28180         instead of HAVE_CALLOC_POSIX.
28181         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28182         HAVE_CALLOC_POSIX.
28183
28184         Use modern idiom for calloc() replacement.
28185         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28186         AC_FUNC_CALLOC.
28187         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28188         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28189         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28190         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28191         (gl_REPLACE_CALLOC): New macro.
28192
28193 2010-06-21  Bruno Haible  <bruno@clisp.org>
28194
28195         Fix HAVE_REALLOC_POSIX misnomer.
28196         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28197         !HAVE_REALLOC_POSIX.
28198         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28199         HAVE_REALLOC_POSIX.
28200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28201         instead of HAVE_REALLOC_POSIX.
28202         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28203         HAVE_REALLOC_POSIX.
28204
28205         Use modern idiom for realloc() replacement.
28206         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28207         AC_FUNC_REALLOC.
28208         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28209         Autoconf's AC_FUNC_REALLOC.
28210         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28211         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28212         (gl_REPLACE_REALLOC): New macro.
28213         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28214
28215 2010-06-21  Bruno Haible  <bruno@clisp.org>
28216
28217         Fix HAVE_MALLOC_POSIX misnomer.
28218         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28219         !HAVE_MALLOC_POSIX.
28220         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28221         HAVE_MALLOC_POSIX.
28222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28223         instead of HAVE_MALLOC_POSIX.
28224         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28225         HAVE_MALLOC_POSIX.
28226
28227         Use modern idiom for malloc() replacement.
28228         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28229         AC_FUNC_MALLOC.
28230         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28231         Autoconf's AC_FUNC_MALLOC.
28232         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28233         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28234         (gl_REPLACE_MALLOC): New macro.
28235         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28236
28237 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28238
28239         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28240         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28241         This macro takes 3 arguments, not 4.
28242
28243 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28244
28245         ipv6: fix detection under mingw
28246         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28247         in6_addr.
28248
28249 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28250
28251         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28252         that strtod() works when cross-compiling to a glibc version known
28253         to work.
28254
28255 2010-06-15  Bruno Haible  <bruno@clisp.org>
28256
28257         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28258
28259 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28260
28261         select: Correct timeout.
28262         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28263
28264 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28265
28266         git-version-gen: init shell var to avoid env var influence
28267         * build-aux/git-version-gen (v): Init shell var to empty.
28268
28269 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28270
28271         priv-set: Don't assume that priv.h exists merely because getppriv does.
28272         See Jan Andersen's bug report about AIX 5L in
28273         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28274         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28275         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28276         * lib/priv-set.h: Likewise.
28277         * tests/test-priv-set.c: Likewise.
28278
28279 2010-06-13  Bruno Haible  <bruno@clisp.org>
28280
28281         relocatable: Make it easier to test whether to install wrappers.
28282         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28283         RELOCATABLE_VIA_WRAPPER.
28284
28285 2010-06-13  Bruno Haible  <bruno@clisp.org>
28286
28287         gnulib-tool: Display specified modules and dependencies differently.
28288         * gnulib-tool (func_show_module_list): New function.
28289         (func_import, func_create_testdir): Invoke it.
28290         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28291
28292 2010-06-13  Bruno Haible  <bruno@clisp.org>
28293
28294         gnulib-tool: Align code of func_import and func_create_testdir.
28295         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28296         specified_modules.
28297
28298 2010-06-12  Jim Meyering  <meyering@redhat.com>
28299
28300         test-inttostr: avoid spurious failure on Solaris 9
28301         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28302         to accept "%ju".  Reported by Bruno Haible.
28303
28304 2010-06-11  Jim Meyering  <meyering@redhat.com>
28305
28306         test-sys_socket: mark variables as used more readably
28307         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28308         as "used" explicitly via (void) statement casts.  This is more
28309         readable than using them in an artificial return expression.
28310         Suggestion from Bruno Haible.
28311
28312 2010-06-11  Bruno Haible  <bruno@clisp.org>
28313
28314         Avoid some more warnings from "gcc -Wwrite-strings".
28315         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28316         to 'const char *'.
28317         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28318         * tests/test-c-strcasestr.c (main): Likewise.
28319         * tests/test-mbscasestr1.c (main): Likewise.
28320         * tests/test-mbscasestr2.c (main): Likewise.
28321         * tests/test-memmem.c (main): Likewise.
28322         * tests/test-strstr.c (main): Likewise.
28323         * tests/test-strcasestr.c (main): Likewise.
28324
28325 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28326
28327         init.sh: change framework_failure_ to fail with status 99, not 1
28328         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28329         automake's parallel-tests rule that this is an unexpected failure,
28330         even if the test is listed in XFAIL_TESTS.
28331
28332 2010-06-11  Jim Meyering  <meyering@redhat.com>
28333
28334         test-inttostr: avoid warnings about 4-6KB literal strings
28335         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28336         Include "macros.h", for its definition of ASSERT.
28337         (CK): s/assert/ASSERT/
28338         * modules/inttostr-tests (Files): Add macros.h.
28339
28340         init.sh: don't use $ME_ or skip_ before they are defined
28341         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28342         their first uses.  Also hoist their companions: warn_, fail_,
28343         framework_failure_, $stderr_fileno.  Prompted by a patch from
28344         Stefano Lattarini.
28345
28346         test-sys_socket: avoid set-but-not-used warnings from gcc
28347         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28348         avoid warning about set-but-not-used variables.
28349
28350         test-xvasprintf: avoid 'const' discard warnings
28351         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28352         "const" when assigning from literal strings.
28353         (test_xasprintf): Add "void" in function argument list to placate
28354         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28355
28356         tests: avoid compilation warnings in argmatch and exclude tests...
28357         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28358         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28359         Since it always exits, declare with the "noreturn" attribute.
28360         * tests/test-argmatch.c: Likewise.
28361
28362         tests: avoid 'const' discard warnings in mbsstr tests
28363         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28364         * tests/test-mbsstr2.c (main): Likewise.
28365
28366         test-verify: avoid warning from gcc's -Wmissing-declarations
28367         * tests/test-verify.c (function): Declare to be static.
28368
28369         test-inttostr.c: include <string.h> for use of strcmp
28370         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28371
28372         test-linkat: avoid failed assertion on "other" architectures
28373         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28374         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28375         sparc: https://bugs.launchpad.net/bugs/591968
28376
28377 2010-06-11  Jim Meyering  <meyering@redhat.com>
28378
28379         printf.m4: avoid autoconf's "Expanded Before Required" warning
28380         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28381         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28382         autoconf warning.
28383
28384 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28385
28386         Replacement header templates are now named with ".in", not "_".
28387         * doc/gnulib-intro.texi: Correct.
28388
28389 2010-06-10  Jim Meyering  <meyering@redhat.com>
28390
28391         inttostr-tests: depend on snprintf, not snprintf-posix
28392         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28393         snprintf-posix, to avoid this aclocal failure:
28394           missing file gnulib-tests/vasnprintf.c
28395           configure.ac:45: error: expected source file, required through \
28396           AC_LIBSOURCES, not found
28397
28398 2010-06-10  Jim Meyering  <meyering@redhat.com>
28399
28400         inttostr: add a new function, inttostr, and tests
28401         The namesake function was not available.  The existence of the
28402         template file, inttostr.c makes its addition nontrivial.
28403         * lib/anytostr.c: Rename from inttostr.c.
28404         (anytostr): Rename from inttostr.
28405         * lib/inttostr.c: New file.
28406         * modules/inttostr (Files): Add anytostr.c.
28407         (Makefile.am): Set lib_SOURCES instead of ...
28408         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28409         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28410         * lib/offtostr.c: Likewise.
28411         * lib/uinttostr.c: Likewise.
28412         * lib/umaxtostr.c: Likewise.
28413         * modules/inttostr-tests: New file.
28414         * tests/test-inttostr.c: New file.  Test these functions.
28415
28416 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28417             Bruno Haible  <bruno@clisp.org>
28418
28419         Add "Extending Gnulib" chapter to manual.
28420         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28421         chapter.
28422         (Extending Gnulib): New chapter.
28423         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28424         chapter.
28425
28426 2010-06-09  Bruno Haible  <bruno@clisp.org>
28427
28428         Avoid relocwrapper link errors due to gnulib replacement functions.
28429         * lib/areadlink.c: Use the system's malloc, realloc functions.
28430         (areadlink): Set errno to ENOMEM explicitly.
28431         * modules/areadlink (Depends-on): Remove malloc-posix.
28432         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28433
28434 2010-06-09  Bruno Haible  <bruno@clisp.org>
28435
28436         Avoid relocwrapper link errors due to gnulib replacement functions.
28437         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28438         * lib/malloca.c: Likewise.
28439         * lib/relocatable.c: Likewise.
28440         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28441         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28442         * lib/setenv.c: Use the system's malloc, realloc functions.
28443         * lib/strerror.c: Use the system's sprintf function.
28444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28445
28446 2010-06-04  Bruno Haible  <bruno@clisp.org>
28447
28448         Prefer documented low-level autoconf macro names.
28449         * m4/lib-link.m4: Use m4_translit instead of translit.
28450         * m4/environ.m4: Likewise.
28451         * m4/mathfunc.m4: Likewise.
28452         * m4/onceonly.m4: Likewise.
28453         * m4/stdint.m4: Likewise.
28454         Suggested by Eric Blake.
28455
28456 2010-06-04  Martin Lambers  <marlam@marlam.de>
28457             Bruno Haible  <bruno@clisp.org>
28458
28459         havelib: Allow library names with '+' characters.
28460         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28461         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28462
28463 2010-06-09  Bruno Haible  <bruno@clisp.org>
28464
28465         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28466         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28467         realloc failed.
28468
28469 2010-06-08  Peter Simons  <simons@cryp.to>
28470
28471         maint.mk: make the news-check rule more configurable
28472         * top/maint.mk (news-check-lines-spec): New variable.
28473         (news-check): Use "sed -n 1,10p" in place of "head".
28474
28475 2010-06-07  Jim Meyering  <meyering@redhat.com>
28476
28477         do-release-commit-and-tag: fix typo in --help
28478         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28479
28480         regex: avoid new dead-code warning with gcc-4.6.0
28481         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28482         if-block containing a while-loop.  It's been unused for at least
28483         5 years.
28484
28485 2010-06-05  Bruno Haible  <bruno@clisp.org>
28486
28487         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28488         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28489
28490 2010-06-04  Bruno Haible  <bruno@clisp.org>
28491
28492         Update to GNU gettext 0.18.1.
28493         * modules/gettext (configure.ac): Require gettext infrastructure from
28494         version 0.18.1.
28495
28496 2010-06-03  Bruno Haible  <bruno@clisp.org>
28497
28498         Don't use AC_LIBOBJ with file names in subdirectories.
28499         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28500         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28501         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28502         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28503         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28504         gl_LIBUNISTRING_LIBSOURCE.
28505         (Makefile.am): Augment lib_SOURCES here, conditionally.
28506         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28507
28508 2010-06-03  Bruno Haible  <bruno@clisp.org>
28509
28510         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28511         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28512         expansion does not end with a newline.
28513         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28514         unnecessary newline.
28515
28516 2010-06-03  Bruno Haible  <bruno@clisp.org>
28517
28518         Reduce dependencies.
28519         * tests/test-quotearg.h: New file, extracted from
28520         tests/test-quotearg.c.
28521         * tests/test-quotearg-simple.c: New file, extracted from
28522         tests/test-quotearg.c.
28523         * tests/test-quotearg.c: Don't include <ctype.h>.
28524         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28525         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28526         use_quote_double_quotes, use_quotearg_colon): Moved to
28527         tests/test-quotearg.h.
28528         (results_g, flag_results, custom_quotes, custom_results): Moved
28529         to tests/test-quotearg-simple.c.
28530         (main): Moved the part that does not depend on gettext to
28531         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28532         performed.
28533         * modules/quotearg-simple: New file.
28534         * modules/quotearg-simple-tests: New file.
28535         * modules/quotearg (Depends-on): Add quotearg-simple.
28536         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28537         (Files): Add tests/test-quotearg.h.
28538         Reported by Paolo Bonzini.
28539
28540 2010-06-03  Bruno Haible  <bruno@clisp.org>
28541
28542         Reduce dependencies.
28543         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28544
28545 2010-06-03  Bruno Haible  <bruno@clisp.org>
28546
28547         time: Undefine more broken macros.
28548         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28549         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28550         Reported by Eric Blake.
28551
28552 2010-06-03  Bruno Haible  <bruno@clisp.org>
28553
28554         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28555         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28556         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28557         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28558         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28559         Reported by Ludovic Courtès <ludo@gnu.org>.
28560
28561 2010-06-02  Eric Blake  <eblake@redhat.com>
28562
28563         time: work with mingw + pthreads-win32 library
28564         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28565         if timespec is defined only in pthread.h.
28566         * modules/time (Makefile.am): Substitute it.
28567         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28568         <pthread.h>, when needed.
28569         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28570         from the library.
28571
28572 2010-05-31  Bruno Haible  <bruno@clisp.org>
28573
28574         Avoid expanding two macros in the wrong order.
28575         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28576         gl_LIBUNISTRING if it is defined.
28577         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28578         autoconf >= 2.64.
28579         Reported by Ludovic Courtès <ludo@gnu.org>.
28580
28581 2010-05-27  Jim Meyering  <meyering@redhat.com>
28582
28583         maint.mk: also prohibit "#undef" of always-defined symbols
28584         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28585         Allow more than one space before the symbol name.
28586         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28587         the regexp uses alternation.
28588
28589 2010-05-26  Eric Blake  <eblake@redhat.com>
28590
28591         maint.mk: avoid echo -e
28592         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28593         Convert all uses of echo -* to printf.
28594         Reported by Matthias Bolte.
28595
28596 2010-05-25  Bruno Haible  <bruno@clisp.org>
28597
28598         Update to GNU gettext 0.18, part 2.
28599         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28600         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28601
28602 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28603
28604         Add missing include in test-pwrite.c.
28605         * tests/test-pwrite.c: Include string.h, for strcmp.
28606
28607 2010-05-24  Bruno Haible  <bruno@clisp.org>
28608
28609         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28610
28611 2010-05-24  Bruno Haible  <bruno@clisp.org>
28612
28613         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28614         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28615         iconveh_error argument.
28616         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28617         U_STRCONV_TO_LOCALE.
28618         * lib/unistr/u16-strcoll.c: Likewise.
28619         * lib/unistr/u32-strcoll.c: Likewise.
28620         * modules/unistr/u8-strcoll (Depends-on): Add
28621         uniconv/u8-strconv-to-enc, localcharset. Remove
28622         uniconv/u8-strconv-to-locale.
28623         (configure.ac): Bump version number.
28624         * modules/unistr/u16-strcoll (Depends-on): Add
28625         uniconv/u16-strconv-to-enc, localcharset. Remove
28626         uniconv/u16-strconv-to-locale.
28627         (configure.ac): Bump version number.
28628         * modules/unistr/u32-strcoll (Depends-on): Add
28629         uniconv/u32-strconv-to-enc, localcharset. Remove
28630         uniconv/u32-strconv-to-locale.
28631         (configure.ac): Bump version number.
28632
28633 2010-05-24  Bruno Haible  <bruno@clisp.org>
28634
28635         Avoid a test failure on NetBSD 5.0.
28636         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28637         an iconv() bug.
28638
28639 2010-05-24  Bruno Haible  <bruno@clisp.org>
28640
28641         Adjust #include directive style.
28642         * modules/regex (Includes): Recommend to write <regex.h>.
28643
28644 2010-05-24  Bruno Haible  <bruno@clisp.org>
28645
28646         regex: Don't require alloca.
28647         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28648         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28649         only inside if (0).
28650
28651 2010-05-23  Jim Meyering  <meyering@redhat.com>
28652
28653         test-renameat.c: include <sys/stat.h>
28654         * tests/test-renameat.c: Include <sys/stat.h>; required for
28655         definition of S_IS* macros.
28656
28657 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28658
28659         Update maintainer documentation for 'relocatable-prog' module.
28660         * doc/relocatable-maint.texi: Update.
28661         Comments by Bruno Haible.
28662
28663 2010-05-23  Bruno Haible  <bruno@clisp.org>
28664
28665         git-merge-changelog: Enable --split-merged-entry by default.
28666         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28667         (usage): Don't mention this option any more.
28668         Reported by Ralf Wildenhues.
28669
28670 2010-05-23  Jim Meyering  <meyering@redhat.com>
28671
28672         test-pwrite: do not leave behind a test file named "out"
28673         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28674         The trivial-looking use of init.sh is really necessary.
28675         It ensures that the temporary file, "out", is created in
28676         a temporary directory, and removed upon termination.
28677         * tests/test-pwrite.sh: Re-add file.
28678         * modules/pwrite-tests: Reference it.
28679
28680 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28681
28682         Fix output redirection buglet in init.sh.
28683         * tests/init.sh: Fix redirection of stderr.
28684
28685 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28686
28687         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28688
28689 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28690
28691         * modules/valgrind-tests: New file.
28692         * m4/valgrind-tests.m4: New file.
28693         * doc/valgrind-tests.texi: New file.
28694         * doc/gnulib.texi (Running self-tests under valgrind): New
28695         section.
28696
28697 2010-05-19  Bruno Haible  <bruno@clisp.org>
28698
28699         Clean up dead code in recent commit.
28700         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28701         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28702         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28703         Suggested by Paolo Bonzini.
28704
28705 2010-05-19  Bruno Haible  <bruno@clisp.org>
28706
28707         Avoid valgrind error reports from libunistring.
28708         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28709         * modules/libunistring (Files): Add it.
28710         * modules/libunistring-optional (Files): Likewise.
28711
28712 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28713             Bruno Haible  <bruno@clisp.org>
28714
28715         New module 'libunistring-optional'.
28716         * modules/libunistring-optional: New file.
28717         * m4/libunistring-base.m4: New file.
28718         * m4/libunistring-optional.m4: New file.
28719         * lib/unicase.in.h: Renamed from lib/unicase.h.
28720         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28721         * lib/unictype.in.h: Renamed from lib/unictype.h.
28722         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28723         * lib/uniname.in.h: Renamed from lib/uniname.h.
28724         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28725         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28726         * lib/unistr.in.h: Renamed from lib/unistr.h.
28727         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28728         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28729         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28730         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28731         gl_LIBUNISTRING. If the library was found, determine the installed
28732         version and set LIBUNISTRING_VERSION.
28733         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28734         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28735         handle a configuration option --with-included-libunistring.
28736         * modules/libunistring (Files): Add m4/absolute-header.m4.
28737         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28738         Add m4/libunistring-base.m4.
28739         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28740         (Makefile.am): Build unicase.h from unicase.in.h.
28741         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28742         Add m4/libunistring-base.m4.
28743         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28744         (Makefile.am): Build uniconv.h from uniconv.in.h.
28745         * modules/unictype/base (Files): Use unictype.in.h instead of
28746         unictype.h. Add m4/libunistring-base.m4.
28747         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28748         (Makefile.am): Build unictype.h from unictype.in.h.
28749         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28750         Add m4/libunistring-base.m4.
28751         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28752         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28753         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28754         Add m4/libunistring-base.m4.
28755         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28756         (Makefile.am): Build uniname.h from uniname.in.h.
28757         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28758         Add m4/libunistring-base.m4.
28759         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28760         (Makefile.am): Build uninorm.h from uninorm.in.h.
28761         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28762         unistdio.h. Add m4/libunistring-base.m4.
28763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28764         (Makefile.am): Build unistdio.h from unistdio.in.h.
28765         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28766         Add m4/libunistring-base.m4.
28767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28768         (Makefile.am): Build unistr.h from unistr.in.h.
28769         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28770         Add m4/libunistring-base.m4.
28771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28772         (Makefile.am): Build unitypes.h from unitypes.in.h.
28773         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28774         Add m4/libunistring-base.m4.
28775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28776         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28777         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28778         uniwidth.h. Add m4/libunistring-base.m4.
28779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28780         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28781         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28782         instead of augmenting lib_SOURCES.
28783         * modules/unicase/empty-suffix-context: Likewise.
28784         * modules/unicase/locale-language: Likewise.
28785         * modules/unicase/tolower: Likewise.
28786         * modules/unicase/totitle: Likewise.
28787         * modules/unicase/toupper: Likewise.
28788         * modules/unicase/u8-casecmp: Likewise.
28789         * modules/unicase/u8-casecoll: Likewise.
28790         * modules/unicase/u8-casefold: Likewise.
28791         * modules/unicase/u8-casexfrm: Likewise.
28792         * modules/unicase/u8-ct-casefold: Likewise.
28793         * modules/unicase/u8-ct-tolower: Likewise.
28794         * modules/unicase/u8-ct-totitle: Likewise.
28795         * modules/unicase/u8-ct-toupper: Likewise.
28796         * modules/unicase/u8-is-cased: Likewise.
28797         * modules/unicase/u8-is-casefolded: Likewise.
28798         * modules/unicase/u8-is-lowercase: Likewise.
28799         * modules/unicase/u8-is-titlecase: Likewise.
28800         * modules/unicase/u8-is-uppercase: Likewise.
28801         * modules/unicase/u8-prefix-context: Likewise.
28802         * modules/unicase/u8-suffix-context: Likewise.
28803         * modules/unicase/u8-tolower: Likewise.
28804         * modules/unicase/u8-totitle: Likewise.
28805         * modules/unicase/u8-toupper: Likewise.
28806         * modules/unicase/u16-casecmp: Likewise.
28807         * modules/unicase/u16-casecoll: Likewise.
28808         * modules/unicase/u16-casefold: Likewise.
28809         * modules/unicase/u16-casexfrm: Likewise.
28810         * modules/unicase/u16-ct-casefold: Likewise.
28811         * modules/unicase/u16-ct-tolower: Likewise.
28812         * modules/unicase/u16-ct-totitle: Likewise.
28813         * modules/unicase/u16-ct-toupper: Likewise.
28814         * modules/unicase/u16-is-cased: Likewise.
28815         * modules/unicase/u16-is-casefolded: Likewise.
28816         * modules/unicase/u16-is-lowercase: Likewise.
28817         * modules/unicase/u16-is-titlecase: Likewise.
28818         * modules/unicase/u16-is-uppercase: Likewise.
28819         * modules/unicase/u16-prefix-context: Likewise.
28820         * modules/unicase/u16-suffix-context: Likewise.
28821         * modules/unicase/u16-tolower: Likewise.
28822         * modules/unicase/u16-totitle: Likewise.
28823         * modules/unicase/u16-toupper: Likewise.
28824         * modules/unicase/u32-casecmp: Likewise.
28825         * modules/unicase/u32-casecoll: Likewise.
28826         * modules/unicase/u32-casefold: Likewise.
28827         * modules/unicase/u32-casexfrm: Likewise.
28828         * modules/unicase/u32-ct-casefold: Likewise.
28829         * modules/unicase/u32-ct-tolower: Likewise.
28830         * modules/unicase/u32-ct-totitle: Likewise.
28831         * modules/unicase/u32-ct-toupper: Likewise.
28832         * modules/unicase/u32-is-cased: Likewise.
28833         * modules/unicase/u32-is-casefolded: Likewise.
28834         * modules/unicase/u32-is-lowercase: Likewise.
28835         * modules/unicase/u32-is-titlecase: Likewise.
28836         * modules/unicase/u32-is-uppercase: Likewise.
28837         * modules/unicase/u32-prefix-context: Likewise.
28838         * modules/unicase/u32-suffix-context: Likewise.
28839         * modules/unicase/u32-tolower: Likewise.
28840         * modules/unicase/u32-totitle: Likewise.
28841         * modules/unicase/u32-toupper: Likewise.
28842         * modules/unicase/ulc-casecmp: Likewise.
28843         * modules/unicase/ulc-casecoll: Likewise.
28844         * modules/unicase/ulc-casexfrm: Likewise.
28845         * modules/uniconv/u8-conv-from-enc: Likewise.
28846         * modules/uniconv/u8-conv-to-enc: Likewise.
28847         * modules/uniconv/u8-strconv-from-enc: Likewise.
28848         * modules/uniconv/u8-strconv-from-locale: Likewise.
28849         * modules/uniconv/u8-strconv-to-enc: Likewise.
28850         * modules/uniconv/u8-strconv-to-locale: Likewise.
28851         * modules/uniconv/u16-conv-from-enc: Likewise.
28852         * modules/uniconv/u16-conv-to-enc: Likewise.
28853         * modules/uniconv/u16-strconv-from-enc: Likewise.
28854         * modules/uniconv/u16-strconv-from-locale: Likewise.
28855         * modules/uniconv/u16-strconv-to-enc: Likewise.
28856         * modules/uniconv/u16-strconv-to-locale: Likewise.
28857         * modules/uniconv/u32-conv-from-enc: Likewise.
28858         * modules/uniconv/u32-conv-to-enc: Likewise.
28859         * modules/uniconv/u32-strconv-from-enc: Likewise.
28860         * modules/uniconv/u32-strconv-from-locale: Likewise.
28861         * modules/uniconv/u32-strconv-to-enc: Likewise.
28862         * modules/uniconv/u32-strconv-to-locale: Likewise.
28863         * modules/unictype/bidicategory-byname: Likewise.
28864         * modules/unictype/bidicategory-name: Likewise.
28865         * modules/unictype/bidicategory-of: Likewise.
28866         * modules/unictype/bidicategory-test: Likewise.
28867         * modules/unictype/block-list: Likewise.
28868         * modules/unictype/block-test: Likewise.
28869         * modules/unictype/category-C: Likewise.
28870         * modules/unictype/category-Cc: Likewise.
28871         * modules/unictype/category-Cf: Likewise.
28872         * modules/unictype/category-Cn: Likewise.
28873         * modules/unictype/category-Co: Likewise.
28874         * modules/unictype/category-Cs: Likewise.
28875         * modules/unictype/category-L: Likewise.
28876         * modules/unictype/category-Ll: Likewise.
28877         * modules/unictype/category-Lm: Likewise.
28878         * modules/unictype/category-Lo: Likewise.
28879         * modules/unictype/category-Lt: Likewise.
28880         * modules/unictype/category-Lu: Likewise.
28881         * modules/unictype/category-M: Likewise.
28882         * modules/unictype/category-Mc: Likewise.
28883         * modules/unictype/category-Me: Likewise.
28884         * modules/unictype/category-Mn: Likewise.
28885         * modules/unictype/category-N: Likewise.
28886         * modules/unictype/category-Nd: Likewise.
28887         * modules/unictype/category-Nl: Likewise.
28888         * modules/unictype/category-No: Likewise.
28889         * modules/unictype/category-P: Likewise.
28890         * modules/unictype/category-Pc: Likewise.
28891         * modules/unictype/category-Pd: Likewise.
28892         * modules/unictype/category-Pe: Likewise.
28893         * modules/unictype/category-Pf: Likewise.
28894         * modules/unictype/category-Pi: Likewise.
28895         * modules/unictype/category-Po: Likewise.
28896         * modules/unictype/category-Ps: Likewise.
28897         * modules/unictype/category-S: Likewise.
28898         * modules/unictype/category-Sc: Likewise.
28899         * modules/unictype/category-Sk: Likewise.
28900         * modules/unictype/category-Sm: Likewise.
28901         * modules/unictype/category-So: Likewise.
28902         * modules/unictype/category-Z: Likewise.
28903         * modules/unictype/category-Zl: Likewise.
28904         * modules/unictype/category-Zp: Likewise.
28905         * modules/unictype/category-Zs: Likewise.
28906         * modules/unictype/category-and: Likewise.
28907         * modules/unictype/category-and-not: Likewise.
28908         * modules/unictype/category-byname: Likewise.
28909         * modules/unictype/category-name: Likewise.
28910         * modules/unictype/category-none: Likewise.
28911         * modules/unictype/category-of: Likewise.
28912         * modules/unictype/category-or: Likewise.
28913         * modules/unictype/category-test: Likewise.
28914         * modules/unictype/combining-class: Likewise.
28915         * modules/unictype/ctype-alnum: Likewise.
28916         * modules/unictype/ctype-alpha: Likewise.
28917         * modules/unictype/ctype-blank: Likewise.
28918         * modules/unictype/ctype-cntrl: Likewise.
28919         * modules/unictype/ctype-digit: Likewise.
28920         * modules/unictype/ctype-graph: Likewise.
28921         * modules/unictype/ctype-lower: Likewise.
28922         * modules/unictype/ctype-print: Likewise.
28923         * modules/unictype/ctype-punct: Likewise.
28924         * modules/unictype/ctype-space: Likewise.
28925         * modules/unictype/ctype-upper: Likewise.
28926         * modules/unictype/ctype-xdigit: Likewise.
28927         * modules/unictype/decimal-digit: Likewise.
28928         * modules/unictype/digit: Likewise.
28929         * modules/unictype/mirror: Likewise.
28930         * modules/unictype/numeric: Likewise.
28931         * modules/unictype/property-alphabetic: Likewise.
28932         * modules/unictype/property-ascii-hex-digit: Likewise.
28933         * modules/unictype/property-bidi-arabic-digit: Likewise.
28934         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28935         * modules/unictype/property-bidi-block-separator: Likewise.
28936         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28937         * modules/unictype/property-bidi-common-separator: Likewise.
28938         * modules/unictype/property-bidi-control: Likewise.
28939         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28940         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28941         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28942         * modules/unictype/property-bidi-european-digit: Likewise.
28943         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28944         * modules/unictype/property-bidi-left-to-right: Likewise.
28945         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28946         * modules/unictype/property-bidi-other-neutral: Likewise.
28947         * modules/unictype/property-bidi-pdf: Likewise.
28948         * modules/unictype/property-bidi-segment-separator: Likewise.
28949         * modules/unictype/property-bidi-whitespace: Likewise.
28950         * modules/unictype/property-byname: Likewise.
28951         * modules/unictype/property-combining: Likewise.
28952         * modules/unictype/property-composite: Likewise.
28953         * modules/unictype/property-currency-symbol: Likewise.
28954         * modules/unictype/property-dash: Likewise.
28955         * modules/unictype/property-decimal-digit: Likewise.
28956         * modules/unictype/property-default-ignorable-code-point: Likewise.
28957         * modules/unictype/property-deprecated: Likewise.
28958         * modules/unictype/property-diacritic: Likewise.
28959         * modules/unictype/property-extender: Likewise.
28960         * modules/unictype/property-format-control: Likewise.
28961         * modules/unictype/property-grapheme-base: Likewise.
28962         * modules/unictype/property-grapheme-extend: Likewise.
28963         * modules/unictype/property-grapheme-link: Likewise.
28964         * modules/unictype/property-hex-digit: Likewise.
28965         * modules/unictype/property-hyphen: Likewise.
28966         * modules/unictype/property-id-continue: Likewise.
28967         * modules/unictype/property-id-start: Likewise.
28968         * modules/unictype/property-ideographic: Likewise.
28969         * modules/unictype/property-ids-binary-operator: Likewise.
28970         * modules/unictype/property-ids-trinary-operator: Likewise.
28971         * modules/unictype/property-ignorable-control: Likewise.
28972         * modules/unictype/property-iso-control: Likewise.
28973         * modules/unictype/property-join-control: Likewise.
28974         * modules/unictype/property-left-of-pair: Likewise.
28975         * modules/unictype/property-line-separator: Likewise.
28976         * modules/unictype/property-logical-order-exception: Likewise.
28977         * modules/unictype/property-lowercase: Likewise.
28978         * modules/unictype/property-math: Likewise.
28979         * modules/unictype/property-non-break: Likewise.
28980         * modules/unictype/property-not-a-character: Likewise.
28981         * modules/unictype/property-numeric: Likewise.
28982         * modules/unictype/property-other-alphabetic: Likewise.
28983         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28984         * modules/unictype/property-other-grapheme-extend: Likewise.
28985         * modules/unictype/property-other-id-continue: Likewise.
28986         * modules/unictype/property-other-id-start: Likewise.
28987         * modules/unictype/property-other-lowercase: Likewise.
28988         * modules/unictype/property-other-math: Likewise.
28989         * modules/unictype/property-other-uppercase: Likewise.
28990         * modules/unictype/property-paired-punctuation: Likewise.
28991         * modules/unictype/property-paragraph-separator: Likewise.
28992         * modules/unictype/property-pattern-syntax: Likewise.
28993         * modules/unictype/property-pattern-white-space: Likewise.
28994         * modules/unictype/property-private-use: Likewise.
28995         * modules/unictype/property-punctuation: Likewise.
28996         * modules/unictype/property-quotation-mark: Likewise.
28997         * modules/unictype/property-radical: Likewise.
28998         * modules/unictype/property-sentence-terminal: Likewise.
28999         * modules/unictype/property-soft-dotted: Likewise.
29000         * modules/unictype/property-space: Likewise.
29001         * modules/unictype/property-terminal-punctuation: Likewise.
29002         * modules/unictype/property-test: Likewise.
29003         * modules/unictype/property-titlecase: Likewise.
29004         * modules/unictype/property-unassigned-code-value: Likewise.
29005         * modules/unictype/property-unified-ideograph: Likewise.
29006         * modules/unictype/property-uppercase: Likewise.
29007         * modules/unictype/property-variation-selector: Likewise.
29008         * modules/unictype/property-white-space: Likewise.
29009         * modules/unictype/property-xid-continue: Likewise.
29010         * modules/unictype/property-xid-start: Likewise.
29011         * modules/unictype/property-zero-width: Likewise.
29012         * modules/unictype/scripts: Likewise.
29013         * modules/unictype/syntax-c-ident: Likewise.
29014         * modules/unictype/syntax-c-whitespace: Likewise.
29015         * modules/unictype/syntax-java-ident: Likewise.
29016         * modules/unictype/syntax-java-whitespace: Likewise.
29017         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29018         * modules/unilbrk/u8-width-linebreaks: Likewise.
29019         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29020         * modules/unilbrk/u16-width-linebreaks: Likewise.
29021         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29022         * modules/unilbrk/u32-width-linebreaks: Likewise.
29023         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29024         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29025         * modules/uniname/uniname: Likewise.
29026         * modules/uninorm/canonical-decomposition: Likewise.
29027         * modules/uninorm/composition: Likewise.
29028         * modules/uninorm/decomposing-form: Likewise.
29029         * modules/uninorm/decomposition: Likewise.
29030         * modules/uninorm/filter: Likewise.
29031         * modules/uninorm/nfc: Likewise.
29032         * modules/uninorm/nfd: Likewise.
29033         * modules/uninorm/nfkc: Likewise.
29034         * modules/uninorm/nfkd: Likewise.
29035         * modules/uninorm/u8-normalize: Likewise.
29036         * modules/uninorm/u8-normcmp: Likewise.
29037         * modules/uninorm/u8-normcoll: Likewise.
29038         * modules/uninorm/u8-normxfrm: Likewise.
29039         * modules/uninorm/u16-normalize: Likewise.
29040         * modules/uninorm/u16-normcmp: Likewise.
29041         * modules/uninorm/u16-normcoll: Likewise.
29042         * modules/uninorm/u16-normxfrm: Likewise.
29043         * modules/uninorm/u32-normalize: Likewise.
29044         * modules/uninorm/u32-normcmp: Likewise.
29045         * modules/uninorm/u32-normcoll: Likewise.
29046         * modules/uninorm/u32-normxfrm: Likewise.
29047         * modules/unistdio/u8-asnprintf: Likewise.
29048         * modules/unistdio/u8-asprintf: Likewise.
29049         * modules/unistdio/u8-snprintf: Likewise.
29050         * modules/unistdio/u8-sprintf: Likewise.
29051         * modules/unistdio/u8-u8-asnprintf: Likewise.
29052         * modules/unistdio/u8-u8-asprintf: Likewise.
29053         * modules/unistdio/u8-u8-snprintf: Likewise.
29054         * modules/unistdio/u8-u8-sprintf: Likewise.
29055         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29056         * modules/unistdio/u8-u8-vasprintf: Likewise.
29057         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29058         * modules/unistdio/u8-u8-vsprintf: Likewise.
29059         * modules/unistdio/u8-vasnprintf: Likewise.
29060         * modules/unistdio/u8-vasprintf: Likewise.
29061         * modules/unistdio/u8-vsnprintf: Likewise.
29062         * modules/unistdio/u8-vsprintf: Likewise.
29063         * modules/unistdio/u16-asnprintf: Likewise.
29064         * modules/unistdio/u16-asprintf: Likewise.
29065         * modules/unistdio/u16-snprintf: Likewise.
29066         * modules/unistdio/u16-sprintf: Likewise.
29067         * modules/unistdio/u16-u16-asnprintf: Likewise.
29068         * modules/unistdio/u16-u16-asprintf: Likewise.
29069         * modules/unistdio/u16-u16-snprintf: Likewise.
29070         * modules/unistdio/u16-u16-sprintf: Likewise.
29071         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29072         * modules/unistdio/u16-u16-vasprintf: Likewise.
29073         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29074         * modules/unistdio/u16-u16-vsprintf: Likewise.
29075         * modules/unistdio/u16-vasnprintf: Likewise.
29076         * modules/unistdio/u16-vasprintf: Likewise.
29077         * modules/unistdio/u16-vsnprintf: Likewise.
29078         * modules/unistdio/u16-vsprintf: Likewise.
29079         * modules/unistdio/u32-asnprintf: Likewise.
29080         * modules/unistdio/u32-asprintf: Likewise.
29081         * modules/unistdio/u32-snprintf: Likewise.
29082         * modules/unistdio/u32-sprintf: Likewise.
29083         * modules/unistdio/u32-u32-asnprintf: Likewise.
29084         * modules/unistdio/u32-u32-asprintf: Likewise.
29085         * modules/unistdio/u32-u32-snprintf: Likewise.
29086         * modules/unistdio/u32-u32-sprintf: Likewise.
29087         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29088         * modules/unistdio/u32-u32-vasprintf: Likewise.
29089         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29090         * modules/unistdio/u32-u32-vsprintf: Likewise.
29091         * modules/unistdio/u32-vasnprintf: Likewise.
29092         * modules/unistdio/u32-vasprintf: Likewise.
29093         * modules/unistdio/u32-vsnprintf: Likewise.
29094         * modules/unistdio/u32-vsprintf: Likewise.
29095         * modules/unistdio/ulc-asnprintf: Likewise.
29096         * modules/unistdio/ulc-asprintf: Likewise.
29097         * modules/unistdio/ulc-fprintf: Likewise.
29098         * modules/unistdio/ulc-snprintf: Likewise.
29099         * modules/unistdio/ulc-sprintf: Likewise.
29100         * modules/unistdio/ulc-vasnprintf: Likewise.
29101         * modules/unistdio/ulc-vasprintf: Likewise.
29102         * modules/unistdio/ulc-vfprintf: Likewise.
29103         * modules/unistdio/ulc-vsnprintf: Likewise.
29104         * modules/unistdio/ulc-vsprintf: Likewise.
29105         * modules/unistr/u8-check: Likewise.
29106         * modules/unistr/u8-chr: Likewise.
29107         * modules/unistr/u8-cmp: Likewise.
29108         * modules/unistr/u8-cmp2: Likewise.
29109         * modules/unistr/u8-cpy: Likewise.
29110         * modules/unistr/u8-cpy-alloc: Likewise.
29111         * modules/unistr/u8-endswith: Likewise.
29112         * modules/unistr/u8-mblen: Likewise.
29113         * modules/unistr/u8-mbsnlen: Likewise.
29114         * modules/unistr/u8-mbtouc: Likewise.
29115         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29116         * modules/unistr/u8-mbtoucr: Likewise.
29117         * modules/unistr/u8-move: Likewise.
29118         * modules/unistr/u8-next: Likewise.
29119         * modules/unistr/u8-prev: Likewise.
29120         * modules/unistr/u8-set: Likewise.
29121         * modules/unistr/u8-startswith: Likewise.
29122         * modules/unistr/u8-stpcpy: Likewise.
29123         * modules/unistr/u8-stpncpy: Likewise.
29124         * modules/unistr/u8-strcat: Likewise.
29125         * modules/unistr/u8-strchr: Likewise.
29126         * modules/unistr/u8-strcmp: Likewise.
29127         * modules/unistr/u8-strcoll: Likewise.
29128         * modules/unistr/u8-strcpy: Likewise.
29129         * modules/unistr/u8-strcspn: Likewise.
29130         * modules/unistr/u8-strdup: Likewise.
29131         * modules/unistr/u8-strlen: Likewise.
29132         * modules/unistr/u8-strmblen: Likewise.
29133         * modules/unistr/u8-strmbtouc: Likewise.
29134         * modules/unistr/u8-strncat: Likewise.
29135         * modules/unistr/u8-strncmp: Likewise.
29136         * modules/unistr/u8-strncpy: Likewise.
29137         * modules/unistr/u8-strnlen: Likewise.
29138         * modules/unistr/u8-strpbrk: Likewise.
29139         * modules/unistr/u8-strrchr: Likewise.
29140         * modules/unistr/u8-strspn: Likewise.
29141         * modules/unistr/u8-strstr: Likewise.
29142         * modules/unistr/u8-strtok: Likewise.
29143         * modules/unistr/u8-to-u16: Likewise.
29144         * modules/unistr/u8-to-u32: Likewise.
29145         * modules/unistr/u8-uctomb: Likewise.
29146         * modules/unistr/u16-check: Likewise.
29147         * modules/unistr/u16-chr: Likewise.
29148         * modules/unistr/u16-cmp: Likewise.
29149         * modules/unistr/u16-cmp2: Likewise.
29150         * modules/unistr/u16-cpy: Likewise.
29151         * modules/unistr/u16-cpy-alloc: Likewise.
29152         * modules/unistr/u16-endswith: Likewise.
29153         * modules/unistr/u16-mblen: Likewise.
29154         * modules/unistr/u16-mbsnlen: Likewise.
29155         * modules/unistr/u16-mbtouc: Likewise.
29156         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29157         * modules/unistr/u16-mbtoucr: Likewise.
29158         * modules/unistr/u16-move: Likewise.
29159         * modules/unistr/u16-next: Likewise.
29160         * modules/unistr/u16-prev: Likewise.
29161         * modules/unistr/u16-set: Likewise.
29162         * modules/unistr/u16-startswith: Likewise.
29163         * modules/unistr/u16-stpcpy: Likewise.
29164         * modules/unistr/u16-stpncpy: Likewise.
29165         * modules/unistr/u16-strcat: Likewise.
29166         * modules/unistr/u16-strchr: Likewise.
29167         * modules/unistr/u16-strcmp: Likewise.
29168         * modules/unistr/u16-strcoll: Likewise.
29169         * modules/unistr/u16-strcpy: Likewise.
29170         * modules/unistr/u16-strcspn: Likewise.
29171         * modules/unistr/u16-strdup: Likewise.
29172         * modules/unistr/u16-strlen: Likewise.
29173         * modules/unistr/u16-strmblen: Likewise.
29174         * modules/unistr/u16-strmbtouc: Likewise.
29175         * modules/unistr/u16-strncat: Likewise.
29176         * modules/unistr/u16-strncmp: Likewise.
29177         * modules/unistr/u16-strncpy: Likewise.
29178         * modules/unistr/u16-strnlen: Likewise.
29179         * modules/unistr/u16-strpbrk: Likewise.
29180         * modules/unistr/u16-strrchr: Likewise.
29181         * modules/unistr/u16-strspn: Likewise.
29182         * modules/unistr/u16-strstr: Likewise.
29183         * modules/unistr/u16-strtok: Likewise.
29184         * modules/unistr/u16-to-u32: Likewise.
29185         * modules/unistr/u16-to-u8: Likewise.
29186         * modules/unistr/u16-uctomb: Likewise.
29187         * modules/unistr/u32-check: Likewise.
29188         * modules/unistr/u32-chr: Likewise.
29189         * modules/unistr/u32-cmp: Likewise.
29190         * modules/unistr/u32-cmp2: Likewise.
29191         * modules/unistr/u32-cpy: Likewise.
29192         * modules/unistr/u32-cpy-alloc: Likewise.
29193         * modules/unistr/u32-endswith: Likewise.
29194         * modules/unistr/u32-mblen: Likewise.
29195         * modules/unistr/u32-mbsnlen: Likewise.
29196         * modules/unistr/u32-mbtouc: Likewise.
29197         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29198         * modules/unistr/u32-mbtoucr: Likewise.
29199         * modules/unistr/u32-move: Likewise.
29200         * modules/unistr/u32-next: Likewise.
29201         * modules/unistr/u32-prev: Likewise.
29202         * modules/unistr/u32-set: Likewise.
29203         * modules/unistr/u32-startswith: Likewise.
29204         * modules/unistr/u32-stpcpy: Likewise.
29205         * modules/unistr/u32-stpncpy: Likewise.
29206         * modules/unistr/u32-strcat: Likewise.
29207         * modules/unistr/u32-strchr: Likewise.
29208         * modules/unistr/u32-strcmp: Likewise.
29209         * modules/unistr/u32-strcoll: Likewise.
29210         * modules/unistr/u32-strcpy: Likewise.
29211         * modules/unistr/u32-strcspn: Likewise.
29212         * modules/unistr/u32-strdup: Likewise.
29213         * modules/unistr/u32-strlen: Likewise.
29214         * modules/unistr/u32-strmblen: Likewise.
29215         * modules/unistr/u32-strmbtouc: Likewise.
29216         * modules/unistr/u32-strncat: Likewise.
29217         * modules/unistr/u32-strncmp: Likewise.
29218         * modules/unistr/u32-strncpy: Likewise.
29219         * modules/unistr/u32-strnlen: Likewise.
29220         * modules/unistr/u32-strpbrk: Likewise.
29221         * modules/unistr/u32-strrchr: Likewise.
29222         * modules/unistr/u32-strspn: Likewise.
29223         * modules/unistr/u32-strstr: Likewise.
29224         * modules/unistr/u32-strtok: Likewise.
29225         * modules/unistr/u32-to-u16: Likewise.
29226         * modules/unistr/u32-to-u8: Likewise.
29227         * modules/unistr/u32-uctomb: Likewise.
29228         * modules/uniwbrk/u8-wordbreaks: Likewise.
29229         * modules/uniwbrk/u16-wordbreaks: Likewise.
29230         * modules/uniwbrk/u32-wordbreaks: Likewise.
29231         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29232         * modules/uniwbrk/wordbreak-property: Likewise.
29233         * modules/uniwidth/u8-strwidth: Likewise.
29234         * modules/uniwidth/u8-width: Likewise.
29235         * modules/uniwidth/u16-strwidth: Likewise.
29236         * modules/uniwidth/u16-width: Likewise.
29237         * modules/uniwidth/u32-strwidth: Likewise.
29238         * modules/uniwidth/u32-width: Likewise.
29239         * modules/uniwidth/width: Likewise.
29240         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29241         with $(LIBUNISTRING).
29242         * modules/unicase/ignorable-tests: Likewise.
29243         * modules/unicase/locale-language-tests: Likewise.
29244         * modules/unicase/tolower-tests: Likewise.
29245         * modules/unicase/totitle-tests: Likewise.
29246         * modules/unicase/toupper-tests: Likewise.
29247         * modules/unicase/u8-casecmp-tests: Likewise.
29248         * modules/unicase/u8-casecoll-tests: Likewise.
29249         * modules/unicase/u8-casefold-tests: Likewise.
29250         * modules/unicase/u8-is-cased-tests: Likewise.
29251         * modules/unicase/u8-is-casefolded-tests: Likewise.
29252         * modules/unicase/u8-is-lowercase-tests: Likewise.
29253         * modules/unicase/u8-is-titlecase-tests: Likewise.
29254         * modules/unicase/u8-is-uppercase-tests: Likewise.
29255         * modules/unicase/u8-tolower-tests: Likewise.
29256         * modules/unicase/u8-totitle-tests: Likewise.
29257         * modules/unicase/u8-toupper-tests: Likewise.
29258         * modules/unicase/u16-casecmp-tests: Likewise.
29259         * modules/unicase/u16-casecoll-tests: Likewise.
29260         * modules/unicase/u16-casefold-tests: Likewise.
29261         * modules/unicase/u16-is-cased-tests: Likewise.
29262         * modules/unicase/u16-is-casefolded-tests: Likewise.
29263         * modules/unicase/u16-is-lowercase-tests: Likewise.
29264         * modules/unicase/u16-is-titlecase-tests: Likewise.
29265         * modules/unicase/u16-is-uppercase-tests: Likewise.
29266         * modules/unicase/u16-tolower-tests: Likewise.
29267         * modules/unicase/u16-totitle-tests: Likewise.
29268         * modules/unicase/u16-toupper-tests: Likewise.
29269         * modules/unicase/u32-casecmp-tests: Likewise.
29270         * modules/unicase/u32-casecoll-tests: Likewise.
29271         * modules/unicase/u32-casefold-tests: Likewise.
29272         * modules/unicase/u32-is-cased-tests: Likewise.
29273         * modules/unicase/u32-is-casefolded-tests: Likewise.
29274         * modules/unicase/u32-is-lowercase-tests: Likewise.
29275         * modules/unicase/u32-is-titlecase-tests: Likewise.
29276         * modules/unicase/u32-is-uppercase-tests: Likewise.
29277         * modules/unicase/u32-tolower-tests: Likewise.
29278         * modules/unicase/u32-totitle-tests: Likewise.
29279         * modules/unicase/u32-toupper-tests: Likewise.
29280         * modules/unicase/ulc-casecmp-tests: Likewise.
29281         * modules/unicase/ulc-casecoll-tests: Likewise.
29282         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29283         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29284         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29285         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29286         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29287         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29288         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29289         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29290         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29291         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29292         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29293         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29294         * modules/unictype/bidicategory-byname-tests: Likewise.
29295         * modules/unictype/bidicategory-name-tests: Likewise.
29296         * modules/unictype/bidicategory-of-tests: Likewise.
29297         * modules/unictype/bidicategory-test-tests: Likewise.
29298         * modules/unictype/block-list-tests: Likewise.
29299         * modules/unictype/block-of-tests: Likewise.
29300         * modules/unictype/block-test-tests: Likewise.
29301         * modules/unictype/category-C-tests: Likewise.
29302         * modules/unictype/category-Cc-tests: Likewise.
29303         * modules/unictype/category-Cf-tests: Likewise.
29304         * modules/unictype/category-Cn-tests: Likewise.
29305         * modules/unictype/category-Co-tests: Likewise.
29306         * modules/unictype/category-Cs-tests: Likewise.
29307         * modules/unictype/category-L-tests: Likewise.
29308         * modules/unictype/category-Ll-tests: Likewise.
29309         * modules/unictype/category-Lm-tests: Likewise.
29310         * modules/unictype/category-Lo-tests: Likewise.
29311         * modules/unictype/category-Lt-tests: Likewise.
29312         * modules/unictype/category-Lu-tests: Likewise.
29313         * modules/unictype/category-M-tests: Likewise.
29314         * modules/unictype/category-Mc-tests: Likewise.
29315         * modules/unictype/category-Me-tests: Likewise.
29316         * modules/unictype/category-Mn-tests: Likewise.
29317         * modules/unictype/category-N-tests: Likewise.
29318         * modules/unictype/category-Nd-tests: Likewise.
29319         * modules/unictype/category-Nl-tests: Likewise.
29320         * modules/unictype/category-No-tests: Likewise.
29321         * modules/unictype/category-P-tests: Likewise.
29322         * modules/unictype/category-Pc-tests: Likewise.
29323         * modules/unictype/category-Pd-tests: Likewise.
29324         * modules/unictype/category-Pe-tests: Likewise.
29325         * modules/unictype/category-Pf-tests: Likewise.
29326         * modules/unictype/category-Pi-tests: Likewise.
29327         * modules/unictype/category-Po-tests: Likewise.
29328         * modules/unictype/category-Ps-tests: Likewise.
29329         * modules/unictype/category-S-tests: Likewise.
29330         * modules/unictype/category-Sc-tests: Likewise.
29331         * modules/unictype/category-Sk-tests: Likewise.
29332         * modules/unictype/category-Sm-tests: Likewise.
29333         * modules/unictype/category-So-tests: Likewise.
29334         * modules/unictype/category-Z-tests: Likewise.
29335         * modules/unictype/category-Zl-tests: Likewise.
29336         * modules/unictype/category-Zp-tests: Likewise.
29337         * modules/unictype/category-Zs-tests: Likewise.
29338         * modules/unictype/category-and-not-tests: Likewise.
29339         * modules/unictype/category-and-tests: Likewise.
29340         * modules/unictype/category-byname-tests: Likewise.
29341         * modules/unictype/category-name-tests: Likewise.
29342         * modules/unictype/category-none-tests: Likewise.
29343         * modules/unictype/category-of-tests: Likewise.
29344         * modules/unictype/category-or-tests: Likewise.
29345         * modules/unictype/category-test-withtable-tests: Likewise.
29346         * modules/unictype/combining-class-tests: Likewise.
29347         * modules/unictype/ctype-alnum-tests: Likewise.
29348         * modules/unictype/ctype-alpha-tests: Likewise.
29349         * modules/unictype/ctype-blank-tests: Likewise.
29350         * modules/unictype/ctype-cntrl-tests: Likewise.
29351         * modules/unictype/ctype-digit-tests: Likewise.
29352         * modules/unictype/ctype-graph-tests: Likewise.
29353         * modules/unictype/ctype-lower-tests: Likewise.
29354         * modules/unictype/ctype-print-tests: Likewise.
29355         * modules/unictype/ctype-punct-tests: Likewise.
29356         * modules/unictype/ctype-space-tests: Likewise.
29357         * modules/unictype/ctype-upper-tests: Likewise.
29358         * modules/unictype/ctype-xdigit-tests: Likewise.
29359         * modules/unictype/decimal-digit-tests: Likewise.
29360         * modules/unictype/digit-tests: Likewise.
29361         * modules/unictype/mirror-tests: Likewise.
29362         * modules/unictype/numeric-tests: Likewise.
29363         * modules/unictype/property-alphabetic-tests: Likewise.
29364         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29365         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29366         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29367         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29368         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29369         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29370         * modules/unictype/property-bidi-control-tests: Likewise.
29371         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29372         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29373         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29374         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29375         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29376         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29377         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29378         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29379         * modules/unictype/property-bidi-pdf-tests: Likewise.
29380         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29381         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29382         * modules/unictype/property-byname-tests: Likewise.
29383         * modules/unictype/property-combining-tests: Likewise.
29384         * modules/unictype/property-composite-tests: Likewise.
29385         * modules/unictype/property-currency-symbol-tests: Likewise.
29386         * modules/unictype/property-dash-tests: Likewise.
29387         * modules/unictype/property-decimal-digit-tests: Likewise.
29388         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29389         * modules/unictype/property-deprecated-tests: Likewise.
29390         * modules/unictype/property-diacritic-tests: Likewise.
29391         * modules/unictype/property-extender-tests: Likewise.
29392         * modules/unictype/property-format-control-tests: Likewise.
29393         * modules/unictype/property-grapheme-base-tests: Likewise.
29394         * modules/unictype/property-grapheme-extend-tests: Likewise.
29395         * modules/unictype/property-grapheme-link-tests: Likewise.
29396         * modules/unictype/property-hex-digit-tests: Likewise.
29397         * modules/unictype/property-hyphen-tests: Likewise.
29398         * modules/unictype/property-id-continue-tests: Likewise.
29399         * modules/unictype/property-id-start-tests: Likewise.
29400         * modules/unictype/property-ideographic-tests: Likewise.
29401         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29402         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29403         * modules/unictype/property-ignorable-control-tests: Likewise.
29404         * modules/unictype/property-iso-control-tests: Likewise.
29405         * modules/unictype/property-join-control-tests: Likewise.
29406         * modules/unictype/property-left-of-pair-tests: Likewise.
29407         * modules/unictype/property-line-separator-tests: Likewise.
29408         * modules/unictype/property-logical-order-exception-tests: Likewise.
29409         * modules/unictype/property-lowercase-tests: Likewise.
29410         * modules/unictype/property-math-tests: Likewise.
29411         * modules/unictype/property-non-break-tests: Likewise.
29412         * modules/unictype/property-not-a-character-tests: Likewise.
29413         * modules/unictype/property-numeric-tests: Likewise.
29414         * modules/unictype/property-other-alphabetic-tests: Likewise.
29415         * modules/unictype/property-other-default-ignorable-code-point-tests:
29416         Likewise.
29417         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29418         * modules/unictype/property-other-id-continue-tests: Likewise.
29419         * modules/unictype/property-other-id-start-tests: Likewise.
29420         * modules/unictype/property-other-lowercase-tests: Likewise.
29421         * modules/unictype/property-other-math-tests: Likewise.
29422         * modules/unictype/property-other-uppercase-tests: Likewise.
29423         * modules/unictype/property-paired-punctuation-tests: Likewise.
29424         * modules/unictype/property-paragraph-separator-tests: Likewise.
29425         * modules/unictype/property-pattern-syntax-tests: Likewise.
29426         * modules/unictype/property-pattern-white-space-tests: Likewise.
29427         * modules/unictype/property-private-use-tests: Likewise.
29428         * modules/unictype/property-punctuation-tests: Likewise.
29429         * modules/unictype/property-quotation-mark-tests: Likewise.
29430         * modules/unictype/property-radical-tests: Likewise.
29431         * modules/unictype/property-sentence-terminal-tests: Likewise.
29432         * modules/unictype/property-soft-dotted-tests: Likewise.
29433         * modules/unictype/property-space-tests: Likewise.
29434         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29435         * modules/unictype/property-test-tests: Likewise.
29436         * modules/unictype/property-titlecase-tests: Likewise.
29437         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29438         * modules/unictype/property-unified-ideograph-tests: Likewise.
29439         * modules/unictype/property-uppercase-tests: Likewise.
29440         * modules/unictype/property-variation-selector-tests: Likewise.
29441         * modules/unictype/property-white-space-tests: Likewise.
29442         * modules/unictype/property-xid-continue-tests: Likewise.
29443         * modules/unictype/property-xid-start-tests: Likewise.
29444         * modules/unictype/property-zero-width-tests: Likewise.
29445         * modules/unictype/scripts-tests: Likewise.
29446         * modules/unictype/syntax-c-ident-tests: Likewise.
29447         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29448         * modules/unictype/syntax-java-ident-tests: Likewise.
29449         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29450         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29451         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29452         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29453         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29454         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29455         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29456         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29457         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29458         * modules/uniname/uniname-tests: Likewise.
29459         * modules/uninorm/canonical-decomposition-tests: Likewise.
29460         * modules/uninorm/compat-decomposition-tests: Likewise.
29461         * modules/uninorm/composition-tests: Likewise.
29462         * modules/uninorm/decomposing-form-tests: Likewise.
29463         * modules/uninorm/decomposition-tests: Likewise.
29464         * modules/uninorm/filter-tests: Likewise.
29465         * modules/uninorm/nfc-tests: Likewise.
29466         * modules/uninorm/nfd-tests: Likewise.
29467         * modules/uninorm/nfkc-tests: Likewise.
29468         * modules/uninorm/nfkd-tests: Likewise.
29469         * modules/uninorm/u8-normcmp-tests: Likewise.
29470         * modules/uninorm/u8-normcoll-tests: Likewise.
29471         * modules/uninorm/u16-normcmp-tests: Likewise.
29472         * modules/uninorm/u16-normcoll-tests: Likewise.
29473         * modules/uninorm/u32-normcmp-tests: Likewise.
29474         * modules/uninorm/u32-normcoll-tests: Likewise.
29475         * modules/unistdio/u8-asnprintf-tests: Likewise.
29476         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29477         * modules/unistdio/u8-vasprintf-tests: Likewise.
29478         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29479         * modules/unistdio/u8-vsprintf-tests: Likewise.
29480         * modules/unistdio/u16-asnprintf-tests: Likewise.
29481         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29482         * modules/unistdio/u16-vasprintf-tests: Likewise.
29483         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29484         * modules/unistdio/u16-vsprintf-tests: Likewise.
29485         * modules/unistdio/u32-asnprintf-tests: Likewise.
29486         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29487         * modules/unistdio/u32-vasprintf-tests: Likewise.
29488         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29489         * modules/unistdio/u32-vsprintf-tests: Likewise.
29490         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29491         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29492         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29493         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29494         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29495         * modules/unistr/u8-check-tests: Likewise.
29496         * modules/unistr/u8-chr-tests: Likewise.
29497         * modules/unistr/u8-cmp-tests: Likewise.
29498         * modules/unistr/u8-cmp2-tests: Likewise.
29499         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29500         * modules/unistr/u8-cpy-tests: Likewise.
29501         * modules/unistr/u8-mblen-tests: Likewise.
29502         * modules/unistr/u8-mbsnlen-tests: Likewise.
29503         * modules/unistr/u8-mbtouc-tests: Likewise.
29504         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29505         * modules/unistr/u8-mbtoucr-tests: Likewise.
29506         * modules/unistr/u8-move-tests: Likewise.
29507         * modules/unistr/u8-next-tests: Likewise.
29508         * modules/unistr/u8-prev-tests: Likewise.
29509         * modules/unistr/u8-set-tests: Likewise.
29510         * modules/unistr/u8-stpcpy-tests: Likewise.
29511         * modules/unistr/u8-stpncpy-tests: Likewise.
29512         * modules/unistr/u8-strcat-tests: Likewise.
29513         * modules/unistr/u8-strcmp-tests: Likewise.
29514         * modules/unistr/u8-strcoll-tests: Likewise.
29515         * modules/unistr/u8-strcpy-tests: Likewise.
29516         * modules/unistr/u8-strdup-tests: Likewise.
29517         * modules/unistr/u8-strlen-tests: Likewise.
29518         * modules/unistr/u8-strmblen-tests: Likewise.
29519         * modules/unistr/u8-strmbtouc-tests: Likewise.
29520         * modules/unistr/u8-strncat-tests: Likewise.
29521         * modules/unistr/u8-strncmp-tests: Likewise.
29522         * modules/unistr/u8-strncpy-tests: Likewise.
29523         * modules/unistr/u8-strnlen-tests: Likewise.
29524         * modules/unistr/u8-to-u16-tests: Likewise.
29525         * modules/unistr/u8-to-u32-tests: Likewise.
29526         * modules/unistr/u8-uctomb-tests: Likewise.
29527         * modules/unistr/u16-check-tests: Likewise.
29528         * modules/unistr/u16-chr-tests: Likewise.
29529         * modules/unistr/u16-cmp-tests: Likewise.
29530         * modules/unistr/u16-cmp2-tests: Likewise.
29531         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29532         * modules/unistr/u16-cpy-tests: Likewise.
29533         * modules/unistr/u16-mblen-tests: Likewise.
29534         * modules/unistr/u16-mbsnlen-tests: Likewise.
29535         * modules/unistr/u16-mbtouc-tests: Likewise.
29536         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29537         * modules/unistr/u16-mbtoucr-tests: Likewise.
29538         * modules/unistr/u16-move-tests: Likewise.
29539         * modules/unistr/u16-next-tests: Likewise.
29540         * modules/unistr/u16-prev-tests: Likewise.
29541         * modules/unistr/u16-set-tests: Likewise.
29542         * modules/unistr/u16-stpcpy-tests: Likewise.
29543         * modules/unistr/u16-stpncpy-tests: Likewise.
29544         * modules/unistr/u16-strcat-tests: Likewise.
29545         * modules/unistr/u16-strcmp-tests: Likewise.
29546         * modules/unistr/u16-strcoll-tests: Likewise.
29547         * modules/unistr/u16-strcpy-tests: Likewise.
29548         * modules/unistr/u16-strdup-tests: Likewise.
29549         * modules/unistr/u16-strlen-tests: Likewise.
29550         * modules/unistr/u16-strmblen-tests: Likewise.
29551         * modules/unistr/u16-strmbtouc-tests: Likewise.
29552         * modules/unistr/u16-strncat-tests: Likewise.
29553         * modules/unistr/u16-strncmp-tests: Likewise.
29554         * modules/unistr/u16-strncpy-tests: Likewise.
29555         * modules/unistr/u16-strnlen-tests: Likewise.
29556         * modules/unistr/u16-to-u32-tests: Likewise.
29557         * modules/unistr/u16-to-u8-tests: Likewise.
29558         * modules/unistr/u16-uctomb-tests: Likewise.
29559         * modules/unistr/u32-check-tests: Likewise.
29560         * modules/unistr/u32-chr-tests: Likewise.
29561         * modules/unistr/u32-cmp-tests: Likewise.
29562         * modules/unistr/u32-cmp2-tests: Likewise.
29563         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29564         * modules/unistr/u32-cpy-tests: Likewise.
29565         * modules/unistr/u32-mblen-tests: Likewise.
29566         * modules/unistr/u32-mbsnlen-tests: Likewise.
29567         * modules/unistr/u32-mbtouc-tests: Likewise.
29568         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29569         * modules/unistr/u32-mbtoucr-tests: Likewise.
29570         * modules/unistr/u32-move-tests: Likewise.
29571         * modules/unistr/u32-next-tests: Likewise.
29572         * modules/unistr/u32-prev-tests: Likewise.
29573         * modules/unistr/u32-set-tests: Likewise.
29574         * modules/unistr/u32-stpcpy-tests: Likewise.
29575         * modules/unistr/u32-stpncpy-tests: Likewise.
29576         * modules/unistr/u32-strcat-tests: Likewise.
29577         * modules/unistr/u32-strcmp-tests: Likewise.
29578         * modules/unistr/u32-strcoll-tests: Likewise.
29579         * modules/unistr/u32-strcpy-tests: Likewise.
29580         * modules/unistr/u32-strdup-tests: Likewise.
29581         * modules/unistr/u32-strlen-tests: Likewise.
29582         * modules/unistr/u32-strmblen-tests: Likewise.
29583         * modules/unistr/u32-strmbtouc-tests: Likewise.
29584         * modules/unistr/u32-strncat-tests: Likewise.
29585         * modules/unistr/u32-strncmp-tests: Likewise.
29586         * modules/unistr/u32-strncpy-tests: Likewise.
29587         * modules/unistr/u32-strnlen-tests: Likewise.
29588         * modules/unistr/u32-to-u16-tests: Likewise.
29589         * modules/unistr/u32-to-u8-tests: Likewise.
29590         * modules/unistr/u32-uctomb-tests: Likewise.
29591         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29592         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29593         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29594         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29595         * modules/uniwidth/u8-strwidth-tests: Likewise.
29596         * modules/uniwidth/u8-width-tests: Likewise.
29597         * modules/uniwidth/u16-strwidth-tests: Likewise.
29598         * modules/uniwidth/u16-width-tests: Likewise.
29599         * modules/uniwidth/u32-strwidth-tests: Likewise.
29600         * modules/uniwidth/u32-width-tests: Likewise.
29601         * modules/uniwidth/width-tests: Likewise.
29602
29603 2010-05-18  Richard Jones  <rjones@redhat.com>
29604
29605         doc: users.txt: list hivex
29606         * users.txt: Add hivex.
29607
29608 2010-05-18  Richard Jones  <rjones@redhat.com>
29609
29610         doc: users.txt: list febootstrap
29611         * users.txt: Add febootstrap.
29612
29613 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29614
29615         bootstrap: fix an error when gnulib is not used as a git submodule
29616         * build-aux/bootstrap (gnulib_path): If its length is zero then
29617         assign "gnulib" to it.
29618         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29619
29620 2010-05-16  Bruno Haible  <bruno@clisp.org>
29621
29622         Avoid autoconf warnings about AM_ICONV.
29623         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29624         2.64.
29625
29626 2010-05-16  Bruno Haible  <bruno@clisp.org>
29627
29628         absolute-header: Make the macro usable in more situations.
29629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29630         from gl_ABSOLUTE_HEADER.
29631         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29632
29633 2010-05-16  James Youngman  <jay@gnu.org>
29634
29635         doc: update users.txt
29636         * users.txt: Add CSSC.
29637
29638 2010-05-16  Jim Meyering  <meyering@redhat.com>
29639
29640         init.sh: fix an error in the previous change; add more comments
29641         * tests/init.sh: Compare exit code in loop against 9, not 2.
29642         Patch by Bruno Haible.
29643         Make the two tests more similar by adding an empty "then" clause.
29644         Add comments.
29645
29646         init.sh: avoid unnecessary shell re-exec
29647         * tests/init.sh: Improve the re-exec-required check to first test the
29648         current shell.  If it passes the test, do not search for a shell that
29649         does pass, and do not re-exec.  This test is particularly contorted to
29650         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29651         of $(...) evokes a syntax error and causes immediate shell exit with
29652         status 2.  Bruno Haible reported that the re-exec made it impossible
29653         to single-step through any init.sh-using script.
29654
29655 2010-05-16  Bruno Haible  <bruno@clisp.org>
29656
29657         Fix collision between gnulib's and libintl's printf replacements.
29658         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29659         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29660         (printf): When using GNU C, map the __printf__ function to rpl_printf
29661         via __asm__. When not using GNU C, define rpl_printf instead of
29662         __printf__.
29663         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29664         commit.
29665         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29666         commit.
29667         * m4/asm-underscore.m4: New file.
29668         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29669         * modules/stdio (Files): Add m4/asm-underscore.m4.
29670         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29671         Reported by Ben Pfaff.
29672
29673 2010-05-16  Bruno Haible  <bruno@clisp.org>
29674
29675         verify: Avoid skipping the test on openSUSE 11.0.
29676         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29677
29678 2010-05-13  Bruno Haible  <bruno@clisp.org>
29679
29680         Avoid useless warnings from G++.
29681         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29682         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29683         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29684
29685 2010-05-11  Jim Meyering  <meyering@redhat.com>
29686
29687         maint.mk: tweak preceding change
29688         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29689         regexps tighter by anchoring at EOL, and make the new group "shy"
29690         for slightly decreased overhead.
29691
29692 2010-05-11  Eric Blake  <eblake@redhat.com>
29693
29694         maint.mk: gnulib doesn't guarantee NSIG
29695         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29696
29697 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29698
29699         test-pwrite.c: Remove unused variable declaration.
29700         * tests/test-pwrite.c (main): Remove read_buf declaration.
29701
29702         Remove useless test-pwrite.sh file.
29703         * tests/test-pwrite.sh: Delete file.
29704         * modules/pwrite-tests: Remove references.
29705         Reported by Bruno Haible.
29706
29707 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29708
29709         init.sh: fix a typo
29710         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29711
29712 2010-05-10  Jim Meyering  <meyering@redhat.com>
29713
29714         maint.mk: avoid using a temporary file in the always-defined-macros check
29715         * top/maint.mk (.re-defmac): Remove rule.
29716         (gl_trap_): Remove definition.
29717         (sc_prohibit_always-defined_macros): Rewrite not to create and
29718         depend on a temporary file.  Instead, depend on GNU grep's ability
29719         to read a list of regular expressions from stdin when given "-f -".
29720
29721 2010-05-09  Bruno Haible  <bruno@clisp.org>
29722
29723         Update to GNU gettext 0.18, part 1.
29724         * m4/gettext.m4: Update to GNU gettext 0.18.
29725         * m4/intl.m4: Likewise.
29726         * m4/po.m4: Likewise.
29727         * modules/gettext (Files): Add m4/fcntl-o.m4.
29728         (configure.ac): Require gettext infrastructure from version 0.18.
29729
29730 2010-05-09  Jim Meyering  <meyering@redhat.com>
29731
29732         init.sh: enable MALLOC_PERTURB_
29733         * tests/init.sh: Enable glibc's malloc-perturbing option.
29734
29735         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29736         With my recent change in init.sh from the two-line form:
29737             -#   : ${srcdir=.}
29738             -#   . "$srcdir/init.sh"; path_prepend_ .
29739             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29740         I noticed that using the one-line form would cause this test
29741         to fail with a false-positive, or to stop working altogether,
29742         depending on whether help-version changed or all the tests did.
29743         * top/maint.mk (_hv_regex): Remove this definition.
29744         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29745         (_hv_regex_strong): Use a stronger regex to check for conformance.
29746         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29747         Give a separate diagnostic for lack of conforming use.
29748
29749         maint.mk: prohibit definition of symbols defined by gnulib
29750         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29751         definition of symbols defined by gnulib.
29752
29753 2010-05-09  Bruno Haible  <bruno@clisp.org>
29754
29755         acl: Avoid test failure on Cygwin-hosted mingw.
29756         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29757
29758 2010-05-09  Bruno Haible  <bruno@clisp.org>
29759
29760         error: Use system's fcntl function.
29761         * lib/error.c (fcntl): Undefine.
29762
29763 2010-05-09  Jim Meyering  <meyering@redhat.com>
29764
29765         verify: adjust formatting to be more consistent
29766         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29767         argument-list '('s, and after one comma.
29768
29769 2010-05-09  Bruno Haible  <bruno@clisp.org>
29770
29771         error: More reliable output on mingw.
29772         * lib/error.c: Include <windows.h>.
29773         (is_open): New function.
29774         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29775         defined.
29776
29777 2010-05-09  Bruno Haible  <bruno@clisp.org>
29778
29779         vasnprintf: Fix syntax errors in libintl build on mingw.
29780         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29781         pad_ourselves and prec_ourselves after use.
29782
29783 2010-05-08  Bruno Haible  <bruno@clisp.org>
29784
29785         * lib/config.charset: Update comments for Cygwin 1.7.
29786         * lib/localcharset.c: Likewise.
29787
29788 2010-05-07  Jim Meyering  <meyering@redhat.com>
29789
29790         init.sh: improve comments
29791         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29792         . "${srcdir=.}/init.sh"; path_prepend_ .
29793         Add a note about path_prepend_ and the alternative of using
29794         TESTS_ENVIRONMENT.
29795
29796 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29797
29798         exclude: Unescape hashed patterns in wildcard mode.
29799         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29800         to the hash list.
29801         * tests/test-exclude8.sh: New test case.
29802         * modules/exclude-tests: Add new test.
29803
29804 2010-05-05  Eric Blake  <eblake@redhat.com>
29805
29806         verify: automate tests
29807         * modules/verify-tests: New module.
29808         * tests/test-verify.sh: New file.
29809         * tests/test-verify.c: Guard each negative test with a unique id.
29810         Also avoid warning about unused left hand of comma expressions.
29811
29812 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29813
29814         Further improvements to verify.h, suggested by Eric Blake.
29815         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29816         the GL_* versions, to avoid collision with OpenGL.
29817         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29818         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29819         than testing merely whether it's defined.
29820
29821         Modify verify.h to pacify gcc -Wredundant_decls.
29822         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29823         These use the prefix "GL_" since they're likely to be useful elsewhere.
29824         We may need to break them out into a different .h file.
29825         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29826         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29827         of verify_function__.
29828
29829 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29830
29831         Tests for module pwrite.
29832         * modules/pwrite-tests: New file.
29833         * tests/test-pwrite.sh: New file.
29834         * tests/test-pwrite.c: New file.
29835
29836         New module pwrite.
29837         * lib/unistd.in.h (pwrite): New declaration.
29838         * lib/pwrite.c: New file, from glibc with modifications.
29839         * m4/pwrite.m4: New file.
29840         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29841         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29842         REPLACE_PWRITE.
29843         * modules/pwrite: New file.
29844         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29845         REPLACE_PWRITE.
29846         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29847         * doc/posix-functions/pwrite.texi: Mention the new module.
29848
29849 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29850
29851         pread: Update documentation.
29852         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29853
29854 2010-05-04  Eric Blake  <eblake@redhat.com>
29855
29856         docs: update cygwin progress
29857         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29858         this bug.
29859         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29860         Added in cygwin 1.7.2.
29861         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29862         Likewise.
29863         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29864         Likewise.
29865         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29866         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29867         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29868         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29869         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29870         Mention nproc module.
29871         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29872         bug in cygwin 1.7.5 addition.
29873         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29874         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29875         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29876         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29877         1.7.5.
29878         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29879         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29880         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29881         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29882         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29883         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29884         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29885         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29886         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29887         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29888         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29889         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29890         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29891         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29892         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29893         Likewise.
29894         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29895         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29896         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29897         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29898         Likewise.
29899         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29900         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29901         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29902         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29903         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29904         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29905         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29906         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29907         Likewise.
29908         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29909         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29910         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29911         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29912         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29913         Likewise.
29914         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29915         Likewise.
29916         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29917         Likewise.
29918         * doc/glibc-functions/xdrrec_endofrecord.texi
29919         (xdrrec_endofrecord): Likewise.
29920         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29921         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29922         Likewise.
29923         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29924         Likewise.
29925
29926 2010-05-04  Jim Meyering  <meyering@redhat.com>
29927
29928         gendocs.sh: make its "-s FILE" option more useful
29929         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29930         $PACKAGE to reflect the probably-different basename of "FILE".
29931
29932 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29933
29934         bootstrap: don't ignore download_po_files failure
29935         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29936         failure.
29937
29938 2010-05-03  Jim Meyering  <meyering@redhat.com>
29939
29940         maint.mk: allow to pass options to gendocs.sh
29941         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29942         (gendocs_options_): New overridable variable.
29943
29944         gnu-web-doc-update: don't ignore configure or build failure
29945         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29946
29947         announce-gen: backslash-escape '@'s in --help output
29948         * build-aux/announce-gen: Fix syntax errors.
29949
29950         maint.mk, announce-gen: allow project-specific announcement mail headers
29951         * top/maint.mk (translation_project_): Define default.
29952         (announcement_Cc_, announcement_mail_headers_): Likewise.
29953         (announcement): Invoke announce-gen with new --mail-headers option.
29954         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29955
29956         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29957         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29958         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29959         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29960         line in the "err2" output file when running "make check" in verbose
29961         mode (i.e., with set -x enabled).
29962
29963 2010-05-03  Bruno Haible  <bruno@clisp.org>
29964
29965         wctob: Fix for weird platforms.
29966         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29967         argument value.
29968
29969 2010-05-03  Jim Meyering  <meyering@redhat.com>
29970
29971         maint.mk: prohibit unwarranted use of <strings.h>
29972         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29973         strings.h in a file that does not also use strcasecmp, strncasecmp,
29974         ffs or ffsll.
29975
29976         maint.mk: remove obsolete comments
29977         * top/maint.mk: Remove stale, commented-out rules.
29978
29979 2010-05-02  Bruno Haible  <bruno@clisp.org>
29980
29981         wcwidth: Declare also when it's aliased.
29982         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29983         macro.
29984
29985 2010-05-02  Bruno Haible  <bruno@clisp.org>
29986
29987         Fix regression from 2010-04-25.
29988         * gnulib-tool (func_modules_transitive_closure): Check the status of
29989         all modules, not only of the tests that are of the form foo-tests where
29990         foo is a module.
29991
29992 2010-05-02  Bruno Haible  <bruno@clisp.org>
29993
29994         wctob: Work around nasty Cygwin 1.7.2 bug.
29995         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29996         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29997
29998 2010-05-01  Bruno Haible  <bruno@clisp.org>
29999
30000         fpurge: Sharper test.
30001         * tests/test-fpurge.c (main): Add one more ftell check.
30002         * modules/fpurge-tests (Depends-on): Add ftell.
30003         Suggested by Eric Blake.
30004
30005 2010-05-01  Bruno Haible  <bruno@clisp.org>
30006
30007         ftello: Another test.
30008         * tests/test-ftello3.c: New file.
30009         * modules/ftello-tests (Files): Add it.
30010         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30011         MOSTLYCLEANFILES.
30012
30013         ftell: Another test.
30014         * tests/test-ftell3.c: New file.
30015         * modules/ftell-tests (Files): Add it.
30016         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30017         MOSTLYCLEANFILES.
30018
30019 2010-05-01  Bruno Haible  <bruno@clisp.org>
30020
30021         ftell, ftello: Work around Solaris bug.
30022         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30023         * lib/ftello.c: Include stdio-impl.h.
30024         (ftello): On Solaris, when _IOWRT is set, compute the result without
30025         looking at _IOREAD.
30026         * modules/ftello (Files): Add lib/stdio-impl.h.
30027         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30028         * doc/posix-functions/ftello.texi: Likewise.
30029         Reported by Eric Blake.
30030
30031 2010-05-01  Bruno Haible  <bruno@clisp.org>
30032
30033         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30034         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30035         the _IOWRT flag is also set.
30036
30037 2010-05-01  Bruno Haible  <bruno@clisp.org>
30038
30039         Fix doc about a HP-UX stdio bug.
30040         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30041         * doc/posix-functions/ftello.texi: Likewise.
30042
30043 2010-05-01  Bruno Haible  <bruno@clisp.org>
30044
30045         lseek test: Fix failure on Solaris.
30046         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30047         output.
30048
30049 2010-04-30  Jim Meyering  <meyering@redhat.com>
30050
30051         bootstrap: don't ignore failure to generate po*/Makevars
30052         * build-aux/bootstrap (with_gettext): Don't ignore failure
30053         to create po/Makevars or runtime-po/Makevars.
30054
30055 2010-04-29  Eric Blake  <eblake@redhat.com>
30056
30057         headers: relax license to LGPLv2+
30058         * modules/fcntl-h (License): Relax license.
30059         * modules/getopt-posix (License): Likewise.
30060         * modules/locale (License): Likewise.
30061         * modules/math (License): Likewise.
30062         * modules/pty (License): Likewise.
30063         * modules/sched (License): Likewise.
30064         * modules/search (License): Likewise.
30065         * modules/spawn (License): Likewise.
30066         * modules/stdarg (License): Likewise.
30067         * modules/sysexits (License): Likewise.
30068
30069 2010-04-29  Jim Meyering  <meyering@redhat.com>
30070
30071         inttypes: relax license to LGPLv2+
30072         * modules/inttypes (License): Relax license.
30073
30074 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30075
30076         * top/maint.mk (indent): Run twice to produce idempotent results.
30077
30078 2010-04-28  Bruno Haible  <bruno@clisp.org>
30079
30080         getdate: Generate getdate.c in the source directory.
30081         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30082         MOSTLYCLEANFILES.
30083         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30084
30085 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30086
30087         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30088         is not declared as a const *; avoid warnings in that case.
30089
30090 2010-04-28  Eric Blake  <eblake@redhat.com>
30091
30092         canonicalize-lgpl: avoid compiler warning
30093         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30094         declaration' / 'extraneous semicolon' warning with some compilers.
30095         Reported by Andreas Gruenbacher.
30096
30097 2010-04-28  Jim Meyering  <meyering@redhat.com>
30098
30099         init.sh: ensure a more reliable exit status when exiting via trap
30100         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30101         Inspired by patches from Dmitry V. Levin.
30102         Also trap on signal 3 (SIGQUIT).
30103
30104 2010-04-27  Bruno Haible  <bruno@clisp.org>
30105
30106         Update doc about utimes().
30107         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30108         'utimens' module.
30109         Reported by Andreas Gruenbacher <agruen@suse.de>.
30110
30111 2010-04-27  Eric Blake  <eblake@redhat.com>
30112
30113         full-read, full-write: relax license
30114         * modules/full-read (License): Drop to LGPLv2+.
30115         * modules/full-write (License): Likewise.
30116         * modules/safe-read (License): Likewise.
30117         * modules/safe-write (License): Likewise.
30118
30119         pthread: mention library for linking
30120         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30121
30122 2010-04-27  Jim Meyering  <meyering@redhat.com>
30123
30124         maint.mk: fix a bug introduced in last change
30125         * top/maint.mk (gl_assured_headers_): Now that all names are on
30126         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30127         is not anchored to end of word, it should be adequate.
30128
30129         maint.mk: avoid side-effect in latest syntax-check
30130         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30131         to run commands via $(shell...), and hence to incur cost only when
30132         the new rule is actually run.
30133
30134         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30135         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30136         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30137         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30138         (gl_assured_headers_, az_, AZ_): Define.
30139         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30140
30141 2010-04-26  Jim Meyering  <jim@meyering.net>
30142             Bruno Haible  <bruno@clisp.org>
30143
30144         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30145         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30146         Prompted by an exchange with Gilles Espinasse.
30147
30148 2010-04-26  Jim Meyering  <meyering@redhat.com>
30149
30150         git-version-gen: aesthetic tweak
30151         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30152         so that the command remains on a single line.
30153
30154 2010-04-26  Eric Blake  <eblake@redhat.com>
30155
30156         git-version-gen: allow use on EBCDIC hosts
30157         * build-aux/git-version-gen (dirty): Use literal rather than tying
30158         ourselves to ascii.
30159         Reported by Steve Goetze.
30160
30161 2010-04-25  Bruno Haible  <bruno@clisp.org>
30162
30163         netdb: Add support for GNULIB_POSIXCHECK.
30164         * lib/netdb.in.h: Include warn-on-use.h.
30165         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30166         functions are used when GNULIB_POSIXCHECK is defined and the
30167         getaddrinfo module is not in use.
30168         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30169         freeaddrinfo, gai_strerror, getnameinfo are declared.
30170         * modules/netdb (Depends-on): Add warn-on-use.
30171         (Makefile.am): Include warn-on-use.h in netdb.h.
30172
30173 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30174
30175         build: avoid "make check" failure without .git/ directory
30176         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30177         there is no .git/ directory.
30178
30179 2010-04-25  Bruno Haible  <bruno@clisp.org>
30180
30181         ptsname: Fix misuse of ttyname_r.
30182         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30183         of errno.
30184
30185 2010-04-25  Bruno Haible  <bruno@clisp.org>
30186
30187         ttyname_r: Make it work on Solaris 10.
30188         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30189         if the system function has the POSIX declaration. Test whether the
30190         function fails if the buffer is less than 128 bytes large.
30191         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30192         system's ttyname_r function. Provide a reasonably large buffer.
30193         * modules/ttyname_r (Depends-on): Add extensions.
30194         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30195
30196 2010-04-25  Bruno Haible  <bruno@clisp.org>
30197
30198         Use the 'extensions' module for some more functions on Solaris.
30199         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30200         module.
30201         * doc/posix-functions/ctime_r.texi: Likewise.
30202         * doc/posix-functions/getgrgid_r.texi: Likewise.
30203         * doc/posix-functions/getgrnam_r.texi: Likewise.
30204         * doc/posix-functions/getpwnam_r.texi: Likewise.
30205         * doc/posix-functions/getpwuid_r.texi: Likewise.
30206         * doc/posix-functions/readdir_r.texi: Likewise.
30207         * doc/posix-functions/sigwait.texi: Likewise.
30208         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30209         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30210
30211 2010-04-25  Bruno Haible  <bruno@clisp.org>
30212
30213         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30214         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30215         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30216         * lib/ttyname_r.c: Include <limits.h>.
30217         (ttyname_r): Define using the system's ttyname_r function, if it exists
30218         and not on Solaris.
30219         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30220         set.
30221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30222         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30223         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30224         Reported by Simon Josefsson.
30225
30226 2010-04-25  Bruno Haible  <bruno@clisp.org>
30227
30228         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30229         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30230         * doc/posix-functions/ctime_r.texi: Likewise.
30231         * doc/posix-functions/getgrgid_r.texi: Likewise.
30232         * doc/posix-functions/getgrnam_r.texi: Likewise.
30233         * doc/posix-functions/getlogin_r.texi: Likewise.
30234         * doc/posix-functions/getpwnam_r.texi: Likewise.
30235         * doc/posix-functions/getpwuid_r.texi: Likewise.
30236         * doc/posix-functions/readdir_r.texi: Likewise.
30237         * doc/posix-functions/sigwait.texi: Likewise.
30238         * doc/posix-functions/ttyname_r.texi: Likewise.
30239         Reported by Simon Josefsson.
30240
30241 2010-04-25  Bruno Haible  <bruno@clisp.org>
30242
30243         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30244         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30245         also to --create-testdir.
30246         (func_acceptable): Don't consider the status of *-tests modules here.
30247         (func_modules_transitive_closure): Consider it here, before including a
30248         test module.
30249         (func_import, func_create_testdir): Set inc_all_direct_tests,
30250         inc_all_indirect_tests.
30251         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30252         --create-testdir and --create-megatestdir.
30253
30254 2010-04-25  Bruno Haible  <bruno@clisp.org>
30255
30256         gnulib-tool: Add --without-*-tests options.
30257         * gnulib-tool (func_usage): Document the --without-*-tests options.
30258         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30259         excl_unportable_tests): New variables.
30260         Fail if they are specified with --import or --update.
30261         (func_acceptable): Respect the excl_*_tests variables.
30262         (func_import): Set the excl_*_tests variables to empty.
30263
30264 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30265             Bruno Haible  <bruno@clisp.org>
30266
30267         Work around a MacOS X 10.4 bug with openpty.
30268         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30269         * tests/test-openpty.c (main): Close the master side explicitly.
30270
30271 2010-04-25  Bruno Haible  <bruno@clisp.org>
30272
30273         strnlen: Fix a C++ test error on MacOS X and Solaris.
30274         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30275         the function is not declared.
30276         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30277         Simon Josefsson.
30278
30279 2010-04-24  Bruno Haible  <bruno@clisp.org>
30280
30281         Avoid a gcc warning.
30282         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30283         of correct type for %08lx directive.
30284         Reported by Eric Blake.
30285
30286 2010-04-24  Bruno Haible  <bruno@clisp.org>
30287
30288         vasnprintf: Correct errno value in case of out-of-memory.
30289         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30290         or sprintf. Use the errno value from SNPRINTF or sprintf.
30291         Reported by Ian Beckwith <ianb@erislabs.net>.
30292
30293 2010-04-24  Bruno Haible  <bruno@clisp.org>
30294
30295         ansi-c++-opt: Find correct compiler when cross-compiling.
30296         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30297         AC_CHECK_PROGS.
30298         Reported by Simon Josefsson.
30299
30300 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30301
30302         vc-list-files: Add support for subversion
30303         * build-aux/vc-list-files: Use "svn list" to generate the list of
30304         files controlled by subversion.
30305
30306 2010-04-23  Jim Meyering  <meyering@redhat.com>
30307
30308         vc-list-files tests: convert to use init.sh
30309         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30310         path_prepend_.
30311         Use Exit, not exit.
30312         Use skip_ rather than open coding it.
30313         Remove trap set-up and compare definitions.
30314         * tests/test-vc-list-files-git.sh: Likewise.
30315         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30316
30317 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30318
30319         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30320         backup files.
30321
30322 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30323
30324         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30325
30326 2010-04-20  Eric Blake  <eblake@redhat.com>
30327
30328         tests: be robust to ignored SIGPIPE
30329         * tests/test-select-in.sh: Consume all output.
30330         * tests/test-lseek.sh: Check correct exit status, while avoiding
30331         EPIPE.
30332
30333 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30334             Bruno Haible  <bruno@clisp.org>
30335
30336         visibility: Don't use -fvisibility if it leads to a warning.
30337         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30338         yes, don't pretend that visibility works if it leads to a warning.
30339         Reported by Mike Gran <spk121@yahoo.com>.
30340
30341 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30342
30343         * build-aux/bootstrap: Use "git -h" for testing for supported options
30344         instead of "git --help".  The short-form option only shows a summary,
30345         and doesn't layout the full man page.  Grep for the full option name
30346         in the summary, too.
30347
30348 2010-04-19  Bruno Haible  <bruno@clisp.org>
30349
30350         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30351         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30352         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30353         mention of RELOCATABLE_STRIP.
30354         Reported by Sylvain Beucler <beuc@beuc.net>.
30355
30356 2010-04-19  Bruno Haible  <bruno@clisp.org>
30357
30358         * lib/diffseq.h: Fix typo in comment.
30359         Reported by Eric Blake.
30360
30361 2010-04-19  Bruno Haible  <bruno@clisp.org>
30362
30363         ioctl: Move autoconf macro to a .m4 file.
30364         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30365         * modules/ioctl (Files): Add it.
30366         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30367         Reported by Ian Beckwith <ianb@erislabs.net>.
30368
30369 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30370             Bruno Haible  <bruno@clisp.org>
30371
30372         diffseq: Accommodate use-case with abstract arrays.
30373         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30374         is not defined.
30375         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30376         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30377
30378 2010-04-18  Bruno Haible  <bruno@clisp.org>
30379
30380         * doc/posix-headers/stdbool.texi: More precise wording.
30381
30382 2010-04-17  Jim Meyering  <meyering@redhat.com>
30383
30384         maint.mk: use gnu-style indentation in an embedded perl script
30385         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30386         Rename variable: s/two/last_two_bytes/
30387
30388 2010-04-16  Eric Blake  <eblake@redhat.com>
30389
30390         test-stdbool: skip test that fails with Solaris CC
30391         * tests/test-stdbool.c (f): Skip test that causes compilation
30392         error under buggy C++ compiler.
30393         * lib/stdbool.in.h: Document the limitation.
30394         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30395
30396         setenv: allow compilation with C++
30397         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30398         register keyword.
30399
30400         stdint: allow test to pass with C++
30401         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30402
30403         getopt: allow compilation with C++
30404         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30405         struct.
30406         * lib/getopt.c (_getopt_internal_r): Use correct type.
30407         Reported by Dagobert Michelson, via Joel E. Denny.
30408
30409 2010-04-16  Bruno Haible  <bruno@clisp.org>
30410
30411         Override netdb.h always.
30412         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30413         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30414         Reported by Ludovic Courtès <ludo@gnu.org>.
30415
30416 2010-04-15  Bruno Haible  <bruno@clisp.org>
30417
30418         openpty: Fix mistake from 2010-03-21.
30419         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30420         Reported by Simon Josefsson.
30421
30422 2010-04-15  Eric Blake  <eblake@redhat.com>
30423
30424         test-forkpty: fix expected signature
30425         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30426         Reported by Simon Josefsson.
30427
30428 2010-04-15  Jim Meyering  <meyering@redhat.com>
30429
30430         maint.mk: texinfo_suffix_re_: correct the default regexp
30431         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30432
30433         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30434         make it configurable via texinfo_suffix_re_.
30435
30436 2010-04-14  Eric Blake  <eblake@redhat.com>
30437
30438         strtok_r: relax license to LGPLv2+
30439         * modules/strtok_r (License): Relax license.
30440         Reported by Matthias Bolte.
30441
30442 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30443
30444         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30445         version 1.4.4 by default instead of requiring the libgcrypt
30446         version used during build.  This makes it possible to use the
30447         application with older but still binary compatible libgcrypt
30448         versions.
30449
30450 2010-04-13  Eric Blake  <eblake@redhat.com>
30451
30452         getopt-gnu: match recent glibc fixes and posix ruling
30453         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30454         '+' handling, when requesting extensions.
30455         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30456         'W;' handling.
30457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30458         * doc/posix-functions/getopt.texi (getopt): Document this.
30459         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30460         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30461         Likewise.
30462
30463         getopt: merge bug fixes from glibc
30464         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30465         diagnostics.  Honor '+:' correctly.  Reject ';'.
30466
30467         getopt-posix: detect MacOS bug
30468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30469         optind when missing a required argument.
30470         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30471         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30472         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30473         Likewise.
30474
30475         getopt-posix: avoid spurious failure on Solaris
30476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30477         an indicator that setting optind=1 is sufficient for reset.
30478
30479         getopt-posix: avoid spurious failure on FreeBSD
30480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30481         in POSIX mode, since the m4 test uses it.
30482
30483         gnulib-tool: silence warning on BSD sh
30484         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30485
30486 2010-04-13  Jim Meyering  <meyering@redhat.com>
30487
30488         doc: users.txt: GNU patch now uses gnulib
30489         * users.txt: Add patch.
30490
30491 2010-04-12  Jim Meyering  <meyering@redhat.com>
30492
30493         maint.mk: generate more concise timing data for syntax-check rules
30494         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30495         " done" from each line that reports a syntax-check test duration.
30496
30497 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30498
30499         git-version-gen: use "git update-index..." rather than "git status"
30500         * build-aux/git-version-gen: Use git update-index --refresh, not
30501         "git status".  With some versions of git, "git status" would fail
30502         to update the index and result in an unwarranted "-dirty" suffix.
30503
30504 2010-04-11  Jim Meyering  <meyering@redhat.com>
30505
30506         openat: correct formatting (no semantic change)
30507         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30508         Suggested by Bruno Haible.
30509
30510 2010-04-11  Bruno Haible  <bruno@clisp.org>
30511
30512         Stricter declaration checking in testdirs.
30513         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30514         If for_tests is true, augment AM_CPPFLAGS to define
30515         GNULIB_STRICT_CHECKING.
30516         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30517         GNULIB_STRICT_CHECKING is defined, verify that the function is
30518         declared.
30519
30520 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30521             Bruno Haible  <bruno@clisp.org>
30522
30523         libunistring: Improve configure output.
30524         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30525         Don't say "consider installing GNU libunistring" when checking again
30526         with libiconv.
30527
30528 2010-04-11  Bruno Haible  <bruno@clisp.org>
30529
30530         libunistring: Correct value of $LTLIBUNISTRING.
30531         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30532         correct the value of $LTLIBUNISTRING.
30533
30534 2010-04-11  Bruno Haible  <bruno@clisp.org>
30535
30536         havelib: Add static libraries to LIBS in the right order.
30537         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30538         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30539
30540 2010-04-11  Bruno Haible  <bruno@clisp.org>
30541
30542         libunistring: Detect libunistring also when it depends on libiconv.
30543         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30544         the second AC_LIB_HAVE_LINKFLAGS invocation.
30545
30546 2010-04-11  James Youngman  <jay@gnu.org>
30547
30548         close-stream: declare local scalars to be "const"
30549         * lib/close-stream.c (close_stream): Make boolean variables const
30550         to document the fact that we set but do not change them.
30551
30552 2010-04-11  Bruno Haible  <bruno@clisp.org>
30553
30554         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30555
30556 2010-04-11  Jim Meyering  <meyering@redhat.com>
30557
30558         maint.mk: don't include dist-check.mk
30559         * top/maint.mk: Remove bogus include directive.
30560
30561         maint.mk: improve empty-line-at-EOF check
30562         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30563         solution, rather than tail+Perl-based one.  The latter would read
30564         a few kilobytes from the end of each file, and did not handle empty
30565         files properly.
30566
30567         maint.mk: print the elapsed time for each syntax-check rule
30568         * top/maint.mk (sc_m_rules_): Save start time in a file.
30569         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30570         (local-check): Interpose the .z rules
30571
30572 2010-04-11  Jim Meyering  <meyering@redhat.com>
30573
30574         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30575         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30576         empty file with one that ends in an empty line.
30577
30578 2010-04-10  Bruno Haible  <bruno@clisp.org>
30579
30580         mkdir: Make it work on mingw64.
30581         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30582         * lib/mkdir.c: Update comment.
30583         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30584
30585 2010-04-10  Bruno Haible  <bruno@clisp.org>
30586
30587         Don't override improved macro from newer autoconf.
30588         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30589         autoconf >= 2.62.
30590         Reported by Joel E. Denny <jdenny@clemson.edu>.
30591
30592 2010-04-10  Jim Meyering  <meyering@redhat.com>
30593
30594         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30595         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30596
30597         maint.mk: correct a diagnostic
30598         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30599         in diagnostic; now use $prohibit.
30600
30601 2010-04-10  Bruno Haible  <address@hidden>
30602
30603         fchownat: Fix a C++ test error on Solaris 8.
30604         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30605         the function does not exist.
30606
30607 2010-04-10  Bruno Haible  <bruno@clisp.org>
30608
30609         vasnprintf: Add more tests.
30610         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30611         (test_function): Test converting an invalid wide string.
30612
30613         vasnprintf: Correct handling of unconvertible wide string arguments.
30614         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30615         VASNPRINTF.
30616         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30617         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30618         smaller than the expected maximum need for the directive. Set errno to
30619         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30620         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30622         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30623         * modules/vasnprintf (Files): Add m4/printf.m4.
30624         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30625
30626 2010-04-10  Bruno Haible  <bruno@clisp.org>
30627
30628         vasnprintf: Fix crash in %ls directive.
30629         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30630         string is passed as argument to %ls, with no precision and no width.
30631         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30632
30633 2010-04-10  Bruno Haible  <bruno@clisp.org>
30634
30635         vasnprintf: Fix multiple test failures on mingw.
30636         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30637         _snprintf, or snwprintf, not _snwprintf.
30638
30639 2010-04-10  Bruno Haible  <bruno@clisp.org>
30640
30641         write: Fix a C++ test error on mingw.
30642         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30643
30644 2010-04-10  Bruno Haible  <bruno@clisp.org>
30645
30646         vasnprintf test: Reduce code duplication.
30647         * tests/test-vasnprintf.c (test_function): New function, extracted from
30648         test_vasnprintf.
30649         (test_vasnprintf, test_asnprintf): Invoke it.
30650
30651 2010-04-10  Bruno Haible  <bruno@clisp.org>
30652
30653         strnlen: Fix warning in C++ mode on MacOS X.
30654         * lib/string.in.h (strnlen): Use the modern idiom.
30655         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30656         defining strnlen as a macro already in <config.h>.
30657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30658         REPLACE_STRNLEN.
30659         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30660         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30661
30662 2010-04-08  James Youngman  <jay@gnu.org>
30663
30664         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30665         the example.
30666
30667 2010-04-09  Jim Meyering  <meyering@redhat.com>
30668
30669         maint.mk: print better diagnostic when there is no $(_hv_file)
30670         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30671         announce that when $(_hv_file) (aka help-version) does not exist.
30672
30673         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30674         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30675         not try to interpret its random input bytes.  Jarno Rajahalme reported
30676         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30677         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30678         (mktempd_): Likewise, just in case.
30679
30680         ftruncate: add two years to projected module removal date: 2012
30681         * m4/ftruncate.m4: Adjust comments.
30682
30683         ftruncate: mark module as obsolete; even MinGW provides it, now
30684         * modules/ftruncate (Status): Obsolete.
30685         (Notice): Say that.
30686         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30687         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30688
30689 2010-04-08  Bruno Haible  <bruno@clisp.org>
30690
30691         Fix side effects from tests-related modules.
30692         * modules/dprintf-posix (Comment): New section.
30693         * modules/fprintf-posix (Comment): Likewise.
30694         * modules/obstack-printf-posix (Comment): Likewise.
30695         * modules/printf-posix (Comment): Likewise.
30696         * modules/snprintf-posix (Comment): Likewise.
30697         * modules/sprintf-posix (Comment): Likewise.
30698         * modules/vasnprintf-posix (Comment): Likewise.
30699         * modules/vasprintf-posix (Comment): Likewise.
30700         * modules/vdprintf-posix (Comment): Likewise.
30701         * modules/vfprintf-posix (Comment): Likewise.
30702         * modules/vprintf-posix (Comment): Likewise.
30703         * modules/vsnprintf-posix (Comment): Likewise.
30704         * modules/vsprintf-posix (Comment): Likewise.
30705         * modules/xprintf-posix (Comment): Likewise.
30706         * modules/xvasprintf-posix (Comment): Likewise.
30707         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30708         * modules/floorf-tests (Depends-on): Likewise.
30709         * modules/round-tests (Depends-on): Likewise.
30710         * modules/roundf-tests (Depends-on): Likewise.
30711         * modules/trunc-tests (Depends-on): Likewise.
30712         * modules/truncf-tests (Depends-on): Likewise.
30713         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30714         'fprintf-posix' module is not present.
30715         * tests/test-floorf2.c (check): Likewise.
30716         * tests/test-trunc2.c (check): Likewise.
30717         * tests/test-truncf2.c (check): Likewise.
30718         * tests/test-round2.c (equal): Likewise.
30719         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30720
30721 2010-04-07  Karl Berry  <karl@gnu.org>
30722
30723         * config/srclist.txt,
30724         * config/srclistvars.sh,
30725         * config/srclist-update: doc fixes.
30726
30727 2010-04-07  Jim Meyering  <meyering@redhat.com>
30728
30729         maint.mk: add a PATH crosschecking syntax-check rule
30730         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30731         Useful if you use a test like the one in help-version (coreutils,
30732         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30733         printed by prog --version.
30734
30735 2010-04-06  Bruno Haible  <bruno@clisp.org>
30736
30737         Fix link error on mingw.
30738         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30739         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30740
30741 2010-04-06  Bruno Haible  <bruno@clisp.org>
30742
30743         Assume rmdir exists.
30744         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30745
30746 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30747
30748         doc: update users.txt
30749         * users.txt: Add gcal.
30750
30751 2010-04-06  Jim Meyering  <meyering@redhat.com>
30752
30753         init.sh: simply unset TMPDIR rather than risking env -i
30754         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30755         although it probably works fine on all Unix-based systems, some
30756         systems (Cygwin?) cannot tolerate a totally cleared environment.
30757         Suggestion from Eric Blake.
30758
30759 2010-04-06  Jim Meyering  <meyering@redhat.com>
30760
30761         init.sh: portability fix: use env's POSIX-specified -i option not -u
30762         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30763         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30764
30765 2010-04-05  Bruno Haible  <bruno@clisp.org>
30766
30767         btowc: Work around Cygwin 1.7.2 bug.
30768         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30769         does not map NUL to 0.
30770         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30771
30772 2010-04-05  Bruno Haible  <bruno@clisp.org>
30773
30774         Make the multithread modules work on Cygwin 1.7.2.
30775         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30776         imported symbols can be declared weak, so that it returns "no" on
30777         Cygwin 1.7.2.
30778
30779 2010-04-05  Bruno Haible  <bruno@clisp.org>
30780
30781         Use the module 'strncat'.
30782         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30783
30784         Tests for module 'strncat'.
30785         * modules/strncat-tests: New file.
30786         * tests/test-strncat.c: New file.
30787
30788         New module 'strncat'.
30789         * lib/string.in.h (strncat): New declaration.
30790         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30791         * m4/strncat.m4: New file, based on m4/memchr.m4.
30792         * modules/strncat: New file.
30793         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30794         is declared.
30795         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30796         REPLACE_STRNCAT.
30797         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30798         REPLACE_STRNCAT.
30799         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30800         module.
30801         * tests/test-string-c++.cc: Check signature of strncat.
30802
30803 2010-04-05  Jim Meyering  <meyering@redhat.com>
30804
30805         xstrtoumax-tests: convert to use init.sh
30806         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30807         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30808         Use Exit, not exit.
30809         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30810
30811         xstrtoimax-tests: convert to use init.sh
30812         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30813         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30814         Use Exit, not exit.
30815         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30816
30817 2010-04-05  Bruno Haible  <bruno@clisp.org>
30818
30819         sys_socket: Avoid #define replacements in C++ mode.
30820         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30821         warning to the function if possible, rather than #defining the symbol
30822         to a dysfunctional alias.
30823
30824 2010-04-05  Bruno Haible  <bruno@clisp.org>
30825
30826         fseeko: Fix C++ test error on mingw.
30827         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30828         gl_FUNC_FSEEKO.
30829         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30830         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30831         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30832         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30833
30834 2010-04-05  Bruno Haible  <bruno@clisp.org>
30835
30836         duplocale: Improve test output.
30837         * tests/test-duplocale.c (main): Print reason for skipped test.
30838
30839 2010-04-05  Bruno Haible  <bruno@clisp.org>
30840
30841         Assume rmdir exists.
30842         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30843         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30844
30845 2010-04-05  Bruno Haible  <bruno@clisp.org>
30846
30847         Fix link error on Solaris 8 with cc.
30848         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30849
30850 2010-04-05  Bruno Haible  <bruno@clisp.org>
30851
30852         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30853         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30854
30855 2010-04-05  Bruno Haible  <bruno@clisp.org>
30856
30857         vasprintf: Update documentation.
30858         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30859
30860 2010-04-05  Bruno Haible  <bruno@clisp.org>
30861
30862         ptsname: Improve test.
30863         * tests/test-ptsname.c (main): Also try the various master names of BSD
30864         systems.
30865
30866 2010-04-05  Bruno Haible  <bruno@clisp.org>
30867
30868         memchr: Avoid a possible C++ test error.
30869         * lib/string.in.h (memchr): Provide declaration if function is missing.
30870         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30871         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30873         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30874
30875 2010-04-05  Bruno Haible  <bruno@clisp.org>
30876
30877         strtok_r: Improve idiom.
30878         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30879         AC_LIBOBJ is used.
30880
30881 2010-04-05  Bruno Haible  <bruno@clisp.org>
30882
30883         strdup: Improve idiom.
30884         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30885         AC_LIBOBJ is used.
30886         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30887         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30888         when AC_LIBOBJ is used.
30889
30890 2010-04-05  Bruno Haible  <bruno@clisp.org>
30891
30892         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30893         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30894         don't set REPLACE_MBSINIT to 1.
30895         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30896         don't set REPLACE_MBRTOWC to 1.
30897         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30898         exist, don't set REPLACE_MBSRTOWCS to 1.
30899         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30900         exist, don't set REPLACE_MBSNRTOWCS to 1.
30901         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30902         don't set REPLACE_WCRTOMB to 1.
30903         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30904         exist, don't set REPLACE_WCSRTOMBS to 1.
30905         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30906         exist, don't set REPLACE_WCSNRTOMBS to 1.
30907
30908 2010-04-05  Bruno Haible  <bruno@clisp.org>
30909
30910         ldexpl: Improve idiom.
30911         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30912         make sure to set HAVE_DECL_LDEXPL to 0.
30913
30914 2010-04-05  Jim Meyering  <meyering@redhat.com>
30915
30916         xstrtol-tests: convert to use init.sh
30917         * modules/xstrtol-tests (Files): Add tests/init.sh.
30918         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30919         Use Exit, not exit.
30920         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30921
30922         atexit-tests: convert to use init.sh
30923         * modules/atexit-tests (Files): Add tests/init.sh.
30924         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30925         Use Exit, not exit.
30926         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30927
30928         init.sh: fix typo
30929         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30930
30931         init.sh: make it easier for a test script to write to the tty, ...
30932         when using automake's parallel-tests mode.
30933         * tests/init.sh (stderr_fileno_): Define overridable variable.
30934         (warn_): New function, to use it.
30935         (fail_, skip_, framework_failure_): Use warn_.
30936
30937 2010-04-04  Bruno Haible  <bruno@clisp.org>
30938
30939         btowc: Avoid warning.
30940         * lib/btowc.c: Include <stdlib.h>.
30941         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30942
30943 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30944             Bruno Haible  <bruno@clisp.org>
30945
30946         wchar: Port to NetBSD 1.5.
30947         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30948         * lib/wctype.in.h (WEOF): Likewise.
30949
30950 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30951             Bruno Haible  <bruno@clisp.org>
30952
30953         Port extended stdio to NetBSD 1.5.
30954         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30955         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30956         older.
30957
30958 2010-04-04  Bruno Haible  <bruno@clisp.org>
30959
30960         string: Remove unused substitution.
30961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30962         HAVE_DECL_STRERROR.
30963         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30964
30965 2010-04-04  Bruno Haible  <bruno@clisp.org>
30966
30967         strtod: Avoid a possible C++ test error.
30968         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30969         set REPLACE_STRTOD.
30970
30971 2010-04-04  Bruno Haible  <bruno@clisp.org>
30972
30973         strerror: Update documentation.
30974         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30975
30976 2010-04-04  Bruno Haible  <bruno@clisp.org>
30977
30978         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30979         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30980         _GL_CXXALIAS_SYS_CAST.
30981
30982 2010-04-04  Bruno Haible  <bruno@clisp.org>
30983
30984         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30985         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30986         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30987         REPLACE_FREXPL to 1.
30988         * doc/posix-functions/frexpl.texi: Update documentation.
30989
30990 2010-04-04  Bruno Haible  <bruno@clisp.org>
30991
30992         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30993         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30994
30995 2010-04-04  Bruno Haible  <bruno@clisp.org>
30996
30997         Implement nanosleep for native Windows.
30998         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30999
31000 2010-04-04  Bruno Haible  <bruno@clisp.org>
31001
31002         math: Fix some C++ test errors on Solaris 8.
31003         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31004
31005 2010-04-04  Bruno Haible  <bruno@clisp.org>
31006
31007         math: Fix some C++ test errors on Cygwin.
31008         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31009         truncl): Provide declaration if the system does not have it.
31010         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31011         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31012         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31013         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31014         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31015         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31016         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31017         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31018         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31019         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31020         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31021         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31022         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31023         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31024         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31025         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31027         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31028         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31029         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31030         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31031         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31032
31033 2010-04-04  Bruno Haible  <bruno@clisp.org>
31034
31035         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31036         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31037         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31038         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31039         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31040         * m4/isinf.m4 (gl_ISINF): Likewise.
31041         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31042
31043 2010-04-04  Bruno Haible  <bruno@clisp.org>
31044
31045         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31046         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31047
31048 2010-04-04  Bruno Haible  <bruno@clisp.org>
31049
31050         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31051         * modules/tmpfile (configure.ac): Update.
31052
31053         tmpfile: Fix C++ test error on mingw.
31054         * lib/stdio.in.h (tmpfile): New declaration.
31055         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31056         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31057         * modules/tmpfile (Depends-on): Add stdio.
31058         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31059         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31060         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31061         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31062         REPLACE_TMPFILE.
31063         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31064
31065 2010-04-04  Bruno Haible  <bruno@clisp.org>
31066
31067         ioctl: Fix C++ test error on mingw.
31068         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31069         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31070         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31071
31072 2010-04-03  Bruno Haible  <bruno@clisp.org>
31073
31074         wcwidth: Fix C++ test error on mingw.
31075         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31076         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31077         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31078
31079 2010-04-03  Bruno Haible  <bruno@clisp.org>
31080
31081         nanosleep: Fix C++ test error on mingw.
31082         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31083         * lib/time.in.h (nanosleep): Use modern idiom.
31084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31085         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31086         REPLACE_NANOSLEEP to 1.
31087         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31088         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31089
31090 2010-04-03  Bruno Haible  <bruno@clisp.org>
31091
31092         strptime: Fix C++ test error on mingw.
31093         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31094         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31095         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31096         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31097         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31098         not REPLACE_STRPTIME.
31099         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31100         REPLACE_STRPTIME.
31101
31102 2010-04-03  Bruno Haible  <bruno@clisp.org>
31103
31104         timegm: Fix C++ test error on mingw.
31105         * lib/time.in.h (timegm): Use modern idiom.
31106         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31107         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31108         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31109         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31110
31111 2010-04-03  Bruno Haible  <bruno@clisp.org>
31112
31113         timegm: Assume declaration if function exists.
31114         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31115         if it exists. Don't clobber ac_cv_func_timegm.
31116
31117 2010-04-03  Bruno Haible  <bruno@clisp.org>
31118
31119         time_r: Fix C++ test error on mingw.
31120         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31121         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31122         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31123         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31124         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31125
31126 2010-04-03  Bruno Haible  <bruno@clisp.org>
31127
31128         time_r: Minor updates.
31129         * modules/time_r (Description): Mention the provided functions.
31130         * lib/time_r.c: Don't include <string.h>.
31131         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31132         * doc/posix-functions/localtime_r.texi: Likewise.
31133
31134 2010-04-03  Bruno Haible  <bruno@clisp.org>
31135
31136         time: Fix regression introduced on 2010-03-08.
31137         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31138         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31139
31140 2010-04-03  Jim Meyering  <meyering@redhat.com>
31141
31142         maint.mk: don't silently disable project-specific syntax-check rules
31143         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31144         that they need to convert their project-specific syntax-check rules
31145         to use the new _sc_search_regexp.
31146
31147 2010-04-03  Bruno Haible  <bruno@clisp.org>
31148
31149         fchdir: Fix regression introduced on 2010-03-08.
31150         * lib/unistd.in.h (fchdir): Fix declaration.
31151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31153         REPLACE_FCHDIR.
31154         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31155         REPLACE_FCHDIR.
31156
31157 2010-04-03  Bruno Haible  <bruno@clisp.org>
31158
31159         getpagesize: Fix C++ test error on mingw.
31160         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31161         system does not declare the function.
31162         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31163         declared.
31164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31165         HAVE_DECL_GETPAGESIZE.
31166         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31167
31168 2010-04-03  Bruno Haible  <bruno@clisp.org>
31169
31170         stdio: Make C++ tests work on mingw.
31171         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31172         does not declare the function.
31173
31174 2010-04-03  Bruno Haible  <bruno@clisp.org>
31175
31176         ftello: Fix C++ test error on mingw.
31177         * lib/stdio.in.h (ftello): Use modern idiom.
31178         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31179         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31180         is missing and that it needs to be replaced.
31181         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31183         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31184
31185 2010-04-03  Bruno Haible  <bruno@clisp.org>
31186
31187         fseeko: Fix C++ test error on mingw.
31188         * lib/stdio.in.h (fseeko): Use modern idiom.
31189         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31190         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31191         is missing and that it needs to be replaced.
31192         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31194         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31195
31196 2010-04-03  Bruno Haible  <bruno@clisp.org>
31197
31198         mkstemp: Fix C++ test error on mingw.
31199         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31200         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31201         function is missing and that it needs to be replaced.
31202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31203         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31204
31205 2010-04-03  Bruno Haible  <bruno@clisp.org>
31206
31207         stpncpy: Fix C++ test error on mingw.
31208         * lib/string.in.h (stpncpy): Use modern idiom.
31209         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31210         function is missing and that it needs to be replaced.
31211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31212         REPLACE_STPNCPY.
31213         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31214
31215 2010-04-03  Bruno Haible  <bruno@clisp.org>
31216
31217         sys_stat: Fix C++ test error on mingw.
31218         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31219         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31220
31221 2010-04-03  Bruno Haible  <bruno@clisp.org>
31222
31223         pty: Update doc.
31224         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31225
31226 2010-04-03  Bruno Haible  <bruno@clisp.org>
31227
31228         unistd: Fix C++ test error on mingw.
31229         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31230
31231 2010-04-03  Bruno Haible  <bruno@clisp.org>
31232
31233         Update doc regarding mingw.
31234         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31235         * doc/glibc-functions/login_tty.texi: Likewise.
31236         * doc/glibc-functions/forkpty.texi: Likewise.
31237
31238 2010-04-03  Bruno Haible  <bruno@clisp.org>
31239
31240         stdlib: Avoid compilation failure of c-strtold on mingw.
31241         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31242
31243 2010-04-03  Bruno Haible  <bruno@clisp.org>
31244
31245         locale: Make C++ tests work on Cygwin and mingw.
31246         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31247         cannot provide the function.
31248         Reported by Simon Josefsson.
31249
31250 2010-04-03  Bruno Haible  <bruno@clisp.org>
31251
31252         localename: Port to MacOS X 10.6.
31253         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31254         memory layout of the locales in MacOS X 10.6 as well.
31255         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31256
31257 2010-04-02  Bruno Haible  <bruno@clisp.org>
31258
31259         gnulib-tool: Ensure that long-running tests are executed last.
31260         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31261         running tests after the one for the other tests.
31262
31263 2010-04-02  Bruno Haible  <bruno@clisp.org>
31264
31265         gnulib-tool: Ensure the tests in the main directory are executed first.
31266         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31267         start with the current directory.
31268
31269 2010-04-02  Bruno Haible  <bruno@clisp.org>
31270
31271         Tests for module 'havelib', moved here from GNU gettext.
31272         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31273         modifications.
31274         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31275         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31276         with modifications.
31277         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31278         modifications.
31279         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31280         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31281         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31282         with modifications.
31283         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31284         with modifications.
31285         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31286         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31287         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31288         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31289         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31290         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31291         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31292         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31293         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31294         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31295         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31296         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31297         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31298         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31299         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31300         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31301         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31302         with modifications.
31303         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31304         with modifications.
31305         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31306         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31307         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31308         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31309         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31310         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31311         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31312         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31313         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31314         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31315         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31316         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31317         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31318         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31319         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31320         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31321         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31322         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31323         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31324         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31325         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31326         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31327         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31328         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31329         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31330         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31331         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31332         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31333         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31334         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31335         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31336         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31337         * tests/havelib/rpathx/rpathx.c: New file, from
31338         gettext/autoconf-lib-link.
31339         * tests/havelib/rpathx/Makefile.am: New file, from
31340         gettext/autoconf-lib-link.
31341         * tests/havelib/rpathx/configure.ac: New file, from
31342         gettext/autoconf-lib-link with modifications.
31343         * tests/havelib/rpathy/rpathy.c: New file, from
31344         gettext/autoconf-lib-link.
31345         * tests/havelib/rpathy/Makefile.am: New file, from
31346         gettext/autoconf-lib-link.
31347         * tests/havelib/rpathy/configure.ac: New file, from
31348         gettext/autoconf-lib-link with modifications.
31349         * tests/havelib/rpathz/rpathz.c: New file, from
31350         gettext/autoconf-lib-link.
31351         * tests/havelib/rpathz/Makefile.am: New file, from
31352         gettext/autoconf-lib-link.
31353         * tests/havelib/rpathz/configure.ac: New file, from
31354         gettext/autoconf-lib-link with modifications.
31355         * tests/havelib/rpathlx/usex.c: New file, from
31356         gettext/autoconf-lib-link.
31357         * tests/havelib/rpathlx/Makefile.am: New file, from
31358         gettext/autoconf-lib-link.
31359         * tests/havelib/rpathlx/configure.ac: New file, from
31360         gettext/autoconf-lib-link with modifications.
31361         * tests/havelib/rpathly/usey.c: New file, from
31362         gettext/autoconf-lib-link.
31363         * tests/havelib/rpathly/Makefile.am: New file, from
31364         gettext/autoconf-lib-link.
31365         * tests/havelib/rpathly/configure.ac: New file, from
31366         gettext/autoconf-lib-link with modifications.
31367         * tests/havelib/rpathlz/usez.c: New file, from
31368         gettext/autoconf-lib-link.
31369         * tests/havelib/rpathlz/Makefile.am: New file, from
31370         gettext/autoconf-lib-link.
31371         * tests/havelib/rpathlz/configure.ac: New file, from
31372         gettext/autoconf-lib-link with modifications.
31373         * tests/havelib/rpathlyx/usey.c: New file, from
31374         gettext/autoconf-lib-link.
31375         * tests/havelib/rpathlyx/Makefile.am: New file, from
31376         gettext/autoconf-lib-link.
31377         * tests/havelib/rpathlyx/configure.ac: New file, from
31378         gettext/autoconf-lib-link with modifications.
31379         * tests/havelib/rpathlzyx/usez.c: New file, from
31380         gettext/autoconf-lib-link.
31381         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31382         gettext/autoconf-lib-link.
31383         * tests/havelib/rpathlzyx/configure.ac: New file, from
31384         gettext/autoconf-lib-link with modifications.
31385         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31386         with modifications.
31387
31388 2010-04-02  Bruno Haible  <bruno@clisp.org>
31389
31390         gnulib-tool: Create distributed built sources also for the tests.
31391         * gnulib-tool (func_create_testdir): Also generate distributed built
31392         sources in the tests directory.
31393
31394 2010-04-02  Bruno Haible  <bruno@clisp.org>
31395
31396         gnulib-tool: Obey user's environment variables.
31397         * gnulib-tool (func_create_testdir): When creating built sources,
31398         respect the environment variables for autoconf, automake, etc. given by
31399         the user.
31400
31401 2010-04-02  Bruno Haible  <bruno@clisp.org>
31402
31403         gnulib-tool: Provide the value of --m4-base to modules.
31404         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31405         of gl_m4_base.
31406
31407 2010-04-02  Eric Blake  <eblake@redhat.com>
31408
31409         maint.mk: fix some fallout
31410         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31411         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31412
31413 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31414
31415         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31416         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31417         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31418         (sc_cast_of_x_alloc_return_value): Likewise.
31419         (sc_cast_of_alloca_return_value): Likewise.
31420         (sc_space_tab): Likewise.
31421         (sc_prohibit_atoi_atof): Likewise.
31422         (sc_prohibit_magic_number_exit): Likewise.
31423         (sc_error_exit_success): Likewise.
31424         (sc_file_system): Likewise.
31425         (sc_prohibit_have_config_h): Likewise.
31426         (sc_require_config_h): Likewise.
31427         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31428         (sc_obsolete_symbols): Likewise.
31429         (sc_changelog): Likewise.
31430         (sc_program_name): Likewise.
31431         (sc_the_the): Likewise.
31432         (sc_trailing_blank): Likewise.
31433         (sc_two_space_separator_in_usage): Likewise.
31434         (sc_useless_cpp_parens): Likewise.
31435         (sc_GPL_version): Likewise.
31436         (sc_GFDL_version): Likewise.
31437         (sc_texinfo_acronym): Likewise.
31438         (sc_prohibit_cvs_keyword): Likewise.
31439         (sc_prohibit_stat_st_blocks): Likewise.
31440         (sc_prohibit_S_IS_definition): Likewise.
31441         (sc_redundant_const): Likewise.
31442         (sc_makefile_TAB_only_indentation): Likewise.
31443         (sc_m4_quote_check): Likewise.
31444         (sc_makefile_path_separator_check): Likewise.
31445         (sc_copyright_check): Likewise.
31446         (sc_Wundef_boolean): Likewise.
31447         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31448
31449         maint.mk: match 0 or more whitespace-before-function-call '('
31450         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31451         that have zero or two-and-more spaces between the function name
31452         and the open parenthesis.
31453         (sc_error_message_warn_fatal): Likewise.
31454         (sc_error_message_uppercase): Likewise.
31455         (sc_error_message_period): Likewise.
31456
31457 2010-03-31  Eric Blake  <eblake@redhat.com>
31458
31459         maint.mk: check for [ as well as test
31460         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31461         Based on a libvirt report by Matthias Bolte.
31462
31463         gnumakefile: don't squelch _version output
31464         * top/GNUmakefile (_version): Create one-shot dependency rather
31465         than using $(shell) when version must be regenerated.
31466         (_autoreconf): Run verbosely, by default.
31467
31468         sys_time: avoid compiler warnings
31469         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31470         unconditional, fixing regression from 2010-03-29.
31471         Reported by Simon Josefsson.
31472
31473 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31474
31475         maint.mk: s/_header_without_use/_sc_header_without_use/
31476         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31477         (sc_prohibit_assert_without_use): Use the new name.
31478         (sc_prohibit_close_stream_without_use): Likewise.
31479         (sc_prohibit_getopt_without_use): Likewise.
31480         (sc_prohibit_quotearg_without_use): Likewise.
31481         (sc_prohibit_quote_without_use): Likewise.
31482         (sc_prohibit_long_options_without_use): Likewise.
31483         (sc_prohibit_inttostr_without_use): Likewise.
31484         (sc_prohibit_ignore_value_without_use): Likewise.
31485         (sc_prohibit_error_without_use): Likewise.
31486         (sc_prohibit_xalloc_without_use): Likewise.
31487         (sc_prohibit_hash_without_use): Likewise.
31488         (sc_prohibit_hash_pjw_without_use): Likewise.
31489         (sc_prohibit_safe_read_without_use): Likewise.
31490         (sc_prohibit_argmatch_without_use): Likewise.
31491         (sc_prohibit_canonicalize_without_use): Likewise.
31492         (sc_prohibit_root_dev_ino_without_use): Likewise.
31493         (sc_prohibit_openat_without_use): Likewise.
31494         (sc_prohibit_c_ctype_without_use): Likewise.
31495         (sc_prohibit_signal_without_use): Likewise.
31496         (sc_prohibit_intprops_without_use): Likewise.
31497
31498 2010-03-30  Eric Blake  <eblake@redhat.com>
31499
31500         maint: improve module indicators
31501         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31502         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31503         columns, and avoid extra macro expansion.
31504
31505         fdopendir: work around FreeBSD bug
31506         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31507         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31508         * modules/dirent (Makefile.am): Substitute it.
31509         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31510         declaration.
31511         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31512         fix.
31513         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31514
31515 2010-03-29  Bruno Haible  <bruno@clisp.org>
31516
31517         Emit #pragma system_header after the inclusion guard, not before.
31518         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31519         guard that spans the entire file, not before. This enables an
31520         optimization in GCC's preprocessor.
31521         * lib/ctype.in.h: Likewise.
31522         * lib/dirent.in.h: Likewise.
31523         * lib/errno.in.h: Likewise.
31524         * lib/float.in.h: Likewise.
31525         * lib/getopt.in.h: Likewise.
31526         * lib/iconv.in.h: Likewise.
31527         * lib/langinfo.in.h: Likewise.
31528         * lib/locale.in.h: Likewise.
31529         * lib/math.in.h: Likewise.
31530         * lib/netdb.in.h: Likewise.
31531         * lib/netinet_in.in.h: Likewise.
31532         * lib/pty.in.h: Likewise.
31533         * lib/sched.in.h: Likewise.
31534         * lib/se-selinux.in.h: Likewise.
31535         * lib/search.in.h: Likewise.
31536         * lib/spawn.in.h: Likewise.
31537         * lib/stdarg.in.h: Likewise.
31538         * lib/stdint.in.h: Likewise.
31539         * lib/string.in.h: Likewise.
31540         * lib/strings.in.h: Likewise.
31541         * lib/sys_file.in.h: Likewise.
31542         * lib/sys_ioctl.in.h: Likewise.
31543         * lib/sys_time.in.h: Likewise.
31544         * lib/sys_times.in.h: Likewise.
31545         * lib/sys_utsname.in.h: Likewise.
31546         * lib/sys_wait.in.h: Likewise.
31547         * lib/sysexits.in.h: Likewise.
31548         * lib/wctype.in.h: Likewise.
31549
31550 2010-03-28  James Youngman  <jay@gnu.org>
31551
31552         save-cwd: don't leak a file descriptor when the caller execs.
31553         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31554         saved file descriptor.
31555         * modules/save-cwd (Depends-on): Depend on cloexec.
31556
31557 2010-03-29  Bruno Haible  <bruno@clisp.org>
31558
31559         Remove vestiges of fts-lgpl module.
31560         * lib/fts_.h: Assume GNULIB_FTS is 1.
31561         * lib/fts.c: Likewise.
31562         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31563
31564 2010-03-28  Bruno Haible  <bruno@clisp.org>
31565
31566         Fix definition of tests witness macro.
31567         * gnulib-tool (func_import): Fix definition of witness macro.
31568
31569 2010-03-28  Bruno Haible  <bruno@clisp.org>
31570
31571         Fix ioctl's protoype on glibc systems.
31572         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31573         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31574         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31575         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31576         signature. If not, arrange to replace the ioctl function.
31577         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31578         REPLACE_IOCTL.
31579         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31580         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31581         Reported by Ludovic Courtès <ludo@gnu.org>.
31582
31583 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31584
31585         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31586         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31587         made it so grep -r --include=GLOB* ... did not work.
31588
31589 2010-03-26  Jim Meyering  <meyering@redhat.com>
31590             Eric Blake  <eblake@redhat.com>
31591
31592         maint.mk: prohibit use of test's -o and -a operators
31593         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31594
31595 2010-03-28  Bruno Haible  <bruno@clisp.org>
31596
31597         Remove unused GNULIB_XYZ macro definitions.
31598         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31599         invocation.
31600
31601 2010-03-28  Bruno Haible  <bruno@clisp.org>
31602
31603         Mark privileged tests modules.
31604         * modules/idpriv-drop-tests (Status): New section.
31605         * modules/idpriv-droptemp-tests (Status): New section.
31606
31607 2010-03-28  Bruno Haible  <bruno@clisp.org>
31608
31609         Split C++ tests into separate tests modules.
31610         * modules/dirent-c++-tests: New file, extracted from
31611         modules/dirent-tests.
31612         * modules/dirent-tests: Depend on it.
31613         * modules/fcntl-h-c++-tests: New file, extracted from
31614         modules/fcntl-h-tests.
31615         * modules/fcntl-h-tests: Depend on it.
31616         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31617         * modules/glob-tests: Depend on it.
31618         * modules/iconv-h-c++-tests: New file, extracted from
31619         modules/iconv-h-tests.
31620         * modules/iconv-h-tests: Depend on it.
31621         * modules/langinfo-c++-tests: New file, extracted from
31622         modules/langinfo-tests.
31623         * modules/langinfo-tests: Depend on it.
31624         * modules/locale-c++-tests: New file, extracted from
31625         modules/locale-tests.
31626         * modules/locale-tests: Depend on it.
31627         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31628         * modules/math-tests: Depend on it.
31629         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31630         * modules/pty-tests: Depend on it.
31631         * modules/search-c++-tests: New file, extracted from
31632         modules/search-tests.
31633         * modules/search-tests: Depend on it.
31634         * modules/signal-c++-tests: New file, extracted from
31635         modules/signal-tests.
31636         * modules/signal-tests: Depend on it.
31637         * modules/spawn-c++-tests: New file, extracted from
31638         modules/spawn-tests.
31639         * modules/spawn-tests: Depend on it.
31640         * modules/stdio-c++-tests: New file, extracted from
31641         modules/stdio-tests.
31642         * modules/stdio-tests: Depend on it.
31643         * modules/stdlib-c++-tests: New file, extracted from
31644         modules/stdlib-tests.
31645         * modules/stdlib-tests: Depend on it.
31646         * modules/string-c++-tests: New file, extracted from
31647         modules/string-tests.
31648         * modules/string-tests: Depend on it.
31649         * modules/sys_ioctl-c++-tests: New file, extracted from
31650         modules/sys_ioctl-tests.
31651         * modules/sys_ioctl-tests: Depend on it.
31652         * modules/sys_select-c++-tests: New file, extracted from
31653         modules/sys_select-tests.
31654         * modules/sys_select-tests: Depend on it.
31655         * modules/sys_socket-c++-tests: New file, extracted from
31656         modules/sys_socket-tests.
31657         * modules/sys_socket-tests: Depend on it.
31658         * modules/sys_stat-c++-tests: New file, extracted from
31659         modules/sys_stat-tests.
31660         * modules/sys_stat-tests: Depend on it.
31661         * modules/sys_time-c++-tests: New file, extracted from
31662         modules/sys_time-tests.
31663         * modules/sys_time-tests: Depend on it.
31664         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31665         * modules/time-tests: Depend on it.
31666         * modules/unistd-c++-tests: New file, extracted from
31667         modules/unistd-tests.
31668         * modules/unistd-tests: Depend on it.
31669         * modules/wchar-c++-tests: New file, extracted from
31670         modules/wchar-tests.
31671         * modules/wchar-tests: Depend on it.
31672         * modules/wctype-c++-tests: New file, extracted from
31673         modules/wctype-tests.
31674         * modules/wctype-tests: Depend on it.
31675         Reported by Simon Josefsson.
31676
31677 2010-03-28  Bruno Haible  <bruno@clisp.org>
31678
31679         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31680         * gnulib-tool (func_exists_module): New function, extracted from
31681         func_verify_module.
31682         (func_verify_module): Use it.
31683         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31684         'foo' only if 'foo' exists.
31685         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31686         module.
31687
31688 2010-03-28  Bruno Haible  <bruno@clisp.org>
31689
31690         gnulib-tool: Add support for special categories of tests.
31691         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31692         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31693         (func_usage): Document them.
31694         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31695         inc_unportable_tests, inc_all_tests): New variables.
31696         (func_acceptable): Consider these variables.
31697         (func_modules_transitive_closure): Make it work when the 'Status' field
31698         consists of multiple words.
31699         (func_import): Store and restore the values of inc_cxx_tests,
31700         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31701         inc_all_tests in gnulib-comp.m4.
31702         (func_create_testdir): Set inc_all_tests to true.
31703         * doc/gnulib.texi (Extra tests modules): New section.
31704         Suggested by Jim Meyering.
31705
31706 2010-03-28  Bruno Haible  <bruno@clisp.org>
31707
31708         ansi-c++-opt: Allow turning off the C++ build by default.
31709         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31710         gl_CXX_CHOICE_DEFAULT_NO is defined.
31711         Requested by Eric Blake.
31712
31713 2010-03-28  Bruno Haible  <bruno@clisp.org>
31714
31715         unistd: Avoid #define replacements in C++ mode.
31716         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31717         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31718         setsockopt, shutdown, select): In C++, attach a warning to the function
31719         if possible, rather than #defining the symbol to a dysfunctional alias.
31720         Reported by John W. Eaton <jwe@gnu.org>.
31721
31722 2010-03-28  Bruno Haible  <bruno@clisp.org>
31723
31724         Fix link errors on mingw.
31725         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31726         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31727         $(LIBSOCKET).
31728         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31729         $(LIBSOCKET).
31730
31731 2010-03-28  Bruno Haible  <bruno@clisp.org>
31732             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31733
31734         lib-ignore: Determine different options for different compilers.
31735         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31736         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31737         Add comments.
31738         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31739         * NEWS: Mention the change.
31740
31741 2010-03-27  Bruno Haible  <bruno@clisp.org>
31742
31743         Remove unused GNULIB_XYZ macro definitions.
31744         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31745         * modules/fseek (configure.ac): Likewise.
31746         * modules/ioctl (configure.ac): Likewise.
31747         * modules/open (configure.ac): Likewise.
31748         * modules/stdlib-safer (configure.ac): Likewise.
31749
31750 2010-03-27  Bruno Haible  <bruno@clisp.org>
31751
31752         Add a remark about certain modules.
31753         * modules/malloc (Comment): New section.
31754         * modules/realloc (Comment): Likewise.
31755         * modules/sigpipe (Comment): Likewise.
31756
31757 2010-03-27  Bruno Haible  <bruno@clisp.org>
31758
31759         Resolve conflict between the two kinds of module indicators.
31760         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31761         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31762         * modules/canonicalize (configure.ac): Invoke
31763         gl_MODULE_INDICATOR_FOR_TESTS.
31764         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31765         GNULIB_XYZ.
31766         * tests/test-dirent-c++.cc: Likewise.
31767         * tests/test-dirent-safer.c: Likewise.
31768         * tests/test-dup2.c: Likewise.
31769         * tests/test-fchdir.c: Likewise.
31770         * tests/test-fcntl-h-c++.cc: Likewise.
31771         * tests/test-getopt.c: Likewise.
31772         * tests/test-getopt.h: Likewise.
31773         * tests/test-langinfo-c++.cc: Likewise.
31774         * tests/test-locale-c++.cc: Likewise.
31775         * tests/test-math-c++.cc: Likewise.
31776         * tests/test-pty-c++.cc: Likewise.
31777         * tests/test-search-c++.cc: Likewise.
31778         * tests/test-signal-c++.cc: Likewise.
31779         * tests/test-spawn-c++.cc: Likewise.
31780         * tests/test-stdio-c++.cc: Likewise.
31781         * tests/test-stdlib-c++.cc: Likewise.
31782         * tests/test-string-c++.cc: Likewise.
31783         * tests/test-sys_ioctl-c++.cc: Likewise.
31784         * tests/test-sys_select-c++.cc: Likewise.
31785         * tests/test-sys_socket-c++.cc: Likewise.
31786         * tests/test-sys_stat-c++.cc: Likewise.
31787         * tests/test-sys_time-c++.cc: Likewise.
31788         * tests/test-time-c++.cc: Likewise.
31789         * tests/test-unistd-c++.cc: Likewise.
31790         * tests/test-wchar-c++.cc: Likewise.
31791         * tests/uninorm/test-u8-nfc.c: Likewise.
31792         * tests/uninorm/test-u8-nfd.c: Likewise.
31793         * tests/uninorm/test-u8-nfkc.c: Likewise.
31794         * tests/uninorm/test-u8-nfkd.c: Likewise.
31795         * tests/uninorm/test-u16-nfc.c: Likewise.
31796         * tests/uninorm/test-u16-nfd.c: Likewise.
31797         * tests/uninorm/test-u16-nfkc.c: Likewise.
31798         * tests/uninorm/test-u16-nfkd.c: Likewise.
31799         * tests/uninorm/test-u32-nfc.c: Likewise.
31800         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31801         * tests/uninorm/test-u32-nfd.c: Likewise.
31802         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31803         * tests/uninorm/test-u32-nfkc.c: Likewise.
31804         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31805         * tests/uninorm/test-u32-nfkd.c: Likewise.
31806         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31807         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31808
31809 2010-03-27  Bruno Haible  <bruno@clisp.org>
31810
31811         Distinguish two kinds of module indicators.
31812         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31813         gl_MODULE_INDICATOR.
31814         (gl_MODULE_INDICATOR): New macro.
31815         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31816         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31817         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31818         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31819         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31820         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31821         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31822         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31823         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31824         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31825         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31826         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31827         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31829         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31830         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31831         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31832         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31833         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31834         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31835         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31836         * modules/cloexec (configure.ac): Likewise.
31837         * modules/getopt-gnu (configure.ac): Likewise.
31838         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31839         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31840         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31841         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31842
31843 2010-03-27  Bruno Haible  <bruno@clisp.org>
31844
31845         New module description field 'Comment'.
31846         * gnulib-tool: New option --extract-comment.
31847         (func_usage): Document it.
31848         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31849         (func_get_comment): New function.
31850         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31851
31852 2010-03-27  Bruno Haible  <bruno@clisp.org>
31853
31854         Addendum to 2010-02-07 commit.
31855         * gnulib-tool (func_usage): Document --extract-applicability option.
31856
31857 2010-03-27  Bruno Haible  <bruno@clisp.org>
31858
31859         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31860         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31861         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31862         rather than link errors.
31863
31864 2010-03-27  Bruno Haible  <bruno@clisp.org>
31865
31866         Avoid side effects from tests-related modules on the compilation of lib.
31867         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31868         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31869         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31870         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31871         macro.
31872         (func_import): Define a witness macro. Assign it a value that depends
31873         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31874         tests-related modules.
31875         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31876         Reported by Jim Meyering.
31877
31878 2010-03-27  Bruno Haible  <bruno@clisp.org>
31879
31880         Factorize common .m4 code.
31881         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31882         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31883         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31884         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31885         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31886         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31887         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31888         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31889         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31890         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31891         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31892         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31893         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31894         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31895         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31896         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31897         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31898         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31900         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31901         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31902         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31903         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31904         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31905         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31906         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31907         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31908         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31909         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31910         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31911         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31912         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31913
31914 2010-03-27  Bruno Haible  <bruno@clisp.org>
31915
31916         Fix a compilation error on Cygwin with g++ >= 4.3.
31917         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31918         if it is undefined or if we alias it to chmod.
31919         (lstat): Don't warn about the use of this function if it is undefined
31920         or if we alias it to stat.
31921         Reported by Simon Josefsson.
31922
31923 2010-03-27  Bruno Haible  <bruno@clisp.org>
31924
31925         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31926         * modules/getlogin (configure.ac): Update.
31927
31928         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31929         * modules/getlogin_r (configure.ac): Update.
31930
31931         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31932         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31933         * modules/inet_ntop (configure.ac): Update.
31934
31935         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31936         * modules/inet_pton (configure.ac): Update.
31937
31938         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31939         * modules/mbslen (configure.ac): Update.
31940
31941         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31942         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31943         * modules/forkpty (configure.ac): Update.
31944         * modules/openpty (configure.ac): Update.
31945
31946 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31947
31948         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31949         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31950
31951 2010-03-25  Eric Blake  <eblake@redhat.com>
31952
31953         maint: use pragma consistently across replacement headers
31954         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31955         * lib/dirent.in.h (system_header): Likewise.
31956         * lib/errno.in.h (system_header): Likewise.
31957         * lib/float.in.h (system_header): Likewise.
31958         * lib/getopt.in.h (system_header): Likewise.
31959         * lib/iconv.in.h (system_header): Likewise.
31960         * lib/inttypes.in.h (system_header): Likewise.
31961         * lib/langinfo.in.h (system_header): Likewise.
31962         * lib/locale.in.h (system_header): Likewise.
31963         * lib/math.in.h (system_header): Likewise.
31964         * lib/netdb.in.h (system_header): Likewise.
31965         * lib/netinet_in.in.h (system_header): Likewise.
31966         * lib/pty.in.h (system_header): Likewise.
31967         * lib/sched.in.h (system_header): Likewise.
31968         * lib/se-selinux.in.h (system_header): Likewise.
31969         * lib/search.in.h (system_header): Likewise.
31970         * lib/spawn.in.h (system_header): Likewise.
31971         * lib/stdarg.in.h (system_header): Likewise.
31972         * lib/stdint.in.h (system_header): Likewise.
31973         * lib/string.in.h (system_header): Likewise.
31974         * lib/strings.in.h (system_header): Likewise.
31975         * lib/sys_file.in.h (system_header): Likewise.
31976         * lib/sys_ioctl.in.h (system_header): Likewise.
31977         * lib/sys_socket.in.h (system_header): Likewise.
31978         * lib/sys_times.in.h (system_header): Likewise.
31979         * lib/sys_utsname.in.h (system_header): Likewise.
31980         * lib/sys_wait.in.h (system_header): Likewise.
31981         * lib/sysexits.in.h (system_header): Likewise.
31982         * lib/unistd.in.h (system_header): Likewise.
31983         * lib/wctype.in.h (system_header): Likewise.
31984
31985         arpa/inet: fix mingw compilation warning
31986         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31987         Reported by Matthew Bolte.
31988
31989 2010-03-25  Bruno Haible  <bruno@clisp.org>
31990
31991         Avoid collision between gnulib wrapper and libintl wrapper.
31992         * lib/printf.c (printf): Don't define if a printf wrapper is already
31993         defined in intl/printf.c.
31994         Reported by Michel Boaventura <michel@michelboaventura.com>.
31995
31996 2010-03-25  Bruno Haible  <bruno@clisp.org>
31997
31998         Use ANSI C.
31999         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32000
32001 2010-03-25  Bruno Haible  <bruno@clisp.org>
32002
32003         Minor formatting changes.
32004         * lib/acosl.c: Insert space before function argument list.
32005         * lib/argz.c: Likewise.
32006         * lib/asinl.c: Likewise.
32007         * lib/expl.c: Likewise.
32008         * lib/gen-uni-tables.c: Likewise.
32009         * lib/gettext.h: Likewise.
32010         * lib/glthread/lock.h: Likewise.
32011         * lib/tanl.c: Likewise.
32012         * lib/uniname/uniname.c: Likewise.
32013         * tests/test-idpriv-drop.c: Likewise.
32014         * tests/test-idpriv-droptemp.c: Likewise.
32015         * tests/test-lock.c: Likewise.
32016         * tests/test-tls.c: Likewise.
32017         * lib/argp-help.c: Insert space before function-like macro argument
32018         list.
32019         * lib/memcmp.c: Likewise.
32020         * tests/test-base64.c: Likewise.
32021         * lib/localename.c: Insert space before sizeof's argument list.
32022         * lib/safe-alloc.h: Likewise.
32023         * lib/file-set.h: Insert space before macro argument list.
32024         * tests/test-argp.c: Likewise.
32025         * lib/argp-namefrob.h: Insert space before function parameter list.
32026         * lib/getaddrinfo.c: Likewise.
32027         * lib/netdb.in.h: Likewise.
32028         * lib/parse-duration.h: Likewise.
32029         * lib/parse-duration.c: Likewise.
32030         * lib/poll.c: Likewise.
32031         * lib/select.c: Likewise.
32032         * lib/trim.h: Likewise.
32033         * tests/test-usleep.c: Likewise.
32034         * lib/ldexpl.c: Insert space before function parameter list and before
32035         function argument list.
32036         * lib/logl.c: Likewise.
32037         * lib/sqrtl.c: Likewise.
32038         * lib/trim.c: Likewise.
32039         * lib/cosl.c: Use GNU style indentation. Insert space before function
32040         argument list.
32041         * lib/sinl.c: Likewise.
32042         * lib/tsearch.c: Insert space after 'for'.
32043         Reported by Jim Meyering.
32044
32045 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32046
32047         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32048         config header before grepping, as it's not present before
32049         autoreconf/configure are run.  Reported by Simon Josefsson.
32050
32051 2010-03-23  Bruno Haible  <bruno@clisp.org>
32052
32053         pt_chown: Make it work with automake < 1.11.
32054         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32055         Reported by Simon Josefsson.
32056
32057 2010-03-23  Bruno Haible  <bruno@clisp.org>
32058
32059         pt_chown: Don't depend on GPLed modules.
32060         * lib/pt_chown.c: Don't include idpriv.h.
32061         (main): Don't drop privileges.
32062         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32063         Reported by Simon Josefsson.
32064
32065 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32066
32067         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32068         suggestions from karl@freefriends.org (Karl Berry).
32069
32070 2010-03-22  Eric Blake  <eblake@redhat.com>
32071
32072         gethostname: further tweaks
32073         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32074         are overriding gethostname.
32075         Suggested by Bruno Haible.
32076
32077 2010-03-21  Bruno Haible  <bruno@clisp.org>
32078
32079         Fix comments.
32080         * lib/forkpty.c (rpl_forkpty): Fix comment.
32081         * lib/openpty.c (rpl_openpty): Likewise.
32082         Reported by Eric Blake.
32083
32084 2010-03-22  Eric Blake  <eblake@redhat.com>
32085
32086         gethostname: fix build on mingw
32087         * lib/unistd.in.h (includes): Work around fact that mingw
32088         <winsock2.h> re-includes <unistd.h>, by avoiding any
32089         redeclarations if we are being included by <winsock2.h>.
32090         Reported by Matthias Bolte.
32091
32092 2010-03-21  Bruno Haible  <bruno@clisp.org>
32093
32094         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32095         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32096         modifications.
32097         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32098         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32099         provide the replacement.
32100         * modules/forkpty (Depends-on): Add openpty, login_tty.
32101         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32102         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32103         * doc/glibc-functions/forkpty.texi: More supported platforms.
32104         * config/srclist.txt: Add forkpty.c (commented).
32105
32106 2010-03-21  Bruno Haible  <bruno@clisp.org>
32107
32108         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32109         (Makefile.am): Verify that PTY_LIB is defined.
32110
32111         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32112
32113 2010-03-21  Bruno Haible  <bruno@clisp.org>
32114
32115         Tests for module 'login_tty'.
32116         * modules/login_tty-tests: New file.
32117         * tests/test-login_tty.c: New file.
32118
32119         New module 'login_tty'.
32120         * lib/login_tty.c: New file.
32121         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32122         * modules/login_tty: New file.
32123         * doc/glibc-functions/login_tty.texi: Mention the new module.
32124
32125 2010-03-21  Bruno Haible  <bruno@clisp.org>
32126
32127         login_tty: Documentation.
32128         * doc/glibc-functions/login_tty.texi: New file.
32129         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32130
32131 2010-03-21  Bruno Haible  <bruno@clisp.org>
32132
32133         pty: Consistent macro naming.
32134         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32135         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32136         * modules/pty (configure.ac): Update.
32137
32138 2010-03-21  Bruno Haible  <bruno@clisp.org>
32139
32140         Tests for openpty: Make stricter.
32141         * tests/test-openpty.c (main): Add test of canonical processing and
32142         erase.
32143         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32144
32145         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32146         * lib/openpty.c (openpty): New replacement function.
32147         * lib/pty.in.h: Include <termios.h>.
32148         (openpty): Update declaration. Add comments.
32149         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32150         is not declared, arrange to provide the replacement. Check for _getpty
32151         and posix_openpt.
32152         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32153         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32154         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32155         * modules/pty-tests (test_pty_c___LDADD): New variable.
32156         * doc/glibc-functions/openpty.texi: More supported platforms.
32157
32158 2010-03-21  Bruno Haible  <bruno@clisp.org>
32159
32160         setenv: Tweaks.
32161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32162         the test program.
32163         * doc/posix-functions/setenv.texi: Update platforms list.
32164
32165 2010-03-21  Bruno Haible  <bruno@clisp.org>
32166
32167         New module 'unlockpt'.
32168         * lib/unlockpt.c: New file, from glibc with modifications.
32169         * m4/unlockpt.m4: New file.
32170         * modules/unlockpt: New file.
32171         * lib/stdlib.in.h (unlockpt): New declaration.
32172         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32173         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32174         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32175         HAVE_UNLOCKPT.
32176         * doc/posix-functions/unlockpt.texi: Mention the new module.
32177         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32178         * config/srclist.txt: Add unlockpt.c (commented).
32179
32180 2010-03-21  Jim Meyering  <meyering@redhat.com>
32181
32182         maint.mk: prohibit inclusion of "intprops.h" without use
32183         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32184
32185 2010-03-21  Bruno Haible  <bruno@clisp.org>
32186
32187         New module 'grantpt'.
32188         * lib/grantpt.c: New file, from glibc with modifications.
32189         * m4/grantpt.m4: New file.
32190         * modules/grantpt: New file.
32191         * lib/stdlib.in.h (grantpt): New declaration.
32192         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32193         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32194         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32195         HAVE_GRANTPT.
32196         * doc/posix-functions/grantpt.texi: Mention the new module.
32197         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32198         * config/srclist.txt: Add grantpt.c (commented).
32199
32200 2010-03-21  Bruno Haible  <bruno@clisp.org>
32201
32202         New module 'pt_chown'.
32203         * lib/pt_chown.c: New file, from glibc with modifications.
32204         * lib/pty-private.h: New file, from glibc with modifications.
32205         * modules/pt_chown: New file.
32206         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32207
32208 2010-03-21  Bruno Haible  <bruno@clisp.org>
32209
32210         Tests for module 'ptsname'.
32211         * modules/ptsname-tests: New file.
32212         * tests/test-ptsname.c: New file.
32213
32214         New module 'ptsname'.
32215         * lib/ptsname.c: New file, from glibc with modifications.
32216         * m4/ptsname.m4: New file.
32217         * modules/ptsname: New file.
32218         * lib/stdlib.in.h (ptsname): New declaration.
32219         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32220         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32221         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32222         HAVE_PTSNAME.
32223         * doc/posix-functions/ptsname.texi: Mention the new module.
32224         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32225         * config/srclist.txt: Add ptsname.c (commented).
32226
32227 2010-03-21  Bruno Haible  <bruno@clisp.org>
32228
32229         Tests for module 'ttyname_r'.
32230         * modules/ttyname_r-tests: New file.
32231         * tests/test-ttyname_r.c: New file.
32232
32233         New module 'ttyname_r'.
32234         * lib/ttyname_r.c: New file.
32235         * m4/ttyname_r.m4: New file.
32236         * modules/ttyname_r: New file.
32237         * lib/unistd.in.h (ttyname_r): New declaration.
32238         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32239         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32240         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32241         HAVE_TTYNAME_R.
32242         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32243         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32244
32245 2010-03-20  Bruno Haible  <bruno@clisp.org>
32246
32247         signal: Undefine macro definitions in C++ mode.
32248         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32249         sigfillset): Undefine macro definitions from the system header in C++
32250         mode.
32251         Reported by John W. Eaton <jwe@gnu.org>.
32252
32253 2010-03-20  Bruno Haible  <bruno@clisp.org>
32254
32255         Ensure no #include statements inside extern "C" { ... }.
32256         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32257         contain #include statements.
32258         * lib/time.in.h: Likewise.
32259
32260 2010-03-20  Bruno Haible  <bruno@clisp.org>
32261
32262         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32263         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32264         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32265         Reported by John W. Eaton <jwe@gnu.org>.
32266
32267 2010-03-20  Bruno Haible  <bruno@clisp.org>
32268
32269         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32270         Reported by Jim Meyering.
32271
32272 2010-03-20  Bruno Haible  <bruno@clisp.org>
32273
32274         pipe: Set errno upon failure.
32275         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32276         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32277         errno value in error message.
32278
32279 2010-03-20  Bruno Haible  <bruno@clisp.org>
32280             Jim Meyering  <meyering@redhat.com>
32281
32282         lchown: Avoid "unused variable" warning.
32283         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32284
32285 2010-03-20  Bruno Haible  <bruno@clisp.org>
32286
32287         Work around unlink() bug on MacOS X 10.5.6.
32288         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32289         attempting to unlink a parent directory.
32290         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32291         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32292         activate for the replacement function.
32293         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32294
32295 2010-03-20  Bruno Haible  <bruno@clisp.org>
32296
32297         Fix link errors on Solaris 8.
32298         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32299         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32300
32301 2010-03-19  Jim Meyering  <meyering@redhat.com>
32302
32303         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32304         The _LIBC implementation of build_range_exp correctly honors the
32305         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32306         However, the non-_LIBC implementation would ignore that syntax-bit
32307         flag and return REG_ERANGE unconditionally.
32308         This change makes it honor that flag.
32309         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32310         Make two pointer parameters "const".
32311         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32312         (parse_bracket_exp): Update caller.
32313
32314         regex.m4: correct the reversed range endpoint ([b-a]) test
32315         * m4/regex.m4: When requiring that [b-a] evoke failure,
32316         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32317         test pass once again for x86-based systems.
32318
32319 2010-03-19  Bruno Haible  <bruno@clisp.org>
32320
32321         scandir: Fix link error on Solaris 8.
32322         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32323         macros.
32324
32325 2010-03-19  Bruno Haible  <bruno@clisp.org>
32326
32327         getusershell: Fix documentation.
32328         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32329         module.
32330         * doc/glibc-functions/setusershell.texi: Likewise.
32331
32332         getusershell: Provide declaration, missing on Solaris 9.
32333         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32334         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32335         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32336         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32338         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32339         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32340         HAVE_GETUSERSHELL.
32341         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32342
32343 2010-03-19  Bruno Haible  <bruno@clisp.org>
32344
32345         wctype: Provide iswblank function.
32346         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32347         exists and is fine.
32348         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32349         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32350         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32351         * doc/posix-functions/iswblank.texi: Update.
32352
32353 2010-03-19  Bruno Haible  <bruno@clisp.org>
32354
32355         Tests of module 'pty' in C++ mode.
32356         * modules/pty-tests: New file.
32357         * tests/test-pty-c++.cc: New file.
32358         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32359
32360 2010-03-19  Eric Blake  <eblake@redhat.com>
32361
32362         logb: fix documentation
32363         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32364         1.5 declaration bug.
32365
32366         forkpty, openpty: prefer glibc's const-safe prototype
32367         * lib/forkpty.c (rpl_forkpty): New file.
32368         * lib/openpty.c (rpl_openpty): Likewise.
32369         * modules/forkpty (Files): Distribute it.
32370         * modules/openpty (Files): Likewise.
32371         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32372         check...
32373         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32374         replacement for for non-const BSD signature.
32375         * modules/pty (Makefile.am): Substitute witnesses.
32376         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32377         * tests/test-forkpty.c: Update signature check.
32378         * tests/test-openpty.c: Likewise.
32379         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32380         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32381
32382         forkpty, openpty: split functions into new modules
32383         * modules/pty (Makefile.am): Substitute new witnesses.
32384         (Libraries): Move library detection...
32385         * modules/forkpty: ...into new module.
32386         * modules/openpty: Another new module.
32387         * modules/pty-tests: Rename and split...
32388         * modules/forkpty-tests: ...to this...
32389         * modules/openpty-tests: ...and this.
32390         * tests/test-pty.c: Rename and split...
32391         * tests/test-forkpty.c: ...to this...
32392         * tests/test-openpty.c: ...and this.
32393         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32394         (gl_PTY): Split library searching...
32395         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32396         (gl_FORKPTY, gl_OPENPTY): New macros.
32397         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32398         * NEWS: Mention the split.
32399         * MODULES.html.sh (Misc): Document the modules.
32400         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32401         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32402
32403         pty: improve replacement header
32404         * lib/pty.in.h: New file.
32405         * modules/pty (Files): Ship it.
32406         (Makefile.am): Always build replacement.
32407         * m4/pty.m4: Rename...
32408         * m4/pty_h.m4: ...to this.
32409         (gl_PTY): Modernize setting of witness macros; update check of
32410         forkpty to take proper advantage of cache.
32411         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32412
32413         getopt: avoid compiler warning
32414         * lib/getopt.c (attribute_hidden): Remove unused macro.
32415
32416 2010-03-18  Bruno Haible  <bruno@clisp.org>
32417
32418         Fix link errors on Solaris 8.
32419         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32420         * modules/search-tests (test_search_c___LDADD): Likewise.
32421         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32422         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32423         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32424         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32425         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32426         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32427         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32428
32429 2010-03-18  Bruno Haible  <bruno@clisp.org>
32430
32431         Fix bug introduced on 2010-03-14.
32432         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32433         (gl_SPAWN_H): Require it.
32434         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32435         Reported by Simon Josefsson.
32436
32437 2010-03-18  Bruno Haible  <bruno@clisp.org>
32438
32439         Fix typo introduced on 2009-12-31.
32440         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32441         posix_spawn_file_actions_adddup2.
32442
32443 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32444         and Eric Blake  <eblake@redhat.com>
32445
32446         test-vc-list-files-git: make more robust
32447         * tests/test-vc-list-files-git.sh: Unset problematic environment
32448         variables.  Chain commands together.
32449
32450 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32451
32452         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32453         `AC_CHECK_DECL' invocation.
32454
32455 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32456
32457         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32458         appears before executable statements. Suggested by Petr Sumbera
32459         <Petr.Sumbera@Sun.COM>.
32460
32461 2010-03-14  Bruno Haible  <bruno@clisp.org>
32462
32463         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32464         portability problems. Instead use a simpler test.
32465         (main): Check that invalid arguments are rejected only on Linux.
32466
32467 2010-03-14  Bruno Haible  <bruno@clisp.org>
32468
32469         Fix bug introduced on 2009-12-31.
32470         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32471         gl_PREREQ_SYS_H_WINSOCK2 always.
32472         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32473         SYS_SOCKET_H variable.
32474         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32475         Update comments.
32476         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32477         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32478         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32479         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32480         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32481
32482 2010-03-14  Bruno Haible  <bruno@clisp.org>
32483
32484         Fix values returned by sinl, cosl.
32485         * lib/trigl.h: Add specification comments.
32486         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32487         that combines the values from the precomputed table with the values of
32488         the Chebyshev polynomials.
32489
32490 2010-03-14  Bruno Haible  <bruno@clisp.org>
32491
32492         Fix compilation error when modules 'posix_spawn[p]' are not used.
32493         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32494         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32495
32496 2010-03-14  Bruno Haible  <bruno@clisp.org>
32497
32498         Fix compilation error on mingw when module 'time_r' is not used.
32499         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32500         is 1.
32501         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32502         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32503         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32504         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32505
32506 2010-03-14  Bruno Haible  <bruno@clisp.org>
32507
32508         Fix compilation error with Sun C.
32509         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32510         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32511         instead of GCC specific ULONG_LONG_MAX.
32512         * lib/xstrtoll.c: Likewise.
32513         * lib/xstrtoull.c: Likewise.
32514
32515 2010-03-13  Bruno Haible  <bruno@clisp.org>
32516
32517         Allow the user to disable C++ code and tests.
32518         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32519         (gl_PROG_ANSI_CXX): Require it.
32520
32521 2010-03-13  Bruno Haible  <bruno@clisp.org>
32522
32523         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32524         cases.
32525
32526 2010-03-13  Bruno Haible  <bruno@clisp.org>
32527
32528         Test that gnulib does not break the standard C++ headers.
32529         * tests/test-locale-c++2.cc: New file.
32530         * modules/locale-tests (Files): Add it.
32531         (Makefile.am): Compile it for test-locale-c++.
32532         * tests/test-math-c++2.cc: New file.
32533         * modules/math-tests (Files): Add it.
32534         (Makefile.am): Compile it for test-math-c++.
32535         * tests/test-signal-c++2.cc: New file.
32536         * modules/signal-tests (Files): Add it.
32537         (Makefile.am): Compile it for test-signal-c++.
32538         * tests/test-stdio-c++2.cc: New file.
32539         * modules/stdio-tests (Files): Add it.
32540         (Makefile.am): Compile it for test-stdio-c++.
32541         * tests/test-stdlib-c++2.cc: New file.
32542         * modules/stdlib-tests (Files): Add it.
32543         (Makefile.am): Compile it for test-stdlib-c++.
32544         * tests/test-string-c++2.cc: New file.
32545         * modules/string-tests (Files): Add it.
32546         (Makefile.am): Compile it for test-string-c++.
32547         * tests/test-time-c++2.cc: New file.
32548         * modules/time-tests (Files): Add it.
32549         (Makefile.am): Compile it for test-time-c++.
32550         Reported by John W. Eaton <jwe@gnu.org>.
32551
32552 2010-03-13  Bruno Haible  <bruno@clisp.org>
32553
32554         * gnulib-tool (func_usage): Clarify which options are available for
32555         --create-testdir and --create-megatestdir.
32556
32557 2010-03-13  Bruno Haible  <bruno@clisp.org>
32558
32559         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32560         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32561         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32562         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32563         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32564         when appropriate.
32565         Reported by Jim Meyering.
32566
32567 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32568
32569         * gnulib-tool (func_import): Explain origin of code.
32570
32571 2010-03-12  Bruno Haible  <bruno@clisp.org>
32572
32573         Fix problem with automake's definition of CXXLINK.
32574         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32575         Reported by Simon Josefsson and Ludovic Courtès.
32576
32577 2010-03-12  Bruno Haible  <bruno@clisp.org>
32578
32579         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32580         stable releases.
32581
32582 2010-03-11  Bruno Haible  <bruno@clisp.org>
32583
32584         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32585         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32586         whether the system provides one variant or multiple variants of the
32587         function.
32588         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32589         C++ compilers.
32590         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32591         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32592         Reported by Jim Meyering.
32593
32594 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32595
32596         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32597
32598 2010-03-08  Bruno Haible  <bruno@clisp.org>
32599
32600         gnulib-tool: Add support for --libtool in --create-testdir.
32601         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32602         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32603
32604 2010-03-08  Eric Blake  <eblake@redhat.com>
32605
32606         gnulib-tool.texi: mention possibility of git submodule
32607         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32608         submodules.
32609         * doc/.gitignore: Ignore another generated file.
32610
32611 2010-03-08  Karl Berry  <karl@gnu.org>
32612
32613         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32614         of committing gnulib files while skipping others.
32615
32616 2010-03-07  Bruno Haible  <bruno@clisp.org>
32617
32618         Tests of module 'wctype' in C++ mode.
32619         * tests/test-wctype-c++.cc: New file.
32620         * modules/wctype-tests (Files): Add it and tests/signature.h.
32621         (Depends-on): Add ansi-c++-opt.
32622         (Makefile.am): Arrange to compile and run test-wctype-c++.
32623
32624         Tests of module 'wchar' in C++ mode.
32625         * tests/test-wchar-c++.cc: New file.
32626         * modules/wchar-tests (Files): Add it and tests/signature.h.
32627         (Depends-on): Add ansi-c++-opt.
32628         (Makefile.am): Arrange to compile and run test-wchar-c++.
32629         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32630         gl_MODULE_INDICATOR.
32631
32632         Tests of module 'unistd' in C++ mode.
32633         * tests/test-unistd-c++.cc: New file.
32634         * modules/unistd-tests (Files): Add it and tests/signature.h.
32635         (Depends-on): Add ansi-c++-opt.
32636         (Makefile.am): Arrange to compile and run test-unistd-c++.
32637         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32638         gl_MODULE_INDICATOR.
32639
32640         Tests of module 'time' in C++ mode.
32641         * tests/test-time-c++.cc: New file.
32642         * modules/time-tests (Files): Add it and tests/signature.h.
32643         (Depends-on): Add ansi-c++-opt.
32644         (Makefile.am): Arrange to compile and run test-time-c++.
32645         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32646
32647         Tests of module 'sys_time' in C++ mode.
32648         * tests/test-sys_time-c++.cc: New file.
32649         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32650         (Depends-on): Add ansi-c++-opt.
32651         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32652         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32653         gl_MODULE_INDICATOR.
32654
32655         Tests of module 'sys_stat' in C++ mode.
32656         * tests/test-sys_stat-c++.cc: New file.
32657         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32658         (Depends-on): Add ansi-c++-opt.
32659         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32660         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32661         gl_MODULE_INDICATOR.
32662
32663         Tests of module 'sys_socket' in C++ mode.
32664         * tests/test-sys_socket-c++.cc: New file.
32665         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32666         (Depends-on): Add ansi-c++-opt.
32667         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32668         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32669         gl_MODULE_INDICATOR.
32670
32671         Tests of module 'sys_select' in C++ mode.
32672         * tests/test-sys_select-c++.cc: New file.
32673         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32674         (Depends-on): Add ansi-c++-opt.
32675         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32676         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32677         gl_MODULE_INDICATOR.
32678
32679         Tests of module 'sys_ioctl' in C++ mode.
32680         * tests/test-sys_ioctl-c++.cc: New file.
32681         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32682         (Depends-on): Add ansi-c++-opt.
32683         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32684         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32685         gl_MODULE_INDICATOR.
32686
32687         Tests of module 'string' in C++ mode.
32688         * tests/test-string-c++.cc: New file.
32689         * modules/string-tests (Files): Add it and tests/signature.h.
32690         (Depends-on): Add ansi-c++-opt.
32691         (Makefile.am): Arrange to compile and run test-string-c++.
32692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32693         gl_MODULE_INDICATOR.
32694
32695         Tests of module 'stdlib' in C++ mode.
32696         * tests/test-stdlib-c++.cc: New file.
32697         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32698         (Depends-on): Add ansi-c++-opt.
32699         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32700         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32701         gl_MODULE_INDICATOR.
32702
32703         Tests of module 'stdio' in C++ mode.
32704         * tests/test-stdio-c++.cc: New file.
32705         * modules/stdio-tests (Files): Add it and tests/signature.h.
32706         (Depends-on): Add ansi-c++-opt.
32707         (Makefile.am): Arrange to compile and run test-stdio-c++.
32708         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32709         gl_MODULE_INDICATOR.
32710
32711         Tests of module 'spawn' in C++ mode.
32712         * tests/test-spawn-c++.cc: New file.
32713         * modules/spawn-tests (Files): Add it and tests/signature.h.
32714         (Depends-on): Add ansi-c++-opt.
32715         (Makefile.am): Arrange to compile and run test-spawn-c++.
32716         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32717         gl_MODULE_INDICATOR.
32718
32719         Tests of module 'signal' in C++ mode.
32720         * tests/test-signal-c++.cc: New file.
32721         * modules/signal-tests (Files): Add it and tests/signature.h.
32722         (Depends-on): Add ansi-c++-opt.
32723         (Makefile.am): Arrange to compile and run test-signal-c++.
32724         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32725         gl_MODULE_INDICATOR.
32726
32727         Tests of module 'search' in C++ mode.
32728         * tests/test-search-c++.cc: New file.
32729         * modules/search-tests (Files): Add it and tests/signature.h.
32730         (Depends-on): Add ansi-c++-opt.
32731         (Makefile.am): Arrange to compile and run test-search-c++.
32732         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32733         gl_MODULE_INDICATOR.
32734
32735         Tests of module 'math' in C++ mode.
32736         * tests/test-math-c++.cc: New file.
32737         * modules/math-tests (Files): Add it and tests/signature.h.
32738         (Depends-on): Add ansi-c++-opt.
32739         (Makefile.am): Arrange to compile and run test-math-c++.
32740         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32741
32742         Tests of module 'locale' in C++ mode.
32743         * tests/test-locale-c++.cc: New file.
32744         * modules/locale-tests (Files): Add it and tests/signature.h.
32745         (Depends-on): Add ansi-c++-opt.
32746         (Makefile.am): Arrange to compile and run test-locale-c++.
32747         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32748         gl_MODULE_INDICATOR.
32749
32750         Tests of module 'langinfo' in C++ mode.
32751         * tests/test-langinfo-c++.cc: New file.
32752         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32753         (Depends-on): Add ansi-c++-opt.
32754         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32755         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32756         gl_MODULE_INDICATOR.
32757
32758         Tests of module 'iconv-h' in C++ mode.
32759         * tests/test-iconv-h-c++.cc: New file.
32760         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32761         (Depends-on): Add ansi-c++-opt.
32762         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32763
32764         Tests of module 'glob' in C++ mode.
32765         * tests/test-glob-c++.cc: New file.
32766         * modules/glob-tests (Files): Add it.
32767         (Depends-on): Add ansi-c++-opt.
32768         (Makefile.am): Arrange to compile and run test-glob-c++.
32769
32770         Tests of module 'fcntl-h' in C++ mode.
32771         * tests/test-fcntl-h-c++.cc: New file.
32772         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32773         (Depends-on): Add ansi-c++-opt.
32774         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32775         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32776         gl_MODULE_INDICATOR.
32777
32778         Tests of module 'dirent' in C++ mode.
32779         * tests/test-dirent-c++.cc: New file.
32780         * modules/dirent-tests (Files): Add it and tests/signature.h.
32781         (Depends-on): Add ansi-c++-opt.
32782         (Makefile.am): Arrange to compile and run test-dirent-c++.
32783         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32784         gl_MODULE_INDICATOR.
32785
32786         New module 'ansi-c++-opt'.
32787         * modules/ansi-c++-opt: New file.
32788         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32789
32790         Document C++ namespace mode.
32791         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32792
32793         wctype: Avoid #define replacements in C++ mode.
32794         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32795         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32796         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32797         In C++, define a namespaced alias symbol.
32798         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32799         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32800         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32801         rule.
32802
32803         wchar: Avoid #define replacements in C++ mode.
32804         * lib/wchar.in.h: Include c++defs.h.
32805         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32806         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32807         symbol.
32808         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32809         * modules/wchar (Depends-on): Add c++defs.
32810         (Makefile.am): Update wchar.h rule.
32811
32812         unistd: Avoid #define replacements in C++ mode.
32813         * lib/unistd.in.h: Include c++defs.h.
32814         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32815         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32816         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32817         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32818         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32819         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32820         symbol.
32821         (environ): Update.
32822         * modules/unistd (Depends-on): Add c++defs.
32823         (Makefile.am): Update unistd.h rule.
32824
32825         time: Avoid #define replacements in C++ mode.
32826         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32827         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32828         define a namespaced alias symbol.
32829         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32830         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32831         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32832         * modules/time (Depends-on): Add c++defs, warn-on-use.
32833         (Makefile.am): Update time.h rule.
32834         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32835         * modules/nanosleep (configure.ac): Likewise.
32836         * modules/strptime (configure.ac): Likewise.
32837         * modules/timegm (configure.ac): Likewise.
32838
32839         sys_time: Avoid #define replacements in C++ mode.
32840         * lib/sys_time.in.h: Include c++defs.h.
32841         (gettimeofday): In C++, define a namespaced alias symbol.
32842         * modules/sys_time (Depends-on): Add c++defs.
32843         (Makefile.am): Update sys/time.h rule.
32844
32845         sys_stat: Avoid #define replacements in C++ mode.
32846         * lib/sys_stat.in.h: Include c++defs.h.
32847         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32848         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32849         namespaced alias symbol.
32850         In C++, define a namespaced alias symbol.
32851         * modules/sys_stat (Depends-on): Add c++defs.
32852         (Makefile.am): Update sys/stat.h rule.
32853
32854         sys_socket: Avoid #define replacements in C++ mode.
32855         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32856         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32857         definitions also when the system has a <sys/socket.h>.
32858         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32859         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32860         In C++, define a namespaced alias symbol.
32861         * modules/sys_socket (Depends-on): Add c++defs.
32862         (Makefile.am): Update sys/socket.h rule.
32863
32864         sys_select: Avoid #define replacements in C++ mode.
32865         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32866         definitions also when the system has a <sys/select.h>.
32867         (select): In C++, define a namespaced alias symbol.
32868         * modules/sys_select (Depends-on): Add c++defs.
32869         (Makefile.am): Update sys/select.h rule.
32870
32871         sys_ioctl: Avoid #define replacements in C++ mode.
32872         * lib/sys_ioctl.in.h: Include c++defs.h.
32873         (ioctl): In C++, define a namespaced alias symbol.
32874         * modules/sys_ioctl (Depends-on): Add c++defs.
32875         (Makefile.am): Update sys/ioctl.h rule.
32876
32877         string: Avoid #define replacements in C++ mode.
32878         * lib/string.in.h: Include c++defs.h.
32879         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32880         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32881         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32882         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32883         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32884         * modules/string (Depends-on): Add c++defs.
32885         (Makefile.am): Update string.h rule.
32886
32887         stdlib: Avoid #define replacements in C++ mode.
32888         * lib/stdlib.in.h: Include c++defs.h.
32889         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32890         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32891         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32892         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32893         symbol.
32894         * modules/stdlib (Depends-on): Add c++defs.
32895         (Makefile.am): Update stdlib.h rule.
32896
32897         stdio: Avoid #define replacements in C++ mode.
32898         * lib/stdio.in.h: Include c++defs.h.
32899         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32900         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32901         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32902         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32903         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32904         namespaced alias symbol.
32905         * modules/stdio (Depends-on): Add c++defs.
32906         (Makefile.am): Update stdio.h rule.
32907
32908         spawn: Avoid #define replacements in C++ mode.
32909         * lib/spawn.in.h: Include c++defs.h.
32910         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32911         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32912         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32913         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32914         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32915         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32916         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32917         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32918         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32919         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32920         In C++, define a namespaced alias symbol.
32921         * modules/spawn (Depends-on): Add c++defs.
32922         (Makefile.am): Update spawn.h rule.
32923
32924         signal: Avoid #define replacements in C++ mode.
32925         * lib/signal.in.h: Include c++defs.h.
32926         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32927         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32928         namespaced alias symbol.
32929         * modules/signal (Depends-on): Add c++defs.
32930         (Makefile.am): Update signal.h rule.
32931
32932         search: Avoid #define replacements in C++ mode.
32933         * lib/search.in.h: Include c++defs.h.
32934         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32935         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32936         symbol.
32937         * modules/search (Depends-on): Add c++defs.
32938         (Makefile.am): Update search.h rule.
32939
32940         math: Avoid #define replacements in C++ mode.
32941         * lib/math.in.h: Include c++defs.h.
32942         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32943         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32944         trunc, truncl): In C++, define a namespaced alias symbol.
32945         * modules/math (Depends-on): Add c++defs.
32946         (Makefile.am): Update math.h rule.
32947
32948         locale: Avoid #define replacements in C++ mode.
32949         * lib/locale.in.h: Include c++defs.h.
32950         (duplocale): In C++, define a namespaced alias symbol.
32951         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32952         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32953         * modules/locale (Depends-on): Add c++defs.
32954         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32955
32956         langinfo: Avoid #define replacements in C++ mode.
32957         * lib/langinfo.in.h: Include c++defs.h.
32958         (nl_langinfo): In C++, define a namespaced alias symbol.
32959         * modules/langinfo (Depends-on): Add c++defs.
32960         (Makefile.am): Update langinfo.h rule.
32961
32962         iconv-h: Avoid #define replacements in C++ mode.
32963         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32964         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32965         symbol.
32966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32967         whenever iconv is present.
32968         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32969         (Makefile.am): Update iconv.h rule.
32970
32971         glob: Avoid #define replacements in C++ mode.
32972         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32973         (_gl_glob_errfunc_fn): New type.
32974         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32975         symbol.
32976         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32977         (Makefile.am): Update glob.h rule.
32978
32979         fcntl-h: Avoid #define replacements in C++ mode.
32980         * lib/fcntl.in.h: Include c++defs.h.
32981         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32982         * modules/fcntl-h (Depends-on): Add c++defs.
32983         (Makefile.am): Update fcntl.h rule.
32984
32985         dirent: Avoid #define replacements in C++ mode.
32986         * lib/dirent.in.h: Include c++defs.h.
32987         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32988         namespaced alias symbol.
32989         (dirfd): Update declaration.
32990         * modules/dirent (Depends-on): Add c++defs.
32991         (Makefile.am): Update dirent.h rule.
32992
32993         ctype: Make it usable in C++ code.
32994         * lib/ctype.in.h: Include c++defs.h.
32995         (isblank): Declare as extern "C".
32996         * modules/ctype (Depends-on): Add c++defs.
32997         (Makefile.am): Update ctype.h rule.
32998
32999         New module 'c++defs'.
33000         * modules/c++defs: New file.
33001         * build-aux/c++defs.h: New file.
33002         Reported by John W. Eaton <jwe@gnu.org>.
33003
33004 2010-03-07  Bruno Haible  <bruno@clisp.org>
33005
33006         logb: Provide missing declaration for Cygwin.
33007         * lib/math.in.h (logb): New declaration.
33008         * m4/logb.m4: New file.
33009         * modules/logb (Files): Add m4/logb.m4.
33010         (Depends-on): Add math.
33011         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33012         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33014         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33015         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33016
33017 2010-03-07  Bruno Haible  <bruno@clisp.org>
33018
33019         Fix test-cond link error.
33020         * tests/test-cond.c: Include <stdio.h>.
33021
33022 2010-03-07  Bruno Haible  <bruno@clisp.org>
33023
33024         Fix test-dirent-safer link error.
33025         * modules/dirent-safer-tests (Makefile.am): Define
33026         test_dirent_safer_LDADD.
33027
33028 2010-03-07  Bruno Haible  <bruno@clisp.org>
33029
33030         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33031         among default module list.
33032
33033 2010-03-07  Bruno Haible  <bruno@clisp.org>
33034
33035         Fix link error on platforms with GNU libiconv.
33036         * modules/unistr/u8-strcoll-tests (Makefile): Define
33037         test_u8_strcoll_LDADD.
33038         * modules/unistr/u16-strcoll-tests (Makefile): Define
33039         test_u16_strcoll_LDADD.
33040         * modules/unistr/u32-strcoll-tests (Makefile): Define
33041         test_u32_strcoll_LDADD.
33042
33043 2010-03-07  Bruno Haible  <bruno@clisp.org>
33044
33045         Use POSIX declarations for socket functions.
33046         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33047         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33048         rpl_sendto): Change declaration to match POSIX.
33049         * lib/connect.c (rpl_connect): Likewise.
33050         * lib/accept.c (rpl_accept): Likewise.
33051         * lib/bind.c (rpl_bind): Likewise.
33052         * lib/getpeername.c (rpl_getpeername): Likewise.
33053         * lib/getsockname.c (rpl_getsockname): Likewise.
33054         * lib/recv.c (rpl_recv): Likewise.
33055         * lib/send.c (rpl_send): Likewise.
33056         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33057         * lib/sendto.c (rpl_sendto): Likewise.
33058
33059 2010-03-06  Bruno Haible  <bruno@clisp.org>
33060
33061         Clarify access, euidaccess, faccessat.
33062         * doc/posix-functions/faccessat.texi: Mention security problem under
33063         "Other problems", not "Portability problems".
33064         * doc/posix-functions/access.texi: Likewise. Mention a related security
33065         problem.
33066         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33067         * lib/euidaccess.c: Add comments about platforms.
33068         * lib/unistd.in.h (access, euidaccess): Add warnings.
33069
33070 2010-03-07  Bruno Haible  <bruno@clisp.org>
33071
33072         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33073         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33074         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33075         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33076         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33077         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33078         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33079         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33080         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33081         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33082         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33083         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33084         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33085         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33086         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33087         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33088         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33089         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33090         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33091         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33092         Likewise.
33093         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33094         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33095         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33096         Likewise.
33097         * tests/test-spawn.c (main): Make it work when
33098         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33099
33100 2010-03-07  Bruno Haible  <bruno@clisp.org>
33101
33102         Fix incorrect Makefile.am generation in German locale.
33103         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33104         Execute sed command with character range in C locale.
33105
33106 2010-03-06  Bruno Haible  <bruno@clisp.org>
33107
33108         Tests for module 'iconv-h'.
33109         * modules/iconv-h-tests: New file.
33110         * tests/test-iconv-h.c: New file.
33111
33112         New module 'iconv-h'.
33113         * modules/iconv-h: New file.
33114         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33115         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33116         (configure.ac): Remove gl_ICONV_H.
33117         (Makefile.am): Remove rule for iconv.h.
33118
33119 2010-03-06  Bruno Haible  <bruno@clisp.org>
33120
33121         More consistent naming of *.m4 files.
33122         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33123         * modules/wctype (Files): Update.
33124
33125         More consistent naming of *.m4 files.
33126         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33127         * modules/wchar (Files): Update.
33128
33129 2010-03-06  Jim Meyering  <meyering@redhat.com>
33130
33131         euidaccess: relax license to LGPLv2+
33132         * modules/euidaccess (License): Relax to LGPLv2+.
33133
33134 2010-03-06  Bruno Haible  <bruno@clisp.org>
33135
33136         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33137         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33138         (Makefile.am): Augment lib_SOURCES instead.
33139
33140 2010-03-04  Jim Meyering  <meyering@redhat.com>
33141
33142         utime: remove obsolete module
33143         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33144         unnecessary for years, and has been marked as obsolete for 10 months.
33145         * modules/utime: Remove file.
33146         * lib/utime.c: Remove file.
33147         * m4/utime.m4: Remove file.
33148         * m4/utimes-null.m4: Remove file.
33149         * doc/posix-functions/utime.texi (utime): Remove reference to
33150         the module.  Move the sole "fixed by gnulib" item into the
33151         "problems not fixed by Gnulib" list.
33152         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33153
33154 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33155
33156         * modules/exit (License): Relax license to LGPLv2+.
33157         (Status): Mark as obsolete.
33158         * NEWS: Mention deprecated 'exit' module.
33159         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33160         of now obsolete 'exit'.
33161
33162 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33163
33164         fts-lgpl: remove unused module
33165         * modules/fts-lgpl: Remove.
33166         * MODULES.html.sh (func_all_modules): Adjust.
33167         * check-module (find_included_lib_files): Adjust.
33168         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33169
33170 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33171
33172         copy-acl: enhance Solaris ACL error handling
33173         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33174         * lib/set-mode-acl.c (qset_acl): Likewise.
33175
33176 2010-03-02  Bruno Haible  <bruno@clisp.org>
33177
33178         spawn: Don't override the system defined values on FreeBSD 8.
33179         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33180         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33181         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33182         if HAVE_POSIX_SPAWN is 1.
33183         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33184
33185 2010-03-01  Bruno Haible  <bruno@clisp.org>
33186
33187         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33188         regarding Automake.
33189
33190 2010-02-25  Bruno Haible  <bruno@clisp.org>
33191
33192         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33193         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33194         setting, not afterwards.
33195         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33196
33197 2010-02-24  Eric Blake  <eblake@redhat.com>
33198
33199         bootstrap, git-version-gen: use timestamp
33200         * build-aux/git-version-gen (scriptversion): Force UTC.
33201         * build-aux/bootstrap (scriptversion): New variable.
33202
33203         bootstrap: allow older git
33204         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33205         older than 1.6.4.  Requested by the libvirt project.
33206
33207 2010-02-23  Eric Blake  <eblake@redhat.com>
33208
33209         warn-on-use: work with old autoconf
33210         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33211         AS_VAR semantics of autoconf 2.60.
33212         Reported by Bruno Haible.
33213
33214         bootstrap: improve some comments
33215         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33216         clarification comments.
33217
33218         gettimeofday: provide correct function
33219         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33220         when replacement is declared, otherwise provide gettimeofday.
33221         Reported by Michael Goffioul.
33222
33223 2010-02-23  Jim Meyering  <meyering@redhat.com>
33224
33225         lib-ignore: relax license to "unlimited", not LGPLv2+
33226         * modules/lib-ignore (License): Relax to "unlimited".
33227
33228 2010-02-23  Jim Meyering  <meyering@redhat.com>
33229
33230         lib-ignore: relax license to LGPLv2+
33231         * modules/lib-ignore (License): Relax to LGPLv2+.
33232
33233 2010-02-22  Eric Blake  <eblake@redhat.com>
33234
33235         lseek: avoid bash 3.2 broken pipe bug
33236         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33237         warning from bash 3.2.
33238         Reported by Ben Pfaff, with analysis from Bruno Haible.
33239
33240         bootstrap: support non-FSF copyright holder
33241         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33242         bootstrap.conf override of COPYRIGHT_HOLDER.
33243         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33244
33245         bootstrap: interoperate with gettext 0.14.1
33246         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33247
33248         bootstrap: allow for alternate submodule location
33249         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33250         hardcoding submodule location.
33251         (gnulib_mk): Allow direct use of Makefile.am.
33252
33253         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33254         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33255         rather than reconfiguring where the submodule points.
33256
33257         gettimeofday: restore support for platforms that lack function
33258         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33259         replacement if function is missing.
33260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33261         * modules/sys_time (Makefile.am): Substitute it.
33262         * lib/sys_time.in.h (gettimeofday): Check it.
33263         Reported by Michael Goffioul.
33264
33265 2010-02-21  Bruno Haible  <bruno@clisp.org>
33266
33267         * lib/stdio.in.h (obstack_printf): Fix typo.
33268
33269 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33270
33271         vc-list-files: use bzr ls's -R option
33272         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33273         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33274
33275 2010-02-21  Jim Meyering  <meyering@redhat.com>
33276
33277         init.sh: fix EXEEXT shims to work also for names like test-prog
33278         * tests/init.sh: Re-exec a better shell, when needed.
33279         If the current shell lacks support for posix $(...), an init.sh-using
33280         test will now try to find a shell that supports that.  If EXEEXT is
33281         nonempty, we also require support for hyphen-in-alias-name and shell
33282         substitutions like ${var#glob}.  Failure to find such a shell results
33283         in a skipped test.
33284
33285 2010-02-21  Bruno Haible  <bruno@clisp.org>
33286
33287         Really work around around "broken pipe" error message from bash 3.2.
33288         * gnulib-tool (func_reset_sigpipe): Remove function.
33289         (echo): In bash 3.2, define to a function that uses printf.
33290         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33291
33292 2010-02-20  Bruno Haible  <bruno@clisp.org>
33293
33294         Restore support for automake 1.9.6 with autoconf 2.61.
33295         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33296         Reported by James Youngman <jay@gnu.org>.
33297
33298 2010-02-20  Bruno Haible  <bruno@clisp.org>
33299
33300         Improve *printf warning condition.
33301         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33302         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33303         and the function is overridden due to SIGPIPE emulation.
33304
33305 2010-02-20  Bruno Haible  <bruno@clisp.org>
33306
33307         * lib/stdio.in.h: Tweak comments.
33308
33309 2010-02-19  Bruno Haible  <bruno@clisp.org>
33310
33311         Make it easier to find modules. New gnulib-tool option '--find'.
33312         * gnulib-tool: New option --find.
33313         (func_usage): Document it.
33314         (func_sanitize_modulelist): New function, extracted from
33315         func_all_modules.
33316         (func_all_modules): Invoke it.
33317         * doc/gnulib-tool.texi (Which modules?): New node.
33318
33319 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33320
33321         * lib/sys_select.in.h: Provide select replacement even if
33322         sys/select.h exists on a system, for Interix.
33323
33324 2010-02-18  Jim Meyering  <meyering@redhat.com>
33325
33326         init.sh: don't use $(...) just yet
33327         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33328         to accommodate e.g., Solaris' /bin/sh.
33329
33330 2010-02-17  Bruno Haible  <bruno@clisp.org>
33331
33332         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33333         Reported by Ludovic Courtès <ludo@gnu.org>.
33334
33335 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33336
33337         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33338         linking with -lintl.
33339
33340 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33341
33342         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33343         if not provided by the system's netdb.h.  Reported by
33344         ludo@gnu.org (Ludovic Courtès).
33345
33346 2010-02-15  Jim Meyering  <meyering@redhat.com>
33347
33348         init.sh: improve portability and efficiency
33349         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33350         "dummy" in a for loop.
33351         Use '!', not '^' to select the complement of a character set used
33352         in a "case" statement.
33353         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33354         Suggestions from Eric Blake.
33355
33356         init.sh: automatically accommodate programs with the .exe suffix
33357         Automatically arrange for an invocation of "prog" to execute the
33358         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33359         may use the simpler "prog", yet still work when built on a system
33360         that requires specifying the added suffix.
33361         Do this by constructing a function named "prog" that invokes
33362         "prog.exe" for each .exe file in selected directories.
33363         * tests/init.sh (find_exe_basenames_): New function.
33364         (create_exe_shim_functions_): New function.
33365         (path_prepend_): Use it.
33366
33367         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33368         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33369         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33370
33371 2010-02-14  Jim Meyering  <meyering@redhat.com>
33372
33373         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33374         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33375         (sc_prohibit_hash_pjw_without_use): New rule.
33376
33377         maint.mk: allow the default upload destination dir to be overridden
33378         * top/maint.mk (upload_dest_dir_): Define with a default that
33379         preserves the status quo.
33380         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33381         Reported by Peter Simons.
33382
33383         maint.mk: prohibit inclusion of "hash.h" without_use
33384         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33385
33386 2010-02-10  Jim Meyering  <meyering@redhat.com>
33387
33388         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33389         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33390
33391 2010-02-09  Eric Blake  <ebb9@byu.net>
33392         and Bruno Haible  <bruno@clisp.org>
33393
33394         obstack-printf-posix: ensure declaration
33395         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33396         extracted from gl_FUNC_OBSTACK_PRINTF.
33397         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33398         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33399         Likewise.
33400         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33401         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33402         0.
33403
33404 2010-02-08  Bruno Haible  <bruno@clisp.org>
33405
33406         gnulib-tool: Fix typo in 2010-02-07 commit.
33407         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33408         Reported by Eric Blake.
33409
33410 2010-02-07  Bruno Haible  <bruno@clisp.org>
33411
33412         gnulib-tool: Fix up caching patches.
33413         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33414         option --no-cache. Use associative arrays when supported by the shell.
33415         (sed_comments): New variable.
33416         (modcache): Renamed from do_cache.
33417         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33418         abbreviate unnecessarily.
33419         (have_associative): New variable.
33420         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33421         way also for ksh and zsh.
33422         (func_init_sed_convert_to_cache_statements): New function, extracted
33423         from func_cache_lookup_module. Add support for associative arrays.
33424         Don't set the c_MODULE_cached variable here. Ignore all lines before
33425         the first field header. Remove only the final newline, not all trailing
33426         newlines. Support empty fields correctly. Limit the use of 'eval' to
33427         assignments.
33428         (func_get_description, func_get_status, func_get_notice,
33429         func_get_applicability, func_get_filelist, func_get_dependencies,
33430         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33431         func_get_automake_snippet, func_get_include_directive,
33432         func_get_link_directive, func_get_license, func_get_maintainer):
33433         Update documentation. List the unoptimized code first. Add support for
33434         associative arrays. Limit the use of 'eval' to assignments.
33435         (func_get_applicability): Undo stylistic pessimisations.
33436         (func_get_automake_snippet, func_get_include_directive): Reduce code
33437         duplication.
33438         (func_modules_transitive_closure, func_modules_add_dummy,
33439         func_modules_notice, func_modules_to_filelist, func_add_file,
33440         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33441         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33442         func_create_testdir, func_create_megatestdir): Update documentation.
33443
33444 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33445
33446         * gnulib-tool (func_cache_lookup_module): Store the module name
33447         belonging to the cache variable; error out if two different
33448         module names map to the same cache variable name.
33449
33450 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33451
33452         gnulib-tool: Make caching optional.
33453         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33454         Update matching short versions of --no-changelog.
33455         (func_usage): Update.
33456         (sed_extract_cache_prog): Renamed from ...
33457         (sed_extract_prog): ... this; revert to old extraction script.
33458         (func_get_description, func_get_status)
33459         (func_get_notice, func_get_applicability, func_get_filelist)
33460         (func_get_dependencies, func_get_autoconf_early_snippet)
33461         (func_get_autoconf_snippet, func_get_automake_snippet)
33462         (func_get_include_directive, func_get_link_directive)
33463         (func_get_license, func_get_maintainer): If $do_cache is false,
33464         use old, non-caching extraction scripts.
33465         Suggestion by Bruno Haible.
33466
33467 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33468
33469         gnulib-tool: cache module metainformation.
33470         * gnulib-tool (sed_extract_prog): Match newline before each
33471         header, and rewrite header to a shell variable suffix.
33472         (func_cache_var, func_cache_lookup_module): New functions,
33473         to turn a module name into a cache variable prefix, and to
33474         look up and cache module metainformation.
33475         (func_get_description, func_get_status)
33476         (func_get_notice, func_get_applicability, func_get_filelist)
33477         (func_get_dependencies, func_get_autoconf_early_snippet)
33478         (func_get_autoconf_snippet, func_get_automake_snippet)
33479         (func_get_include_directive, func_get_link_directive)
33480         (func_get_license, func_get_maintainer): Use
33481         func_cache_lookup_module.
33482
33483 2010-02-07  Bruno Haible  <bruno@clisp.org>
33484
33485         fnctl: Fix missing dependency.
33486         * modules/fcntl (Depends-on): Add getdtablesize.
33487         Reported by John W. Eaton <jwe@gnu.org>.
33488
33489 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33490
33491         Argp: fix recognition of short alias options.
33492
33493         * lib/argp-parse.c (convert_options): Fix improper use of
33494         `|' between character values.
33495         * tests/test-argp.c (group1_option): New alias option
33496         --read (-r).
33497         (group1_parser): Special handling for 'r'.
33498         (test15): New test case.
33499         (test_fun): Add test15.
33500         * tests/test-argp-2.sh: Update expected --help and --usage
33501         outputs.
33502
33503 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33504
33505         * tests/test-argp.c: Fix indentation.
33506
33507 2010-02-04  Eric Blake  <ebb9@byu.net>
33508
33509         gettimeofday: expose type of second argument
33510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33511         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33512         * tests/test-gettimeofday.c: Use it to silence warning.
33513         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33514         the issue.
33515
33516 2010-02-03  Jim Meyering  <meyering@redhat.com>
33517
33518         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33519         * lib/regcomp.c (TYPE_SIGNED): Define.
33520         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33521
33522         regcomp.c: avoid a new -Wshadow warning
33523         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33524
33525 2010-02-01  Jim Meyering  <meyering@redhat.com>
33526
33527         removing useless parentheses in cpp #define directives
33528         For motivation, see commit c0221df4, "define STREQ(a,b)
33529         consistently, removing useless parentheses"
33530         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33531         * lib/mountlist.c (MNT_IGNORE): Likewise.
33532         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33533
33534 2010-02-01  Eric Blake  <ebb9@byu.net>
33535
33536         sys_time: use link-warning
33537         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33538         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33539         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33540         * modules/sys_time (Depends-on): Add warn-on-use.
33541         (Makefile.am): Always build replacement.
33542         (configure.ac): Update substitutions.
33543         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33544         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33545         bother with SYS_TIME_H.
33546         * modules/gettimeofday (configure.ac): Declare indicator.
33547         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33548         in use.
33549
33550         closein-tests: silence compiler warning
33551         * tests/test-closein.c (main): Ignore fread result.
33552         * modules/closein-tests (Depends-on): Add ignore-value.
33553
33554         tests: silence warning about system return
33555         * tests/test-areadlink-with-size.c (main): Ignore system result.
33556         * tests/test-areadlink.c (main): Likewise.
33557         * tests/test-areadlinkat-with-size.c (main): Likewise.
33558         * tests/test-areadlinkat.c (main): Likewise.
33559         * tests/test-canonicalize-lgpl.c (main): Likewise.
33560         * tests/test-canonicalize.c (main): Likewise.
33561         * tests/test-chown.c (main): Likewise.
33562         * tests/test-fchownat.c (main): Likewise.
33563         * tests/test-fdutimensat.c (main): Likewise.
33564         * tests/test-fstatat.c (main): Likewise.
33565         * tests/test-futimens.c (main): Likewise.
33566         * tests/test-lchown.c (main): Likewise.
33567         * tests/test-link.c (main): Likewise.
33568         * tests/test-linkat.c (main): Likewise.
33569         * tests/test-lstat.c (main): Likewise.
33570         * tests/test-mkdir.c (main): Likewise.
33571         * tests/test-mkdirat.c (main): Likewise.
33572         * tests/test-mkfifo.c (main): Likewise.
33573         * tests/test-mkfifoat.c (main): Likewise.
33574         * tests/test-mknod.c (main): Likewise.
33575         * tests/test-readlink.c (main): Likewise.
33576         * tests/test-remove.c (main): Likewise.
33577         * tests/test-rename.c (main): Likewise.
33578         * tests/test-renameat.c (main): Likewise.
33579         * tests/test-rmdir.c (main): Likewise.
33580         * tests/test-symlink.c (main): Likewise.
33581         * tests/test-symlinkat.c (main): Likewise.
33582         * tests/test-unlink.c (main): Likewise.
33583         * tests/test-unlinkat.c (main): Likewise.
33584         * tests/test-utimens.c (main): Likewise.
33585         * tests/test-utimensat.c (main): Likewise.
33586         * modules/areadlink-tests (Depends-on): Add ignore-value.
33587         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33588         * modules/areadlinkat-tests (Depends-on): Likewise.
33589         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33590         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33591         * modules/canonicalize-tests (Depends-on): Likewise.
33592         * modules/chown-tests (Depends-on): Likewise.
33593         * modules/fdutimensat-tests (Depends-on): Likewise.
33594         * modules/futimens-tests (Depends-on): Likewise.
33595         * modules/lchown-tests (Depends-on): Likewise.
33596         * modules/link-tests (Depends-on): Likewise.
33597         * modules/linkat-tests (Depends-on): Likewise.
33598         * modules/lstat-tests (Depends-on): Likewise.
33599         * modules/mkdir-tests (Depends-on): Likewise.
33600         * modules/mkfifo-tests (Depends-on): Likewise.
33601         * modules/mkfifoat-tests (Depends-on): Likewise.
33602         * modules/mknod-tests (Depends-on): Likewise.
33603         * modules/openat-tests (Depends-on): Likewise.
33604         * modules/readlink-tests (Depends-on): Likewise.
33605         * modules/remove-tests (Depends-on): Likewise.
33606         * modules/rename-tests (Depends-on): Likewise.
33607         * modules/renameat-tests (Depends-on): Likewise.
33608         * modules/rmdir-tests (Depends-on): Likewise.
33609         * modules/symlink-tests (Depends-on): Likewise.
33610         * modules/symlinkat-tests (Depends-on): Likewise.
33611         * modules/unlink-tests (Depends-on): Likewise.
33612         * modules/utimens-tests (Depends-on): Likewise.
33613         * modules/utimensat-tests (Depends-on): Likewise.
33614
33615 2010-01-31  Bruno Haible  <bruno@clisp.org>
33616
33617         Perform the same test for many <math.h> functions.
33618         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33619         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33620         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33621         of gl_MATHFUNC.
33622         * modules/acos (configure.ac): Likewise.
33623         * modules/asin (configure.ac): Likewise.
33624         * modules/atan (configure.ac): Likewise.
33625         * modules/atan2 (configure.ac): Likewise.
33626         * modules/cbrt (configure.ac): Likewise.
33627         * modules/copysign (configure.ac): Likewise.
33628         * modules/cos (configure.ac): Likewise.
33629         * modules/cosh (configure.ac): Likewise.
33630         * modules/erf (configure.ac): Likewise.
33631         * modules/erfc (configure.ac): Likewise.
33632         * modules/exp (configure.ac): Likewise.
33633         * modules/fmod (configure.ac): Likewise.
33634         * modules/hypot (configure.ac): Likewise.
33635         * modules/j0 (configure.ac): Likewise.
33636         * modules/j1 (configure.ac): Likewise.
33637         * modules/jn (configure.ac): Likewise.
33638         * modules/lgamma (configure.ac): Likewise.
33639         * modules/log (configure.ac): Likewise.
33640         * modules/log10 (configure.ac): Likewise.
33641         * modules/log1p (configure.ac): Likewise.
33642         * modules/pow (configure.ac): Likewise.
33643         * modules/remainder (configure.ac): Likewise.
33644         * modules/sin (configure.ac): Likewise.
33645         * modules/sinh (configure.ac): Likewise.
33646         * modules/tan (configure.ac): Likewise.
33647         * modules/tanh (configure.ac): Likewise.
33648         * modules/y0 (configure.ac): Likewise.
33649         * modules/y1 (configure.ac): Likewise.
33650         * modules/yn (configure.ac): Likewise.
33651         Suggested by Paolo Bonzini.
33652
33653 2010-01-31  Bruno Haible  <bruno@clisp.org>
33654
33655         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33656
33657 2010-01-31  Bruno Haible  <bruno@clisp.org>
33658
33659         Work around getdelim() bug on FreeBSD 8.0.
33660         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33661         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33662         not work.
33663         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33664         is 1.
33665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33666         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33667         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33668         a non-zero size.
33669         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33670
33671 2010-01-31  Bruno Haible  <bruno@clisp.org>
33672
33673         Work around getline() bug on FreeBSD 8.0.
33674         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33675         and a non-zero size.
33676         * tests/test-getline.c (main): Likewise.
33677         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33678         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33679
33680 2010-01-28  Eric Blake  <ebb9@byu.net>
33681
33682         regex: fix build failure
33683         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33684         platforms.
33685
33686 2010-01-28  Jim Meyering  <meyering@redhat.com>
33687
33688         regex: do not ignore memory allocation failure
33689         * lib/regex_internal.c (create_cd_newstate): Detect
33690         re_node_set_init_copy failure.   Extracted from glibc commit
33691         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33692
33693         regex: sync more white-space changes from libc
33694         * lib/regex_internal.c: White-space only changes.
33695         * lib/regexec.c: Likewise.
33696
33697         regex: add many uses of __attribute_warn_unused_result__
33698         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33699         * lib/regexec.c: Likewise.
33700         Extracted from a messy glibc commit.
33701
33702         regcomp.c: spelling and merge-artifact from glibc
33703         * lib/regcomp.c: Merge remainder of glibc's
33704         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33705
33706         regcomp.c: sync white-space changes from glibc
33707         * lib/regcomp.c: Merge to accommodate white space
33708         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33709
33710         regcomp.c: do not ignore internal return values
33711         * lib/regcomp.c: Do not ignore internal return values.
33712         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33713         but without its white-space changes and spelling fixes.
33714
33715         regex_internal.h: define __attribute_warn_unused_result__
33716         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33717
33718         maint: add a syntax-check rule to check for vulnerable Makefile.in
33719         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33720
33721 2010-01-27  Jim Meyering  <meyering@redhat.com>
33722
33723         ncftpput-ftp: clean up spaces
33724         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33725         Remove trailing blanks.
33726
33727 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33728
33729         * build-aux/git-version-gen: Fix copyright statement.
33730         * build-aux/gnupload: Likewise.
33731         * tests/test-arcfour.c: Likewise.
33732         * tests/test-arctwo.c: Likewise.
33733         * tests/test-count-one-bits.c: Likewise.
33734         * tests/test-crc.c: Likewise.
33735         * tests/test-des.c: Likewise.
33736         * tests/test-gc-arcfour.c: Likewise.
33737         * tests/test-gc-arctwo.c: Likewise.
33738         * tests/test-gc-des.c: Likewise.
33739         * tests/test-gc-hmac-md5.c: Likewise.
33740         * tests/test-gc-hmac-sha1.c: Likewise.
33741         * tests/test-gc-md2.c: Likewise.
33742         * tests/test-gc-md4.c: Likewise.
33743         * tests/test-gc-md5.c: Likewise.
33744         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33745         * tests/test-gc-rijndael.c: Likewise.
33746         * tests/test-gc-sha1.c: Likewise.
33747         * tests/test-gc.c: Likewise.
33748         * tests/test-gethostname.c: Likewise.
33749         * tests/test-gettimeofday.c: Likewise.
33750         * tests/test-hash.c: Likewise.
33751         * tests/test-hmac-md5.c: Likewise.
33752         * tests/test-hmac-sha1.c: Likewise.
33753         * tests/test-md2.c: Likewise.
33754         * tests/test-md4.c: Likewise.
33755         * tests/test-md5.c: Likewise.
33756         * tests/test-memchr.c: Likewise.
33757         * tests/test-memchr2.c: Likewise.
33758         * tests/test-memcmp.c: Likewise.
33759         * tests/test-memmem.c: Likewise.
33760         * tests/test-memrchr.c: Likewise.
33761         * tests/test-rawmemchr.c: Likewise.
33762         * tests/test-read-file.c: Likewise.
33763         * tests/test-rijndael.c: Likewise.
33764         * tests/test-sockets.c: Likewise.
33765         * tests/test-strchrnul.c: Likewise.
33766         * tests/test-strstr.c: Likewise.
33767         * tests/test-strtod.c: Likewise.
33768         * build-aux/ncftpput-ftp: Likewise.
33769
33770 2010-01-26  Eric Blake  <ebb9@byu.net>
33771
33772         ignore-value: update recommended header name
33773         * modules/ignore-value (Include): Only use <> for headers that
33774         exist in glibc.
33775
33776 2010-01-26  Jim Meyering  <meyering@redhat.com>
33777
33778         test-userspec.c: avoid compiler warnings
33779         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33780         and "initialization discards qualifiers..." warnings.
33781         Put the first "uid" in its own scope, and make char* members "const".
33782
33783 2010-01-25  Bruno Haible  <bruno@clisp.org>
33784
33785         gnulib-tool: Make warning diagnostics consistent.
33786         * gnulib-tool (func_warning): New function.
33787         Use it everywhere where gnulib-tool produces output to stderr and it is
33788         not a fatal error.
33789
33790 2010-01-25  Bruno Haible  <bruno@clisp.org>
33791
33792         Fix test dependencies.
33793         * modules/xstrtol-tests (Depends-on): Add inttypes.
33794         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33795
33796 2010-01-25 Pádraig Brady <P@draigBrady.com>
33797
33798         syntax-check: detect incorrect boolean macro values in config.h
33799         * modules/maintainer-makefile (configure.ac): Parameterize the location
33800         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33801         The logic is from Eric Blake and the location indicated by Jim Meyering.
33802         Note the more natural CONFIG_HEADER name is prohibited by automake
33803         for backwards compatibility reasons.
33804         * top/maint.mk (sc_Wundef_boolean): New rule.
33805
33806 2010-01-25  Jim Meyering  <meyering@redhat.com>
33807
33808         bootstrap: detect MacOS 10.6's shasum, too
33809         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33810         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33811
33812 2010-01-23  Jim Meyering  <meyering@redhat.com>
33813
33814         xstrtoll: new module
33815         * modules/xstrtoll: New file.
33816         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33817         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33818         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33819         ./configure fails if you use this module and lack "long long".
33820         * modules/xstrtoll-tests: New module.
33821         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33822         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33823         new init.sh-based test framework.
33824
33825 2010-01-24  Bruno Haible  <bruno@clisp.org>
33826
33827         Tests for module 'yn'.
33828         * modules/yn-tests: New file.
33829         * tests/test-yn.c: New file.
33830
33831         Tests for module 'y1'.
33832         * modules/y1-tests: New file.
33833         * tests/test-y1.c: New file.
33834
33835         Tests for module 'y0'.
33836         * modules/y0-tests: New file.
33837         * tests/test-y0.c: New file.
33838
33839         Tests for module 'tanh'.
33840         * modules/tanh-tests: New file.
33841         * tests/test-tanh.c: New file.
33842
33843         Tests for module 'tan'.
33844         * modules/tan-tests: New file.
33845         * tests/test-tan.c: New file.
33846
33847         Tests for module 'sqrt'.
33848         * modules/sqrt-tests: New file.
33849         * tests/test-sqrt.c: New file.
33850
33851         Tests for module 'sinh'.
33852         * modules/sinh-tests: New file.
33853         * tests/test-sinh.c: New file.
33854
33855         Tests for module 'sin'.
33856         * modules/sin-tests: New file.
33857         * tests/test-sin.c: New file.
33858
33859         Tests for module 'rint'.
33860         * modules/rint-tests: New file.
33861         * tests/test-rint.c: New file.
33862
33863         Tests for module 'remainder'.
33864         * modules/remainder-tests: New file.
33865         * tests/test-remainder.c: New file.
33866
33867         Tests for module 'pow'.
33868         * modules/pow-tests: New file.
33869         * tests/test-pow.c: New file.
33870
33871         Tests for module 'nextafter'.
33872         * modules/nextafter-tests: New file.
33873         * tests/test-nextafter.c: New file.
33874
33875         Tests for module 'modf'.
33876         * modules/modf-tests: New file.
33877         * tests/test-modf.c: New file.
33878
33879         Tests for module 'logb'.
33880         * modules/logb-tests: New file.
33881         * tests/test-logb.c: New file.
33882
33883         Tests for module 'log1p'.
33884         * modules/log1p-tests: New file.
33885         * tests/test-log1p.c: New file.
33886
33887         Tests for module 'log10'.
33888         * modules/log10-tests: New file.
33889         * tests/test-log10.c: New file.
33890
33891         Tests for module 'log'.
33892         * modules/log-tests: New file.
33893         * tests/test-log.c: New file.
33894
33895         Tests for module 'lgamma'.
33896         * modules/lgamma-tests: New file.
33897         * tests/test-lgamma.c: New file.
33898
33899         Tests for module 'ldexp'.
33900         * modules/ldexp-tests: New file.
33901         * tests/test-ldexp.c: New file.
33902
33903         Tests for module 'jn'.
33904         * modules/jn-tests: New file.
33905         * tests/test-jn.c: New file.
33906
33907         Tests for module 'j1'.
33908         * modules/j1-tests: New file.
33909         * tests/test-j1.c: New file.
33910
33911         Tests for module 'j0'.
33912         * modules/j0-tests: New file.
33913         * tests/test-j0.c: New file.
33914
33915         Tests for module 'hypot'.
33916         * modules/hypot-tests: New file.
33917         * tests/test-hypot.c: New file.
33918
33919         Tests for module 'fmod'.
33920         * modules/fmod-tests: New file.
33921         * tests/test-fmod.c: New file.
33922
33923         Tests for module 'fabs'.
33924         * modules/fabs-tests: New file.
33925         * tests/test-fabs.c: New file.
33926
33927         Tests for module 'exp'.
33928         * modules/exp-tests: New file.
33929         * tests/test-exp.c: New file.
33930
33931         Tests for module 'erfc'.
33932         * modules/erfc-tests: New file.
33933         * tests/test-erfc.c: New file.
33934
33935         Tests for module 'erf'.
33936         * modules/erf-tests: New file.
33937         * tests/test-erf.c: New file.
33938
33939         Tests for module 'cosh'.
33940         * modules/cosh-tests: New file.
33941         * tests/test-cosh.c: New file.
33942
33943         Tests for module 'cos'.
33944         * modules/cos-tests: New file.
33945         * tests/test-cos.c: New file.
33946
33947         Tests for module 'copysign'.
33948         * modules/copysign-tests: New file.
33949         * tests/test-copysign.c: New file.
33950
33951         Tests for module 'cbrt'.
33952         * modules/cbrt-tests: New file.
33953         * tests/test-cbrt.c: New file.
33954
33955         Tests for module 'atan2'.
33956         * modules/atan2-tests: New file.
33957         * tests/test-atan2.c: New file.
33958
33959         Tests for module 'atan'.
33960         * modules/atan-tests: New file.
33961         * tests/test-atan.c: New file.
33962
33963         Tests for module 'asin'.
33964         * modules/asin-tests: New file.
33965         * tests/test-asin.c: New file.
33966
33967         Tests for module 'acos'.
33968         * modules/acos-tests: New file.
33969         * tests/test-acos.c: New file.
33970
33971 2010-01-24  Bruno Haible  <bruno@clisp.org>
33972
33973         Fix tests for common <math.h> functions.
33974         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33975         code snippet that references the function pointer, rather than merely
33976         calling the function. Substitute the FUNC_LIBM variable.
33977         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33978         * modules/acos (configure.ac): Likewise.
33979         * modules/asin (configure.ac): Likewise.
33980         * modules/atan (configure.ac): Likewise.
33981         * modules/atan2 (configure.ac): Likewise.
33982         * modules/cbrt (configure.ac): Likewise.
33983         * modules/copysign (configure.ac): Likewise.
33984         * modules/cos (configure.ac): Likewise.
33985         * modules/cosh (configure.ac): Likewise.
33986         * modules/erf (configure.ac): Likewise.
33987         * modules/erfc (configure.ac): Likewise.
33988         * modules/exp (configure.ac): Likewise.
33989         * modules/fabs (configure.ac): Likewise.
33990         * modules/fmod (configure.ac): Likewise.
33991         * modules/hypot (configure.ac): Likewise.
33992         * modules/j0 (configure.ac): Likewise.
33993         * modules/j1 (configure.ac): Likewise.
33994         * modules/jn (configure.ac): Likewise.
33995         * modules/ldexp (configure.ac): Likewise.
33996         * modules/lgamma (configure.ac): Likewise.
33997         * modules/log (configure.ac): Likewise.
33998         * modules/log10 (configure.ac): Likewise.
33999         * modules/log1p (configure.ac): Likewise.
34000         * modules/logb (configure.ac): Likewise.
34001         * modules/modf (configure.ac): Likewise.
34002         * modules/nextafter (configure.ac): Likewise.
34003         * modules/pow (configure.ac): Likewise.
34004         * modules/remainder (configure.ac): Likewise.
34005         * modules/rint (configure.ac): Likewise.
34006         * modules/sin (configure.ac): Likewise.
34007         * modules/sinh (configure.ac): Likewise.
34008         * modules/tan (configure.ac): Likewise.
34009         * modules/tanh (configure.ac): Likewise.
34010         * modules/y0 (configure.ac): Likewise.
34011         * modules/y1 (configure.ac): Likewise.
34012         * modules/yn (configure.ac): Likewise.
34013
34014 2010-01-24  Bruno Haible  <bruno@clisp.org>
34015
34016         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34017         * tests/test-acosl.c (x): New variable.
34018         (main): Store argument in x and fetch it from x.
34019         * tests/test-asinl.c (x): New variable.
34020         (main): Store argument in x and fetch it from x.
34021         * tests/test-atanl.c (x): New variable.
34022         (main): Store argument in x and fetch it from x.
34023         * tests/test-cosl.c (x): New variable.
34024         (main): Store argument in x and fetch it from x.
34025         * tests/test-expl.c (x): New variable.
34026         (main): Store argument in x and fetch it from x.
34027         * tests/test-logl.c (x): New variable.
34028         (main): Store argument in x and fetch it from x.
34029         * tests/test-sinl.c (x): New variable.
34030         (main): Store argument in x and fetch it from x.
34031         * tests/test-sqrtl.c (x): New variable.
34032         (main): Store argument in x and fetch it from x.
34033         * tests/test-tanl.c (x): New variable.
34034         (main): Store argument in x and fetch it from x.
34035
34036 2010-01-24  Bruno Haible  <bruno@clisp.org>
34037
34038         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34039         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34040         assignments to the initial TESTS_ENVIRONMENT.
34041         * doc/gnulib.texi (Unit test modules): Document it.
34042         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34043         TESTS_ENVIRONMENT.
34044         * modules/btowc-tests (Makefile.am): Likewise.
34045         * modules/c-stack-tests (Makefile.am): Likewise.
34046         * modules/c-strcase-tests (Makefile.am): Likewise.
34047         * modules/copy-file-tests (Makefile.am): Likewise.
34048         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34049         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34050         * modules/mbrtowc-tests (Makefile.am): Likewise.
34051         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34052         * modules/mbscasestr-tests (Makefile.am): Likewise.
34053         * modules/mbschr-tests (Makefile.am): Likewise.
34054         * modules/mbscspn-tests (Makefile.am): Likewise.
34055         * modules/mbsinit-tests (Makefile.am): Likewise.
34056         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34057         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34058         * modules/mbspbrk-tests (Makefile.am): Likewise.
34059         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34060         * modules/mbsrchr-tests (Makefile.am): Likewise.
34061         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34062         * modules/mbsspn-tests (Makefile.am): Likewise.
34063         * modules/mbsstr-tests (Makefile.am): Likewise.
34064         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34065         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34066         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34067         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34068         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34069         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34070         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34071         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34072         * modules/wcrtomb-tests (Makefile.am): Likewise.
34073         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34074         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34075         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34076         assignments from TESTS_ENVIRONMENT.
34077         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34078         augmentation.
34079         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34080         * modules/atexit-tests (Makefile.am): Likewise.
34081         * modules/binary-io-tests (Makefile.am): Likewise.
34082         * modules/closein-tests (Makefile.am): Likewise.
34083         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34084         * modules/exclude-tests (Makefile.am): Likewise.
34085         * modules/fflush-tests (Makefile.am): Likewise.
34086         * modules/fpending-tests (Makefile.am): Likewise.
34087         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34088         * modules/freadahead-tests (Makefile.am): Likewise.
34089         * modules/freadptr-tests (Makefile.am): Likewise.
34090         * modules/freadseek-tests (Makefile.am): Likewise.
34091         * modules/fseek-tests (Makefile.am): Likewise.
34092         * modules/fseeko-tests (Makefile.am): Likewise.
34093         * modules/ftell-tests (Makefile.am): Likewise.
34094         * modules/ftello-tests (Makefile.am): Likewise.
34095         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34096         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34097         * modules/lseek-tests (Makefile.am): Likewise.
34098         * modules/parse-duration-tests (Makefile.am): Likewise.
34099         * modules/perror-tests (Makefile.am): Likewise.
34100         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34101         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34102         * modules/pipe-tests (Makefile.am): Likewise.
34103         * modules/pread-tests (Makefile.am): Likewise.
34104         * modules/printf-posix-tests (Makefile.am): Likewise.
34105         * modules/select-tests (Makefile.am): Likewise.
34106         * modules/sigpipe-tests (Makefile.am): Likewise.
34107         * modules/tsearch-tests (Makefile.am): Likewise.
34108         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34109         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34110         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34111         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34112         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34113         * modules/version-etc-tests (Makefile.am): Likewise.
34114         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34115         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34116         * modules/xalloc-die-tests (Makefile.am): Likewise.
34117         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34118         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34119         * modules/xstrtol-tests (Makefile.am): Likewise.
34120         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34121         * modules/yesno-tests (Makefile.am): Likewise.
34122         Suggested by Jim Meyering.
34123
34124 2010-01-24  Bruno Haible  <bruno@clisp.org>
34125
34126         More documentation.
34127         * doc/gnulib.texi (Writing modules): New chapter.
34128         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34129         the new chapter.
34130
34131 2010-01-24  Jim Meyering  <meyering@redhat.com>
34132
34133         maint.mk: do not prepend "./" after filtering
34134         * top/maint.mk (_prepend_srcdir_prefix): New variable
34135         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34136         "./" when $(srcdir) is ".".
34137
34138         define STREQ(a,b) consistently, removing useless parentheses
34139         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34140         since the only risk is that "a" or "b" contains an unparenthesized
34141         comma, but if either did that, STREQ would have 3 or more arguments.
34142         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34143         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34144         * lib/hash-triple.c (STREQ): Likewise.
34145         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34146         * lib/getugroups.c (STREQ): Likewise.
34147
34148 2010-01-23  Jim Meyering  <meyering@redhat.com>
34149
34150         maint.mk: fix syntax-check in a non-srcdir build directory
34151         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34152         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34153
34154 2010-01-22  Jim Meyering  <meyering@redhat.com>
34155
34156         userspec: add unit tests
34157         * tests/test-userspec.c: New file.
34158         * modules/userspec-tests: Likewise.
34159
34160 2010-01-21  Jim Meyering  <meyering@redhat.com>
34161
34162         maint.mk: handle source file names containing "." robustly
34163         * top/maint.mk (_dot_escaped_srcdir): Define.
34164         (VC_LIST): Use it in LHS of sed substitution.
34165
34166 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34167
34168         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34169         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34170         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34171         from a non-srcdir build.
34172
34173 2010-01-20  Eric Blake  <ebb9@byu.net>
34174
34175         warn-on-use: use instead of link-warning
34176         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34177         * modules/unistd (Depends-on, Makefile.am): Likewise.
34178         * modules/arpa_inet (Depends-on): Replace link-warning with
34179         warn-on-use.
34180         (Makefile.am): Update rules accordingly.
34181         * modules/ctype (Depends-on, Makefile.am): Likewise.
34182         * modules/dirent (Depends-on, Makefile.am): Likewise.
34183         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34184         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34185         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34186         * modules/locale (Depends-on, Makefile.am): Likewise.
34187         * modules/math (Depends-on, Makefile.am): Likewise.
34188         * modules/search (Depends-on, Makefile.am): Likewise.
34189         * modules/signal (Depends-on, Makefile.am): Likewise.
34190         * modules/spawn (Depends-on, Makefile.am): Likewise.
34191         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34192         * modules/string (Depends-on, Makefile.am): Likewise.
34193         * modules/strings (Depends-on, Makefile.am): Likewise.
34194         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34195         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34196         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34197         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34198         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34199         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34200         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34201         * modules/wchar (Depends-on, Makefile.am): Likewise.
34202         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34203         should be poisoned.
34204         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34205         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34206         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34207         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34208         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34209         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34210         * m4/math_h.m4 (gl_MATH_H): Likewise.
34211         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34212         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34213         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34214         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34215         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34216         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34217         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34218         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34219         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34220         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34221         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34222         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34223         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34224         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34225         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34226         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34227         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34228         GL_LINK_WARNING.
34229         * lib/ctype.in.h: Likewise.
34230         * lib/dirent.in.h: Likewise.
34231         * lib/fcntl.in.h: Likewise.
34232         * lib/inttypes.in.h: Likewise.
34233         * lib/langinfo.in.h: Likewise.
34234         * lib/locale.in.h: Likewise.
34235         * lib/math.in.h: Likewise.
34236         * lib/search.in.h: Likewise.
34237         * lib/signal.in.h: Likewise.
34238         * lib/spawn.in.h: Likewise.
34239         * lib/stdio.in.h: Likewise.
34240         * lib/stdlib.in.h: Likewise.
34241         * lib/string.in.h: Likewise.
34242         * lib/strings.in.h: Likewise.
34243         * lib/sys_file.in.h: Likewise.
34244         * lib/sys_ioctl.in.h: Likewise.
34245         * lib/sys_select.in.h: Likewise.
34246         * lib/sys_socket.in.h: Likewise.
34247         * lib/sys_stat.in.h: Likewise.
34248         * lib/sys_times.in.h: Likewise.
34249         * lib/sys_utsname.in.h: Likewise.
34250         * lib/unistd.in.h: Likewise.
34251         * lib/wchar.in.h: Likewise.
34252
34253 2010-01-20  Bruno Haible  <bruno@clisp.org>
34254
34255         Avoid duplicate -lm.
34256         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34257         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34258         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34259         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34260         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34261         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34262         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34263         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34264         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34265         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34266         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34267         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34268         Reported by Paolo Bonzini.
34269
34270 2010-01-19  Bruno Haible  <bruno@clisp.org>
34271
34272         langinfo, nl_langinfo: Relicense under LGPLv2+.
34273         * modules/langinfo (License): Change to LGPLv2+.
34274         * modules/nl_langinfo (License): Likewise.
34275         Patch by David Lutterkort <lutter@redhat.com>.
34276
34277 2010-01-19  Bruno Haible  <bruno@clisp.org>
34278
34279         Avoid compilation error with cc on OSF/1 5.1.
34280         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34281         statement, not before.
34282         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34283
34284 2010-01-18  Bruno Haible  <bruno@clisp.org>
34285
34286         Avoid a link error due to the __printf__ symbol.
34287         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34288         and 2.6.x.
34289         (__format__, __printf__): Remove definitions.
34290         * lib/argp-fmtstream.h: Likewise.
34291         * lib/argp.h: Likewise.
34292         * lib/error.h: Likewise.
34293         * lib/vasnprintf.h: Likewise.
34294         * lib/xprintf.h: Likewise.
34295         * lib/xvasprintf.h: Likewise.
34296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34297
34298 2010-01-18  Bruno Haible  <bruno@clisp.org>
34299
34300         Tests for module 'tanl'.
34301         * modules/tanl-tests: New file.
34302         * tests/test-tanl.c: New file.
34303
34304         Tests for module 'sqrtl'.
34305         * modules/sqrtl-tests: New file.
34306         * tests/test-sqrtl.c: New file.
34307
34308         Tests for module 'sinl'.
34309         * modules/sinl-tests: New file.
34310         * tests/test-sinl.c: New file.
34311
34312         Tests for module 'logl'.
34313         * modules/logl-tests: New file.
34314         * tests/test-logl.c: New file.
34315
34316         Tests for module 'expl'.
34317         * modules/expl-tests: New file.
34318         * tests/test-expl.c: New file.
34319
34320         Tests for module 'cosl'.
34321         * modules/cosl-tests: New file.
34322         * tests/test-cosl.c: New file.
34323
34324         Tests for module 'atanl'.
34325         * modules/atanl-tests: New file.
34326         * tests/test-atanl.c: New file.
34327
34328         Tests for module 'asinl'.
34329         * modules/asinl-tests: New file.
34330         * tests/test-asinl.c: New file.
34331
34332         Tests for module 'acosl'.
34333         * modules/acosl-tests: New file.
34334         * tests/test-acosl.c: New file.
34335
34336         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34337         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34338         tanl): Use the standard gnulib idiom.
34339         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34340         * lib/sinl.c: Likewise.
34341         * lib/tanl.c: Don't include trigl.c.
34342         (kernel_tanl): Make static.
34343         * lib/sincosl.c: Include trigl.h first.
34344         * lib/trigl.c: Likewise.
34345         * m4/acosl.m4: New file.
34346         * m4/asinl.m4: New file.
34347         * m4/atanl.m4: New file.
34348         * m4/cosl.m4: New file.
34349         * m4/expl.m4: New file.
34350         * m4/logl.m4: New file.
34351         * m4/sinl.m4: New file.
34352         * m4/sqrtl.m4: New file.
34353         * m4/tanl.m4: New file.
34354         * m4/mathl.m4: Remove file.
34355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34356         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34357         Don't initialize GNULIB_MATHL.
34358         * modules/acosl: New file.
34359         * modules/asinl: New file.
34360         * modules/atanl: New file.
34361         * modules/cosl: New file.
34362         * modules/expl: New file.
34363         * modules/logl: New file.
34364         * modules/sinl: New file.
34365         * modules/sqrtl: New file.
34366         * modules/tanl: New file.
34367         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34368         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34369         substitute GNULIB_MATHL.
34370         * modules/mathl: Rewritten.
34371         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34372         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34373         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34374         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34375         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34376         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34377         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34378         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34379         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34380
34381 2010-01-18  Bruno Haible  <bruno@clisp.org>
34382
34383         sqrt: Make gl_FUNC_SQRT requirable.
34384         * m4/sqrt.m4: New file.
34385         * modules/sqrt (Files): Add it.
34386         (configure.ac): Invoke gl_FUNC_SQRT.
34387
34388 2010-01-18  Bruno Haible  <bruno@clisp.org>
34389
34390         New modules for common <math.h> functions.
34391         * m4/mathfunc.m4: New file.
34392         * modules/acos: New file.
34393         * modules/asin: New file.
34394         * modules/atan: New file.
34395         * modules/atan2: New file.
34396         * modules/cbrt: New file.
34397         * modules/copysign: New file.
34398         * modules/cos: New file.
34399         * modules/cosh: New file.
34400         * modules/erf: New file.
34401         * modules/erfc: New file.
34402         * modules/exp: New file.
34403         * modules/fabs: New file.
34404         * modules/fmod: New file.
34405         * modules/hypot: New file.
34406         * modules/j0: New file.
34407         * modules/j1: New file.
34408         * modules/jn: New file.
34409         * modules/ldexp: New file.
34410         * modules/lgamma: New file.
34411         * modules/log: New file.
34412         * modules/log10: New file.
34413         * modules/log1p: New file.
34414         * modules/logb: New file.
34415         * modules/modf: New file.
34416         * modules/nextafter: New file.
34417         * modules/pow: New file.
34418         * modules/remainder: New file.
34419         * modules/rint: New file.
34420         * modules/sin: New file.
34421         * modules/sinh: New file.
34422         * modules/sqrt: New file.
34423         * modules/tan: New file.
34424         * modules/tanh: New file.
34425         * modules/y0: New file.
34426         * modules/y1: New file.
34427         * modules/yn: New file.
34428         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34429         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34430         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34431         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34432         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34433         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34434         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34435         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34436         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34437         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34438         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34439         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34440         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34441         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34442         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34443         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34444         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34445         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34446         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34447         * doc/posix-functions/log.texi: Mention the 'log' module.
34448         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34449         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34450         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34451         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34452         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34453         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34454         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34455         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34456         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34457         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34458         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34459         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34460         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34461         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34462         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34463         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34464
34465 2010-01-18  Jim Meyering  <meyering@redhat.com>
34466
34467         ignore-value: relax license to LGPLv2+
34468         * modules/ignore-value (License): Relax to LGPLv2+.
34469
34470         getdate: don't leak when TZ contains two or more '"'s
34471         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34472         double quote in TZ after the first one.
34473
34474         readtokens: do not leak internal token_lengths buffer
34475         * lib/readtokens.c (readtokens): Free the local, lengths,
34476         when the supplied "token_lengths" parameter is NULL.
34477
34478 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34479
34480         Fix a couple of missing LIBTHREAD link failures on AIX.
34481         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34482         $(LIBTHREAD).
34483         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34484
34485         Link test-poll against INET_PTON_LIB.
34486         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34487         for inet_pton on Solaris 10.
34488
34489 2010-01-17  Bruno Haible  <bruno@clisp.org>
34490
34491         unistdio/*-sprintf: Fix typo in module description.
34492         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34493         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34494         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34495         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34496         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34497         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34498         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34500
34501 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34502
34503         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34504         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34505         variables in shell case patterns, for AIX and HP-UX ksh.
34506
34507         Split large sed scripts, for HP-UX sed.
34508         * modules/stdio: Split sed scripts around 50 sed commands,
34509         to avoid HP-UX limit of 99 commands, in the near future.
34510         * modules/string: Likewise.
34511         * modules/unistd: Likewise.
34512
34513         gnulib-tool: avoid writing in the current directory.
34514         * gnulib-tool (func_emit_lib_Makefile_am)
34515         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34516         not in the current directory, so concurrent gnulib-tool
34517         instances do not interfere.
34518
34519 2010-01-16  Jim Meyering  <meyering@redhat.com>
34520
34521         doc: update users.txt
34522         * users.txt: Add grep.
34523         (diffutils, gzip): Update URLs.
34524
34525 2010-01-12  Bruno Haible  <bruno@clisp.org>
34526
34527         posix_spawn: Avoid test failure on Cygwin.
34528         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34529         characters.
34530         Reported by Simon Josefsson.
34531
34532 2010-01-12  Bruno Haible  <bruno@clisp.org>
34533
34534         * tests/test-cond.c (main): When skipping the test, show the reason.
34535
34536 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34537
34538         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34539
34540 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34541
34542         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34543         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34544
34545 2010-01-12  Eric Blake  <ebb9@byu.net>
34546
34547         build: guarantee AS_VAR_IF
34548         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34549         (gl_AS_VAR_IF): Move...
34550         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34551         Reported by Simon Josefsson.
34552
34553 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34554
34555         * lib/stdio.in.h: Fix typo.
34556
34557 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34558
34559         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34560         libgpg-error.
34561
34562 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34563
34564         * tests/test-xalloc-die.sh: Use $EXEEXT.
34565
34566 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34567             Bruno Haible  <bruno@clisp.org>
34568
34569         getlogin, getlogin_r: Avoid test failure.
34570         * tests/test-getlogin.c: Include <stdio.h>.
34571         (main): Skip the test when the function fails because stdin is not a
34572         tty.
34573         * tests/test-getlogin_r.c: Include <stdio.h>.
34574         (main): Skip the test when the function fails because stdin is not a
34575         tty.
34576
34577 2010-01-11  Eric Blake  <ebb9@byu.net>
34578
34579         tests: avoid more large file warnings
34580         * tests/test-fflush.c: Avoid warning about ftell use.
34581         * tests/test-fseek.c: Avoid warning about fseek use.
34582
34583 2010-01-10  Bruno Haible  <bruno@clisp.org>
34584
34585         nproc: Work better on Linux when /proc and /sys are not mounted.
34586         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34587         as lower bound when, on glibc/Linux systems,
34588         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34589         Suggested by Pádraig Brady <P@draigbrady.com>.
34590         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34591
34592         nproc: Refactor.
34593         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34594         extracted from num_processors.
34595         (num_processors): Call it.
34596
34597 2010-01-11  Jim Meyering  <meyering@redhat.com>
34598
34599         utimecmp: avoid new warning from upcoming gcc-4.5.0
34600         * lib/utimecmp.c (BILLION): Define using #define rather than an
34601         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34602
34603 2010-01-11  Eric Blake  <ebb9@byu.net>
34604
34605         math: add portability warnings for classification macros
34606         * modules/math (Depends-on): Add warn-on-use.
34607         (Makefile.am): Provide new substitutions.
34608         * m4/math_h.m4 (gl_MATH_H): Require inline.
34609         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34610         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34611         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34612         implement warnings.
34613
34614         unistd: warn on use of environ without module
34615         * modules/unistd (Depends-on): Add warn-on-use.
34616         (Makefile.am): Provide new substitutions.
34617         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34618         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34619
34620         stdio: warn on suspicious uses
34621         * modules/stdio (Depends-on): Add warn-on-use.
34622         (Makefile.am): Provide new substitutions.
34623         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34624         fseeko.
34625         * lib/stdio.in.h (gets): Always warn on use.
34626         (fseek, ftell): Adjust when warnings are issued, and honor
34627         _GL_NO_LARGE_FILES as a way to silence the warning.
34628         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34629         any warning about large file offsets.
34630         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34631         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34632         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34633         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34634         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34635         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34636         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34637         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34638
34639         warn-on-use: new module
34640         * modules/warn-on-use: New file.
34641         * build-aux/warn-on-use.h: Likewise.
34642         * m4/warn-on-use.m4: Likewise.
34643         * MODULES.html.sh (Support for building): Mention it.
34644
34645 2010-01-10  Bruno Haible  <bruno@clisp.org>
34646
34647         Tests for module 'unistr/u32-strdup'.
34648         * modules/unistr/u32-strdup-tests: New file.
34649         * tests/unistr/test-u32-strdup.c: New file.
34650
34651         Tests for module 'unistr/u16-strdup'.
34652         * modules/unistr/u16-strdup-tests: New file.
34653         * tests/unistr/test-u16-strdup.c: New file.
34654
34655         Tests for module 'unistr/u8-strdup'.
34656         * modules/unistr/u8-strdup-tests: New file.
34657         * tests/unistr/test-u8-strdup.c: New file.
34658         * tests/unistr/test-strdup.h: New file.
34659
34660         Tests for module 'unistr/u32-strncmp'.
34661         * modules/unistr/u32-strncmp-tests: New file.
34662         * tests/unistr/test-u32-strncmp.c: New file.
34663
34664         Tests for module 'unistr/u16-strncmp'.
34665         * modules/unistr/u16-strncmp-tests: New file.
34666         * tests/unistr/test-u16-strncmp.c: New file.
34667
34668         Tests for module 'unistr/u8-strncmp'.
34669         * modules/unistr/u8-strncmp-tests: New file.
34670         * tests/unistr/test-u8-strncmp.c: New file.
34671         * tests/unistr/test-strncmp.h: New file.
34672
34673         Tests for module 'unistr/u32-strcoll'.
34674         * modules/unistr/u32-strcoll-tests: New file.
34675         * tests/unistr/test-u32-strcoll.c: New file.
34676
34677         Tests for module 'unistr/u16-strcoll'.
34678         * modules/unistr/u16-strcoll-tests: New file.
34679         * tests/unistr/test-u16-strcoll.c: New file.
34680
34681         Tests for module 'unistr/u8-strcoll'.
34682         * modules/unistr/u8-strcoll-tests: New file.
34683         * tests/unistr/test-u8-strcoll.c: New file.
34684
34685         Tests for module 'unistr/u32-strcmp'.
34686         * modules/unistr/u32-strcmp-tests: New file.
34687         * tests/unistr/test-u32-strcmp.c: New file.
34688         * tests/unistr/test-u32-strcmp.h: New file.
34689
34690         Tests for module 'unistr/u16-strcmp'.
34691         * modules/unistr/u16-strcmp-tests: New file.
34692         * tests/unistr/test-u16-strcmp.c: New file.
34693         * tests/unistr/test-u16-strcmp.h: New file.
34694
34695         Tests for module 'unistr/u8-strcmp'.
34696         * modules/unistr/u8-strcmp-tests: New file.
34697         * tests/unistr/test-u8-strcmp.c: New file.
34698         * tests/unistr/test-u8-strcmp.h: New file.
34699         * tests/unistr/test-strcmp.h: New file.
34700
34701         Tests for module 'unistr/u32-strncat'.
34702         * modules/unistr/u32-strncat-tests: New file.
34703         * tests/unistr/test-u32-strncat.c: New file.
34704
34705         Tests for module 'unistr/u16-strncat'.
34706         * modules/unistr/u16-strncat-tests: New file.
34707         * tests/unistr/test-u16-strncat.c: New file.
34708
34709         Tests for module 'unistr/u8-strncat'.
34710         * modules/unistr/u8-strncat-tests: New file.
34711         * tests/unistr/test-u8-strncat.c: New file.
34712         * tests/unistr/test-strncat.h: New file.
34713
34714         Tests for module 'unistr/u32-strcat'.
34715         * modules/unistr/u32-strcat-tests: New file.
34716         * tests/unistr/test-u32-strcat.c: New file.
34717
34718         Tests for module 'unistr/u16-strcat'.
34719         * modules/unistr/u16-strcat-tests: New file.
34720         * tests/unistr/test-u16-strcat.c: New file.
34721
34722         Tests for module 'unistr/u8-strcat'.
34723         * modules/unistr/u8-strcat-tests: New file.
34724         * tests/unistr/test-u8-strcat.c: New file.
34725         * tests/unistr/test-strcat.h: New file.
34726
34727         Tests for module 'unistr/u32-stpncpy'.
34728         * modules/unistr/u32-stpncpy-tests: New file.
34729         * tests/unistr/test-u32-stpncpy.c: New file.
34730
34731         Tests for module 'unistr/u16-stpncpy'.
34732         * modules/unistr/u16-stpncpy-tests: New file.
34733         * tests/unistr/test-u16-stpncpy.c: New file.
34734
34735         Tests for module 'unistr/u8-stpncpy'.
34736         * modules/unistr/u8-stpncpy-tests: New file.
34737         * tests/unistr/test-u8-stpncpy.c: New file.
34738         * tests/unistr/test-stpncpy.h: New file.
34739
34740         Tests for module 'unistr/u32-strncpy'.
34741         * modules/unistr/u32-strncpy-tests: New file.
34742         * tests/unistr/test-u32-strncpy.c: New file.
34743
34744         Tests for module 'unistr/u16-strncpy'.
34745         * modules/unistr/u16-strncpy-tests: New file.
34746         * tests/unistr/test-u16-strncpy.c: New file.
34747
34748         Tests for module 'unistr/u8-strncpy'.
34749         * modules/unistr/u8-strncpy-tests: New file.
34750         * tests/unistr/test-u8-strncpy.c: New file.
34751         * tests/unistr/test-strncpy.h: New file.
34752
34753         Tests for module 'unistr/u32-stpcpy'.
34754         * modules/unistr/u32-stpcpy-tests: New file.
34755         * tests/unistr/test-u32-stpcpy.c: New file.
34756
34757         Tests for module 'unistr/u16-stpcpy'.
34758         * modules/unistr/u16-stpcpy-tests: New file.
34759         * tests/unistr/test-u16-stpcpy.c: New file.
34760
34761         Tests for module 'unistr/u8-stpcpy'.
34762         * modules/unistr/u8-stpcpy-tests: New file.
34763         * tests/unistr/test-u8-stpcpy.c: New file.
34764         * tests/unistr/test-stpcpy.h: New file.
34765
34766         Tests for module 'unistr/u32-strcpy'.
34767         * modules/unistr/u32-strcpy-tests: New file.
34768         * tests/unistr/test-u32-strcpy.c: New file.
34769
34770         Tests for module 'unistr/u16-strcpy'.
34771         * modules/unistr/u16-strcpy-tests: New file.
34772         * tests/unistr/test-u16-strcpy.c: New file.
34773
34774         Tests for module 'unistr/u8-strcpy'.
34775         * modules/unistr/u8-strcpy-tests: New file.
34776         * tests/unistr/test-u8-strcpy.c: New file.
34777         * tests/unistr/test-strcpy.h: New file.
34778
34779         Tests for module 'unistr/u32-strnlen'.
34780         * modules/unistr/u32-strnlen-tests: New file.
34781         * tests/unistr/test-u32-strnlen.c: New file.
34782
34783         Tests for module 'unistr/u16-strnlen'.
34784         * modules/unistr/u16-strnlen-tests: New file.
34785         * tests/unistr/test-u16-strnlen.c: New file.
34786
34787         Tests for module 'unistr/u8-strnlen'.
34788         * modules/unistr/u8-strnlen-tests: New file.
34789         * tests/unistr/test-u8-strnlen.c: New file.
34790         * tests/unistr/test-strnlen.h: New file.
34791
34792         Tests for module 'unistr/u32-strlen'.
34793         * modules/unistr/u32-strlen-tests: New file.
34794         * tests/unistr/test-u32-strlen.c: New file.
34795
34796         Tests for module 'unistr/u16-strlen'.
34797         * modules/unistr/u16-strlen-tests: New file.
34798         * tests/unistr/test-u16-strlen.c: New file.
34799
34800         Tests for module 'unistr/u8-strlen'.
34801         * modules/unistr/u8-strlen-tests: New file.
34802         * tests/unistr/test-u8-strlen.c: New file.
34803
34804         Tests for module 'unistr/u32-prev'.
34805         * modules/unistr/u32-prev-tests: New file.
34806         * tests/unistr/test-u32-prev.c: New file.
34807
34808         Tests for module 'unistr/u16-prev'.
34809         * modules/unistr/u16-prev-tests: New file.
34810         * tests/unistr/test-u16-prev.c: New file.
34811
34812         Tests for module 'unistr/u8-prev'.
34813         * modules/unistr/u8-prev-tests: New file.
34814         * tests/unistr/test-u8-prev.c: New file.
34815
34816         Tests for module 'unistr/u32-next'.
34817         * modules/unistr/u32-next-tests: New file.
34818         * tests/unistr/test-u32-next.c: New file.
34819
34820         Tests for module 'unistr/u16-next'.
34821         * modules/unistr/u16-next-tests: New file.
34822         * tests/unistr/test-u16-next.c: New file.
34823
34824         Tests for module 'unistr/u8-next'.
34825         * modules/unistr/u8-next-tests: New file.
34826         * tests/unistr/test-u8-next.c: New file.
34827
34828         Tests for module 'unistr/u32-strmbtouc'.
34829         * modules/unistr/u32-strmbtouc-tests: New file.
34830         * tests/unistr/test-u32-strmbtouc.c: New file.
34831
34832         Tests for module 'unistr/u16-strmbtouc'.
34833         * modules/unistr/u16-strmbtouc-tests: New file.
34834         * tests/unistr/test-u16-strmbtouc.c: New file.
34835
34836         Tests for module 'unistr/u8-strmbtouc'.
34837         * modules/unistr/u8-strmbtouc-tests: New file.
34838         * tests/unistr/test-u8-strmbtouc.c: New file.
34839
34840         Tests for module 'unistr/u32-strmblen'.
34841         * modules/unistr/u32-strmblen-tests: New file.
34842         * tests/unistr/test-u32-strmblen.c: New file.
34843
34844         Tests for module 'unistr/u16-strmblen'.
34845         * modules/unistr/u16-strmblen-tests: New file.
34846         * tests/unistr/test-u16-strmblen.c: New file.
34847
34848         Tests for module 'unistr/u8-strmblen'.
34849         * modules/unistr/u8-strmblen-tests: New file.
34850         * tests/unistr/test-u8-strmblen.c: New file.
34851
34852         Tests for module 'unistr/u32-cpy-alloc'.
34853         * modules/unistr/u32-cpy-alloc-tests: New file.
34854         * tests/unistr/test-u32-cpy-alloc.c: New file.
34855
34856         Tests for module 'unistr/u16-cpy-alloc'.
34857         * modules/unistr/u16-cpy-alloc-tests: New file.
34858         * tests/unistr/test-u16-cpy-alloc.c: New file.
34859
34860         Tests for module 'unistr/u8-cpy-alloc'.
34861         * modules/unistr/u8-cpy-alloc-tests: New file.
34862         * tests/unistr/test-u8-cpy-alloc.c: New file.
34863         * tests/unistr/test-cpy-alloc.h: New file.
34864
34865         Tests for module 'unistr/u32-mbsnlen'.
34866         * modules/unistr/u32-mbsnlen-tests: New file.
34867         * tests/unistr/test-u32-mbsnlen.c: New file.
34868
34869         Tests for module 'unistr/u16-mbsnlen'.
34870         * modules/unistr/u16-mbsnlen-tests: New file.
34871         * tests/unistr/test-u16-mbsnlen.c: New file.
34872
34873         Tests for module 'unistr/u8-mbsnlen'.
34874         * modules/unistr/u8-mbsnlen-tests: New file.
34875         * tests/unistr/test-u8-mbsnlen.c: New file.
34876
34877         Tests for module 'unistr/u32-chr'.
34878         * modules/unistr/u32-chr-tests: New file.
34879         * tests/unistr/test-u32-chr.c: New file.
34880
34881         Tests for module 'unistr/u16-chr'.
34882         * modules/unistr/u16-chr-tests: New file.
34883         * tests/unistr/test-u16-chr.c: New file.
34884
34885         Tests for module 'unistr/u8-chr'.
34886         * modules/unistr/u8-chr-tests: New file.
34887         * tests/unistr/test-u8-chr.c: New file.
34888         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34889
34890         Tests for module 'unistr/u32-cmp2'.
34891         * modules/unistr/u32-cmp2-tests: New file.
34892         * tests/unistr/test-u32-cmp2.c: New file.
34893
34894         Tests for module 'unistr/u16-cmp2'.
34895         * modules/unistr/u16-cmp2-tests: New file.
34896         * tests/unistr/test-u16-cmp2.c: New file.
34897
34898         Tests for module 'unistr/u8-cmp2'.
34899         * modules/unistr/u8-cmp2-tests: New file.
34900         * tests/unistr/test-u8-cmp2.c: New file.
34901         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34902
34903         Tests for module 'unistr/u32-cmp'.
34904         * modules/unistr/u32-cmp-tests: New file.
34905         * tests/unistr/test-u32-cmp.c: New file.
34906
34907         Tests for module 'unistr/u16-cmp'.
34908         * modules/unistr/u16-cmp-tests: New file.
34909         * tests/unistr/test-u16-cmp.c: New file.
34910
34911         Tests for module 'unistr/u8-cmp'.
34912         * modules/unistr/u8-cmp-tests: New file.
34913         * tests/unistr/test-u8-cmp.c: New file.
34914         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34915
34916         Tests for module 'unistr/u32-set'.
34917         * modules/unistr/u32-set-tests: New file.
34918         * tests/unistr/test-u32-set.c: New file.
34919
34920         Tests for module 'unistr/u16-set'.
34921         * modules/unistr/u16-set-tests: New file.
34922         * tests/unistr/test-u16-set.c: New file.
34923
34924         Tests for module 'unistr/u8-set'.
34925         * modules/unistr/u8-set-tests: New file.
34926         * tests/unistr/test-u8-set.c: New file.
34927         * tests/unistr/test-set.h: New file.
34928
34929         Tests for module 'unistr/u32-move'.
34930         * modules/unistr/u32-move-tests: New file.
34931         * tests/unistr/test-u32-move.c: New file.
34932
34933         Tests for module 'unistr/u16-move'.
34934         * modules/unistr/u16-move-tests: New file.
34935         * tests/unistr/test-u16-move.c: New file.
34936
34937         Tests for module 'unistr/u8-move'.
34938         * modules/unistr/u8-move-tests: New file.
34939         * tests/unistr/test-u8-move.c: New file.
34940         * tests/unistr/test-move.h: New file.
34941
34942         Tests for module 'unistr/u32-cpy'.
34943         * modules/unistr/u32-cpy-tests: New file.
34944         * tests/unistr/test-u32-cpy.c: New file.
34945
34946         Tests for module 'unistr/u16-cpy'.
34947         * modules/unistr/u16-cpy-tests: New file.
34948         * tests/unistr/test-u16-cpy.c: New file.
34949
34950         Tests for module 'unistr/u8-cpy'.
34951         * modules/unistr/u8-cpy-tests: New file.
34952         * tests/unistr/test-u8-cpy.c: New file.
34953         * tests/unistr/test-cpy.h: New file.
34954
34955 2010-01-09  Bruno Haible  <bruno@clisp.org>
34956
34957         Tests for module 'unistr/u32-uctomb'.
34958         * modules/unistr/u32-uctomb-tests: New file.
34959         * tests/unistr/test-u32-uctomb.c: New file.
34960
34961         Tests for module 'unistr/u16-uctomb'.
34962         * modules/unistr/u16-uctomb-tests: New file.
34963         * tests/unistr/test-u16-uctomb.c: New file.
34964
34965         Tests for module 'unistr/u8-uctomb'.
34966         * modules/unistr/u8-uctomb-tests: New file.
34967         * tests/unistr/test-u8-uctomb.c: New file.
34968
34969         Tests for module 'unistr/u32-mbtoucr'.
34970         * modules/unistr/u32-mbtoucr-tests: New file.
34971         * tests/unistr/test-u32-mbtoucr.c: New file.
34972
34973         Tests for module 'unistr/u16-mbtoucr'.
34974         * modules/unistr/u16-mbtoucr-tests: New file.
34975         * tests/unistr/test-u16-mbtoucr.c: New file.
34976
34977         Tests for module 'unistr/u8-mbtoucr'.
34978         * modules/unistr/u8-mbtoucr-tests: New file.
34979         * tests/unistr/test-u8-mbtoucr.c: New file.
34980
34981         Tests for module 'unistr/u32-mbtouc'.
34982         * modules/unistr/u32-mbtouc-tests: New file.
34983         * tests/unistr/test-u32-mbtouc.c: New file.
34984
34985         Tests for module 'unistr/u16-mbtouc'.
34986         * modules/unistr/u16-mbtouc-tests: New file.
34987         * tests/unistr/test-u16-mbtouc.c: New file.
34988
34989         Tests for module 'unistr/u8-mbtouc'.
34990         * modules/unistr/u8-mbtouc-tests: New file.
34991         * tests/unistr/test-u8-mbtouc.c: New file.
34992
34993         Tests for module 'unistr/u32-mbtouc-unsafe'.
34994         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34995         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34996         * tests/unistr/test-u32-mbtouc.h: New file.
34997
34998         Tests for module 'unistr/u16-mbtouc-unsafe'.
34999         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35000         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35001         * tests/unistr/test-u16-mbtouc.h: New file.
35002
35003         Tests for module 'unistr/u8-mbtouc-unsafe'.
35004         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35005         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35006         * tests/unistr/test-u8-mbtouc.h: New file.
35007
35008         Tests for module 'unistr/u32-mblen'.
35009         * modules/unistr/u32-mblen-tests: New file.
35010         * tests/unistr/test-u32-mblen.c: New file.
35011
35012         Tests for module 'unistr/u16-mblen'.
35013         * modules/unistr/u16-mblen-tests: New file.
35014         * tests/unistr/test-u16-mblen.c: New file.
35015
35016         Tests for module 'unistr/u8-mblen'.
35017         * modules/unistr/u8-mblen-tests: New file.
35018         * tests/unistr/test-u8-mblen.c: New file.
35019
35020         Tests for module 'unistr/u32-to-u16'.
35021         * modules/unistr/u32-to-u16-tests: New file.
35022         * tests/unistr/test-u32-to-u16.c: New file.
35023
35024         Tests for module 'unistr/u32-to-u8'.
35025         * modules/unistr/u32-to-u8-tests: New file.
35026         * tests/unistr/test-u32-to-u8.c: New file.
35027
35028         Tests for module 'unistr/u16-to-u32'.
35029         * modules/unistr/u16-to-u32-tests: New file.
35030         * tests/unistr/test-u16-to-u32.c: New file.
35031
35032         Tests for module 'unistr/u16-to-u8'.
35033         * modules/unistr/u16-to-u8-tests: New file.
35034         * tests/unistr/test-u16-to-u8.c: New file.
35035
35036         Tests for module 'unistr/u8-to-u32'.
35037         * modules/unistr/u8-to-u32-tests: New file.
35038         * tests/unistr/test-u8-to-u32.c: New file.
35039
35040         Tests for module 'unistr/u8-to-u16'.
35041         * modules/unistr/u8-to-u16-tests: New file.
35042         * tests/unistr/test-u8-to-u16.c: New file.
35043
35044         Tests for module 'unistr/u32-check'.
35045         * modules/unistr/u32-check-tests: New file.
35046         * tests/unistr/test-u32-check.c: New file.
35047
35048         Tests for module 'unistr/u16-check'.
35049         * modules/unistr/u16-check-tests: New file.
35050         * tests/unistr/test-u16-check.c: New file.
35051
35052         Tests for module 'unistr/u8-check'.
35053         * modules/unistr/u8-check-tests: New file.
35054         * tests/unistr/test-u8-check.c: New file.
35055
35056         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35057         (category_equals): New function.
35058         (main): Add more tests.
35059         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35060
35061         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35062
35063 2010-01-10  Bruno Haible  <bruno@clisp.org>
35064
35065         unistr/u*-strcoll: Try harder to distinguish different strings.
35066         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35067         compare s1 and s2 to see if they are different.
35068
35069 2010-01-10  Bruno Haible  <bruno@clisp.org>
35070
35071         unistr/u*-stpncpy: Fix the return value.
35072         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35073         description of the return value consistent with stpncpy in glibc.
35074         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35075         written non-NUL unit.
35076
35077 2010-01-10  Bruno Haible  <bruno@clisp.org>
35078
35079         unistr/u*-next: Add missing dependencies.
35080         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35081         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35082         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35083
35084 2010-01-10  Bruno Haible  <bruno@clisp.org>
35085
35086         unistr/u8-mbsnlen: Fix return value for incomplete character.
35087         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35088         u8_mblen.
35089         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35090         Remove unistr/u8-mblen.
35091         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35092         u16_mblen.
35093         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35094         Remove unistr/u16-mblen.
35095
35096 2010-01-10  Bruno Haible  <bruno@clisp.org>
35097
35098         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35099         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35100         Reported by Brian Gough <bjg@gnu.org> and
35101         Chris Clayton <chris2553@googlemail.com> via
35102         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35103
35104 2010-01-09  Bruno Haible  <bruno@clisp.org>
35105
35106         unistr/u16-to-u32: Reject invalid input.
35107         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35108         u16_mbtouc.
35109         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35110         Remove unistr/u16-mbtouc.
35111
35112         unistr/u16-to-u8: Reject invalid input.
35113         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35114         u16_mbtouc.
35115         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35116         Remove unistr/u16-mbtouc.
35117
35118         unistr/u8-to-u32: Reject invalid input.
35119         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35120         u8_mbtouc.
35121         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35122         Remove unistr/u8-mbtouc.
35123
35124         unistr/u8-to-u16: Reject invalid input.
35125         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35126         u8_mbtouc.
35127         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35128         Remove unistr/u8-mbtouc.
35129
35130 2010-01-09  Bruno Haible  <bruno@clisp.org>
35131
35132         Tests for module 'getlogin'.
35133         * modules/getlogin-tests: New file.
35134         * tests/test-getlogin.c: New file.
35135
35136         New module 'getlogin'.
35137         * lib/unistd.in.h (getlogin): New declaration.
35138         * lib/getlogin.c: New file.
35139         * m4/getlogin.m4: New file.
35140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35141         HAVE_GETLOGIN.
35142         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35143         HAVE_GETLOGIN.
35144         * modules/getlogin: New file.
35145         * doc/posix-functions/getlogin.texi: Mention the new module.
35146         Reported by John W. Eaton <jwe@gnu.org>.
35147
35148 2010-01-09  Bruno Haible  <bruno@clisp.org>
35149
35150         getlogin_r: Support for native Windows.
35151         * lib/getlogin_r.c: Include <windows.h>
35152         (getlogin_r): Implement for native Windows.
35153         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35154         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35155         via John W. Eaton <jwe@gnu.org>.
35156
35157 2010-01-09  Bruno Haible  <bruno@clisp.org>
35158
35159         getlogin_r: Small fixes.
35160         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35161         succeeds.
35162         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35163         before testing whether getlogin_r is declared. No need to set
35164         HAVE_DECL_GETLOGIN_R to 1.
35165         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35166
35167 2010-01-09  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/unistd.in.h (getlogin_r): Add comment.
35170
35171 2010-01-09  Bruno Haible  <bruno@clisp.org>
35172
35173         Tests for module 'getlogin_r'.
35174         * modules/getlogin_r-tests: New file.
35175         * tests/test-getlogin_r.c: New file.
35176
35177 2010-01-09  Jim Meyering  <meyering@redhat.com>
35178
35179         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35180         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35181         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35182
35183 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35184
35185         * lib/dup2.c (rpl_dup2): Improve comment.
35186
35187 2010-01-08  Eric Blake  <ebb9@byu.net>
35188
35189         maint.mk: allow packages to add makefile @@ exceptions
35190         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35191         (sc_makefile_check): Rename...
35192         (sc_makefile_at_at_check): ...to this, and use hook.
35193
35194         dup2: work around mingw bug
35195         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35196         Reported by Simon Josefsson.
35197
35198 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35199
35200         glob: Fix C++ compilation.
35201         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35202         C++.
35203
35204 2010-01-07  Bruno Haible  <bruno@clisp.org>
35205
35206         Fix indentation of wctype.in.h, broken since 2007-01-06.
35207         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35208
35209 2010-01-07  Bruno Haible  <bruno@clisp.org>
35210
35211         mbslen: Avoid collision with system function.
35212         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35213         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35214         * m4/mbslen.m4: New file.
35215         * modules/mbslen (Files): Add it.
35216         (configure.ac): Invoke gl_MBSLEN.
35217         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35218         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35219         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35220         via Ian Beckwith <ianb@erislabs.net>.
35221
35222 2010-01-07  Bruno Haible  <bruno@clisp.org>
35223
35224         dirent: Document the last fix.
35225         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35226
35227 2010-01-07  Bruno Haible  <bruno@clisp.org>
35228
35229         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35230         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35231         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35232         va_list are defined.
35233         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35234         Reported by Eric Blake.
35235
35236 2010-01-07  Bruno Haible  <bruno@clisp.org>
35237
35238         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35239         * modules/xlist (Depends-on): Add 'list',
35240         * modules/xoset (Depends-on): Add 'oset'.
35241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35242
35243 2010-01-07  Bruno Haible  <bruno@clisp.org>
35244
35245         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35246         * doc/posix-functions/strncasecmp.texi: Likewise.
35247
35248 2010-01-07  Bruno Haible  <bruno@clisp.org>
35249
35250         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35251
35252 2010-01-07  John W. Eaton  <jwe@octave.org>
35253
35254         wctype: allow C++ use
35255         * lib/wctype.in.h: Add extern "C" block for C++.
35256
35257 2010-01-06  Eric Blake  <ebb9@byu.net>
35258
35259         maint.mk: detect incorrect GFDL usage
35260         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35261
35262 2010-01-06  Jim Meyering  <meyering@redhat.com>
35263         and Eric Blake  <ebb9@byu.net>
35264
35265         maint.mk: ignore multi-line copyright in NEWS
35266         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35267
35268 2010-01-06  Eric Blake  <ebb9@byu.net>
35269
35270         select: add missing dependency
35271         * modules/select-tests (Depends-on): Move sockets dependency...
35272         * modules/select (Depends-on): ...here.
35273         Reported by Ian Beckwith.
35274
35275         doc: regenerate INSTALL
35276         * doc/INSTALL: Reflect recent autoconf update.
35277         * doc/INSTALL.ISO: Likewise.
35278         * doc/INSTALL.UTF-8: Likewise.
35279
35280         pread: fix compilation on glibc
35281         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35282         Reported by Ralf Wildenhues.
35283
35284         dirent: fix test failure
35285         * lib/dirent.in.h (includes): Guarantee ino_t.
35286         Reported by Ralf Wildenhues.
35287
35288 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35289
35290         linkat, renameat: avoid bad free
35291         * lib/at-func2.c (at_func2): Fix typo.
35292         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35293
35294 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35295
35296         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35297         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35298         to avoid failure of symlink test later.
35299
35300 2010-01-06  Eric Blake  <ebb9@byu.net>
35301
35302         stdio, unistd: guarantee ssize_t
35303         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35304         2008 are exposed when needed.
35305         * lib/stdio.in.h (includes): Likewise.
35306         Reported by Ralf Wildenhues.
35307
35308 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35309
35310         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35311         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35312         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35313
35314 2010-01-06  Jim Meyering  <meyering@redhat.com>
35315
35316         readtokens: this module *does* require xalloc.h
35317         It uses only functions that were omitted by the old syntax-check rule.
35318         * lib/readtokens.c: Include "xalloc.h" once again.
35319         * modules/readtokens (Depends-on): Add xalloc.
35320         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35321
35322 2010-01-05  Eric Blake  <ebb9@byu.net>
35323
35324         maint: support 'make announcement' from a VPATH build
35325         * top/maint.mk (announcement): Look for correct NEWS file.
35326
35327 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35328
35329         utimens (fdutimens): ignore a negative FD, per contract
35330         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35331         when we have a valid file descriptor.  Otherwise, using a brand
35332         new glibc (with just-patched futimens that now fails with EBADF)
35333         would cause this function to fail with ENOSYS.
35334         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35335         See also http://bugzilla.redhat.com/552320.
35336
35337 2010-01-05  Eric Blake  <ebb9@byu.net>
35338
35339         strcase: document what it provides
35340         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35341         gnulib module.
35342         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35343         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35344
35345 2010-01-05  Jim Meyering  <meyering@redhat.com>
35346
35347         maint: remove useless inclusions of "xalloc.h"
35348         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35349         * lib/readtokens.c: Likewise.
35350         * lib/same.c: Likewise.
35351         * modules/getloadavg (Depends-on): Remove xalloc.
35352         * modules/readtokens: Likewise.
35353         * modules/same: Likewise.
35354
35355         maint.mk: include 4 more function names in alloca.h-checking regexp
35356         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35357         regexp.  Before, we would give a false-positive (saying alloca.h
35358         is included unnecessarily) when the only uses involved omitted symbols.
35359
35360         xalloc.h: use consistent formatting
35361         * lib/xalloc.h: Move declarations to start in the first column.
35362
35363 2010-01-05  Eric Blake  <ebb9@byu.net>
35364
35365         mkdir: avoid xalloc
35366         * lib/mkdir.c (includes): Drop unused header.
35367         Reported by John W. Eaton.
35368
35369 2010-01-04  Jim Meyering  <meyering@redhat.com>
35370
35371         nl_langinfo: avoid configure-time syntax error
35372         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35373         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35374         the empty string.  Don't let that provoke a shell syntax error.
35375
35376         regcomp, regexec, fnmatch: avoid array bounds read error
35377         * lib/regcomp.c (build_equiv_class): From glibc:
35378         Use only the low 24 bits of a findidx return value as an index
35379         into the weights array.  Patch by Ulrich Drepper:
35380         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35381         * lib/regexec.c (check_node_accept_bytes): Likewise.
35382         * lib/fnmatch_loop.c (FCT): Likewise.
35383
35384         regcomp: skip collseq lookup when there are no rules
35385         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35386         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35387
35388         regcomp: recognize ill-formed { } expressions
35389         * lib/regcomp.c (parse_dup_op): From glibc:
35390         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35391
35392         regcomp: fix typo in comment
35393         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35394         s/satisfy/satisfies/.
35395
35396         regcomp: sync from glibc: remove dead store
35397         * lib/regcomp.c (duplicate_node_closure): Remove useless
35398         search_duplicated_node call and dead store.
35399
35400         regcomp: sync from glibc; always use nl_langinfo
35401         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35402         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35403         * modules/regex (Depends-on): Add nl_langinfo.
35404
35405 2010-01-04  Eric Blake  <ebb9@byu.net>
35406
35407         fdopendir: fix configure test
35408         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35409
35410 2010-01-01  Bruno Haible  <bruno@clisp.org>
35411
35412         wchar: Remove unused configure check.
35413         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35414
35415 2010-01-01  Eric Blake  <ebb9@byu.net>
35416
35417         headers: make check of system header explicit
35418         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35419         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35420         ourselves.
35421         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35423         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35424         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35425         internals.
35426         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35427         missing.
35428         Suggested by Bruno Haible.
35429
35430 2010-01-01  Jim Meyering  <meyering@redhat.com>
35431
35432         ChangeLog: tweak to eliminate unnecessary copyright line
35433         * ChangeLog: Remove a copyright line that was mistakenly updated
35434         by today's update-copyright run.  Reported by Eric Blake.
35435
35436         test-update-copyright: don't let envvar setting cause test failure
35437         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35438
35439 2010-01-01  Bruno Haible  <bruno@clisp.org>
35440
35441         localename: Avoid gcc warning.
35442         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35443         function if it is not used.
35444
35445 2010-01-01  Jim Meyering  <meyering@redhat.com>
35446
35447         update nearly all FSF copyright year lists to include 2010
35448         Use the same procedure as for 2009, outlined in
35449         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35450
35451         version-etc: set COPYRIGHT_YEAR to 2010
35452         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35453
35454 2009-12-31  Eric Blake  <ebb9@byu.net>
35455
35456         doc: correct availability of cygwin 1.5.x getopt
35457         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35458         variables.
35459         * doc/posix-functions/opterr.texi (opterr): Likewise.
35460         * doc/posix-functions/optind.texi (optind): Likewise.
35461         * doc/posix-functions/optopt.texi (optopt): Likewise.
35462         * doc/posix-functions/tzname.texi (tzname): Likewise.
35463
35464         openat: update maintainer
35465         * modules/openat (Maintainer): Add myself.
35466
35467         utimens: avoid shadowing warning
35468         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35469         buffers into one, to avoid shadowing, as well as avoiding a
35470         redundant stat.
35471         Reported by Jim Meyering.
35472
35473         test-dup2: avoid compiler warning
35474         * tests/test-dup2.c (is_inheritable): Only define if used.
35475
35476 2010-01-01  Bruno Haible  <bruno@clisp.org>
35477
35478         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35479         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35480         defined, use wctomb instead of wcrtomb.
35481
35482 2010-01-01  Bruno Haible  <bruno@clisp.org>
35483
35484         iconv: Reject native Solaris iconv.
35485         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35486         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35487
35488 2009-12-31  Bruno Haible  <bruno@clisp.org>
35489
35490         * tests/test-signal.c (main): Remove test of 'SIG'.
35491
35492 2009-12-31  Bruno Haible  <bruno@clisp.org>
35493
35494         spawn: Fix incomplete fix.
35495         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35496         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35497         warnings for GNULIB_POSIXCHECK again.
35498         Reported by Eric Blake.
35499
35500 2009-12-31  Bruno Haible  <bruno@clisp.org>
35501
35502         Avoid namespace pollution on glibc systems.
35503         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35504         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35505         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35506         glibc systems.
35507
35508 2009-12-31  Bruno Haible  <bruno@clisp.org>
35509
35510         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35511         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35512         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35513         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35514         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35515         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35516         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35517
35518 2009-12-31  Bruno Haible  <bruno@clisp.org>
35519
35520         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35521         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35522         afterwards.
35523
35524 2009-12-31  Bruno Haible  <bruno@clisp.org>
35525
35526         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35527         SYS_UTSNAME_H.
35528
35529 2009-12-31  Bruno Haible  <bruno@clisp.org>
35530
35531         spawn: Fix misapplied patch.
35532         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35533         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35534         warnings for GNULIB_POSIXCHECK.
35535
35536 2009-12-31  Bruno Haible  <bruno@clisp.org>
35537
35538         times: Update after sys_times changed.
35539         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35540         * modules/times (Files): Add it.
35541         (configure.ac): Invoke gl_FUNC_TIMES.
35542
35543 2009-12-31  Bruno Haible  <bruno@clisp.org>
35544
35545         Use AC_C_INLINE where necessary.
35546         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35547         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35548         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35549         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35550         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35551         * m4/mbiter.m4 (gl_MBITER): Likewise.
35552         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35553         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35554         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35555         * modules/u64 (configure.ac): Likewise.
35556
35557 2009-12-31  Bruno Haible  <bruno@clisp.org>
35558
35559         Use AC_C_INLINE instead of module 'inline' where possible.
35560         * modules/inline (Description): Clarify purpose.
35561         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35562         * modules/count-one-bits (Depends-on): Remove inline.
35563         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35564         * modules/openat (Depends-on): Remove inline.
35565         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35566         instead of depending on module 'inline'.
35567         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35568         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35569         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35570         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35571         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35572         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35573         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35574         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35575         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35576         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35577         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35578         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35579         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35580         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35581         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35582         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35583         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35584         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35585         Likewise.
35586         * modules/unictype/property-ascii-hex-digit (Depends-on,
35587         configure.ac): Likewise.
35588         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35589         configure.ac): Likewise.
35590         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35591         configure.ac): Likewise.
35592         * modules/unictype/property-bidi-block-separator (Depends-on,
35593         configure.ac): Likewise.
35594         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35595         configure.ac): Likewise.
35596         * modules/unictype/property-bidi-common-separator (Depends-on,
35597         configure.ac): Likewise.
35598         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35599         Likewise.
35600         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35601         configure.ac): Likewise.
35602         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35603         configure.ac): Likewise.
35604         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35605         configure.ac): Likewise.
35606         * modules/unictype/property-bidi-european-digit (Depends-on,
35607         configure.ac): Likewise.
35608         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35609         configure.ac): Likewise.
35610         * modules/unictype/property-bidi-left-to-right (Depends-on,
35611         configure.ac): Likewise.
35612         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35613         configure.ac): Likewise.
35614         * modules/unictype/property-bidi-other-neutral (Depends-on,
35615         configure.ac): Likewise.
35616         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35617         Likewise.
35618         * modules/unictype/property-bidi-segment-separator (Depends-on,
35619         configure.ac): Likewise.
35620         * modules/unictype/property-bidi-whitespace (Depends-on,
35621         configure.ac): Likewise.
35622         * modules/unictype/property-combining (Depends-on, configure.ac):
35623         Likewise.
35624         * modules/unictype/property-composite (Depends-on, configure.ac):
35625         Likewise.
35626         * modules/unictype/property-currency-symbol (Depends-on,
35627         configure.ac): Likewise.
35628         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35629         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35630         Likewise.
35631         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35632         configure.ac): Likewise.
35633         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35634         Likewise.
35635         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35636         Likewise.
35637         * modules/unictype/property-extender (Depends-on, configure.ac):
35638         Likewise.
35639         * modules/unictype/property-format-control (Depends-on, configure.ac):
35640         Likewise.
35641         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35642         Likewise.
35643         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35644         Likewise.
35645         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35646         Likewise.
35647         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35648         Likewise.
35649         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35650         Likewise.
35651         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35652         Likewise.
35653         * modules/unictype/property-id-start (Depends-on, configure.ac):
35654         Likewise.
35655         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35656         Likewise.
35657         * modules/unictype/property-ids-binary-operator (Depends-on,
35658         configure.ac): Likewise.
35659         * modules/unictype/property-ids-trinary-operator (Depends-on,
35660         configure.ac): Likewise.
35661         * modules/unictype/property-ignorable-control (Depends-on,
35662         configure.ac): Likewise.
35663         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35664         Likewise.
35665         * modules/unictype/property-join-control (Depends-on, configure.ac):
35666         Likewise.
35667         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35668         Likewise.
35669         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35670         Likewise.
35671         * modules/unictype/property-logical-order-exception (Depends-on,
35672         configure.ac): Likewise.
35673         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35674         Likewise.
35675         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35676         * modules/unictype/property-non-break (Depends-on, configure.ac):
35677         Likewise.
35678         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35679         Likewise.
35680         * modules/unictype/property-numeric (Depends-on, configure.ac):
35681         Likewise.
35682         * modules/unictype/property-other-alphabetic (Depends-on,
35683         configure.ac): Likewise.
35684         * modules/unictype/property-other-default-ignorable-code-point
35685         (Depends-on, configure.ac): Likewise.
35686         * modules/unictype/property-other-grapheme-extend (Depends-on,
35687         configure.ac): Likewise.
35688         * modules/unictype/property-other-id-continue (Depends-on,
35689         configure.ac): Likewise.
35690         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35691         Likewise.
35692         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35693         Likewise.
35694         * modules/unictype/property-other-math (Depends-on, configure.ac):
35695         Likewise.
35696         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35697         Likewise.
35698         * modules/unictype/property-paired-punctuation (Depends-on,
35699         configure.ac): Likewise.
35700         * modules/unictype/property-paragraph-separator (Depends-on,
35701         configure.ac): Likewise.
35702         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35703         Likewise.
35704         * modules/unictype/property-pattern-white-space (Depends-on,
35705         configure.ac): Likewise.
35706         * modules/unictype/property-private-use (Depends-on, configure.ac):
35707         Likewise.
35708         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35709         Likewise.
35710         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35711         Likewise.
35712         * modules/unictype/property-radical (Depends-on, configure.ac):
35713         Likewise.
35714         * modules/unictype/property-sentence-terminal (Depends-on,
35715         configure.ac): Likewise.
35716         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35717         Likewise.
35718         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35719         * modules/unictype/property-terminal-punctuation (Depends-on,
35720         configure.ac): Likewise.
35721         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35722         Likewise.
35723         * modules/unictype/property-unassigned-code-value (Depends-on,
35724         configure.ac): Likewise.
35725         * modules/unictype/property-unified-ideograph (Depends-on,
35726         configure.ac): Likewise.
35727         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35728         Likewise.
35729         * modules/unictype/property-variation-selector (Depends-on,
35730         configure.ac): Likewise.
35731         * modules/unictype/property-white-space (Depends-on, configure.ac):
35732         Likewise.
35733         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35734         Likewise.
35735         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35736         Likewise.
35737         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35738         Likewise.
35739         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35740         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35741         Likewise.
35742
35743 2009-12-31  Bruno Haible  <bruno@clisp.org>
35744
35745         Remove unnecessary AC_C_INLINE invocation.
35746         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35747         since 2009-08-21.
35748
35749 2009-12-31  Jim Meyering  <meyering@redhat.com>
35750
35751         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35752         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35753         With this change, we can all remove the gpg_key_ID = ... definition
35754         from our respective cfg.mk files.
35755
35756         maint.mk: create announcement template in ~/, not in /tmp
35757         * top/maint.mk (emit_upload_commands): Adjust.
35758         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35759         Remove temporary file, .ci-msg.
35760
35761 2009-12-31  Eric Blake  <ebb9@byu.net>
35762
35763         link-warning: always build headers with link warnings
35764         * modules/arpa_inet (Makefile.am): Always build replacement
35765         header.
35766         * modules/ctype (Makefile.am): Likewise.
35767         * modules/dirent (Makefile.am): Likewise.
35768         * modules/inttypes (Makefile.am): Likewise.
35769         * modules/langinfo (Makefile.am): Likewise.
35770         * modules/locale (Makefile.am): Likewise.
35771         * modules/spawn (Makefile.am): Likewise.
35772         * modules/sys_file (Makefile.am): Likewise.
35773         * modules/sys_ioctl (Makefile.am): Likewise.
35774         * modules/sys_select (Makefile.am): Likewise.
35775         * modules/sys_socket (Makefile.am): Likewise.
35776         * modules/sys_times (Makefile.am): Likewise.
35777         * modules/sys_utsname (Makefile.am): Likewise.
35778         * modules/sys_wait (Makefile.am): Likewise.
35779         * modules/wchar (Makefile.am): Likewise.
35780         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35781         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35782         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35783         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35784         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35785         Likewise.
35786         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35787         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35788         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35789         Likewise.
35790         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35791         Likewise.
35792         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35793         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35794         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35796         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35797         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35798         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35799         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35800         (gl_WCHAR_H_DEFAULTS): Likewise.
35801
35802 2009-12-31  Eric Blake  <ebb9@byu.net>
35803
35804         signal, spawn: use link warnings
35805         * lib/signal.in.h (sigset_t): Make unconditional.
35806         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35807         (sigpending, sigprocmask, sigaction): Add link warnings.
35808         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35809         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35810         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35811         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35812         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35813         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35814         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35815         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35816         (posix_spawn_file_actions_destroy)
35817         (posix_spawn_file_actions_addopen)
35818         (posix_spawn_file_actions_addclose)
35819         (posix_spawn_file_actions_adddup2): Likewise.
35820         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35821         * tests/test-signal.c (main): Enhance test.
35822
35823         spawn: improve wrapper support
35824         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35825         (gl_SPAWN_H_DEFAULTS): New defaults.
35826         * modules/spawn (Makefile.am): Substitute them.
35827         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35828         Only declare if missing or broken.
35829
35830         sys_times, sys_utsname: use include_next
35831         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35832         header.
35833         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35834         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35835         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35836         * modules/sys_times (Depends-on): Add include_next.
35837         (Makefile.am): Substitute additional values.
35838         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35839         * lib/sys_times.in.h (includes): Include native header, if
35840         available.
35841         * lib/sys_utsname.in.h (includes): Likewise.
35842         * tests/test-sys_times.c (main): Enhance test.
35843
35844         fdutimensat: revert prior patch
35845         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35846         utimens.h.
35847         Reported by Bruno Haible.
35848
35849 2009-12-30  Eric Blake  <ebb9@byu.net>
35850
35851         sys_wait: drop link-warning dependency
35852         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35853         link-warning efforts.
35854         * lib/sys_wait.in.h: Likewise.
35855
35856         fdutimensat: remove bogus dependency
35857         * modules/fdutimensat (Depends-on): Drop inline.
35858
35859         unistd: fix typo
35860         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35861
35862 2009-12-30  Bruno Haible  <bruno@clisp.org>
35863
35864         Fix compilation error with Solaris cc.
35865         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35866         * lib/unicase/u16-is-invariant.c: Likewise.
35867         * lib/unicase/u32-is-invariant.c: Likewise.
35868         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35869
35870 2009-12-30  Bruno Haible  <bruno@clisp.org>
35871
35872         Fix test crash.
35873         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35874         locales.
35875         Reported by Simon Josefsson <simon@josefsson.org>.
35876
35877 2009-12-30  Bruno Haible  <bruno@clisp.org>
35878
35879         Fix compilation error on most platforms.
35880         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35881         Reported by Simon Josefsson <simon@josefsson.org>
35882         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35883
35884 2009-12-30  Eric Blake  <ebb9@byu.net>
35885
35886         futimens, utimensat: work around ntfs-3g bug
35887         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35888         a ctime bug is present, and expand workaround to cover ntfs-3g.
35889         * lib/utimens.c (fdutimens, lutimens): Likewise.
35890         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35891         (validate_timespec): Adjust return value.
35892         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35893         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35894         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35895
35896 2009-12-29  Eric Blake  <ebb9@byu.net>
35897
35898         link-warning: make usage consistent
35899         * modules/ctype (Depends-on): Add link-warning.
35900         (Makefile.am): Update rules accordingly.
35901         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35902         * modules/locale (Depends-on, Makefile.am): Likewise.
35903         * modules/sys_file (Makefile.am): Likewise.
35904         * modules/getopt-posix (Makefile.am): Delete unused link warning
35905         efforts.
35906         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35907         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35908         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35909         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35910
35911         stdio: remove unused variables
35912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35913         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35914         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35915
35916         tests: test more substitute headers
35917         * modules/ctype-tests: New file.
35918         * modules/dirent-tests: Likewise.
35919         * modules/spawn-tests: Likewise.
35920         * modules/sys_file-tests: Likewise.
35921         * modules/sys_ioctl-tests: Likewise.
35922         * modules/sys_wait-tests: Likewise.
35923         * tests/test-ctype.c: Likewise.
35924         * tests/test-dirent.c: Likewise.
35925         * tests/test-spawn.c: Likewise.
35926         * tests/test-sys_file.c: Likewise.
35927         * tests/test-sys_ioctl.c: Likewise.
35928         * tests/test-sys_wait.c: Likewise.
35929         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35930         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35931         whether or not flock is in use.
35932
35933         tests: remove License section from module
35934         * modules/arpa_inet-tests: Remove unneeded section.
35935         * modules/byteswap-tests: Likewise.
35936         * modules/ceilf-tests: Likewise.
35937         * modules/ceill-tests: Likewise.
35938         * modules/crypto/des-tests: Likewise.
35939         * modules/crypto/gc-arcfour-tests: Likewise.
35940         * modules/crypto/gc-arctwo-tests: Likewise.
35941         * modules/crypto/gc-des-tests: Likewise.
35942         * modules/crypto/gc-hmac-md5-tests: Likewise.
35943         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35944         * modules/crypto/gc-md2-tests: Likewise.
35945         * modules/crypto/gc-md4-tests: Likewise.
35946         * modules/crypto/gc-md5-tests: Likewise.
35947         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35948         * modules/crypto/gc-rijndael-tests: Likewise.
35949         * modules/crypto/gc-sha1-tests: Likewise.
35950         * modules/crypto/gc-tests: Likewise.
35951         * modules/crypto/md2-tests: Likewise.
35952         * modules/crypto/md4-tests: Likewise.
35953         * modules/fcntl-h-tests: Likewise.
35954         * modules/floorf-tests: Likewise.
35955         * modules/floorl-tests: Likewise.
35956         * modules/frexp-nolibm-tests: Likewise.
35957         * modules/frexp-tests: Likewise.
35958         * modules/frexpl-nolibm-tests: Likewise.
35959         * modules/frexpl-tests: Likewise.
35960         * modules/getaddrinfo-tests: Likewise.
35961         * modules/inttypes-tests: Likewise.
35962         * modules/isfinite-tests: Likewise.
35963         * modules/isinf-tests: Likewise.
35964         * modules/ldexpl-tests: Likewise.
35965         * modules/locale-tests: Likewise.
35966         * modules/math-tests: Likewise.
35967         * modules/netdb-tests: Likewise.
35968         * modules/netinet_in-tests: Likewise.
35969         * modules/printf-frexp-tests: Likewise.
35970         * modules/printf-frexpl-tests: Likewise.
35971         * modules/priv-set-tests: Likewise.
35972         * modules/random_r-tests: Likewise.
35973         * modules/round-tests: Likewise.
35974         * modules/roundf-tests: Likewise.
35975         * modules/roundl-tests: Likewise.
35976         * modules/search-tests: Likewise.
35977         * modules/select-tests: Likewise.
35978         * modules/signal-tests: Likewise.
35979         * modules/stdbool-tests: Likewise.
35980         * modules/stddef-tests: Likewise.
35981         * modules/stdint-tests: Likewise.
35982         * modules/stdio-tests: Likewise.
35983         * modules/stdlib-tests: Likewise.
35984         * modules/string-tests: Likewise.
35985         * modules/strings-tests: Likewise.
35986         * modules/sys_select-tests: Likewise.
35987         * modules/sys_socket-tests: Likewise.
35988         * modules/sys_stat-tests: Likewise.
35989         * modules/sys_time-tests: Likewise.
35990         * modules/sys_utsname-tests: Likewise.
35991         * modules/sysexits-tests: Likewise.
35992         * modules/time-tests: Likewise.
35993         * modules/trunc-tests: Likewise.
35994         * modules/truncf-tests: Likewise.
35995         * modules/truncl-tests: Likewise.
35996         * modules/tsearch-tests: Likewise.
35997         * modules/unistd-tests: Likewise.
35998         * modules/wchar-tests: Likewise.
35999         * modules/wctype-tests: Likewise.
36000
36001         tests: fix license on several tests
36002         * tests/test-des.c: Update to GPLv3+.
36003         * tests/test-flock.c: Likewise.
36004         * tests/test-fsync.c: Likewise.
36005         * tests/test-futimens.h: Likewise.
36006         * tests/test-gc-arcfour.c: Likewise.
36007         * tests/test-gc-arctwo.c: Likewise.
36008         * tests/test-gc-des.c: Likewise.
36009         * tests/test-gc-hmac-md5.c: Likewise.
36010         * tests/test-gc-hmac-sha1.c: Likewise.
36011         * tests/test-gc-md2.c: Likewise.
36012         * tests/test-gc-md4.c: Likewise.
36013         * tests/test-gc-md5.c: Likewise.
36014         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36015         * tests/test-gc-rijndael.c: Likewise.
36016         * tests/test-gc-sha1.c: Likewise.
36017         * tests/test-gc.c: Likewise.
36018         * tests/test-getcwd.c: Likewise.
36019         * tests/test-link.c: Likewise.
36020         * tests/test-link.h: Likewise.
36021         * tests/test-lutimens.h: Likewise.
36022         * tests/test-md2.c: Likewise.
36023         * tests/test-md4.c: Likewise.
36024         * tests/test-mkdir.h: Likewise.
36025         * tests/test-rename.c: Likewise.
36026         * tests/test-rename.h: Likewise.
36027         * tests/test-safe-alloc.c: Likewise.
36028         * tests/test-utimens-common.h: Likewise.
36029         * tests/test-utimens.h: Likewise.
36030
36031         maint: sync license texts
36032         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36033         * doc/gpl-3.0.texi: Revert copyright year update.
36034         * doc/lgpl-3.0.texi: Likewise.
36035
36036 2009-12-29  Jim Meyering  <meyering@redhat.com>
36037
36038         update nearly all FSF copyright year lists to include 2009
36039         The files named by the following are exempted:
36040             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36041               test -f "$dst" && { echo "$dst"; continue; }
36042               test -d "$dst" || continue
36043               echo "$dst"/$(basename "$src")
36044             done > exempt
36045             git ls-files tests/unictype >> exempt
36046         In the remaining files, convert to all-interval notation if
36047         - there is already at least one year interval like 2000-2003
36048         - the file is maintained by me
36049         - the file is in lib/uni*/, where that style already prevails
36050         Otherwise, use update-copyright's default.
36051
36052 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36053         and Eric Blake  <ebb9@byu.net>
36054
36055         tests: don't require debug system() to pass
36056         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36057         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36058         * tests/test-unlink.h (test_unlink_func): Likewise.
36059         * tests/test-fstatat.c (main): ...into callers.
36060         * tests/test-lstat.c (main): Likewise.
36061         * tests/test-rmdir.c (main): Likewise.
36062         * tests/test-unlink.c (main): Likewise.
36063         * tests/test-unlinkat.c (main): Likewise.
36064         * tests/test-areadlink-with-size.c (main): Don't require a
36065         debug-only system call to pass, aiding cross-testing to mingw.
36066         * tests/test-areadlink.c (main): Likewise.
36067         * tests/test-areadlinkat-with-size.c (main): Likewise.
36068         * tests/test-areadlinkat.c (main): Likewise.
36069         * tests/test-canonicalize-lgpl.c (main): Likewise.
36070         * tests/test-canonicalize.c (main): Likewise.
36071         * tests/test-chown.c (main): Likewise.
36072         * tests/test-fchownat.c (main): Likewise.
36073         * tests/test-lchown.c (main): Likewise.
36074         * tests/test-fdutimensat.c (main): Likewise.
36075         * tests/test-futimens.c (main): Likewise.
36076         * tests/test-link.c (main): Likewise.
36077         * tests/test-linkat.c (main): Likewise.
36078         * tests/test-mkdir.c (main): Likewise.
36079         * tests/test-mkdirat.c (main): Likewise.
36080         * tests/test-mkfifo.c (main): Likewise.
36081         * tests/test-mkfifoat.c (main): Likewise.
36082         * tests/test-mknod.c (main): Likewise.
36083         * tests/test-readlink.c (main): Likewise.
36084         * tests/test-remove.c (main): Likewise.
36085         * tests/test-rename.c (main): Likewise.
36086         * tests/test-renameat.c (main): Likewise.
36087         * tests/test-symlink.c (main): Likewise.
36088         * tests/test-symlinkat.c (main): Likewise.
36089         * tests/test-utimens.c (main): Likewise.
36090         * tests/test-utimensat.c (main): Likewise.
36091
36092 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36093
36094         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36095         on $(UNUSED_PARAMETER_H) to avoid build failure.
36096
36097 2009-12-28  Jim Meyering  <meyering@redhat.com>
36098
36099         update-copyright: you may specify a max. line length other than 72
36100         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36101
36102         maint: use consistent FSF copyright line syntax
36103         * lib/posixtm.c: Add missing comma in FSF copyright line.
36104         * lib/posixtm.h: Likewise.
36105         * lib/getugroups.c: Add missing ", Inc.".
36106
36107         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36108         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36109         FSF copyright line.  Remove trailing blanks.
36110
36111 2009-12-28  Eric Blake  <ebb9@byu.net>
36112
36113         test-dup2: reduce dependencies
36114         * modules/cloexec (Configure.ac): Set witness.
36115         * modules/dup2-tests (Depends-on): Drop cloexec.
36116         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36117         not present.
36118         Suggested by Bruno Haible.
36119
36120 2009-12-26  Bruno Haible  <bruno@clisp.org>
36121
36122         Remove an unneeded dependency.
36123         * modules/fseterr (Depends-on): Remove dup2.
36124
36125 2009-12-26  Eric Blake  <ebb9@byu.net>
36126
36127         tests: use macros.h in more places
36128         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36129         (ASSERT_STREAM): Provide default of stderr.
36130         * tests/test-dirent-safer.c: Include macros.h, using alternate
36131         stream for assertions.
36132         * tests/test-dup-safer.c: Likewise.
36133         * tests/test-freopen-safer.c: Likewise.
36134         * tests/test-getopt.c: Likewise.
36135         * tests/test-openat-safer.c: Likewise.
36136         * tests/test-pipe.c: Likewise.
36137         * tests/test-popen-safer.c: Likewise.
36138         * modules/dirent-safer-tests (Files): Include macros.h.
36139         * modules/unistd-safer-tests (Files): Likewise.
36140         * modules/freopen-safer-tests (Files): Likewise.
36141         * modules/getopt-posix-tests (Files): Likewise.
36142         * modules/openat-safer-tests (Files): Likewise.
36143         * modules/pipe-tests (Files): Likewise.
36144
36145 2009-12-26  Bruno Haible  <bruno@clisp.org>
36146
36147         javacomp: Portability fix.
36148         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36149         that it also works on Solaris.
36150
36151 2009-12-26  Bruno Haible  <bruno@clisp.org>
36152
36153         localename: Fix storage allocation of gl_locale_name_thread's result.
36154         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36155         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36156         all platforms that have 'uselocale'.
36157         (gl_locale_name_thread_unsafe): New function, extracted from
36158         gl_locale_name_thread.
36159         (gl_locale_name_thread): Call struniq on all platforms that have
36160         'uselocale'.
36161         * tests/test-localename.c (test_locale_name_thread): Check that the
36162         resulting strings are permanently allocated.
36163         * modules/localename-tests (Depends-on): Add strdup.
36164
36165 2009-12-26  Bruno Haible  <bruno@clisp.org>
36166
36167         * tests/test-localename.c (categories): Fill in the strings.
36168
36169 2009-12-26  Jim Meyering  <meyering@redhat.com>
36170
36171         isdir: complete the removal of m4/isdir.m4
36172         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36173
36174         isdir: clean up, since at least grep still uses it
36175         * lib/isdir.c: Include "isdir.h".
36176         (S_ISDIR): Remove now-unneeded definition.
36177         * modules/isdir (Files): Add lib/isdir.h.
36178         * lib/isdir.h: New file, with declaration.
36179         * m4/isdir.m4: Remove file -- unneeded.
36180
36181 2009-12-25  Bruno Haible  <bruno@clisp.org>
36182
36183         selinux-h: Make generated .h files standalone.
36184         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36185         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36186         * lib/se-selinux.in.h: Likewise.
36187         * modules/selinux-h (Depends-on): Add unused-parameter.
36188         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36189         selinux/selinux.h and selinux/context.h.
36190         Suggested by Eric Blake.
36191
36192 2009-12-25  Bruno Haible  <bruno@clisp.org>
36193
36194         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36195         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36196         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36197         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36198         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36199
36200 2009-12-24  Bruno Haible  <bruno@clisp.org>
36201
36202         openat: Fix warning.
36203         * lib/openat-proc.c: Include <unistd.h>.
36204
36205 2009-12-24  Bruno Haible  <bruno@clisp.org>
36206
36207         New module 'unused-parameter'.
36208         * build-aux/unused-parameter.h: New file, extracted from earlier
36209         gnulib-common.m4.
36210         * modules/unused-parameter: New file.
36211         * lib/unistr.h: Include unused-parameter.h.
36212         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36213         _GL_UNUSED.
36214         * modules/unistr/base (Depends-on): Add unused-parameter.
36215
36216 2009-12-24  Bruno Haible  <bruno@clisp.org>
36217
36218         Add missing dependencies to 'extensions' module.
36219         * m4/extensions.m4: Add comment.
36220         * modules/accept4 (Depends-on): Add extensions.
36221         * modules/dup3 (Depends-on): Likewise.
36222         * modules/fcntl (Depends-on): Likewise.
36223         * modules/futimens (Depends-on): Likewise.
36224         * modules/mknod (Depends-on): Likewise.
36225         * modules/pipe2 (Depends-on): Likewise.
36226         * modules/stat-time (Depends-on): Likewise.
36227         * modules/strcasestr-simple (Depends-on): Likewise.
36228         * modules/strsignal (Depends-on): Likewise.
36229         * modules/utimensat (Depends-on): Likewise.
36230         * modules/localcharset (Depends-on): Likewise. Needed because of
36231         gl_FCNTL_O_FLAGS.
36232         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36233         AC_TYPE_MBSTATE_T.
36234         * modules/wcsnrtombs (Depends-on): Likewise.
36235         * modules/wcsrtombs (Depends-on): Likewise.
36236
36237 2009-12-24  Bruno Haible  <bruno@clisp.org>
36238
36239         binary-io: Avoid gcc warning due to SET_BINARY.
36240         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36241         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36242
36243 2009-12-24  Bruno Haible  <bruno@clisp.org>
36244
36245         Avoid future namespace pollution on glibc systems.
36246         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36247         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36248         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36249         glibc systems.
36250
36251 2009-12-24  Bruno Haible  <bruno@clisp.org>
36252
36253         Refactor common macros used in tests.
36254         * tests/macros.h: New file.
36255         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36256         and/or <stdlib.h>, if appropriate.
36257         (ASSERT, SIZEOF): Remove macros.
36258         * tests/test-areadlink-with-size.c: Likewise.
36259         * tests/test-areadlinkat.c: Likewise.
36260         * tests/test-areadlinkat-with-size.c: Likewise.
36261         * tests/test-argmatch.c: Likewise.
36262         * tests/test-argv-iter.c: Likewise.
36263         * tests/test-array-mergesort.c: Likewise.
36264         * tests/test-array_list.c: Likewise.
36265         * tests/test-array_oset.c: Likewise.
36266         * tests/test-avltree_list.c: Likewise.
36267         * tests/test-avltree_oset.c: Likewise.
36268         * tests/test-avltreehash_list.c: Likewise.
36269         * tests/test-base64.c: Likewise.
36270         * tests/test-binary-io.c: Likewise.
36271         * tests/test-bitrotate.c: Likewise.
36272         * tests/test-btowc.c: Likewise.
36273         * tests/test-byteswap.c: Likewise.
36274         * tests/test-c-ctype.c: Likewise.
36275         * tests/test-c-stack.c: Likewise.
36276         * tests/test-c-strcasecmp.c: Likewise.
36277         * tests/test-c-strcasestr.c: Likewise.
36278         * tests/test-c-strncasecmp.c: Likewise.
36279         * tests/test-c-strstr.c: Likewise.
36280         * tests/test-canonicalize-lgpl.c: Likewise.
36281         * tests/test-canonicalize.c: Likewise.
36282         * tests/test-carray_list.c: Likewise.
36283         * tests/test-ceilf1.c: Likewise.
36284         * tests/test-ceilf2.c: Likewise.
36285         * tests/test-ceill.c: Likewise.
36286         * tests/test-chown.c: Likewise.
36287         * tests/test-cloexec.c: Likewise.
36288         * tests/test-copy-acl.c: Likewise.
36289         * tests/test-copy-file.c: Likewise.
36290         * tests/test-count-one-bits.c: Likewise.
36291         * tests/test-dprintf-posix.c: Likewise.
36292         * tests/test-dup2.c: Likewise.
36293         * tests/test-dup3.c: Likewise.
36294         * tests/test-duplocale.c: Likewise.
36295         * tests/test-fbufmode.c: Likewise.
36296         * tests/test-fchdir.c: Likewise.
36297         * tests/test-fchownat.c: Likewise.
36298         * tests/test-fcntl-safer.c: Likewise.
36299         * tests/test-fcntl.c: Likewise.
36300         * tests/test-fdopendir.c: Likewise.
36301         * tests/test-fdutimensat.c: Likewise.
36302         * tests/test-fflush2.c: Likewise.
36303         * tests/test-file-has-acl.c: Likewise.
36304         * tests/test-filevercmp.c: Likewise.
36305         * tests/test-flock.c: Likewise.
36306         * tests/test-floorf1.c: Likewise.
36307         * tests/test-floorf2.c: Likewise.
36308         * tests/test-floorl.c: Likewise.
36309         * tests/test-fnmatch.c: Likewise.
36310         * tests/test-fopen.h: Likewise.
36311         * tests/test-fpending.c: Likewise.
36312         * tests/test-fprintf-posix.c: Likewise.
36313         * tests/test-fpurge.c: Likewise.
36314         * tests/test-freadable.c: Likewise.
36315         * tests/test-freadahead.c: Likewise.
36316         * tests/test-freading.c: Likewise.
36317         * tests/test-freadptr.c: Likewise.
36318         * tests/test-freadptr2.c: Likewise.
36319         * tests/test-freadseek.c: Likewise.
36320         * tests/test-freopen.c: Likewise.
36321         * tests/test-frexp.c: Likewise.
36322         * tests/test-frexpl.c: Likewise.
36323         * tests/test-fseek.c: Likewise.
36324         * tests/test-fseeko.c: Likewise.
36325         * tests/test-fstatat.c: Likewise.
36326         * tests/test-fstrcmp.c: Likewise.
36327         * tests/test-fsync.c: Likewise.
36328         * tests/test-ftell.c: Likewise.
36329         * tests/test-ftello.c: Likewise.
36330         * tests/test-func.c: Likewise.
36331         * tests/test-futimens.c: Likewise.
36332         * tests/test-fwritable.c: Likewise.
36333         * tests/test-fwriting.c: Likewise.
36334         * tests/test-getcwd.c: Likewise.
36335         * tests/test-getdate.c: Likewise.
36336         * tests/test-getdelim.c: Likewise.
36337         * tests/test-getdtablesize.c: Likewise.
36338         * tests/test-getgroups.c: Likewise.
36339         * tests/test-getline.c: Likewise.
36340         * tests/test-getndelim2.c: Likewise.
36341         * tests/test-glob.c: Likewise.
36342         * tests/test-hash.c: Likewise.
36343         * tests/test-i-ring.c: Likewise.
36344         * tests/test-iconv-utf.c: Likewise.
36345         * tests/test-iconv.c: Likewise.
36346         * tests/test-idpriv-drop.c: Likewise.
36347         * tests/test-idpriv-droptemp.c: Likewise.
36348         * tests/test-inet_ntop.c: Likewise.
36349         * tests/test-inet_pton.c: Likewise.
36350         * tests/test-isblank.c: Likewise.
36351         * tests/test-isfinite.c: Likewise.
36352         * tests/test-isinf.c: Likewise.
36353         * tests/test-isnan.c: Likewise.
36354         * tests/test-isnand.h: Likewise.
36355         * tests/test-isnanf.h: Likewise.
36356         * tests/test-isnanl.h: Likewise.
36357         * tests/test-lchown.c: Likewise.
36358         * tests/test-ldexpl.c: Likewise.
36359         * tests/test-link.c: Likewise.
36360         * tests/test-linkat.c: Likewise.
36361         * tests/test-linked_list.c: Likewise.
36362         * tests/test-linkedhash_list.c: Likewise.
36363         * tests/test-localename.c: Likewise.
36364         * tests/test-lseek.c: Likewise.
36365         * tests/test-lstat.c: Likewise.
36366         * tests/test-mbmemcasecmp.c: Likewise.
36367         * tests/test-mbmemcasecoll.c: Likewise.
36368         * tests/test-mbrtowc.c: Likewise.
36369         * tests/test-mbscasecmp.c: Likewise.
36370         * tests/test-mbscasestr1.c: Likewise.
36371         * tests/test-mbscasestr2.c: Likewise.
36372         * tests/test-mbscasestr3.c: Likewise.
36373         * tests/test-mbscasestr4.c: Likewise.
36374         * tests/test-mbschr.c: Likewise.
36375         * tests/test-mbscspn.c: Likewise.
36376         * tests/test-mbsinit.c: Likewise.
36377         * tests/test-mbsncasecmp.c: Likewise.
36378         * tests/test-mbsnrtowcs.c: Likewise.
36379         * tests/test-mbspbrk.c: Likewise.
36380         * tests/test-mbspcasecmp.c: Likewise.
36381         * tests/test-mbsrchr.c: Likewise.
36382         * tests/test-mbsrtowcs.c: Likewise.
36383         * tests/test-mbsspn.c: Likewise.
36384         * tests/test-mbsstr1.c: Likewise.
36385         * tests/test-mbsstr2.c: Likewise.
36386         * tests/test-mbsstr3.c: Likewise.
36387         * tests/test-memchr.c: Likewise.
36388         * tests/test-memchr2.c: Likewise.
36389         * tests/test-memcmp.c: Likewise.
36390         * tests/test-memmem.c: Likewise.
36391         * tests/test-memrchr.c: Likewise.
36392         * tests/test-mkdir.c: Likewise.
36393         * tests/test-mkdirat.c: Likewise.
36394         * tests/test-mkfifo.c: Likewise.
36395         * tests/test-mkfifoat.c: Likewise.
36396         * tests/test-mknod.c: Likewise.
36397         * tests/test-nanosleep.c: Likewise.
36398         * tests/test-nl_langinfo.c: Likewise.
36399         * tests/test-obstack-printf.c: Likewise.
36400         * tests/test-open.c: Likewise.
36401         * tests/test-openat.c: Likewise.
36402         * tests/test-pipe-filter-gi1.c: Likewise.
36403         * tests/test-pipe-filter-gi2-main.c: Likewise.
36404         * tests/test-pipe-filter-ii1.c: Likewise.
36405         * tests/test-pipe-filter-ii2-main.c: Likewise.
36406         * tests/test-pipe2.c: Likewise.
36407         * tests/test-popen.h: Likewise.
36408         * tests/test-posixtm.c: Likewise.
36409         * tests/test-pread.c: Likewise.
36410         * tests/test-printf-frexp.c: Likewise.
36411         * tests/test-printf-frexpl.c: Likewise.
36412         * tests/test-printf-posix.c: Likewise.
36413         * tests/test-priv-set.c: Likewise.
36414         * tests/test-quotearg.c: Likewise.
36415         * tests/test-random_r.c: Likewise.
36416         * tests/test-rawmemchr.c: Likewise.
36417         * tests/test-rbtree_list.c: Likewise.
36418         * tests/test-rbtree_oset.c: Likewise.
36419         * tests/test-rbtreehash_list.c: Likewise.
36420         * tests/test-readlink.c: Likewise.
36421         * tests/test-remove.c: Likewise.
36422         * tests/test-rename.c: Likewise.
36423         * tests/test-renameat.c: Likewise.
36424         * tests/test-rmdir.c: Likewise.
36425         * tests/test-round1.c: Likewise.
36426         * tests/test-roundf1.c: Likewise.
36427         * tests/test-roundl.c: Likewise.
36428         * tests/test-safe-alloc.c: Likewise.
36429         * tests/test-sameacls.c: Likewise.
36430         * tests/test-set-mode-acl.c: Likewise.
36431         * tests/test-setenv.c: Likewise.
36432         * tests/test-sigaction.c: Likewise.
36433         * tests/test-signbit.c: Likewise.
36434         * tests/test-sleep.c: Likewise.
36435         * tests/test-snprintf-posix.c: Likewise.
36436         * tests/test-snprintf.c: Likewise.
36437         * tests/test-sprintf-posix.c: Likewise.
36438         * tests/test-stat-time.c: Likewise.
36439         * tests/test-stat.c: Likewise.
36440         * tests/test-strcasestr.c: Likewise.
36441         * tests/test-strchrnul.c: Likewise.
36442         * tests/test-strerror.c: Likewise.
36443         * tests/test-striconv.c: Likewise.
36444         * tests/test-striconveh.c: Likewise.
36445         * tests/test-striconveha.c: Likewise.
36446         * tests/test-strsignal.c: Likewise.
36447         * tests/test-strstr.c: Likewise.
36448         * tests/test-strtod.c: Likewise.
36449         * tests/test-strverscmp.c: Likewise.
36450         * tests/test-symlink.c: Likewise.
36451         * tests/test-symlinkat.c: Likewise.
36452         * tests/test-trunc1.c: Likewise.
36453         * tests/test-trunc2.c: Likewise.
36454         * tests/test-truncf1.c: Likewise.
36455         * tests/test-truncf2.c: Likewise.
36456         * tests/test-truncl.c: Likewise.
36457         * tests/test-uname.c: Likewise.
36458         * tests/test-unlink.c: Likewise.
36459         * tests/test-unlinkat.c: Likewise.
36460         * tests/test-unsetenv.c: Likewise.
36461         * tests/test-usleep.c: Likewise.
36462         * tests/test-utimens.c: Likewise.
36463         * tests/test-utimensat.c: Likewise.
36464         * tests/test-vasnprintf-posix.c: Likewise.
36465         * tests/test-vasnprintf-posix2.c: Likewise.
36466         * tests/test-vasnprintf.c: Likewise.
36467         * tests/test-vasprintf-posix.c: Likewise.
36468         * tests/test-vasprintf.c: Likewise.
36469         * tests/test-vdprintf-posix.c: Likewise.
36470         * tests/test-vfprintf-posix.c: Likewise.
36471         * tests/test-vprintf-posix.c: Likewise.
36472         * tests/test-vsnprintf-posix.c: Likewise.
36473         * tests/test-vsnprintf.c: Likewise.
36474         * tests/test-vsprintf-posix.c: Likewise.
36475         * tests/test-wcrtomb.c: Likewise.
36476         * tests/test-wcsnrtombs.c: Likewise.
36477         * tests/test-wcsrtombs.c: Likewise.
36478         * tests/test-wctype.c: Likewise.
36479         * tests/test-wcwidth.c: Likewise.
36480         * tests/test-xfprintf-posix.c: Likewise.
36481         * tests/test-xmemdup0.c: Likewise.
36482         * tests/test-xprintf-posix.c: Likewise.
36483         * tests/test-xvasprintf.c: Likewise.
36484         * tests/unicase/test-locale-language.c: Likewise.
36485         * tests/unicase/test-mapping-part1.h: Likewise.
36486         * tests/unicase/test-predicate-part1.h: Likewise.
36487         * tests/unicase/test-u8-casecmp.c: Likewise.
36488         * tests/unicase/test-u8-casecoll.c: Likewise.
36489         * tests/unicase/test-u8-casefold.c: Likewise.
36490         * tests/unicase/test-u8-is-cased.c: Likewise.
36491         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36492         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36493         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36494         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36495         * tests/unicase/test-u8-tolower.c: Likewise.
36496         * tests/unicase/test-u8-totitle.c: Likewise.
36497         * tests/unicase/test-u8-toupper.c: Likewise.
36498         * tests/unicase/test-u16-casecmp.c: Likewise.
36499         * tests/unicase/test-u16-casecoll.c: Likewise.
36500         * tests/unicase/test-u16-casefold.c: Likewise.
36501         * tests/unicase/test-u16-is-cased.c: Likewise.
36502         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36503         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36504         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36505         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36506         * tests/unicase/test-u16-tolower.c: Likewise.
36507         * tests/unicase/test-u16-totitle.c: Likewise.
36508         * tests/unicase/test-u16-toupper.c: Likewise.
36509         * tests/unicase/test-u32-casecmp.c: Likewise.
36510         * tests/unicase/test-u32-casecoll.c: Likewise.
36511         * tests/unicase/test-u32-casefold.c: Likewise.
36512         * tests/unicase/test-u32-is-cased.c: Likewise.
36513         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36514         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36515         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36516         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36517         * tests/unicase/test-u32-tolower.c: Likewise.
36518         * tests/unicase/test-u32-totitle.c: Likewise.
36519         * tests/unicase/test-u32-toupper.c: Likewise.
36520         * tests/unicase/test-ulc-casecmp.c: Likewise.
36521         * tests/unicase/test-ulc-casecoll.c: Likewise.
36522         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36523         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36524         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36525         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36526         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36527         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36528         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36529         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36530         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36531         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36532         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36533         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36534         * tests/unictype/test-bidi_byname.c: Likewise.
36535         * tests/unictype/test-bidi_name.c: Likewise.
36536         * tests/unictype/test-bidi_of.c: Likewise.
36537         * tests/unictype/test-bidi_test.c: Likewise.
36538         * tests/unictype/test-block_list.c: Likewise.
36539         * tests/unictype/test-block_of.c: Likewise.
36540         * tests/unictype/test-block_test.c: Likewise.
36541         * tests/unictype/test-categ_and.c: Likewise.
36542         * tests/unictype/test-categ_and_not.c: Likewise.
36543         * tests/unictype/test-categ_byname.c: Likewise.
36544         * tests/unictype/test-categ_name.c: Likewise.
36545         * tests/unictype/test-categ_none.c: Likewise.
36546         * tests/unictype/test-categ_of.c: Likewise.
36547         * tests/unictype/test-categ_or.c: Likewise.
36548         * tests/unictype/test-categ_test_withtable.c: Likewise.
36549         * tests/unictype/test-combining.c: Likewise.
36550         * tests/unictype/test-decdigit.c: Likewise.
36551         * tests/unictype/test-digit.c: Likewise.
36552         * tests/unictype/test-mirror.c: Likewise.
36553         * tests/unictype/test-numeric.c: Likewise.
36554         * tests/unictype/test-pr_byname.c: Likewise.
36555         * tests/unictype/test-pr_test.c: Likewise.
36556         * tests/unictype/test-predicate-part1.h: Likewise.
36557         * tests/unictype/test-scripts.c: Likewise.
36558         * tests/unictype/test-sy_c_ident.c: Likewise.
36559         * tests/unictype/test-sy_java_ident.c: Likewise.
36560         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36561         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36562         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36563         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36564         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36565         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36566         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36567         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36568         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36569         * tests/uninorm/test-compat-decomposition.c: Likewise.
36570         * tests/uninorm/test-composition.c: Likewise.
36571         * tests/uninorm/test-decomposing-form.c: Likewise.
36572         * tests/uninorm/test-decomposition.c: Likewise.
36573         * tests/uninorm/test-u8-nfc.c: Likewise.
36574         * tests/uninorm/test-u8-nfd.c: Likewise.
36575         * tests/uninorm/test-u8-nfkc.c: Likewise.
36576         * tests/uninorm/test-u8-nfkd.c: Likewise.
36577         * tests/uninorm/test-u8-normcmp.c: Likewise.
36578         * tests/uninorm/test-u8-normcoll.c: Likewise.
36579         * tests/uninorm/test-u16-nfc.c: Likewise.
36580         * tests/uninorm/test-u16-nfd.c: Likewise.
36581         * tests/uninorm/test-u16-nfkc.c: Likewise.
36582         * tests/uninorm/test-u16-nfkd.c: Likewise.
36583         * tests/uninorm/test-u16-normcmp.c: Likewise.
36584         * tests/uninorm/test-u16-normcoll.c: Likewise.
36585         * tests/uninorm/test-u32-nfc.c: Likewise.
36586         * tests/uninorm/test-u32-nfd.c: Likewise.
36587         * tests/uninorm/test-u32-nfkc.c: Likewise.
36588         * tests/uninorm/test-u32-nfkd.c: Likewise.
36589         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36590         * tests/uninorm/test-u32-normcmp.c: Likewise.
36591         * tests/uninorm/test-u32-normcoll.c: Likewise.
36592         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36593         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36594         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36595         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36596         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36597         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36598         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36599         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36600         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36601         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36602         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36603         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36604         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36605         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36606         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36607         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36608         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36609         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36610         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36611         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36612         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36613         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36614         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36615         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36616         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36617         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36618         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36619         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36620         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36621         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36622         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36623         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36624         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36625         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36626         * tests/uniwidth/test-u8-width.c: Likewise.
36627         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36628         * tests/uniwidth/test-u16-width.c: Likewise.
36629         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36630         * tests/uniwidth/test-u32-width.c: Likewise.
36631         * tests/uniwidth/test-uc_width.c: Likewise.
36632         * tests/uniwidth/test-uc_width2.c: Likewise.
36633         * modules/acl-tests (Files): Add tests/macros.h.
36634         * modules/areadlink-tests (Files): Likewise.
36635         * modules/areadlink-with-size-tests (Files): Likewise.
36636         * modules/areadlinkat-tests (Files): Likewise.
36637         * modules/areadlinkat-with-size-tests (Files): Likewise.
36638         * modules/argmatch-tests (Files): Likewise.
36639         * modules/argv-iter-tests (Files): Likewise.
36640         * modules/array-list-tests (Files): Likewise.
36641         * modules/array-mergesort-tests (Files): Likewise.
36642         * modules/array-oset-tests (Files): Likewise.
36643         * modules/avltree-list-tests (Files): Likewise.
36644         * modules/avltree-oset-tests (Files): Likewise.
36645         * modules/avltreehash-list-tests (Files): Likewise.
36646         * modules/base64-tests (Files): Likewise.
36647         * modules/binary-io-tests (Files): Likewise.
36648         * modules/bitrotate-tests (Files): Likewise.
36649         * modules/btowc-tests (Files): Likewise.
36650         * modules/byteswap-tests (Files): Likewise.
36651         * modules/c-ctype-tests (Files): Likewise.
36652         * modules/c-stack-tests (Files): Likewise.
36653         * modules/c-strcase-tests (Files): Likewise.
36654         * modules/c-strcasestr-tests (Files): Likewise.
36655         * modules/c-strstr-tests (Files): Likewise.
36656         * modules/canonicalize-lgpl-tests (Files): Likewise.
36657         * modules/canonicalize-tests (Files): Likewise.
36658         * modules/carray-list-tests (Files): Likewise.
36659         * modules/ceilf-tests (Files): Likewise.
36660         * modules/ceill-tests (Files): Likewise.
36661         * modules/chown-tests (Files): Likewise.
36662         * modules/cloexec-tests (Files): Likewise.
36663         * modules/copy-file-tests (Files): Likewise.
36664         * modules/count-one-bits-tests (Files): Likewise.
36665         * modules/dprintf-posix-tests (Files): Likewise.
36666         * modules/dup2-tests (Files): Likewise.
36667         * modules/dup3-tests (Files): Likewise.
36668         * modules/duplocale-tests (Files): Likewise.
36669         * modules/fbufmode-tests (Files): Likewise.
36670         * modules/fchdir-tests (Files): Likewise.
36671         * modules/fcntl-safer-tests (Files): Likewise.
36672         * modules/fcntl-tests (Files): Likewise.
36673         * modules/fdopendir-tests (Files): Likewise.
36674         * modules/fdutimensat-tests (Files): Likewise.
36675         * modules/fflush-tests (Files): Likewise.
36676         * modules/filevercmp-tests (Files): Likewise.
36677         * modules/flock-tests (Files): Likewise.
36678         * modules/floorf-tests (Files): Likewise.
36679         * modules/floorl-tests (Files): Likewise.
36680         * modules/fnmatch-tests (Files): Likewise.
36681         * modules/fopen-safer-tests (Files): Likewise.
36682         * modules/fopen-tests (Files): Likewise.
36683         * modules/fpending-tests (Files): Likewise.
36684         * modules/fprintf-posix-tests (Files): Likewise.
36685         * modules/fpurge-tests (Files): Likewise.
36686         * modules/freadable-tests (Files): Likewise.
36687         * modules/freadahead-tests (Files): Likewise.
36688         * modules/freading-tests (Files): Likewise.
36689         * modules/freadptr-tests (Files): Likewise.
36690         * modules/freadseek-tests (Files): Likewise.
36691         * modules/freopen-tests (Files): Likewise.
36692         * modules/frexp-nolibm-tests (Files): Likewise.
36693         * modules/frexp-tests (Files): Likewise.
36694         * modules/frexpl-nolibm-tests (Files): Likewise.
36695         * modules/frexpl-tests (Files): Likewise.
36696         * modules/fseek-tests (Files): Likewise.
36697         * modules/fseeko-tests (Files): Likewise.
36698         * modules/fstrcmp-tests (Files): Likewise.
36699         * modules/fsync-tests (Files): Likewise.
36700         * modules/ftell-tests (Files): Likewise.
36701         * modules/ftello-tests (Files): Likewise.
36702         * modules/func-tests (Files): Likewise.
36703         * modules/futimens-tests (Files): Likewise.
36704         * modules/fwritable-tests (Files): Likewise.
36705         * modules/fwriting-tests (Files): Likewise.
36706         * modules/getcwd-tests (Files): Likewise.
36707         * modules/getdate-tests (Files): Likewise.
36708         * modules/getdelim-tests (Files): Likewise.
36709         * modules/getdtablesize-tests (Files): Likewise.
36710         * modules/getgroups-tests (Files): Likewise.
36711         * modules/getline-tests (Files): Likewise.
36712         * modules/getndelim2-tests (Files): Likewise.
36713         * modules/glob-tests (Files): Likewise.
36714         * modules/hash-tests (Files): Likewise.
36715         * modules/i-ring-tests (Files): Likewise.
36716         * modules/iconv-tests (Files): Likewise.
36717         * modules/iconv_open-utf-tests (Files): Likewise.
36718         * modules/idpriv-drop-tests (Files): Likewise.
36719         * modules/idpriv-droptemp-tests (Files): Likewise.
36720         * modules/inet_ntop-tests (Files): Likewise.
36721         * modules/inet_pton-tests (Files): Likewise.
36722         * modules/isblank-tests (Files): Likewise.
36723         * modules/isfinite-tests (Files): Likewise.
36724         * modules/isinf-tests (Files): Likewise.
36725         * modules/isnan-tests (Files): Likewise.
36726         * modules/isnand-nolibm-tests (Files): Likewise.
36727         * modules/isnand-tests (Files): Likewise.
36728         * modules/isnanf-nolibm-tests (Files): Likewise.
36729         * modules/isnanf-tests (Files): Likewise.
36730         * modules/isnanl-nolibm-tests (Files): Likewise.
36731         * modules/isnanl-tests (Files): Likewise.
36732         * modules/lchown-tests (Files): Likewise.
36733         * modules/ldexpl-tests (Files): Likewise.
36734         * modules/link-tests (Files): Likewise.
36735         * modules/linkat-tests (Files): Likewise.
36736         * modules/linked-list-tests (Files): Likewise.
36737         * modules/linkedhash-list-tests (Files): Likewise.
36738         * modules/localename-tests (Files): Likewise.
36739         * modules/lseek-tests (Files): Likewise.
36740         * modules/lstat-tests (Files): Likewise.
36741         * modules/mbmemcasecmp-tests (Files): Likewise.
36742         * modules/mbmemcasecoll-tests (Files): Likewise.
36743         * modules/mbrtowc-tests (Files): Likewise.
36744         * modules/mbscasecmp-tests (Files): Likewise.
36745         * modules/mbscasestr-tests (Files): Likewise.
36746         * modules/mbschr-tests (Files): Likewise.
36747         * modules/mbscspn-tests (Files): Likewise.
36748         * modules/mbsinit-tests (Files): Likewise.
36749         * modules/mbsncasecmp-tests (Files): Likewise.
36750         * modules/mbsnrtowcs-tests (Files): Likewise.
36751         * modules/mbspbrk-tests (Files): Likewise.
36752         * modules/mbspcasecmp-tests (Files): Likewise.
36753         * modules/mbsrchr-tests (Files): Likewise.
36754         * modules/mbsrtowcs-tests (Files): Likewise.
36755         * modules/mbsspn-tests (Files): Likewise.
36756         * modules/mbsstr-tests (Files): Likewise.
36757         * modules/memchr-tests (Files): Likewise.
36758         * modules/memchr2-tests (Files): Likewise.
36759         * modules/memcmp-tests (Files): Likewise.
36760         * modules/memmem-tests (Files): Likewise.
36761         * modules/memrchr-tests (Files): Likewise.
36762         * modules/mkdir-tests (Files): Likewise.
36763         * modules/mkfifo-tests (Files): Likewise.
36764         * modules/mkfifoat-tests (Files): Likewise.
36765         * modules/mknod-tests (Files): Likewise.
36766         * modules/nanosleep-tests (Files): Likewise.
36767         * modules/nl_langinfo-tests (Files): Likewise.
36768         * modules/obstack-printf-tests (Files): Likewise.
36769         * modules/open-tests (Files): Likewise.
36770         * modules/openat-tests (Files): Likewise.
36771         * modules/pipe-filter-gi-tests (Files): Likewise.
36772         * modules/pipe-filter-ii-tests (Files): Likewise.
36773         * modules/pipe2-tests (Files): Likewise.
36774         * modules/popen-safer-tests (Files): Likewise.
36775         * modules/popen-tests (Files): Likewise.
36776         * modules/posixtm-tests (Files): Likewise.
36777         * modules/pread-tests (Files): Likewise.
36778         * modules/printf-frexp-tests (Files): Likewise.
36779         * modules/printf-frexpl-tests (Files): Likewise.
36780         * modules/printf-posix-tests (Files): Likewise.
36781         * modules/priv-set-tests (Files): Likewise.
36782         * modules/quotearg-tests (Files): Likewise.
36783         * modules/random_r-tests (Files): Likewise.
36784         * modules/rawmemchr-tests (Files): Likewise.
36785         * modules/rbtree-list-tests (Files): Likewise.
36786         * modules/rbtree-oset-tests (Files): Likewise.
36787         * modules/rbtreehash-list-tests (Files): Likewise.
36788         * modules/readlink-tests (Files): Likewise.
36789         * modules/remove-tests (Files): Likewise.
36790         * modules/rename-tests (Files): Likewise.
36791         * modules/renameat-tests (Files): Likewise.
36792         * modules/rmdir-tests (Files): Likewise.
36793         * modules/round-tests (Files): Likewise.
36794         * modules/roundf-tests (Files): Likewise.
36795         * modules/roundl-tests (Files): Likewise.
36796         * modules/safe-alloc-tests (Files): Likewise.
36797         * modules/setenv-tests (Files): Likewise.
36798         * modules/sigaction-tests (Files): Likewise.
36799         * modules/signbit-tests (Files): Likewise.
36800         * modules/sleep-tests (Files): Likewise.
36801         * modules/snprintf-posix-tests (Files): Likewise.
36802         * modules/snprintf-tests (Files): Likewise.
36803         * modules/sprintf-posix-tests (Files): Likewise.
36804         * modules/stat-tests (Files): Likewise.
36805         * modules/stat-time-tests (Files): Likewise.
36806         * modules/strcasestr-tests (Files): Likewise.
36807         * modules/strchrnul-tests (Files): Likewise.
36808         * modules/strerror-tests (Files): Likewise.
36809         * modules/striconv-tests (Files): Likewise.
36810         * modules/striconveh-tests (Files): Likewise.
36811         * modules/striconveha-tests (Files): Likewise.
36812         * modules/strsignal-tests (Files): Likewise.
36813         * modules/strstr-tests (Files): Likewise.
36814         * modules/strtod-tests (Files): Likewise.
36815         * modules/strverscmp-tests (Files): Likewise.
36816         * modules/symlink-tests (Files): Likewise.
36817         * modules/symlinkat-tests (Files): Likewise.
36818         * modules/trunc-tests (Files): Likewise.
36819         * modules/truncf-tests (Files): Likewise.
36820         * modules/truncl-tests (Files): Likewise.
36821         * modules/uname-tests (Files): Likewise.
36822         * modules/unicase/cased-tests (Files): Likewise.
36823         * modules/unicase/ignorable-tests (Files): Likewise.
36824         * modules/unicase/locale-language-tests (Files): Likewise.
36825         * modules/unicase/tolower-tests (Files): Likewise.
36826         * modules/unicase/totitle-tests (Files): Likewise.
36827         * modules/unicase/toupper-tests (Files): Likewise.
36828         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36829         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36830         * modules/unicase/u8-casefold-tests (Files): Likewise.
36831         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36832         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36833         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36834         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36835         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36836         * modules/unicase/u8-tolower-tests (Files): Likewise.
36837         * modules/unicase/u8-totitle-tests (Files): Likewise.
36838         * modules/unicase/u8-toupper-tests (Files): Likewise.
36839         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36840         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36841         * modules/unicase/u16-casefold-tests (Files): Likewise.
36842         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36843         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36844         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36845         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36846         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36847         * modules/unicase/u16-tolower-tests (Files): Likewise.
36848         * modules/unicase/u16-totitle-tests (Files): Likewise.
36849         * modules/unicase/u16-toupper-tests (Files): Likewise.
36850         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36851         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36852         * modules/unicase/u32-casefold-tests (Files): Likewise.
36853         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36854         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36855         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36856         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36857         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36858         * modules/unicase/u32-tolower-tests (Files): Likewise.
36859         * modules/unicase/u32-totitle-tests (Files): Likewise.
36860         * modules/unicase/u32-toupper-tests (Files): Likewise.
36861         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36862         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36863         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36864         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36865         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36866         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36867         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36868         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36869         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36870         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36871         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36872         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36873         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36874         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36875         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36876         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36877         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36878         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36879         * modules/unictype/block-list-tests (Files): Likewise.
36880         * modules/unictype/block-of-tests (Files): Likewise.
36881         * modules/unictype/block-test-tests (Files): Likewise.
36882         * modules/unictype/category-C-tests (Files): Likewise.
36883         * modules/unictype/category-Cc-tests (Files): Likewise.
36884         * modules/unictype/category-Cf-tests (Files): Likewise.
36885         * modules/unictype/category-Cn-tests (Files): Likewise.
36886         * modules/unictype/category-Co-tests (Files): Likewise.
36887         * modules/unictype/category-Cs-tests (Files): Likewise.
36888         * modules/unictype/category-L-tests (Files): Likewise.
36889         * modules/unictype/category-Ll-tests (Files): Likewise.
36890         * modules/unictype/category-Lm-tests (Files): Likewise.
36891         * modules/unictype/category-Lo-tests (Files): Likewise.
36892         * modules/unictype/category-Lt-tests (Files): Likewise.
36893         * modules/unictype/category-Lu-tests (Files): Likewise.
36894         * modules/unictype/category-M-tests (Files): Likewise.
36895         * modules/unictype/category-Mc-tests (Files): Likewise.
36896         * modules/unictype/category-Me-tests (Files): Likewise.
36897         * modules/unictype/category-Mn-tests (Files): Likewise.
36898         * modules/unictype/category-N-tests (Files): Likewise.
36899         * modules/unictype/category-Nd-tests (Files): Likewise.
36900         * modules/unictype/category-Nl-tests (Files): Likewise.
36901         * modules/unictype/category-No-tests (Files): Likewise.
36902         * modules/unictype/category-P-tests (Files): Likewise.
36903         * modules/unictype/category-Pc-tests (Files): Likewise.
36904         * modules/unictype/category-Pd-tests (Files): Likewise.
36905         * modules/unictype/category-Pe-tests (Files): Likewise.
36906         * modules/unictype/category-Pf-tests (Files): Likewise.
36907         * modules/unictype/category-Pi-tests (Files): Likewise.
36908         * modules/unictype/category-Po-tests (Files): Likewise.
36909         * modules/unictype/category-Ps-tests (Files): Likewise.
36910         * modules/unictype/category-S-tests (Files): Likewise.
36911         * modules/unictype/category-Sc-tests (Files): Likewise.
36912         * modules/unictype/category-Sk-tests (Files): Likewise.
36913         * modules/unictype/category-Sm-tests (Files): Likewise.
36914         * modules/unictype/category-So-tests (Files): Likewise.
36915         * modules/unictype/category-Z-tests (Files): Likewise.
36916         * modules/unictype/category-Zl-tests (Files): Likewise.
36917         * modules/unictype/category-Zp-tests (Files): Likewise.
36918         * modules/unictype/category-Zs-tests (Files): Likewise.
36919         * modules/unictype/category-and-not-tests (Files): Likewise.
36920         * modules/unictype/category-and-tests (Files): Likewise.
36921         * modules/unictype/category-byname-tests (Files): Likewise.
36922         * modules/unictype/category-name-tests (Files): Likewise.
36923         * modules/unictype/category-none-tests (Files): Likewise.
36924         * modules/unictype/category-of-tests (Files): Likewise.
36925         * modules/unictype/category-or-tests (Files): Likewise.
36926         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36927         * modules/unictype/combining-class-tests (Files): Likewise.
36928         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36929         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36930         * modules/unictype/ctype-blank-tests (Files): Likewise.
36931         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36932         * modules/unictype/ctype-digit-tests (Files): Likewise.
36933         * modules/unictype/ctype-graph-tests (Files): Likewise.
36934         * modules/unictype/ctype-lower-tests (Files): Likewise.
36935         * modules/unictype/ctype-print-tests (Files): Likewise.
36936         * modules/unictype/ctype-punct-tests (Files): Likewise.
36937         * modules/unictype/ctype-space-tests (Files): Likewise.
36938         * modules/unictype/ctype-upper-tests (Files): Likewise.
36939         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36940         * modules/unictype/decimal-digit-tests (Files): Likewise.
36941         * modules/unictype/digit-tests (Files): Likewise.
36942         * modules/unictype/mirror-tests (Files): Likewise.
36943         * modules/unictype/numeric-tests (Files): Likewise.
36944         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36945         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36946         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36947         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36948         Likewise.
36949         * modules/unictype/property-bidi-block-separator-tests (Files):
36950         Likewise.
36951         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36952         Likewise.
36953         * modules/unictype/property-bidi-common-separator-tests (Files):
36954         Likewise.
36955         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36956         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36957         Likewise.
36958         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36959         Likewise.
36960         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36961         Likewise.
36962         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36963         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36964         Likewise.
36965         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36966         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36967         Likewise.
36968         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36969         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36970         * modules/unictype/property-bidi-segment-separator-tests (Files):
36971         Likewise.
36972         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36973         * modules/unictype/property-byname-tests (Files): Likewise.
36974         * modules/unictype/property-combining-tests (Files): Likewise.
36975         * modules/unictype/property-composite-tests (Files): Likewise.
36976         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36977         * modules/unictype/property-dash-tests (Files): Likewise.
36978         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36979         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36980         Likewise.
36981         * modules/unictype/property-deprecated-tests (Files): Likewise.
36982         * modules/unictype/property-diacritic-tests (Files): Likewise.
36983         * modules/unictype/property-extender-tests (Files): Likewise.
36984         * modules/unictype/property-format-control-tests (Files): Likewise.
36985         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36986         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36987         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36988         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36989         * modules/unictype/property-hyphen-tests (Files): Likewise.
36990         * modules/unictype/property-id-continue-tests (Files): Likewise.
36991         * modules/unictype/property-id-start-tests (Files): Likewise.
36992         * modules/unictype/property-ideographic-tests (Files): Likewise.
36993         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36994         * modules/unictype/property-ids-trinary-operator-tests (Files):
36995         Likewise.
36996         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36997         * modules/unictype/property-iso-control-tests (Files): Likewise.
36998         * modules/unictype/property-join-control-tests (Files): Likewise.
36999         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37000         * modules/unictype/property-line-separator-tests (Files): Likewise.
37001         * modules/unictype/property-logical-order-exception-tests (Files):
37002         Likewise.
37003         * modules/unictype/property-lowercase-tests (Files): Likewise.
37004         * modules/unictype/property-math-tests (Files): Likewise.
37005         * modules/unictype/property-non-break-tests (Files): Likewise.
37006         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37007         * modules/unictype/property-numeric-tests (Files): Likewise.
37008         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37009         * modules/unictype/property-other-default-ignorable-code-point-tests
37010         (Files): Likewise.
37011         * modules/unictype/property-other-grapheme-extend-tests (Files):
37012         Likewise.
37013         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37014         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37015         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37016         * modules/unictype/property-other-math-tests (Files): Likewise.
37017         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37018         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37019         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37020         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37021         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37022         * modules/unictype/property-private-use-tests (Files): Likewise.
37023         * modules/unictype/property-punctuation-tests (Files): Likewise.
37024         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37025         * modules/unictype/property-radical-tests (Files): Likewise.
37026         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37027         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37028         * modules/unictype/property-space-tests (Files): Likewise.
37029         * modules/unictype/property-terminal-punctuation-tests (Files):
37030         Likewise.
37031         * modules/unictype/property-test-tests (Files): Likewise.
37032         * modules/unictype/property-titlecase-tests (Files): Likewise.
37033         * modules/unictype/property-unassigned-code-value-tests (Files):
37034         Likewise.
37035         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37036         * modules/unictype/property-uppercase-tests (Files): Likewise.
37037         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37038         * modules/unictype/property-white-space-tests (Files): Likewise.
37039         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37040         * modules/unictype/property-xid-start-tests (Files): Likewise.
37041         * modules/unictype/property-zero-width-tests (Files): Likewise.
37042         * modules/unictype/scripts-tests (Files): Likewise.
37043         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37044         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37045         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37046         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37047         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37048         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37049         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37050         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37051         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37052         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37053         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37054         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37055         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37056         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37057         * modules/uninorm/composition-tests (Files): Likewise.
37058         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37059         * modules/uninorm/decomposition-tests (Files): Likewise.
37060         * modules/uninorm/filter-tests (Files): Likewise.
37061         * modules/uninorm/nfc-tests (Files): Likewise.
37062         * modules/uninorm/nfd-tests (Files): Likewise.
37063         * modules/uninorm/nfkc-tests (Files): Likewise.
37064         * modules/uninorm/nfkd-tests (Files): Likewise.
37065         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37066         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37067         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37068         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37069         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37070         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37071         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37072         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37073         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37074         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37075         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37076         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37077         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37078         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37079         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37080         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37081         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37082         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37083         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37084         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37085         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37086         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37087         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37088         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37089         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37090         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37091         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37092         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37093         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37094         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37095         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37096         * modules/uniwidth/u8-width-tests (Files): Likewise.
37097         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37098         * modules/uniwidth/u16-width-tests (Files): Likewise.
37099         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37100         * modules/uniwidth/u32-width-tests (Files): Likewise.
37101         * modules/uniwidth/width-tests (Files): Likewise.
37102         * modules/unlink-tests (Files): Likewise.
37103         * modules/unsetenv-tests (Files): Likewise.
37104         * modules/usleep-tests (Files): Likewise.
37105         * modules/utimens-tests (Files): Likewise.
37106         * modules/utimensat-tests (Files): Likewise.
37107         * modules/vasnprintf-posix-tests (Files): Likewise.
37108         * modules/vasnprintf-tests (Files): Likewise.
37109         * modules/vasprintf-posix-tests (Files): Likewise.
37110         * modules/vasprintf-tests (Files): Likewise.
37111         * modules/vdprintf-posix-tests (Files): Likewise.
37112         * modules/vfprintf-posix-tests (Files): Likewise.
37113         * modules/vprintf-posix-tests (Files): Likewise.
37114         * modules/vsnprintf-posix-tests (Files): Likewise.
37115         * modules/vsnprintf-tests (Files): Likewise.
37116         * modules/vsprintf-posix-tests (Files): Likewise.
37117         * modules/wcrtomb-tests (Files): Likewise.
37118         * modules/wcsnrtombs-tests (Files): Likewise.
37119         * modules/wcsrtombs-tests (Files): Likewise.
37120         * modules/wctype-tests (Files): Likewise.
37121         * modules/wcwidth-tests (Files): Likewise.
37122         * modules/xmemdup0-tests (Files): Likewise.
37123         * modules/xprintf-posix-tests (Files): Likewise.
37124         * modules/xvasprintf-tests (Files): Likewise.
37125
37126 2009-12-24  Eric Blake  <ebb9@byu.net>
37127
37128         test-nanosleep: fix typo
37129         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37130         patch.
37131         Reported by Bruno Haible.
37132
37133 2009-12-24  Bruno Haible  <bruno@clisp.org>
37134
37135         Reduce namespace pollution on glibc systems.
37136         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37137         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37138         systems.
37139         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37140         <getopt.h> on glibc systems.
37141         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37142         systems.
37143         * lib/fcntl.c: Include <unistd.h> here instead.
37144
37145 2009-12-24  Bruno Haible  <bruno@clisp.org>
37146
37147         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37148
37149 2009-12-24  Eric Blake  <ebb9@byu.net>
37150
37151         tests: add signature checks
37152         * tests/signature.h (SIGNATURE_CHECK): New file.
37153         * modules/atexit-tests (Files): Use it.
37154         * modules/btowc-tests (Files): Likewise.
37155         * modules/canonicalize-lgpl-tests (Files): Likewise.
37156         * modules/ceilf-tests (Files): Likewise.
37157         * modules/ceill-tests (Files): Likewise.
37158         * modules/chown-tests (Files): Likewise.
37159         * modules/dprintf-posix-tests (Files): Likewise.
37160         * modules/dup2-tests (Files): Likewise.
37161         * modules/dup3-tests (Files): Likewise.
37162         * modules/duplocale-tests (Files): Likewise.
37163         * modules/fchdir-tests (Files): Likewise.
37164         * modules/fcntl-tests (Files): Likewise.
37165         * modules/fdopendir-tests (Files): Likewise.
37166         * modules/fflush-tests (Files): Likewise.
37167         * modules/flock-tests (Files): Likewise.
37168         * modules/floorf-tests (Files): Likewise.
37169         * modules/floorl-tests (Files): Likewise.
37170         * modules/fnmatch-tests (Files): Likewise.
37171         * modules/fopen-tests (Files): Likewise.
37172         * modules/fprintf-posix-tests (Files): Likewise.
37173         * modules/freopen-tests (Files): Likewise.
37174         * modules/frexp-nolibm-tests (Files): Likewise.
37175         * modules/frexp-tests (Files): Likewise.
37176         * modules/frexpl-nolibm-tests (Files): Likewise.
37177         * modules/frexpl-tests (Files): Likewise.
37178         * modules/fseek-tests (Files): Likewise.
37179         * modules/fseeko-tests (Files): Likewise.
37180         * modules/fsync-tests (Files): Likewise.
37181         * modules/ftell-tests (Files): Likewise.
37182         * modules/ftello-tests (Files): Likewise.
37183         * modules/futimens-tests (Files): Likewise.
37184         * modules/getaddrinfo-tests (Files): Likewise.
37185         * modules/getcwd-tests (Files): Likewise.
37186         * modules/getdelim-tests (Files): Likewise.
37187         * modules/getdtablesize-tests (Files): Likewise.
37188         * modules/getgroups-tests (Files): Likewise.
37189         * modules/gethostname-tests (Files): Likewise.
37190         * modules/getline-tests (Files): Likewise.
37191         * modules/getopt-posix-tests (Files): Likewise.
37192         * modules/gettimeofday-tests (Files): Likewise.
37193         * modules/glob-tests (Files): Likewise.
37194         * modules/iconv-tests (Files): Likewise.
37195         * modules/inet_ntop-tests (Files): Likewise.
37196         * modules/inet_pton-tests (Files): Likewise.
37197         * modules/isblank-tests (Files): Likewise.
37198         * modules/lchown-tests (Files): Likewise.
37199         * modules/ldexpl-tests (Files): Likewise.
37200         * modules/link-tests (Files): Likewise.
37201         * modules/linkat-tests (Files): Likewise.
37202         * modules/lseek-tests (Files): Likewise.
37203         * modules/lstat-tests (Files): Likewise.
37204         * modules/mbrtowc-tests (Files): Likewise.
37205         * modules/mbsinit-tests (Files): Likewise.
37206         * modules/mbsnrtowcs-tests (Files): Likewise.
37207         * modules/mbsrtowcs-tests (Files): Likewise.
37208         * modules/memchr-tests (Files): Likewise.
37209         * modules/memcmp-tests (Files): Likewise.
37210         * modules/memmem-tests (Files): Likewise.
37211         * modules/memrchr-tests (Files): Likewise.
37212         * modules/mkdir-tests (Files): Likewise.
37213         * modules/mkfifo-tests (Files): Likewise.
37214         * modules/mkfifoat-tests (Files): Likewise.
37215         * modules/mknod-tests (Files): Likewise.
37216         * modules/nanosleep-tests (Files): Likewise.
37217         * modules/nl_langinfo-tests (Files): Likewise.
37218         * modules/obstack-printf-tests (Files): Likewise.
37219         * modules/open-tests (Files): Likewise.
37220         * modules/openat-tests (Files): Likewise.
37221         * modules/perror-tests (Files): Likewise.
37222         * modules/pipe2-tests (Files): Likewise.
37223         * modules/poll-tests (Files): Likewise.
37224         * modules/popen-tests (Files): Likewise.
37225         * modules/posix_spawn-tests (Files): Likewise.
37226         * modules/posix_spawnp-tests (Files): Likewise.
37227         * modules/pread-tests (Files): Likewise.
37228         * modules/printf-posix-tests (Files): Likewise.
37229         * modules/pty-tests (Files): Likewise.
37230         * modules/random_r-tests (Files): Likewise.
37231         * modules/rawmemchr-tests (Files): Likewise.
37232         * modules/readlink-tests (Files): Likewise.
37233         * modules/remove-tests (Files): Likewise.
37234         * modules/rename-tests (Files): Likewise.
37235         * modules/renameat-tests (Files): Likewise.
37236         * modules/rmdir-tests (Files): Likewise.
37237         * modules/round-tests (Files): Likewise.
37238         * modules/roundf-tests (Files): Likewise.
37239         * modules/roundl-tests (Files): Likewise.
37240         * modules/select-tests (Files): Likewise.
37241         * modules/setenv-tests (Files): Likewise.
37242         * modules/sigaction-tests (Files): Likewise.
37243         * modules/sleep-tests (Files): Likewise.
37244         * modules/snprintf-posix-tests (Files): Likewise.
37245         * modules/snprintf-tests (Files): Likewise.
37246         * modules/sprintf-posix-tests (Files): Likewise.
37247         * modules/stat-tests (Files): Likewise.
37248         * modules/strcasestr-tests (Files): Likewise.
37249         * modules/strchrnul-tests (Files): Likewise.
37250         * modules/strerror-tests (Files): Likewise.
37251         * modules/strsignal-tests (Files): Likewise.
37252         * modules/strstr-tests (Files): Likewise.
37253         * modules/strtod-tests (Files): Likewise.
37254         * modules/strverscmp-tests (Files): Likewise.
37255         * modules/symlink-tests (Files): Likewise.
37256         * modules/symlinkat-tests (Files): Likewise.
37257         * modules/times-tests (Files): Likewise.
37258         * modules/trunc-tests (Files): Likewise.
37259         * modules/truncf-tests (Files): Likewise.
37260         * modules/truncl-tests (Files): Likewise.
37261         * modules/tsearch-tests (Files): Likewise.
37262         * modules/uname-tests (Files): Likewise.
37263         * modules/unlink-tests (Files): Likewise.
37264         * modules/unsetenv-tests (Files): Likewise.
37265         * modules/usleep-tests (Files): Likewise.
37266         * modules/utimensat-tests (Files): Likewise.
37267         * modules/vasprintf-tests (Files): Likewise.
37268         * modules/vdprintf-posix-tests (Files): Likewise.
37269         * modules/vfprintf-posix-tests (Files): Likewise.
37270         * modules/vprintf-posix-tests (Files): Likewise.
37271         * modules/vsnprintf-posix-tests (Files): Likewise.
37272         * modules/vsnprintf-tests (Files): Likewise.
37273         * modules/vsprintf-posix-tests (Files): Likewise.
37274         * modules/wcrtomb-tests (Files): Likewise.
37275         * modules/wcsnrtombs-tests (Files): Likewise.
37276         * modules/wcsrtombs-tests (Files): Likewise.
37277         * modules/wcwidth-tests (Files): Likewise.
37278         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37279         * tests/test-isinf.c (isinf): Likewise.
37280         * tests/test-isnan.c (isnan): Likewise.
37281         * tests/test-signbit.c (signbit): Likewise.
37282         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37283         declaration, either as macro or with correct signature.
37284         (select): Ensure function under test is declared with correct
37285         signature in correct header.
37286         * tests/test-atexit.c (atexit): Likewise.
37287         * tests/test-btowc.c (btowc): Likewise.
37288         * tests/test-canonicalize-lgpl.c (realpath)
37289         (canonicalize_file_name): Likewise.
37290         * tests/test-ceilf1.c (ceilf): Likewise.
37291         * tests/test-ceill.c (ceill): Likewise.
37292         * tests/test-chown.c (chown): Likewise.
37293         * tests/test-dprintf-posix.c (dprintf): Likewise.
37294         * tests/test-dup2.c (dup2): Likewise.
37295         * tests/test-dup3.c (dup3): Likewise.
37296         * tests/test-duplocale.c (duplocale): Likewise.
37297         * tests/test-fchdir.c (fchdir): Likewise.
37298         * tests/test-fchownat.c (fchownat): Likewise.
37299         * tests/test-fcntl.c (fcntl): Likewise.
37300         * tests/test-fdopendir.c (fdopendir): Likewise.
37301         * tests/test-fflush.c (fflush): Likewise.
37302         * tests/test-flock.c (flock): Likewise.
37303         * tests/test-floorf1.c (floorf): Likewise.
37304         * tests/test-floorl.c (floorl): Likewise.
37305         * tests/test-fnmatch.c (fnmatch): Likewise.
37306         * tests/test-fopen.c (fopen): Likewise.
37307         * tests/test-fprintf-posix.c (fprintf): Likewise.
37308         * tests/test-freopen.c (freopen): Likewise.
37309         * tests/test-frexp.c (frexp): Likewise.
37310         * tests/test-frexpl.c (frexpl): Likewise.
37311         * tests/test-fseek.c (fseek): Likewise.
37312         * tests/test-fseeko.c (fseeko): Likewise.
37313         * tests/test-fstatat.c (fstatat): Likewise.
37314         * tests/test-fsync.c (fsync): Likewise.
37315         * tests/test-ftell.c (ftell): Likewise.
37316         * tests/test-ftello.c (ftello): Likewise.
37317         * tests/test-futimens.c (futimens): Likewise.
37318         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37319         (gai_strerror): Likewise.
37320         * tests/test-getcwd.c (getcwd): Likewise.
37321         * tests/test-getdelim.c (getdelim): Likewise.
37322         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37323         * tests/test-getgroups.c (getgroups): Likewise.
37324         * tests/test-gethostname.c (gethostname): Likewise.
37325         * tests/test-getline.c (getline): Likewise.
37326         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37327         Likewise.
37328         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37329         * tests/test-glob.c (glob, globfree): Likewise.
37330         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37331         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37332         * tests/test-inet_pton.c (inet_pton): Likewise.
37333         * tests/test-isblank.c (isblank): Likewise.
37334         * tests/test-lchown.c (lchown): Likewise.
37335         * tests/test-ldexpl.c (ldexpl): Likewise.
37336         * tests/test-link.c (link): Likewise.
37337         * tests/test-linkat.c (linkat): Likewise.
37338         * tests/test-lseek.c (lseek): Likewise.
37339         * tests/test-lstat.c (lstat): Likewise.
37340         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37341         * tests/test-mbsinit.c (mbsinit): Likewise.
37342         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37343         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37344         * tests/test-memchr.c (memchr): Likewise.
37345         * tests/test-memcmp.c (memcmp): Likewise.
37346         * tests/test-memmem.c (memmem): Likewise.
37347         * tests/test-memrchr.c (memrchr): Likewise.
37348         * tests/test-mkdir.c (mkdir): Likewise.
37349         * tests/test-mkdirat.c (mkdirat): Likewise.
37350         * tests/test-mkfifo.c (mkfifo): Likewise.
37351         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37352         * tests/test-mknod.c (mknod): Likewise.
37353         * tests/test-nanosleep.c (nanosleep): Likewise.
37354         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37355         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37356         Likewise.
37357         * tests/test-open.c (open): Likewise.
37358         * tests/test-openat.c (openat): Likewise.
37359         * tests/test-perror.c (perror): Likewise.
37360         * tests/test-pipe2.c (pipe2): Likewise.
37361         * tests/test-poll.c (poll): Likewise.
37362         * tests/test-popen.c (popen, pclose): Likewise.
37363         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37364         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37365         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37366         (posix_spawn_file_actions_destroy)
37367         (posix_spawn_file_actions_addclose)
37368         (posix_spawn_file_actions_addopen)
37369         (posix_spawn_file_actions_adddup2): Likewise.
37370         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37371         * tests/test-pread.c (pread): Likewise.
37372         * tests/test-printf-posix.c (printf): Likewise.
37373         * tests/test-pty.c (openpty, forkpty): Likewise.
37374         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37375         (random_r): Likewise.
37376         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37377         * tests/test-readlink.c (readlink): Likewise.
37378         * tests/test-remove.c (remove): Likewise.
37379         * tests/test-rename.c (rename): Likewise.
37380         * tests/test-renameat.c (renameat): Likewise.
37381         * tests/test-rmdir.c (rmdir): Likewise.
37382         * tests/test-round1.c (round): Likewise.
37383         * tests/test-roundf1.c (roundf): Likewise.
37384         * tests/test-roundl.c (roundl): Likewise.
37385         * tests/test-setenv.c (setenv): Likewise.
37386         * tests/test-sigaction.c (sigaction): Likewise.
37387         * tests/test-sleep.c (sleep): Likewise.
37388         * tests/test-snprintf.c (snprintf): Likewise.
37389         * tests/test-sprintf-posix.c (sprintf): Likewise.
37390         * tests/test-stat.c (stat): Likewise.
37391         * tests/test-stpncpy.c (stpncpy): Likewise.
37392         * tests/test-strcasestr.c (strcasestr): Likewise.
37393         * tests/test-strchrnul.c (strchrnul): Likewise.
37394         * tests/test-strerror.c (strerror): Likewise.
37395         * tests/test-strsignal.c (strsignal): Likewise.
37396         * tests/test-strstr.c (strstr): Likewise.
37397         * tests/test-strtod.c (strtod): Likewise.
37398         * tests/test-strverscmp.c (strverscmp): Likewise.
37399         * tests/test-symlink.c (symlink): Likewise.
37400         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37401         * tests/test-times.c (times): Likewise.
37402         * tests/test-trunc1.c (trunc): Likewise.
37403         * tests/test-truncf1.c (truncf): Likewise.
37404         * tests/test-truncl.c (truncl): Likewise.
37405         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37406         Likewise.
37407         * tests/test-uname.c (uname): Likewise.
37408         * tests/test-unlink.c (unlink): Likewise.
37409         * tests/test-unlinkat.c (unlinkat): Likewise.
37410         * tests/test-unsetenv.c (unsetenv): Likewise.
37411         * tests/test-usleep.c (usleep): Likewise.
37412         * tests/test-utimensat.c (utimensat): Likewise.
37413         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37414         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37415         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37416         * tests/test-vprintf-posix.c (vprintf): Likewise.
37417         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37418         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37419         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37420         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37421         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37422         * tests/test-wcwidth.c (wcwidth): Likewise.
37423
37424         build: pull in conditional headers during GNULIB_POSIXCHECK
37425         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37426         definitions from any conditionally-included headers.
37427         * lib/stdlib.in.h (includes): Likewise.
37428         * lib/unistd.in.h (includes): Likewise.
37429
37430 2009-12-24  Bruno Haible  <bruno@clisp.org>
37431
37432         * tests/test-argv-iter.c: Include header file being tested immediately
37433         after config.h.
37434         * tests/test-base64.c: Likewise.
37435         * tests/test-flock.c: Likewise.
37436         * tests/test-fsync.c: Likewise.
37437         * tests/test-getdate.c: Likewise.
37438         * tests/test-getndelim2.c: Likewise.
37439         * tests/test-isfinite.c: Likewise.
37440         * tests/test-isinf.c: Likewise.
37441         * tests/test-strerror.c: Likewise.
37442         * tests/test-strsignal.c: Likewise.
37443
37444 2009-12-23  Eric Blake  <ebb9@byu.net>
37445
37446         unistd: work around cygwin bug
37447         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37448         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37449         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37450
37451 2009-12-23  Bruno Haible  <bruno@clisp.org>
37452
37453         localename: More tests.
37454         * tests/test-localename.c (SIZEOF): New macro.
37455         (categories): New variable.
37456         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37457         test_locale_name_default): Add test w.r.t. thread locale.
37458         (test_locale_name_thread): New function.
37459         (main): Invoke it.
37460
37461         localename: Make aware of thread locale.
37462         * lib/localename.h (gl_locale_name_thread): New declaration.
37463         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37464         behaviour with respect to thread locale.
37465         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37466         <langinfo.h>, glthread/lock.h.
37467         (SIZE_BITS): New macro.
37468         (string_hash): New function.
37469         (struct hash_node): New type.
37470         (HASH_TABLE_SIZE): New macro.
37471         (struniq_hash_table, struniq_lock): New variables.
37472         (struniq): New function.
37473         (gl_locale_name_thread): New function.
37474         (gl_locale_name): Invoke it.
37475         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37476         * modules/localename (Depends-on): Add lock.
37477         Reported by Mike Gran <spk121@yahoo.com>.
37478
37479 2009-12-23  Eric Blake  <ebb9@byu.net>
37480
37481         va-args: new module
37482         * modules/va-args: New file.
37483         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37484         * MODULES.html.sh (Core language properties): Mention it.
37485
37486         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37487         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37488         named alias for __attribute__((__unused__)).
37489         * lib/chown.c: Update client.
37490         * lib/fchmodat.c: Likewise.
37491         * lib/fts.c: Likewise.
37492         * lib/getdate.y: Likewise.
37493         * lib/getgroups.c: Likewise.
37494         * lib/getopt.c: Likewise.
37495         * lib/getugroups.c: Likewise.
37496         * lib/mkdir.c: Likewise.
37497         * lib/mkfifo.c: Likewise.
37498         * lib/mkfifoat.c: Likewise.
37499         * lib/mknod.c: Likewise.
37500         * lib/mknodat.c: Likewise.
37501         * lib/readlink.c: Likewise.
37502         * lib/se-context.in.h: Likewise.
37503         * lib/se-selinux.in.h: Likewise.
37504         * lib/sockets.c: Likewise.
37505         * lib/symlink.c: Likewise.
37506         * lib/symlinkat.c: Likewise.
37507         * lib/unicodeio.c: Likewise.
37508         * lib/unistr.h: Likewise.
37509         * tests/test-areadlink.c: Likewise.
37510         * tests/test-areadlinkat.c: Likewise.
37511         * tests/test-filenamecat.c: Likewise.
37512         * tests/test-fseeko.c: Likewise.
37513         * tests/test-ftello.c: Likewise.
37514         * tests/test-getdate.c: Likewise.
37515         * tests/test-getgroups.c: Likewise.
37516         * tests/test-gethostname.c: Likewise.
37517         * tests/test-quotearg.c: Likewise.
37518         * tests/test-version-etc.c: Likewise.
37519         * tests/test-xalloc-die.c: Likewise.
37520         * tests/test-xfprintf-posix.c: Likewise.
37521         * tests/test-xprintf-posix.c: Likewise.
37522         * tests/test-xvasprintf.c: Likewise.
37523
37524         tests: avoid compiler warnings
37525         * tests/test-fcntl.c (main): Delete unused parameters.
37526         * tests/test-freopen-safer.c (main): Likewise.
37527         * tests/test-xalloc-die.c (main): Mark unused parameters.
37528         * tests/test-fseeko.c (main): Likewise.
37529         * tests/test-ftello.c (main): Likewise.
37530         * tests/test-nanosleep.c (main): Avoid declaration warning.
37531         * tests/test-sleep.c (main): Likewise.
37532         * tests/test-unsetenv.c (main): Silence warning about string
37533         literal.
37534         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37535
37536 2009-12-23  Bruno Haible  <bruno@clisp.org>
37537
37538         * tests/test-localename.c (test_locale_name): New function, extracted
37539         from main. Also test mixed situations.
37540         (test_locale_name_posix, test_locale_name_environ,
37541         test_locale_name_default): New functions.
37542         (main): Invoke them all.
37543         * modules/localename-tests (configure.ac): Test for newlocale.
37544
37545 2009-12-23  Bruno Haible  <bruno@clisp.org>
37546
37547         unistd: Ensure getcwd gets declared before being overridden.
37548         * lib/unistd.in.h: Conditionally include <io.h>.
37549
37550 2009-12-22  Bruno Haible  <bruno@clisp.org>
37551
37552         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37553         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37554         (gl_WCHAR_H): Invoke it.
37555         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37556         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37557         Reported by Karl Berry <karl@freefriends.org>.
37558
37559 2009-12-22  Eric Blake  <ebb9@byu.net>
37560
37561         math, unistd: avoid redundant includes
37562         * lib/math.in.h (isnan): No need to re-include <math.h>.
37563         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37564
37565         getsubopt: work around cygwin bug
37566         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37567         avoid conflicting with system getsubopt.
37568         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37569         bug.
37570
37571         getopt: synchronize from glibc
37572         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37573         parameter order.  Adjust all callers.
37574         (_getopt_internal_r, main): Adjust quoting in error messages.
37575         Drop considerations for outdated POSIX 1003.2 error message.
37576         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37577         callers.
37578         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37579
37580         test-getopt: test stderr behavior
37581         * modules/getopt-posix-tests (Depends-on): Add dup2.
37582         * tests/test-getopt.c (ASSERT): Avoid stderr.
37583         (main): Move stderr to a temporary file.
37584         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37585         Instead, add parameter to inform caller if output occurred.
37586         (test_getopt): Adjust all existing tests to expect silence, and
37587         add new tests of leading ":".
37588         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37589         glibc shortcomings with leading "-:" or "+:" in optstring.
37590         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37591         Likewise.
37592         * doc/posix-functions/getopt.texi (getopt): Likewise.
37593
37594         test-getopt: enhance test
37595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37596         supports optind=0.
37597         * tests/test-getopt.c (OPTIND_MIN): Move...
37598         * tests/test-getopt.h (OPTIND_MIN): ...here.
37599         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37600         Require that optind=0 works, since modern BSD supports it in
37601         addition to optreset, and since coreutils expects it.
37602         (test_getopt_long_only): New test.
37603         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37604         glibc shortcomings with 'W;', and enforcement of optind=0.
37605         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37606         Likewise.
37607
37608 2009-12-21  Bruno Haible  <bruno@clisp.org>
37609
37610         localename: Improvements for MacOS X and Cygwin.
37611         * lib/localename.h (gl_locale_name_environ): New declaration.
37612         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37613         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37614         (gl_locale_name_posix): Invoke it.
37615         (gl_locale_name_default): Add comments. Use Windows native API also on
37616         Cygwin.
37617
37618 2009-12-21  Bruno Haible  <bruno@clisp.org>
37619
37620         Update list of Win32 locale ids.
37621         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37622         (LANG_SAMI): Renamed from LANG_SAAMI.
37623         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37624         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37625         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37626         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37627         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37628         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37629         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37630         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37631         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37632         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37633         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37634         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37635         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37636         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37637         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37638         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37639         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37640         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37641         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37642         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37643         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37644         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37645         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37646         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37647         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37648         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37649         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37650         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37651         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37652         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37653         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37654         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37655         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37656         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37657         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37658         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37659         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37660         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37661         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37662         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37663         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37664         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37665         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37666         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37667         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37668         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37669         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37670         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37671         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37672         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37673         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37674         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37675         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37676         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37677         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37678         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37679         Add more languages and countries for Sami, Sorbian. Add more countries
37680         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37681         for Pashto. Change country for Syriac, Tswana.
37682
37683 2009-12-21  Eric Blake  <ebb9@byu.net>
37684
37685         test-utimens: avoid spurious failure
37686         * tests/test-chown.h (nap): Factor...
37687         * tests/nap.h: ...into new file.
37688         * tests/test-lchown.h (nap): Avoid duplication.
37689         * tests/test-utimens-common.h (nap): Use shared implementation,
37690         necessary on file systems with 1-second resolution.
37691         * modules/chown-tests (Files): Include new file.
37692         * modules/fdutimensat-tests (Files): Likewise.
37693         * modules/futimens-tests (Files): Likewise.
37694         * modules/lchown-tests (Files): Likewise.
37695         * modules/openat-tests (Files): Likewise.
37696         * modules/utimens-tests (Files): Likewise.
37697         * modules/utimensat-tests (Files): Likewise.
37698
37699 2009-12-19  Eric Blake  <ebb9@byu.net>
37700
37701         futimens, utimensat: work around Linux bug
37702         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37703         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37704         * lib/utimensat.c (rpl_utimensat): Work around it.
37705         * lib/futimens.c (rpl_futimens): Adjust comment.
37706
37707         utimens: work around Linux ctime bug
37708         * lib/utimens.c (detect_ctime_bug): New helper function.
37709         (update_timespec): Differentiate between workaround needed for
37710         this bug vs. what is needed for systems that lack utimensat.
37711         (fdutimens, lutimens): Work around bug.
37712
37713         utimens: check for ctime update
37714         * tests/test-utimens-common.h (check_ctime): Define.
37715         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37716         * tests/test-futimens.h (test_futimens): Likewise.
37717         * tests/test-lutimens.h (test_lutimens): Likewise.
37718         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37719         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37720
37721 2009-12-19  Bruno Haible  <bruno@clisp.org>
37722
37723         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37724         * tests/test-dprintf-posix2.sh: New file.
37725         * tests/test-dprintf-posix2.c: New file.
37726         * modules/dprintf-posix-tests (Files): Add them.
37727         (configure.ac): Check for getrlimit and setrlimit.
37728         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37729
37730 2009-12-19  Bruno Haible  <bruno@clisp.org>
37731
37732         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37733         * tests/test-fprintf-posix3.sh: New file.
37734         * tests/test-fprintf-posix3.c: New file.
37735         * modules/fprintf-posix-tests (Files): Add them.
37736         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37737
37738 2009-12-19  Eric Blake  <ebb9@byu.net>
37739
37740         dirfd: fix prototype
37741         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37742         * lib/dirfd.c (dirfd): Likewise.
37743
37744         canonicalize: reduce memory usage
37745         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37746         allocation to size.
37747         Reported by Solar Designer <solar@openwall.com>.
37748
37749 2009-12-19  Bruno Haible  <bruno@clisp.org>
37750
37751         New module attribute 'Applicability'.
37752         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37753         * gnulib-tool: New option --extract-applicability.
37754         (func_usage): Document it.
37755         (sed_extract_prog): Recognize it.
37756         (func_get_applicability): New function.
37757         (func_import): Generalize handling of 'link-warning' module.
37758         * modules/link-warning (Applicability): New section.
37759         * modules/arg-nonnull (Applicability): New section.
37760         Repoted by Simon Josefsson <simon@josefsson.org>.
37761
37762 2009-12-19  Bruno Haible  <bruno@clisp.org>
37763
37764         fflush: tweak
37765         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37766         * lib/fseeko.c (rpl_fseeko): Likewise.
37767
37768 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37769
37770         * lib/gl_list.h: Fix typo in comment.
37771
37772 2009-12-16  Eric Blake  <ebb9@byu.net>
37773
37774         fcntl: use to simplify other modules
37775         * modules/cloexec (Depends-on): Add fcntl.
37776         * modules/fchdir (Depends-on): Likewise.
37777         * modules/fd-safer-flag (Depends-on): Likewise.
37778         * modules/unistd-safer (Depends-on): Likewise.
37779         * modules/dup3 (configure.ac): Set module indicator.
37780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37781         missing.
37782         * lib/fchdir.c (_gl_register_dup): Fix comment.
37783         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37784         * lib/dup-safer.c (dup_safer): Likewise.
37785         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37786         * lib/dup3.c (dup3): Likewise.
37787         * tests/test-fchdir.c (main): Enhance test.
37788         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37789
37790         fcntl: port portions of fcntl to mingw
37791         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37792         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37793         replacement for mingw.
37794         * modules/fcntl (Description): Update.
37795         (Depends-on): Add dup2.
37796         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37797         * modules/fcntl-h (Makefile.am): Substitute it.
37798         * lib/fcntl.in.h (fcntl): Update declaration.
37799         (F_DUPFD, F_GETFD): New macros, when needed.
37800         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37801         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37802         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37803         we now guarantee.
37804
37805         fcntl: work around cygwin bug in F_DUPFD
37806         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37807         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37808         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37809         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37810         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37811
37812         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37813         * modules/fcntl (Files): List new files.
37814         (configure.ac): Run a test.
37815         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37816         * lib/fcntl.c (rpl_fcntl): Likewise.
37817         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37818         (gl_FCNTL_H): Always replace fcntl.h.
37819         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37820         * lib/fcntl.in.h (fcntl): Declare replacement.
37821         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37822         needed, plus a witness.
37823         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37824         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37825         * tests/test-fcntl.c: New file.
37826         * modules/fcntl-tests: Likewise.
37827
37828         binary-io: avoid potential compilation warning
37829         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37830         directives.
37831
37832         fflush: avoid compilation error on NetBSD
37833         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37834         between off_t and fpos_t, since the latter is sometimes a struct.
37835         * lib/fseeko.c (rpl_fseeko): Likewise.
37836         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37837
37838 2009-12-15  Eric Blake  <ebb9@byu.net>
37839
37840         fcntl-h, stdio, sys_ioctl: fix declarations
37841         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37842         function must not take arguments.
37843         * lib/sys_ioctl.in.h (ioctl): Likewise.
37844         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37845         (open): Add a link warning.
37846
37847 2009-12-15  Jim Meyering  <meyering@redhat.com>
37848
37849         areadlink, areadlink-with-size: relax license to LGPLv2+
37850         * modules/areadlink (License): Relax to LGPLv2+.
37851         * modules/areadlink-with-size (License): Likewise.
37852
37853 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37854             Bruno Haible  <bruno@clisp.org>
37855
37856         *printf: Fix memory leak.
37857         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37858         * lib/vfprintf.c (vfprintf): Likewise.
37859         * lib/dprintf.c (dprintf): Likewise.
37860         * lib/vdprintf.c (vdprintf): Likewise.
37861
37862 2009-12-14  Eric Blake  <ebb9@byu.net>
37863
37864         accept4: adjust module dependencies
37865         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37866
37867         utimens: one more try at avoiding compiler warning
37868         * lib/utimens.c (lutimens): Lower scope of result.
37869
37870 2009-12-13  Bruno Haible  <bruno@clisp.org>
37871
37872         Move the malloc checking from module 'list' to new module 'xlist'.
37873         * modules/xlist: New file.
37874         * lib/gl_xlist.h: New file.
37875         * lib/gl_xlist.c: New file.
37876         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37877         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37878         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37879         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37880         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37881         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37882         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37883         gl_sortedlist_nx_add): New declarations.
37884         (struct gl_list_implementation): Rename and change methods accordingly.
37885         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37886         (gl_list_nx_create): Renamed from gl_list_create.
37887         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37888         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37889         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37890         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37891         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37892         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37893         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37894         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37895         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37896         gl_list_create_empty.
37897         (gl_list_nx_create): Renamed from gl_list_create.
37898         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37899         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37900         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37901         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37902         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37903         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37904         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37905         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37906         * lib/gl_array_list.c: Don't include xalloc.h.
37907         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37908         NULL upon out-of-memory.
37909         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37910         out-of-memory.
37911         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37912         Change return type to 'int'.
37913         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37914         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37915         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37916         upon out-of-memory.
37917         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37918         upon out-of-memory.
37919         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37920         upon out-of-memory.
37921         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37922         upon out-of-memory.
37923         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37924         out-of-memory.
37925         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37926         Update.
37927         (gl_array_list_implementation): Update.
37928         * lib/gl_carray_list.c: Don't include xalloc.h.
37929         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37930         Return NULL upon out-of-memory.
37931         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37932         out-of-memory.
37933         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37934         Change return type to 'int'.
37935         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37936         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37937         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37938         upon out-of-memory.
37939         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37940         upon out-of-memory.
37941         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37942         out-of-memory.
37943         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37944         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37945         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37946         Update.
37947         (gl_carray_list_implementation): Update.
37948         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37949         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37950         gl_linked_create_empty. Return NULL upon out-of-memory.
37951         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37952         out-of-memory.
37953         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37954         Change return type to 'int'. Return -1 upon out-of-memory.
37955         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37956         out-of-memory.
37957         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37958         upon out-of-memory.
37959         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37960         upon out-of-memory.
37961         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37962         NULL upon out-of-memory.
37963         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37964         upon out-of-memory.
37965         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37966         out-of-memory.
37967         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37968         Update.
37969         * lib/gl_linked_list.c: Don't include xalloc.h.
37970         (gl_linked_list_implementation): Update.
37971         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37972         (add_to_bucket): Change return type to 'int'.
37973         (gl_linkedhash_list_implementation): Update.
37974         * lib/gl_anytree_list1.h (free_subtree): New function.
37975         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37976         gl_tree_create_empty. Return NULL upon out-of-memory.
37977         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37978         Change return type to 'int'. Return -1 upon out-of-memory.
37979         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37980         out-of-memory.
37981         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37982         (gl_tree_remove_node): New function, moved here from
37983         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37984         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37985         Update.
37986         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37987         malloc, not xmalloc. Return NULL upon out-of-memory.
37988         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37989         out-of-memory.
37990         (gl_tree_remove_node_from_tree): New function, extracted from
37991         gl_tree_remove_node.
37992         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37993         upon out-of-memory.
37994         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37995         out-of-memory.
37996         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37997         upon out-of-memory.
37998         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37999         upon out-of-memory.
38000         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38001         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38002         not xmalloc. Return NULL upon out-of-memory.
38003         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38004         out-of-memory.
38005         (gl_tree_remove_node_from_tree): New function, extracted from
38006         gl_tree_remove_node.
38007         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38008         upon out-of-memory.
38009         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38010         out-of-memory.
38011         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38012         upon out-of-memory.
38013         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38014         upon out-of-memory.
38015         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38016         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38017         gl_anytree_list1.h before gl_anyavltree_list2.h.
38018         (gl_avltree_list_implementation): Update.
38019         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38020         gl_anytree_list1.h before gl_anyavltree_list2.h.
38021         (gl_rbtree_list_implementation): Update.
38022         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38023         Change return type to 'int'. Return -1 upon out-of-memory. Use
38024         __builtin_expect.
38025         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38026         (gl_avltreehash_list_implementation): Update.
38027         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38028         (gl_rbtreehash_list_implementation): Update.
38029         * modules/array-list (Depends-on): Remove xalloc.
38030         * modules/carray-list (Depends-on): Likewise.
38031         * modules/linked-list (Depends-on): Likewise.
38032         * modules/linkedhash-list (Depends-on): Likewise.
38033         * modules/avltree-list (Depends-on): Likewise.
38034         * modules/rbtree-list (Depends-on): Likewise.
38035         * modules/avltreehash-list (Depends-on): Likewise.
38036         * modules/rbtreehash-list (Depends-on): Likewise.
38037
38038         * modules/xsublist: New file.
38039         * lib/gl_xsublist.h: New file.
38040         * lib/gl_xsublist.c: New file.
38041         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38042         (gl_sublist_nx_create): New declaration.
38043         * lib/gl_sublist.c: Don't include xalloc.h.
38044         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38045         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38046         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38047         Change return type to 'int'. Return -1 upon out-of-memory.
38048         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38049         upon out-of-memory.
38050         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38051         NULL upon out-of-memory.
38052         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38053         upon out-of-memory.
38054         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38055         NULL upon out-of-memory.
38056         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38057         NULL upon out-of-memory.
38058         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38059         upon out-of-memory.
38060         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38061         (gl_sublist_list_implementation): Update.
38062         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38063         upon out-of-memory.
38064         * modules/sublist (Depends-on): Remove xalloc.
38065
38066         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38067         * tests/test-carray_list.c: Likewise.
38068         * tests/test-linked_list.c: Likewise.
38069         * tests/test-linkedhash_list.c: Likewise.
38070         * tests/test-avltree_list.c: Likewise.
38071         * tests/test-rbtree_list.c: Likewise.
38072         * tests/test-avltreehash_list.c: Likewise.
38073         * tests/test-rbtreehash_list.c: Likewise.
38074         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38075         * modules/carray-list-tests (Makefile.am): Likewise.
38076         * modules/linked-list-tests (Makefile.am): Likewise.
38077         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38078         * modules/avltree-list-tests (Makefile.am): Likewise.
38079         * modules/rbtree-list-tests (Makefile.am): Likewise.
38080         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38081         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38082
38083         * NEWS: Mention the changes.
38084
38085         * lib/clean-temp.c: Include gl_xlist.h.
38086         * modules/clean-temp (Depends-on): Add xlist.
38087
38088         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38089         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38090
38091         * tests/test-array_oset.c: Include gl_xlist.h.
38092         * modules/array-oset-tests (Depends-on): Add xlist.
38093
38094         Reported by José E. Marchesi <jemarch@gnu.org>.
38095
38096 2009-12-13  Bruno Haible  <bruno@clisp.org>
38097
38098         Move the malloc checking from module 'oset' to new module 'xoset'.
38099         * modules/xoset: New file.
38100         * lib/gl_xoset.h: New file.
38101         * lib/gl_xoset.c: New file.
38102         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38103         declarations.
38104         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38105         (struct gl_oset_implementation): Rename and change methods accordingly.
38106         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38107         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38108         'int'. Mark as __warn_unused_result__.
38109         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38110         gl_oset_create_empty.
38111         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38112         'int'.
38113         * lib/gl_array_oset.c: Don't include xalloc.h.
38114         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38115         malloc, not xmalloc.
38116         (grow): Change return type to 'int'. Don't call xalloc_die.
38117         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38118         to 'int'.
38119         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38120         'int'.
38121         (gl_array_oset_implementation): Update.
38122         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38123         gl_tree_create_empty.
38124         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38125         'int'.
38126         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38127         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38128         xmalloc.
38129         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38130         not xmalloc.
38131         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38132         xmalloc.
38133         (gl_avltree_oset_implementation): Update.
38134         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38135         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38136         xmalloc.
38137         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38138         not xmalloc.
38139         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38140         xmalloc.
38141         (gl_rbtree_oset_implementation): Update.
38142         * modules/array-oset (Depends-on): Remove xalloc.
38143         * modules/avltree-oset (Depends-on): Likewise.
38144         * modules/rbtree-oset (Depends-on): Likewise.
38145         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38146         * tests/test-avltree_oset.c: Likewise.
38147         * tests/test-rbtree_oset.c: Likewise.
38148         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38149         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38150         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38151         * NEWS: Mention the change.
38152
38153 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38154
38155         maint.mk: allow a project to override release-prep commands
38156         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38157         commands into a new rule.
38158         (release-prep): New rule.
38159         (release-prep-hook): New overridable variable.
38160
38161 2009-12-13  Bruno Haible  <bruno@clisp.org>
38162
38163         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38164
38165 2009-12-13  Jim Meyering  <meyering@redhat.com>
38166
38167         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38168         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38169
38170 2009-12-12  Bruno Haible  <bruno@clisp.org>
38171
38172         duplocale: Tweak.
38173         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38174
38175 2009-12-12  Karl Berry  <karl@gnu.org>
38176
38177         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38178
38179 2009-12-12  Bruno Haible  <bruno@clisp.org>
38180
38181         * m4/po.m4: Undo incorrect untabification.
38182
38183 2009-12-12  Bruno Haible  <bruno@clisp.org>
38184
38185         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38186         * modules/c-strtod (Depends-on): Add locale.
38187         * modules/c-strtold (Depends-on): Likewise.
38188
38189 2009-12-12  Bruno Haible  <bruno@clisp.org>
38190
38191         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38192
38193 2009-12-11  Eric Blake  <ebb9@byu.net>
38194
38195         setenv: relax requirement in light of POSIX ruling
38196         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38197         not NULL.
38198         * tests/test-setenv.c (main): Relax test.
38199         * tests/test-unsetenv.c (main): Likewise.
38200         * doc/posix-functions/setenv.texi (setenv): Document this.
38201         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38202
38203 2009-12-11  Bruno Haible  <bruno@clisp.org>
38204
38205         New module 'fd-safer-flag'.
38206         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38207         * lib/dup-safer.c (dup_safer_flag): Remove function.
38208         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38209         * lib/fd-safer.c (fd_safer_flag): Remove function.
38210         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38211         * modules/cloexec (configure.ac): Drop indicator macro.
38212         * modules/fd-safer-flag: New file.
38213         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38214         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38215         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38216
38217 2009-12-11  Bruno Haible  <bruno@clisp.org>
38218
38219         Tests for module 'nl_langinfo'.
38220         * modules/nl_langinfo-tests: New file.
38221         * tests/test-nl_langinfo.sh: New file.
38222         * tests/test-nl_langinfo.c: New file.
38223
38224         New module 'nl_langinfo'.
38225         * lib/nl_langinfo.c: New file.
38226         * m4/nl_langinfo.m4: New file.
38227         * modules/nl_langinfo: New file.
38228         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38229
38230 2009-12-11  Bruno Haible  <bruno@clisp.org>
38231
38232         Tests for module 'langinfo'.
38233         * modules/langinfo-tests: New file.
38234         * tests/test-langinfo.c: New file.
38235
38236         New module 'langinfo'.
38237         * lib/langinfo.in.h: New file.
38238         * m4/langinfo_h.m4: New file.
38239         * modules/langinfo: New file.
38240         * doc/posix-headers/langinfo.texi: Mention the new module.
38241
38242 2009-12-11  Bruno Haible  <bruno@clisp.org>
38243
38244         * lib/config.charset: Untabify.
38245
38246 2009-12-11  Bruno Haible  <bruno@clisp.org>
38247
38248         * modules/unistd-safer (configure.ac): Drop indicator macro.
38249
38250 2009-12-11  Bruno Haible  <bruno@clisp.org>
38251
38252         Move pipe2-safer code to its own file.
38253         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38254         * lib/pipe-safer.c (pipe2_safer): Remove function.
38255         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38256         (Makefile.am): Add it to lib_SOURCES.
38257
38258 2009-12-10  Bruno Haible  <bruno@clisp.org>
38259
38260         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38261
38262 2009-12-10  Bruno Haible  <bruno@clisp.org>
38263
38264         Declare which arguments expect non-NULL values, for GCC and clang.
38265         * build-aux/arg-nonnull.h: New file.
38266         * modules/arg-nonnull: New file.
38267         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38268         (inet_ntop, inet_pton): Use it.
38269         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38270         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38271         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38272         (open, openat): Use it.
38273         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38274         (fnmatch): Use it.
38275         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38276         (getopt, getopt_long, getopt_long_only): Use it.
38277         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38278         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38279         Use it.
38280         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38281         (iconv_open): Use it.
38282         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38283         (strtoimax, strtoumax): Use it.
38284         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38285         (duplocale): Use it.
38286         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38287         (frexp, frexpl): Use it.
38288         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38289         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38290         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38291         (tsearch, tfind, tdelete, twalk): Use it.
38292         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38293         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38294         sigpending): Use it.
38295         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38296         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38297         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38298         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38299         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38300         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38301         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38302         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38303         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38304         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38305         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38306         Use it.
38307         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38308         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38309         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38310         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38311         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38312         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38313         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38314         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38315         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38316         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38317         strtoull, unsetenv): Use it.
38318         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38319         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38320         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38321         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38322         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38323         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38324         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38325         (strcasecmp, strncasecmp): Use it.
38326         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38327         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38328         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38329         rpl_setsockopt): Use it.
38330         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38331         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38332         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38333         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38334         (gettimeofday): Use it.
38335         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38336         (times): Use it.
38337         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38338         (uname): Use it.
38339         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38340         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38341         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38342         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38343         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38344         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38345         unlinkat, write): Use it.
38346         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38347         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38348         * lib/argv-iter.h: Include arg-nonnull.h.
38349         (_ATTRIBUTE_NONNULL_): Remove macro.
38350         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38351         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38352         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38353         optimization.
38354         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38355         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38356         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38357         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38358         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38359         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38360         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38361         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38362         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38363         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38364         * modules/dirent (Depends-on): Add arg-nonnull.
38365         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38366         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38367         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38368         * modules/fnmatch (Depends-on): Add arg-nonnull.
38369         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38370         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38371         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38372         * modules/glob (Depends-on): Add arg-nonnull.
38373         (Makefile.am): Insert arg-nonnull.h into glob.h.
38374         * modules/iconv_open (Depends-on): Add arg-nonnull.
38375         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38376         * modules/inttypes (Depends-on): Add arg-nonnull.
38377         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38378         * modules/locale (Depends-on): Add arg-nonnull.
38379         (Makefile.am): Insert arg-nonnull.h into locale.h.
38380         * modules/math (Depends-on): Add arg-nonnull.
38381         (Makefile.am): Insert arg-nonnull.h into math.h.
38382         * modules/netdb (Depends-on): Add arg-nonnull.
38383         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38384         * modules/search (Depends-on): Add arg-nonnull.
38385         (Makefile.am): Insert arg-nonnull.h into search.h.
38386         * modules/signal (Depends-on): Add arg-nonnull.
38387         (Makefile.am): Insert arg-nonnull.h into signal.h.
38388         * modules/spawn (Depends-on): Add arg-nonnull.
38389         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38390         * modules/stdio (Depends-on): Add arg-nonnull.
38391         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38392         * modules/stdlib (Depends-on): Add arg-nonnull.
38393         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38394         * modules/string (Depends-on): Add arg-nonnull.
38395         (Makefile.am): Insert arg-nonnull.h into string.h.
38396         * modules/strings (Depends-on): Add arg-nonnull.
38397         (Makefile.am): Insert arg-nonnull.h into strings.h.
38398         * modules/sys_socket (Depends-on): Add arg-nonnull.
38399         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38400         * modules/sys_stat (Depends-on): Add arg-nonnull.
38401         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38402         * modules/sys_time (Depends-on): Add arg-nonnull.
38403         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38404         * modules/sys_times (Depends-on): Add arg-nonnull.
38405         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38406         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38407         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38408         * modules/time (Depends-on): Add arg-nonnull.
38409         (Makefile.am): Insert arg-nonnull.h into time.h.
38410         * modules/unistd (Depends-on): Add arg-nonnull.
38411         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38412         * modules/wchar (Depends-on): Add arg-nonnull.
38413         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38414         * modules/argv-iter (Depends-on): Add arg-nonnull.
38415         * tests/test-canonicalize.c (null_ptr): New function.
38416         (main): Use it.
38417         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38418         (main): Use it.
38419         * tests/test-memmem.c (null_ptr): New function.
38420         (main): Use it.
38421         Reported by Jim Meyering.
38422
38423 2009-12-10  Bruno Haible  <bruno@clisp.org>
38424
38425         Use spaces for indentation, not tabs.
38426         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38427         * m4/*.m4: Untabify.
38428         * build-aux/*.h: Untabify.
38429         * tests/**/*.[hc]: Untabify.
38430         * README: New section "Indent with spaces, not TABs", based on
38431         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38432         * NEWS: Mention the change.
38433
38434 2009-12-10  Bruno Haible  <bruno@clisp.org>
38435
38436         pty test: Fix link error.
38437         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38438         test_pty_LDADD.
38439
38440 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38441
38442         * modules/pty: New file.
38443         * modules/pty-tests: New file.
38444         * m4/pty.m4: New file.
38445         * tests/test-pty.c: New file.
38446         * doc/glibc-headers/pty.texi: Modified.
38447         * doc/glibc-functions/forkpty.texi: Modified.
38448         * doc/glibc-functions/openpty.texi: Modified.
38449
38450 2009-12-10  Bruno Haible  <bruno@clisp.org>
38451
38452         Avoid syntax error in C++ mode.
38453         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38454
38455 2009-12-10  Bruno Haible  <bruno@clisp.org>
38456
38457         Use sed with option -e.
38458         * gnulib-tool (func_version, func_emit_copyright_notice,
38459         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38460         option -e to sed.
38461         * modules/link-warning (Makefile.am): Likewise.
38462
38463 2009-12-10  Jim Meyering  <meyering@redhat.com>
38464
38465         mgetgroups: do not write bytes beyond end of malloc'd buffer
38466         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38467         username, we call getgroups with a one-element-shorter buffer,
38468         but still told it the length was original, max_n_groups.
38469
38470 2009-12-09  Eric Blake  <ebb9@byu.net>
38471
38472         cloexec: relax license
38473         * modules/cloexec (Maintainer): Add myself.
38474         (License): Use LGPL, not GPL.
38475
38476         link-warning: optimize generation
38477         * modules/link-warning (Makefile.am): Reduce process usage.
38478
38479 2009-12-09  Bruno Haible  <bruno@clisp.org>
38480
38481         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38482         workaround was added on 2009-11-17.
38483
38484 2009-12-09  Jim Meyering  <meyering@redhat.com>
38485             Bruno Haible  <bruno@clisp.org>
38486
38487         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38488         * modules/link-warning (Makefile.am): Make the comment-removing sed
38489         command more robust in the face of bootstrap-prepended comment lines.
38490
38491 2009-12-09  Bruno Haible  <bruno@clisp.org>
38492
38493         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38494         most one group.
38495
38496 2009-12-09  Simon Josefsson <simon@josefsson.org>
38497             Bruno Haible  <bruno@clisp.org>
38498
38499         * build-aux/link-warning.h: Add copyright notice.
38500         * modules/link-warning (Makefile.am): Generate link-warning.h from
38501         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38502         * NEWS: Mention change in link-warning module.
38503         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38504         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38505         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38506         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38507         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38508         * modules/math (Makefile.am): Add dependency to math.h.
38509         * modules/search (Makefile.am): Add dependency to search.h.
38510         * modules/signal (Makefile.am): Add dependency to signal.h.
38511         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38512         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38513         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38514         * modules/string (Makefile.am): Add dependency to string.h.
38515         * modules/strings (Makefile.am): Add dependency to strings.h.
38516         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38517         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38518         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38519         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38520         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38521         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38522         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38523         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38524         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38525
38526 2009-12-09  Bruno Haible  <bruno@clisp.org>
38527
38528         fchdir: Optimize away rpl_fstat when possible.
38529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38530         REPLACE_OPEN_DIRECTORY.
38531         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38532
38533 2009-12-09  Bruno Haible  <bruno@clisp.org>
38534
38535         * lib/fchdir.c: Update comment.
38536
38537 2009-12-09  Bruno Haible  <bruno@clisp.org>
38538
38539         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38540
38541 2009-12-08  Eric Blake  <ebb9@byu.net>
38542
38543         fchdir: avoid memory leak on re-registration.
38544         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38545
38546 2009-12-08  Jim Meyering  <meyering@redhat.com>
38547
38548         init.sh: avoid Solaris 10 /bin/sh portability problem
38549         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38550         sourced script:
38551           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38552           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38553           bar
38554         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38555         and two tests used that idiom.
38556         * tests/init.sh: Update suggested usage comments.
38557         (path_prepend_): New function, to be used in place
38558         of the --src-path=DIR option.
38559         (setup_): Move PATH-prepending code into path_prepend_.
38560         * tests/test-pread.sh: Adapt to new usage.
38561         * tests/test-xalloc-die.sh: Likewise.
38562
38563 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38564
38565         * doc/gnulib.texi (Glibc pty.h): Add.
38566         * doc/glibc-functions/forkpty.texi: Add.
38567         * doc/glibc-functions/openpty.texi: Add.
38568         Suggested by Bruno Haible.
38569
38570 2009-12-08  Eric Blake  <ebb9@byu.net>
38571
38572         fchdir: fix logic bugs
38573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38574         * tests/test-fchdir.c (main): Enhance test.
38575         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38576         is in use.
38577
38578         dup2: fix logic bugs
38579         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38580         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38581         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38582         exists.
38583         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38584
38585 2009-12-07  Eric Blake  <ebb9@byu.net>
38586
38587         unlink: fix m4 detection
38588         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38589
38590         unistd-safer: add unit test
38591         * modules/unistd-safer-tests: New file.
38592         * tests/test-dup-safer.c: Likewise.
38593         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38594         * tests/test-dup2.c (setmode): Likewise.
38595         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38596
38597         cloexec: preserve text vs. binary across dup_cloexec
38598         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38599         mode.
38600         * modules/dup2-tests (Depends-on): Add binary-io.
38601         * modules/cloexec-tests (Depends-on): Likewise.
38602         * tests/test-dup2.c (setmode, is_mode): New helpers.
38603         (main): Add tests that translation mode is preserved.
38604         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38605         Reported by Bruno Haible.
38606
38607         mgetgroups: reduce duplicate listings
38608         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38609         resulting array.
38610         * tests/test-chown.h (test_chown): Simplify client.
38611         * tests/test-lchown.h (test_lchown): Likewise.
38612
38613 2009-12-06  Bruno Haible  <bruno@clisp.org>
38614
38615         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38616         value.
38617
38618 2009-12-06  Bruno Haible  <bruno@clisp.org>
38619
38620         * lib/progname.c: Include stdio.h, stdlib.h.
38621         (set_program_name): Reject a NULL argument.
38622
38623 2009-12-05  Eric Blake  <ebb9@byu.net>
38624
38625         pipe2-safer: new module
38626         * modules/pipe2-safer: New file.
38627         * lib/unistd-safer.h (pipe2_safer): New prototype.
38628         * lib/unistd--.h (pipe2): New wrapper.
38629         * lib/pipe-safer.c (pipe2_safer): New function.
38630         * modules/pipe (Depends-on): Add pipe2-safer.
38631         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38632
38633         stdlib-safer: preserve cloexec flag for mkostemp[s]
38634         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38635         fd_safer_flag.
38636
38637         unistd-safer: allow preservation of cloexec status via flag
38638         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38639         prototypes.
38640         * lib/dup-safer.c (dup_safer_flag): New function.
38641         * lib/fd-safer.c (fd_safer_flag): Likewise.
38642         * modules/cloexec (configure.ac): Set witness.
38643
38644         test-dup2: enhance test
38645         * modules/dup2-tests (Depends-on): Add cloexec.
38646         * tests/test-dup2.c (main): Enhance test.
38647
38648         cloexec: add dup_cloexec
38649         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38650         header and comments.
38651         * lib/cloexec.c (set_cloexec_flag): Add comments.
38652         (dup_cloexec): New function, with mingw implementation borrowed
38653         from...
38654         * lib/w32spawn.h (dup_noinherit): ...here.
38655         * modules/execute (Depends-on): Add cloexec.
38656         * modules/pipe (Depends-on): Likewise.
38657         * modules/cloexec (Depends-on): Add dup2.
38658         * modules/cloexec-tests (Files): New file.
38659         * tests/test-cloexec.c: Likewise.
38660
38661         test-xalloc-die: fix test for mingw
38662         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38663         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38664         directory and .exe suffix off argv[0] output.
38665
38666         test-fseeko: fix test for mingw
38667         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38668         than undefining fseek, so test will pass on mingw.
38669
38670 2009-12-05  Bruno Haible  <bruno@clisp.org>
38671
38672         * lib/progname.h (set_program_name): Clarify specification.
38673         * lib/progname.c (set_program_name): Likewise.
38674         Reported by Jim Meyering.
38675
38676 2009-12-05  Jim Meyering  <meyering@redhat.com>
38677
38678         maint.mk: backslash-escape parens in default regexp
38679         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38680         backslash-escape the literal parentheses.
38681
38682         maint.mk: news-date-check: use grep -E
38683         * top/maint.mk (today): Define a Make variable, not a...
38684         (news-date-check): ...shell variable.
38685         (news-date-regexp): Use the Make variable.
38686         Use grep's -E option.  Change the failing diagnostic to mention
38687         the variable, $(news-date-regexp).
38688
38689 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38690
38691         maintainer-makefile: allow customization of NEWS entry format
38692         * top/maint.mk (news-date-regexp): New overridable variable.
38693         (news-date-check): Use it.
38694
38695 2009-12-04  Eric Blake  <ebb9@byu.net>
38696
38697         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38698         * lib/mgetgroups.h (xgetgroups): New prototype.
38699         * lib/mgetgroups.c (xgetgroups): New wrapper.
38700         (mgetgroups): Handle ENOSYS.
38701         * modules/mgetgroups (Depends-on): Add realloc.
38702         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38703
38704         mgetgroups: avoid argument promotion issues with -1
38705         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38706         for invalid gid_t.
38707         * tests/test-chown.h (getegid, test_chown): Likewise.
38708         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38709
38710 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38711
38712         exclude: Fix header file problems.
38713         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38714
38715 2009-12-01  Jim Meyering  <meyering@redhat.com>
38716
38717         fts: fts_open: do not let an empty string cause immediate failure
38718         This is required in support of GNU rm, for which the command
38719         "rm A '' B" must process and remove both A and B, in spite of
38720         the empty string argument.
38721         * lib/fts.c (fts_open): Do not let the presence of an empty string
38722         cause fts_open to fail immediately.  Most fts-using tools must be
38723         able to process all arguments, in order, and can be expected to
38724         diagnose such arguments themselves.
38725
38726 2009-11-30  Eric Blake  <ebb9@byu.net>
38727
38728         utimens: fix compilation error
38729         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38730         Declare variable at right scope.
38731
38732 2009-11-29  Jim Meyering  <meyering@redhat.com>
38733
38734         bootstrap: handle perl-5.11's changed --version output
38735         * build-aux/bootstrap (get_version): Handle perl separately,
38736         since perl-5.11's --version output is different.
38737
38738 2009-11-28  Jim Meyering  <meyering@redhat.com>
38739
38740         userspec: depend on the inttostr module, too
38741         * modules/userspec (Depends-on): Add inttostr.
38742
38743         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38744         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38745         number of MAXUID when it evaluates to (uid_t) -1.
38746         Likewise for group ID.  Reported by Matt McCutchen in
38747         <http://savannah.gnu.org/bugs/?28113>
38748
38749         userspec: reformat to use spaces, not TABs
38750         * lib/userspec.c: Expand TABs to spaces.
38751         Add Emacs' "indent-tabs-mode: nil" hint.
38752
38753 2009-11-27  Eric Blake  <ebb9@byu.net>
38754
38755         getopt-gnu: flush out another BSD bug
38756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38757         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38758         flush out BSD bug.
38759         * tests/test-getopt.h (test_getopt): End lists with NULL.
38760         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38761         (test_getopt_long_posix): Enhance test.
38762         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38763         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38764         getopt-gnu.
38765         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38766         Likewise.
38767
38768 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38769
38770         * modules/idpriv-droptemp-tests (Notice): Fix text.
38771
38772 2009-11-27  Jim Meyering  <meyering@redhat.com>
38773
38774         test-xalloc-die: avoid spurious failure due to libtool argv difference
38775         In a libtool-enabled project, this test would fail due to a difference
38776         in the emitted program name, e.g.,
38777         -test-xalloc-die: memory exhausted
38778         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38779         Use program to avoid that.
38780         * modules/xalloc-die-tests (Depends-on): Add progname.
38781         * tests/test-xalloc-die.c: Include progname.h".
38782         (program_name): Remove decl.
38783         (main): Call set_program_name.
38784         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38785
38786 2009-11-26  Richard Jones  <rjones@redhat.com>
38787
38788         w32sock: leave win32 error in place.
38789         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38790
38791 2009-11-26  Eric Blake  <ebb9@byu.net>
38792
38793         init.sh: suggest to use skip_ and fail_ functions in comments
38794         * tests/init.sh: Add a sentence.
38795
38796 2009-11-25  Bruno Haible  <bruno@clisp.org>
38797
38798         init.sh: add documentation in comments
38799         * tests/init.sh: Add some developer and user documentation.
38800
38801 2009-11-26  Jim Meyering  <meyering@redhat.com>
38802
38803         init.sh: accommodate even those who specify bogus srcdir manually
38804         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38805         configure-time tests to be sanitized, so that there is no need to
38806         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38807         (with no double quotes) suffices.  However, since tests may be
38808         invoked manually, and since you may explicitly set srcdir to the
38809         name of a directory containing spaces, do quote its uses here.
38810         * tests/test-pread.sh: Likewise.
38811         Suggested by Bruno Haible.
38812
38813         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38814         * tests/test-pread.sh: Write no data into the pipe, because
38815         test-pread actually reads none.  This avoids a diagnostic,
38816         "bash: echo: write error: Broken pipe", that arises in the unusual
38817         event something is ignoring SIGPIPE, and might be interpreted
38818         as some sort of failure.  Reported by Bruno Haible.
38819
38820 2009-11-25  Jim Meyering  <meyering@redhat.com>
38821
38822         test-pread: cover failure with ESPIPE and EINVAL
38823         * tests/test-pread.c (main): Test for failure, too.
38824         * tests/test-pread.sh: Invoke with stdin on a pipe.
38825         Suggested by Eric Blake.
38826
38827         pread: improvement and fix
38828         * modules/pread (Depends-on): Depend on lseek, for portability to
38829         e.g., mingw.  Suggested by Eric Blake.
38830         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38831
38832         unistd.in.h: correct declaration of pread
38833         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38834         Reported by Richard W.M. Jones.
38835
38836         test-pread.sh: distribute the test script
38837         * modules/pread-tests (Files): Include test-pread.sh.
38838
38839         test-pread.sh: clean up
38840         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38841         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38842         That is unnecessary, since it's always ".".
38843         Suggestion from Eric Blake.
38844
38845         test-pread.sh: make executable
38846         * tests/test-pread.sh: Set executable bit.
38847         Reported by Eric Blake.
38848
38849         correct typo in test-pread.sh
38850         * tests/test-pread.sh: Add #! line.
38851
38852         test pread
38853         * tests/test-pread.c: New file.
38854         * tests/test-pread.sh: Likewise.
38855         * modules/pread-tests: Likewise.
38856
38857         pread: new module
38858         * modules/pread: New file.
38859         * lib/unistd.in.h (pread): Define/declare.
38860         * lib/pread.c (pread): New file.
38861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38862         * modules/unistd (Makefile.am): Substitute witnesses.
38863         * doc/posix-functions/pread.texi (pread): Update.
38864         * MODULES.html.sh: Add pread.
38865
38866 2009-11-25  Jim Meyering  <meyering@redhat.com>
38867
38868         tests/init.sh: new file to be used via most *.sh tests
38869         * tests/init.sh: New file.
38870
38871 2009-11-25  Eric Blake  <ebb9@byu.net>
38872
38873         utimens: work around older Linux failure with symlinks
38874         * lib/utimens.c (lutimensat_works_really): New variable.
38875         (fdutimens, lutimens): Use it to manage kernels that support
38876         nanosecond times on files, but not on symlinks.
38877         Reported by OndÅ™ej Vašík.
38878
38879         utimes: fix configure grammar
38880         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38881
38882 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38883
38884         regex: Fix fastmap for multibyte character ranges.
38885         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38886         characters when a multibyte character range is included.
38887
38888 2009-11-22  Andy Wingo  <wingo@pobox.com>
38889
38890         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38891         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38892
38893 2009-11-24  Bruno Haible  <bruno@clisp.org>
38894
38895         doc: Most *_l functions exist in MacOS X 10.5.
38896         * doc/posix-functions/duplocale.texi: Update platforms list.
38897         * doc/posix-functions/freelocale.texi: Likewise.
38898         * doc/posix-functions/newlocale.texi: Likewise.
38899         * doc/posix-functions/uselocale.texi: Likewise.
38900         * doc/posix-functions/isalnum_l.texi: Likewise.
38901         * doc/posix-functions/isalpha_l.texi: Likewise.
38902         * doc/posix-functions/isblank_l.texi: Likewise.
38903         * doc/posix-functions/iscntrl_l.texi: Likewise.
38904         * doc/posix-functions/isdigit_l.texi: Likewise.
38905         * doc/posix-functions/isgraph_l.texi: Likewise.
38906         * doc/posix-functions/islower_l.texi: Likewise.
38907         * doc/posix-functions/isprint_l.texi: Likewise.
38908         * doc/posix-functions/ispunct_l.texi: Likewise.
38909         * doc/posix-functions/isspace_l.texi: Likewise.
38910         * doc/posix-functions/isupper_l.texi: Likewise.
38911         * doc/posix-functions/iswalnum_l.texi: Likewise.
38912         * doc/posix-functions/iswalpha_l.texi: Likewise.
38913         * doc/posix-functions/iswblank_l.texi: Likewise.
38914         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38915         * doc/posix-functions/iswctype_l.texi: Likewise.
38916         * doc/posix-functions/iswdigit_l.texi: Likewise.
38917         * doc/posix-functions/iswgraph_l.texi: Likewise.
38918         * doc/posix-functions/iswlower_l.texi: Likewise.
38919         * doc/posix-functions/iswprint_l.texi: Likewise.
38920         * doc/posix-functions/iswpunct_l.texi: Likewise.
38921         * doc/posix-functions/iswspace_l.texi: Likewise.
38922         * doc/posix-functions/iswupper_l.texi: Likewise.
38923         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38924         * doc/posix-functions/isxdigit_l.texi: Likewise.
38925         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38926         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38927         * doc/posix-functions/strcoll_l.texi: Likewise.
38928         * doc/posix-functions/strfmon_l.texi: Likewise.
38929         * doc/posix-functions/strftime_l.texi: Likewise.
38930         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38931         * doc/posix-functions/strxfrm_l.texi: Likewise.
38932         * doc/posix-functions/tolower_l.texi: Likewise.
38933         * doc/posix-functions/toupper_l.texi: Likewise.
38934         * doc/posix-functions/towctrans_l.texi: Likewise.
38935         * doc/posix-functions/towlower_l.texi: Likewise.
38936         * doc/posix-functions/towupper_l.texi: Likewise.
38937         * doc/posix-functions/wcscoll_l.texi: Likewise.
38938         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38939         * doc/posix-functions/wctrans_l.texi: Likewise.
38940         * doc/posix-functions/wctype_l.texi: Likewise.
38941         * doc/glibc-functions/strptime_l.texi: Likewise.
38942         * doc/glibc-functions/strtod_l.texi: Likewise.
38943         * doc/glibc-functions/strtof_l.texi: Likewise.
38944         * doc/glibc-functions/strtol_l.texi: Likewise.
38945         * doc/glibc-functions/strtold_l.texi: Likewise.
38946         * doc/glibc-functions/strtoll_l.texi: Likewise.
38947         * doc/glibc-functions/strtoul_l.texi: Likewise.
38948         * doc/glibc-functions/strtoull_l.texi: Likewise.
38949         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38950         * doc/glibc-functions/wcstod_l.texi: Likewise.
38951         * doc/glibc-functions/wcstof_l.texi: Likewise.
38952         * doc/glibc-functions/wcstol_l.texi: Likewise.
38953         * doc/glibc-functions/wcstold_l.texi: Likewise.
38954         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38955         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38956         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38957
38958 2009-11-24  Bruno Haible  <bruno@clisp.org>
38959
38960         duplocale: Fix logic bug.
38961         * lib/duplocale.c: Don't include <langinfo.h>.
38962         (_NL_LOCALE_NAME): Remove macro.
38963         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38964         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38965
38966 2009-11-23  Jim Meyering  <meyering@redhat.com>
38967
38968         test-update-copyright: don't hard-code /usr/bin/perl
38969         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38970         perl to print the current year.  Gilles Espinasse reported that
38971         the replaced use of perl was hard-coded as /usr/bin/perl.
38972
38973 2009-11-23  Bruno Haible  <bruno@clisp.org>
38974
38975         duplocale: Add support for glibc 2.3.x.
38976         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38977
38978 2009-11-22  Bruno Haible  <bruno@clisp.org>
38979
38980         vasnprintf: Tiny optimization.
38981         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38982         MacOS X.
38983
38984 2009-11-22  Bruno Haible  <bruno@clisp.org>
38985
38986         Tests for module 'duplocale'.
38987         * modules/duplocale-tests: New file.
38988         * tests/test-duplocale.c: New file.
38989
38990         New module 'duplocale'.
38991         * m4/duplocale.m4: New file.
38992         * lib/locale.in.h (duplocale): New declaration.
38993         * lib/duplocale.c: New file.
38994         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38995         gl_LOCALE_H_DEFAULTS): New macros.
38996         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38997         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38998         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38999         REPLACE_DUPLOCALE.
39000         * modules/duplocale: New file.
39001         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39002
39003 2009-11-22  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/locale-tests (configure.ac): Test for newlocale function.
39006         * tests/test-locale.c: When the system has extended locale functions,
39007         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39008
39009         locale: Make locale_t available when possible.
39010         * lib/locale.in.h: Include <xlocale.h> when it exists.
39011         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39012         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39013         * modules/locale (Depends-on): Add extensions.
39014         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39015         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39016
39017 2009-11-22  Bruno Haible  <bruno@clisp.org>
39018
39019         Add comments.
39020         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39021         invocation.
39022         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39023         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39024         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39025
39026 2009-11-22  Bruno Haible  <bruno@clisp.org>
39027
39028         error: account for the possibility of freopen (stdout).
39029         * lib/error.c: Include <unistd.h>.
39030         (flush_stdout): New function, extracted from error and error_at_line.
39031         Determine stdout's fd dynamically.
39032         (error, error_at_line): Invoke flush_stdout.
39033         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39034         * modules/error (Depends-on): Add unistd.
39035
39036 2009-11-22  Bruno Haible  <bruno@clisp.org>
39037
39038         diffseq: Add comment.
39039         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39040
39041 2009-11-22  Jim Meyering  <meyering@redhat.com>
39042
39043         c-stack: avoid defining an unused static function
39044         * lib/c-stack.c (find_stack_direction): Do not define this function
39045         when it will not be used.
39046
39047         diffseq: avoid spurious gcc warnings
39048         * lib/diffseq.h (IF_LINT2): Define.
39049         (compareseq): Use it to initialize two members of "part".
39050         This avoids two used-uninitialized warnings.
39051
39052 2009-11-21  Jim Meyering  <meyering@redhat.com>
39053
39054         c-stack: avoid "ignoring return value of `write'" warning
39055         * lib/c-stack.c: Include "ignore-value.h".
39056         (die): Explicitly ignore each write return value.
39057         * modules/c-stack (Depends-on): Add ignore-value.
39058
39059 2009-11-21  Bruno Haible  <bruno@clisp.org>
39060
39061         diffseq: reduce scope of variable 'best'.
39062         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39063         variable, earlier used for two different purposes.
39064
39065 2009-11-21  Jim Meyering  <meyering@redhat.com>
39066
39067         diffseq: remove useless assignment to "best"
39068         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39069         assignment.  At that point "best" is already guaranteed to be zero.
39070
39071 2009-11-20  Eric Blake  <ebb9@byu.net>
39072
39073         build: mention ftp redirector in release announcements
39074         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39075         values that used to come from cfg.mk; mention FTP redirect URL.
39076         * build-aux/announce-gen: Mention the mirror list.
39077         Suggested by Karl Berry.
39078
39079         nanosleep: improve port to mingw
39080         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39081         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39082         LIB_NANOSLEEP, but only when needed.
39083         * modules/select (Link): Document LIBSOCKET.
39084         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39085         enough.
39086
39087         nanosleep: work around cygwin bug
39088         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39089         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39090         bug.
39091         (getnow): Delete, not needed.
39092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39093         LIB_CLOCK_GETTIME.
39094         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39095         clock-time, gettime.
39096         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39097         bug.
39098         * modules/nanosleep-tests: New test.
39099         * tests/test-nanosleep.c: New file.
39100
39101         sleep: work around cygwin bug
39102         * lib/sleep.c (rpl_sleep): Work around the bug.
39103         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39104         (gl_PREREQ_SLEEP): Delete unused macro.
39105         * modules/sleep (Depends-on): Add verify.
39106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39107         * modules/unistd (Makefile.am): Substitute witness.
39108         * lib/unistd.in.h (sleep): Update prototype.
39109         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39110         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39111         * modules/sleep-tests (Depends-on): Check for alarm.
39112
39113 2009-11-20  Jim Meyering  <meyering@redhat.com>
39114
39115         maint.mk: improve sc_prohibit_magic_number_exit
39116         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39117         so it does not match uses like System.exit(1).
39118         Add comments showing how to correct all offenders.
39119
39120 2009-11-19  Eric Blake  <ebb9@byu.net>
39121
39122         xalloc-die-tests: add missing library
39123         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39124
39125         test-xvasprintf: silence compiler warnings
39126         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39127         empty string from gcc.
39128
39129 2009-11-19  Jim Meyering  <meyering@redhat.com>
39130
39131         xfreopen: new module, from coreutils
39132         * modules/xfreopen: New module.
39133         * lib/xfreopen.c: New file.
39134         * lib/xfreopen.h: New file.
39135         * MODULES.html.sh (File stream based Input/Output"): Add it.
39136
39137 2009-11-19  Eric Blake  <ebb9@byu.net>
39138
39139         manywarnings: depend on warnings
39140         * modules/manywarnings (Depends-on): Add warnings.
39141
39142         build: avoid compiler warnings
39143         * lib/select.c (rpl_select): Delete unused variable.
39144         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39145
39146 2009-11-18  Eric Blake  <ebb9@byu.net>
39147
39148         tests: avoid false negative with --with-packager
39149         * tests/test-version-etc.sh: Discard packager information.
39150         * tests/test-argp-version-etc-1.sh: Likewise.
39151         Reported by Mike Frysinger.
39152
39153         utimens: fix regression on Solaris
39154         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39155         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39156         can only change fd timestamps via futimesat.  Instead, use an
39157         additional witness macro to avoid BSD bug.
39158         Reported by Jim Meyering.
39159
39160 2009-11-17  Eric Blake  <ebb9@byu.net>
39161
39162         usleep: use it to simplify tests
39163         * modules/stat-time-tests (Depends-on): Add usleep.
39164         (configure.ac): Drop usleep check.
39165         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39166         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39167         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39168         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39169         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39170         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39171         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39172         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39173         Likewise.
39174         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39175         * tests/test-lchown.h (nap): Likewise.
39176         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39177         * tests/test-stat-time.c (nap): Likewise.
39178         * tests/test-utimens-common.h (nap): Update comments.
39179
39180         usleep: new module
39181         * modules/usleep: New file.
39182         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39183         * lib/usleep.c (usleep): Likewise.
39184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39185         * modules/unistd (Makefile.am): Substitute witnesses.
39186         * lib/unistd.in.h (usleep): Add declaration.
39187         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39188         * MODULES.html.sh (Date and time): Likewise.
39189         * modules/usleep-tests (Depends-on): New test.
39190         * tests/test-usleep.c: New file.
39191
39192         chown: work around OpenBSD bug
39193         * lib/chown.c (rpl_chown): Work around the bug.
39194         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39195         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39196         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39197         * modules/chown (Depends-on): Add stdbool.
39198         * modules/lchown (Depends-on): Likewise.
39199         * doc/posix-functions/chown.texi (chown): Document the bug.
39200         * doc/posix-functions/lchown.texi (lchown): Likewise.
39201         * tests/test-lchown.h (test_chown): Relax test.
39202
39203         mkstemp: avoid conflict with C++ keyword template
39204         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39205         * lib/mkostemp.c (mkostemp): Likewise.
39206         * lib/mkostemps.c (mkostemps): Likewise.
39207         * lib/mkstemp.c (mkstemp): Likewise.
39208         * lib/mkstemps.c (mkstemps): Likewise.
39209
39210         xalloc-die-tests: optimize
39211         * tests/test-xalloc-die.sh: Reduce number of processes.
39212
39213 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39214
39215         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39216         patch from ludo@gnu.org (Ludovic Courtès).
39217
39218 2009-11-17  Jim Meyering  <meyering@redhat.com>
39219
39220         version-etc: use proper license string
39221         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39222         * modules/version-etc-fsf: Likewise.
39223
39224 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39225
39226         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39227         printed to stdout.  Deal with EOL differences.
39228
39229 2009-11-17  Eric Blake  <ebb9@byu.net>
39230
39231         unsetenv: work around Solaris bug
39232         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39233         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39234         Reported by Jim Meyering.
39235
39236         vasnprintf: avoid compiler warnings
39237         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39238         variables.
39239         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39240
39241 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39242
39243         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39244         settings since xalloc-die is no longer the self test,
39245         xalloc-die.sh is.
39246
39247 2009-11-17  Jim Meyering  <meyering@redhat.com>
39248
39249         test-xalloc-die.sh: make the code agree with the commit log
39250         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39251         at the end, just in case you happen to have a test-xalloc-die
39252         program in some other PATH directory.
39253
39254         test-xalloc-die.sh: fix a portability bug
39255         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39256         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39257         Otherwise, argv[0] (as often seen in diagnostics) would be too
39258         system-dependent, sometimes with, and sometimes without the leading "./".
39259
39260         version-etc-fsf: relax license to LGPLv3+
39261         * modules/version-etc-fsf (License): Relax license.
39262
39263 2009-11-16  Eric Blake  <ebb9@byu.net>
39264
39265         xalloc-die-tests: avoid printing null pointer
39266         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39267         shell script.
39268         * tests/test-xalloc-die.c (program_name): Declare.
39269         * tests/test-xalloc-die.sh (tmpfiles): New file.
39270
39271         setenv, unsetenv: work around various bugs
39272         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39273         (setenv) [HAVE_SETENV]: Work around bugs.
39274         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39275         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39276         for bugs.
39277         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39278         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39280         * modules/stdlib (Makefile.am): Update substitutions.
39281         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39282         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39283         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39284         * modules/setenv-tests: New test.
39285         * modules/unsetenv-tests: Likewise.
39286         * tests/test-setenv.c: New file.
39287         * tests/test-unsetenv.c: Likewise.
39288
39289 2009-11-16  Jim Meyering  <meyering@redhat.com>
39290
39291         version-etc: relax license to LGPLv3+
39292         * modules/version-etc (License): Relax license.
39293
39294         better AC_REQUIRE expanded-before-required-warning avoidance
39295         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39296         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39297         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39298         which is no longer needed.
39299
39300 2009-11-16  Eric Blake  <ebb9@byu.net>
39301
39302         test-freading: clean up temporary file
39303         * tests/test-freading.c (main): Remove file on success, and use
39304         ASSERT more liberally.
39305         Reported by Jim Meyering.
39306
39307 2009-11-16  Jim Meyering  <meyering@redhat.com>
39308
39309         avoid new AC_REQUIRE expanded-before-required warnings
39310         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39311         merely using it.
39312         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39313         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39314
39315 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39316
39317         * tests/test-xalloc-die.c: New file.
39318         * modules/xalloc-die-tests: New file.
39319         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39320         XFAIL_TESTS so it can be appended by modules.
39321
39322 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39323
39324         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39325         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39326
39327 2009-11-14  Eric Blake  <ebb9@byu.net>
39328
39329         fnmatch: avoid compiler warning
39330         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39331         to silence compiler warning about mismatch signedness in ?:.
39332         Reported by Robert Millan.
39333
39334         intprops: add double-inclusion guard
39335         * lib/intprops.h: Allow idempotent includes.
39336         Suggested by Bruce Korb.
39337
39338         openat: detect Solaris fchownat bug
39339         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39340         penalizing glibc chownat when only lchownat is broken.
39341         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39342         trailing slash bugs.
39343         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39344         * modules/openat-tests (Files): Include more files.
39345         (Depends-on): Add mgetgroups, sleep, stat-time.
39346         (configure.ac): Add additional checks.
39347         (Makefile.am): Build new test.
39348         * tests/test-fchownat.c: New file.
39349
39350         lchown: detect Solaris and FreeBSD bug
39351         * lib/lchown.c (rpl_lchown): Work around bug.
39352         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39354         * modules/unistd (Makefile.am): Populate it.
39355         * lib/unistd.in.h (lchown): Update declaration.
39356         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39357         * modules/lchown-tests: New file.
39358         * tests/test-lchown.h (test_lchown): Likewise.
39359         * tests/test-lchown.c (main): Likewise.
39360
39361         chown: detect Solaris and FreeBSD bug
39362         * lib/chown.c (rpl_chown): Work around bug.
39363         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39364         (gl_PREREQ_CHOWN): Delete.
39365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39366         * modules/unistd (Makefile.am): Populate it.
39367         * lib/unistd.in.h (chown): Update declaration.
39368         * lib/lchown.c (chown): Update client.
39369         * modules/lchown (Depends-on): Add lstat.
39370         * doc/posix-functions/chown.texi (chown): Document the bug.
39371         * doc/posix-functions/getgroups.texi (getgroups): Document
39372         getgroups pitfall.
39373         * modules/chown-tests: New file.
39374         * tests/test-chown.h (test_chown): Likewise.
39375         * tests/test-chown.c (main): Likewise.
39376
39377 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39378
39379         gnulib-tool: correctly detect absence of m4 directories
39380         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39381
39382 2009-11-14  Jim Meyering  <meyering@redhat.com>
39383
39384         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39385         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39386
39387 2009-11-14  John W. Eaton  <jwe@gnu.org>
39388
39389         strftime.h: wrap function declaration in extern "C" block
39390         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39391
39392 2009-11-13  Eric Blake  <ebb9@byu.net>
39393
39394         getgroups: avoid compiler warning
39395         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39396
39397         getgroups: work around FreeBSD bug
39398         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39399         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39400         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39401         * tests/test-getgroups.c (main): Fix buffer overrun.
39402
39403         getgroups: avoid compilation failure
39404         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39405         * modules/getgroups (Depends-on): Add stdint.
39406
39407 2009-11-13  Jim Meyering  <meyering@redhat.com>
39408
39409         test-getgroups: avoid compilation failure
39410         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39411
39412 2009-11-13  Eric Blake  <ebb9@byu.net>
39413
39414         mgetgroups: new module, taken from coreutils
39415         * modules/mgetgroups: New file.
39416         * lib/mgetgroups.h: Likewise.
39417         * lib/mgetgroups.c (mgetgroups): Likewise.
39418         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39419         * MODULES.html.sh (Users and groups): Mention it.
39420
39421         getgroups: don't expose GETGROUPS_T to user
39422         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39423         an element at a time if GETGROUPS_T is wrong size.
39424         * lib/getugroups.h (getugroups): Change signature.
39425         * lib/unistd.in.h (getgroups): Likewise.
39426         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39427         signature needs fixing.
39428         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39429         AC_TYPE_GETGROUPS.
39430         * modules/group-member (Depends-on): Add getgroups.
39431         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39432         (group_member): Rely on getgroups replacement.
39433         * lib/getugroups.c (getugroups): Use gid_t.
39434         * tests/test-getgroups.c (main): Likewise.
39435         * NEWS: Mention the signature change.
39436         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39437         problem with signature.
39438         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39439         GETGROUPS_T is still useful for setgroups.
39440
39441         getgroups, getugroups: provide stubs for mingw
39442         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39443         * lib/getugroups.c (getugroups): Likewise.
39444         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39445         function.  Modernize replacement scheme.
39446         (gl_PREREQ_GETGROUPS): Delete.
39447         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39448         * modules/getgroups (configure.ac): Declare witness.
39449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39450         * modules/unistd (Depends-on): Substitute witness.
39451         * lib/unistd.in.h (getgroups): Declare replacement.
39452
39453         getgroups: avoid calling exit
39454         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39455         drop xalloc.
39456         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39457         dependencies.
39458         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39459         exiting, in the rare case of malloc failure.
39460
39461         getgroups: fix logic error
39462         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39463         has more than 20 groups.
39464         * modules/getgroups-tests: New test.
39465         * tests/test-getgroups.c: New file.
39466
39467 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39468
39469         * tests/test-base64.c: Improve.
39470
39471 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39472
39473         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39474         Blake <ebb9@byu.net>.
39475
39476 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39477
39478         * tests/test-xvasprintf.c: Add %s%s related checks.
39479
39480 2009-11-12  Eric Blake  <ebb9@byu.net>
39481
39482         version-etc: match standards.texi style
39483         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39484         and use <> only for URLs.
39485
39486 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39487
39488         fts: do not fail on a submount during traversal
39489         * lib/fts.c (fts_build): Read the stat info again after opening
39490         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39491         Original report at http://bugzilla.redhat.com/501848.
39492
39493 2009-11-12  Jim Meyering  <meyering@redhat.com>
39494
39495         bootstrap: sync from coreutils
39496         * build-aux/bootstrap (bootstrap_epilogue): New function.
39497         Use git_modules_config in one more place.  This make bootstrap's
39498         --gnulib-srcdir option more useful for testing.
39499
39500         bootstrap: generalize autoheader check
39501         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39502         AC_CONFIG_HEADERS.
39503
39504 2009-11-11  Eric Blake  <ebb9@byu.net>
39505
39506         mkfifoat: use new modules for Solaris and BSD bugs
39507         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39508         * lib/mkfifoat.c (mknodat): Split...
39509         * lib/mknodat.c (mknodat): ...into new file.
39510         * modules/mkfifoat (Files): Ship new file.
39511         (Depends-on): Add mkfifo, mknod.
39512         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39513         (Depends-on): Add symlink.
39514         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39515         redundant with test_mkfifo.h.
39516         (do_mkfifoat, do_mknodat): New helpers.
39517
39518         mknod: new module
39519         * modules/mknod: New file.
39520         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39521         * lib/mknod.c (mknod): Likewise.
39522         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39523         defaults.
39524         * modules/sys_stat (Makefile.am): Substitute them.
39525         * lib/sys_stat.in.h (mknod): Declare replacement.
39526         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39527         Document it.
39528         * doc/posix-functions/mknod.texi (mknod): Likewise.
39529         * modules/mknod-tests: New test.
39530         * tests/test-mknod.c: Likewise.
39531
39532         mkfifo: new module
39533         * modules/mkfifo: New file.
39534         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39535         * lib/mkfifo.c (mkfifo): Likewise.
39536         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39537         defaults.
39538         * modules/sys_stat (Makefile.am): Substitute them.
39539         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39540         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39541         Document it.
39542         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39543         * modules/mkfifo-tests: New test.
39544         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39545         from test-mkfifoat.c.
39546         * tests/test-mkfifo.c: New file.
39547
39548         readlink: detect FreeBSD bug
39549         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39550         slash on symlink.
39551         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39552         * tests/test-readlink.h (test_readlink): Enhance test.
39553
39554         symlink: detect FreeBSD bug
39555         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39556         slash on symlink.
39557         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39558         * tests/test-symlink.h (test_symlink): Enhance test.
39559
39560 2009-11-10  Eric Blake  <ebb9@byu.net>
39561
39562         link: detect FreeBSD bug
39563         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39564         symlink.
39565         * doc/posix-functions/link.texi (link): Document the bug.
39566         * tests/test-link.h (test_link): Enhance test.
39567         * tests/test-linkat.c (main): Update caller.
39568
39569         unlink, remove: detect FreeBSD bug
39570         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39571         slash on symlink.
39572         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39573         * doc/posix-functions/remove.texi (remove): Likewise.
39574         * tests/test-unlink.h (test_unlink): Enhance test.
39575         * tests/test-remove.c (main): Likewise.
39576
39577 2009-11-09  Eric Blake  <ebb9@byu.net>
39578
39579         rename: detect FreeBSD bug
39580         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39581         slash on symlink.
39582         * modules/renameat-tests (Depends-on): Add filenamecat.
39583         * tests/test-rename.h (test_rename): Allow one more errno.
39584         * tests/test-renameat.c (main): Likewise.
39585         * doc/posix-functions/rename.texi (rename): Document the bug.
39586
39587         open: detect FreeBSD bug
39588         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39589         symlink.
39590         * doc/posix-functions/open.texi (open): Document the bug.
39591         * doc/posix-functions/utimes.texi (utimes): Likewise.
39592         * tests/test-open.h (test_open): Add parameters, and test symlink
39593         handling.
39594         * tests/test-open.c (main): Adjust caller.
39595         * tests/test-fcntl-safer.c (main): Likewise.
39596         * modules/open-tests (Depends-on): Add stdbool, symlink.
39597         * modules/fcntl-safer-tests (Depends-on): Likewise.
39598         * tests/test-openat.c (main): Add test-open tests.
39599
39600         stat: detect FreeBSD bug
39601         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39602         symlink.
39603         * doc/posix-functions/stat.texi (stat): Document the bug.
39604         * tests/test-stat.h (test_stat_func): Add argument.
39605         * tests/test-stat.c (main): Adjust caller.
39606         * tests/test-fstatat.c (main): Likewise.
39607         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39608         Reported by Jim Meyering.
39609
39610 2009-11-09  James Youngman  <jay@gnu.org>
39611
39612         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39613         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39614
39615 2009-11-08  Jim Meyering  <meyering@redhat.com>
39616
39617         utimens: remove invalid futimesat call
39618         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39619         It used the file descriptor of the target file as the DIR_FD
39620         parameter and NULL as the file name.  That caused failure with
39621         errno == EFAULT on FreeBSD-8.0-rc2
39622
39623 2009-11-07  Eric Blake  <ebb9@byu.net>
39624
39625         fflush, freadseek: use fseeko, not fseek
39626         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39627         (clear_ungetc_buffer): Avoid potential problems on large files.
39628         * lib/freadseek.c (freadseek): Likewise.
39629         * modules/freadseek (Depends-on): Add fseeko.
39630         * modules/fseek (configure.ac): Set a witness.
39631         * tests/test-fflush.c (main): Use fseeko.
39632         * tests/test-fpurge.c (fseek): Disable link warning.
39633         * tests/test-freadable.c (fseek): Likewise.
39634         * tests/test-freading.c (fseek): Likewise.
39635         * tests/test-fseeko.c (fseek): Likewise.
39636         * tests/test-ftell.c (fseek): Likewise.
39637         * tests/test-ftello.c (fseek): Likewise.
39638         * tests/test-fwritable.c (fseek): Likewise.
39639         * tests/test-fwriting.c (fseek): Likewise.
39640
39641 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39642
39643         * modules/memchr (Depends-on): Drop getpagesize dependency.
39644
39645 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39646
39647         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39648         Reported by Ludovic Courtès.
39649         * build-aux/pmccabe2html: Improve example usage.
39650         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39651
39652 2009-11-06  Jim Meyering  <meyering@redhat.com>
39653
39654         do-release-commit-and-tag: New module.
39655         Automate the release-commit and tag process.
39656         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39657         * modules/do-release-commit-and-tag: New file.
39658         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39659
39660 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39661
39662         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39663         because test-select.c uses inet_pton.
39664
39665 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39666
39667         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39668         GETADDRINFO_LIB.  Bump serial number.
39669         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39670         Suggested by Eric Blake <ebb9@byu.net>.
39671
39672 2009-11-05  Eric Blake  <ebb9@byu.net>
39673
39674         strtod: detect darwin bug
39675         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39676         Reported by Leo Davis.
39677
39678         freopen-safer: new module
39679         * modules/freopen-safer: New module.
39680         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39681         * lib/freopen-safer.c (freopen_safer): New file.
39682         * lib/stdio-safer.h (freopen_safer): New declaration.
39683         * lib/stdio--.h (freopen): New override.
39684         * MODULES.html.sh (File stream based Input/Output): Mention it.
39685         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39686         freopen-safer module.
39687         * doc/posix-functions/stderr.texi (stderr): Likewise.
39688         * doc/posix-functions/stdin.texi (stdin): Likewise.
39689         * doc/posix-functions/stdout.texi (stdout): Likewise.
39690         * modules/freopen-safer-tests: New test.
39691         * tests/test-reopen-safer.c: New file.
39692
39693 2009-11-05  Jim Meyering  <meyering@redhat.com>
39694
39695         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39696         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39697
39698 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39699
39700         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39701
39702 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39703
39704         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39705
39706 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39707
39708         Fix link error.
39709         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39710         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39711
39712 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39713
39714         * tests/test-func.c: Also test value of __func__.
39715
39716 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39717
39718         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39719         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39720
39721 2009-11-05  Bruno Haible  <bruno@clisp.org>
39722
39723         Fix link error.
39724         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39725         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39726         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39727
39728 2009-11-05  Bruno Haible  <bruno@clisp.org>
39729
39730         Tests for module 'inet_pton'.
39731         * modules/inet_pton-tests: New file.
39732         * tests/test-inet_pton.c: New file.
39733
39734 2009-11-05  Bruno Haible  <bruno@clisp.org>
39735
39736         Tests for module 'inet_ntop'.
39737         * modules/inet_ntop-tests: New file.
39738         * tests/test-inet_ntop.c: New file.
39739
39740 2009-11-04  Eric Blake  <ebb9@byu.net>
39741
39742         stdlib-safer: wrap all mkstemp variants
39743         * modules/mkostemp (configure.ac): Set witness.
39744         * modules/mkostemps (configure.ac): Likewise.
39745         * modules/mkstemps (configure.ac): Likewise.
39746         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39747         (mkstemps_safer): Wrap more functions.
39748         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39749         wrapping.
39750         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39751         (mkstemps_safer): Implement the wrappers.
39752
39753         mkstemps, mkostemps: new modules
39754         * modules/mkostemps: New module.
39755         * modules/mkstemps: Likewise.
39756         * lib/mkostemps.c (mkostemps): New file.
39757         * lib/mkstemps.c (mkstemps): Likewise.
39758         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39759         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39761         * modules/stdlib (Makefile.am): Substitute them.
39762         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39763         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39764         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39765         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39766         * MODULES.html.sh (File system functions): Mention them.
39767
39768         tempname: resync from glibc
39769         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39770         same values for __GT_FILE as glibc.  Abort even when assertions
39771         are disabled.
39772         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39773         match its value otherwise.  Allow idempotent inclusion.
39774         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39775         * lib/mkostemp.c (mkostemp): Likewise.
39776         * lib/mkstemp.c (mkstemp): Likewise.
39777         * lib/tmpfile.c (tmpfile): Likewise.
39778         * NEWS: Document this.
39779
39780         utimens: fix use of futimens on older Linux
39781         * lib/utimens.c (fdutimens): Use updated, rather than original,
39782         timespec to avoid bug in older Linux kernel.
39783         Reported by Simon Josefsson.
39784
39785 2009-11-04  Bruno Haible  <bruno@clisp.org>
39786
39787         Make num_processors more flexible and consistent.
39788         * lib/nproc.h (enum nproc_query): New type.
39789         (num_processors): Add a 'query' argument.
39790         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39791         (num_processors): Add a 'query' argument. Test the value of the
39792         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39793         mingw, count the number of CPUs available for the current process.
39794         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39795         Check for sched_getaffinity and sched_getaffinity_np.
39796         * modules/nproc (Depends-on): Add c-ctype, extensions.
39797         * NEWS: Mention the change.
39798
39799 2009-11-03  Bruno Haible  <bruno@clisp.org>
39800
39801         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39802
39803 2009-11-03  Jim Meyering  <meyering@redhat.com>
39804
39805         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39806         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39807         if it is defined.
39808
39809 2009-11-02  Eric Blake  <ebb9@byu.net>
39810
39811         mktime, timegm: share common declaration
39812         * lib/mktime-internal.h: New file.
39813         * lib/mktime.c: Use it rather than open-coding a declaration.
39814         * lib/timegm.c: Likewise.
39815         * modules/mktime (Files): Ship it.
39816         * modules/timegm (Files): Likewise.
39817         Suggested by Bruno Haible.
39818
39819         test-update-copyright: update test to match script changes
39820         * tests/test-update-copyright.sh: Avoid hard-coding perl
39821         location.  Don't update *.bak created by earlier runs.
39822
39823 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39824             Simon Josefsson  <simon@josefsson.org>
39825             Bruno Haible  <bruno@clisp.org>
39826
39827         Fix link error on Solaris 8.
39828         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39829         also in libnsl. Define also INET_PTON_LIB.
39830         * modules/inet_pton (Link): New section.
39831
39832 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39833             Bruno Haible  <bruno@clisp.org>
39834
39835         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39836         * modules/inet_ntop (Link): New section.
39837         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39838
39839 2009-11-02  Eric Blake  <ebb9@byu.net>
39840
39841         maint: avoid compiler warnings in m4 macros
39842         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39843         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39844
39845 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39846
39847         * m4/pmccabe2html.m4: Remove file.
39848         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39849         function.  Change maintainer.
39850         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39851         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39852         Courtès).
39853
39854 2009-10-31  Eric Blake  <ebb9@byu.net>
39855
39856         fseeko: fix m4 regression
39857         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39858         regression from 2009-10-27.
39859         Reported by Ralf Wildenhues.
39860
39861 2009-10-31  Jim Meyering  <meyering@redhat.com>
39862
39863         inttostr: aesthetics and improved (compile-time) safety
39864         Define inttype_is_signed rather than inttype_is_unsigned,
39865         since the sole use is via "#if inttype_is_signed".
39866         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39867         inttype_is_unsigned.
39868         * lib/offtostr.c (inttype_is_signed): Likewise.
39869         * lib/uinttostr.c (inttype_is_signed): Likewise.
39870         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39871         * lib/inttostr.c (inttostr): Use verify to cross-check the
39872         inttype_is_signed value and the signedness of the actual type.
39873         * modules/inttostr (Depends-on): Add verify.
39874
39875 2009-10-30  Eric Blake  <ebb9@byu.net>
39876
39877         build: avoid compiler warnings
39878         * lib/fchmodat.c (lchmod): Mark unused variables.
39879         * lib/getopt.c (_getopt_initialize): Likewise.
39880         * lib/mktime.c (__mktime_internal): Provide prototype.
39881         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39882         older gcc that do not understand #pragma GCC diagnostic.
39883         * lib/uinttostr.c (inttype_is_unsigned): Define.
39884         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39885
39886 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39887
39888         stat: fix compilation on AIX
39889         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39890         only see struct stat64.
39891
39892 2009-10-30  Eric Blake  <ebb9@byu.net>
39893
39894         exclude: make more robust
39895         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39896         rather than masking a coding bug.
39897         Suggested by Bruno Haible.
39898
39899 2009-10-30  Jim Meyering  <meyering@redhat.com>
39900
39901         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39902         Rather than putting #!/usr/bin/perl on the first line,
39903         start with a variant of what's recommended by "man perlrun" that
39904         invokes the first "perl" program from your shell's search path.
39905         * build-aux/gitlog-to-changelog: Replace #!... as above.
39906         Add a "Local Variables" perl mode setting.
39907         Prompted by a patch from Ludovic Courtès.
39908         Improved by Eric Blake.
39909         * build-aux/useless-if-before-free: Likewise.
39910         * build-aux/announce-gen: Likewise.
39911         * build-aux/update-copyright: Likewise.
39912
39913 2009-10-29  Eric Blake  <ebb9@byu.net>
39914
39915         filenamecat-lgpl: adjust clients
39916         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39917         filenamecat.
39918         * modules/renameat (Depends-on): Likewise.
39919
39920         filenamecat: split into filenamecat-lgpl
39921         * modules/filenamecat-lgpl: New module.
39922         * modules/filenamecat (Files): Move library-safe files into
39923         filenamecat-lgpl.
39924         (Depends-on): Add filenamecat-lgpl.
39925         (configure.ac): Declare witness.
39926         * lib/filenamecat.h (file_name_concat): Only declare when using
39927         GPL module.
39928         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39929         Move...
39930         * lib/filenamecat-lgpl.c: ...into new file.
39931         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39932         (gl_FILE_NAME_CONCAT): Use it.
39933         * MODULES.html.sh (File system functions): Mention new module.
39934
39935         argp: avoid memory leak
39936         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39937         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39938         base_name, since the latter malloc()s and can call exit().
39939         Leak introduced 2006-07-03.
39940
39941         dirname-lgpl: adjust clients that don't need full dirname
39942         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39943         * modules/filenamecat (Depends-on): Likewise.
39944         * modules/linkat (Depends-on): Likewise.
39945         * modules/mkancesdirs (Depends-on): Likewise.
39946         * modules/mkdir (Depends-on): Likewise.
39947         * modules/openat (Depends-on): Likewise.
39948         * modules/savewd (Depends-on): Likewise.
39949         * modules/rename (Depends-on): Likewise.
39950         (License): Relax license.
39951         * modules/mkdir-tests (Depends-on): Drop progname.
39952         (Makefile.am): Delete unneeded LDADD.
39953         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39954
39955         dirname: split into dirname-lgpl
39956         * modules/dirname-lgpl: New module.
39957         * modules/dirname (Files): Move library-safe files into
39958         dirname-lgpl.
39959         (Depends-on): Add dirname-lgpl.
39960         (configure.ac): Declare witness.
39961         * modules/double-slash-root (License): Relax license.
39962         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39963         module.
39964         * lib/dirname.c (dir_len, mdir_name): Move...
39965         * lib/dirname-lgpl.c: ...into new file.
39966         * lib/basename.c (last_component, base_len): Move...
39967         * lib/basename-lgpl.c: ...into new file.
39968         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39969         (gl_DIRNAME): Use it.
39970         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39971         Mention new module.
39972         * modules/dirname-tests (Depends-on): Add progname.
39973         * tests/test-dirname.c (program_name): Delete.
39974
39975         mkdir: make safe for libraries
39976         * modules/mkdir (Depends-on): Drop xalloc.
39977         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39978         exit.
39979
39980         tests: avoid some compiler warnings
39981         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39982         literals.
39983         * tests/test-memchr.c (main): Avoid type mismatch.
39984         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39985         * tests/test-base64.c (main): Likewise.
39986         * tests/test-getdelim.c (main): Likewise.
39987         * tests/test-gethostname.c (main): Likewise.
39988         * tests/test-getline.c (main): Likewise.
39989         * tests/test-netinet_in.c (main): Likewise.
39990         * tests/test-select.c (open_server_socket, main): Likewise.
39991         * tests/test-select-stdin.c (main): Likewise.
39992         * tests/test-sockets.c (main): Likewise.
39993         * tests/test-strsignal.c (main): Likewise.
39994         * tests/test-sys_select.c (main): Likewise.
39995         * tests/test-sys_socket.c (main): Likewise.
39996         * tests/test-u64.c (main): Likewise.
39997         * tests/test-xfprintf-posix.c (main): Likewise.
39998         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39999
40000         sockets: avoid compiler warning
40001         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40002
40003         maint: detect usage(1) and other suspicious exits
40004         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40005
40006 2009-10-29  Jim Meyering  <meyering@redhat.com>
40007
40008         timespec: long-to-int truncation could make timespec_cmp malfunction
40009         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40010         a multiple of 2^32 nanoseconds as no difference.
40011
40012 2009-10-28  Jim Meyering  <meyering@redhat.com>
40013
40014         fprintftime: wrap macro code argument in "do {...} while(0)"
40015         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40016         cpy macro must be a statement that can be followed by a semicolon.
40017         Now that the else clause contains a comment and is hence longer
40018         than one line, I require curly braces.  That in turn requires
40019         that we wrap this code block in the standard do...while(0).
40020
40021         fprintftime: remove stray semicolon from previous change
40022         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40023
40024         fprintftime: avoid a warning about ignored fwrite return value
40025         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40026         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40027         that is unsafe.
40028         * modules/fprintftime (Depends-on): Add ignore-value.
40029
40030         exclude: avoid an unwarranted warning
40031         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40032
40033 2009-10-27  Eric Blake  <ebb9@byu.net>
40034
40035         fseek: avoid compilation failure when fflush is replaced
40036         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40037         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40038         module is in use.
40039         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40040         module is not in use; since REPLACE_FSEEK worked otherwise.
40041         (GNULIB_FTELLO): Likewise for ftell.
40042         Reported by Ian Beckwith and others.
40043
40044 2009-10-27  Bruno Haible  <bruno@clisp.org>
40045
40046         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40047         Reported by Jim Meyering.
40048
40049 2009-10-27  Jim Meyering  <jim@meyering.net>
40050             Bruno Haible  <bruno@clisp.org>
40051
40052         Avoid warning despite dropping the return value of fwrite.
40053         * lib/unicodeio.c: Include ignore-value.h.
40054         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40055         * modules/unicodeio (Depends-on): Add ignore-value.
40056
40057 2009-10-26  Eric Blake  <ebb9@byu.net>
40058
40059         areadlinkat: fix fallback path
40060         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40061         pointer and zero.
40062
40063 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40064
40065         Use a better IO block size for modern systems
40066         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40067         * lib/md2.c: Likewise.
40068         * lib/md4.c: Likewise.
40069         * lib/md5.c: Likewise.
40070         * lib/sha1.c: Likewise.
40071         * lib/sha256.c: Likewise.
40072         * lib/sha512.c: Likewise.
40073
40074 2009-10-22  Eric Blake  <ebb9@byu.net>
40075
40076         tests: avoid several compiler warnings
40077         * tests/test-getcwd.c (main): Avoid buffer underflow.
40078         * tests/test-getdate.c (main): String literals are not safe with
40079         putenv, so use setenv.  Declare unused argument.
40080         * modules/getdate-tests (Depends-on): Add setenv.
40081         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40082         problems with string literals in char *.
40083         * tests/test-hash.c (main): Avoid shadowing declaration.
40084         (insert_new): Treat string literals as char const *.
40085         * tests/test-getopt.h (test_getopt): Likewise.
40086         (getopt_loop): Alter types to minimize casting elsewhere.
40087         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40088         (test_getopt_long_posix): Likewise.
40089         (do_getopt_long): Add wrapper to minimize casting.
40090         * tests/test-atexit.c (clear_temp_file): Use void.
40091         * tests/test-areadlink-with-size.c (main): Declare unused
40092         arguments.
40093         * tests/test-areadlink.c (main): Likewise.
40094         * tests/test-areadlinkat-with-size.c (main): Likewise.
40095         * tests/test-areadlinkat.c (main): Likewise.
40096         * tests/test-canonicalize-lgpl.c (main): Likewise.
40097         * tests/test-canonicalize.c (main): Likewise.
40098         * tests/test-dirent-safer.c (main): Likewise.
40099         * tests/test-dirname.c (main): Likewise.
40100         * tests/test-dup2.c (main): Likewise.
40101         * tests/test-fchdir.c (main): Likewise.
40102         * tests/test-fcntl-h.c (main): Likewise.
40103         * tests/test-fcntl-safer.c (main): Likewise.
40104         * tests/test-fdopendir.c (main): Likewise.
40105         * tests/test-fdutimensat.c (main): Likewise.
40106         * tests/test-fflush.c (main): Likewise.
40107         * tests/test-filenamecat.c (main): Likewise.
40108         * tests/test-filevercmp.c (main): Likewise.
40109         * tests/test-fopen-safer.c (main): Likewise.
40110         * tests/test-fopen.c (main): Likewise.
40111         * tests/test-fpending.c (main): Likewise.
40112         * tests/test-fpurge.c (main): Likewise.
40113         * tests/test-freading.c (main): Likewise.
40114         * tests/test-fstatat.c (main): Likewise.
40115         * tests/test-fsync.c (main): Likewise.
40116         * tests/test-futimens.c (main): Likewise.
40117         * tests/test-getndelim2.c (main): Likewise.
40118         * tests/test-gettimeofday.c (main): Likewise.
40119         * tests/test-getopt.c (main): Likewise.
40120         * tests/test-i-ring.c (main): Likewise.
40121         * tests/test-inttypes.c (main): Likewise.
40122         * tests/test-link.c (main): Likewise.
40123         * tests/test-lstat.c (main): Likewise.
40124         * tests/test-math.c (main): Likewise.
40125         * tests/test-md5.c (main): Likewise.
40126         * tests/test-memchr2.c (main): Likewise.
40127         * tests/test-memrchr.c (main): Likewise.
40128         * tests/test-mkdir.c (main): Likewise.
40129         * tests/test-mkdirat.c (main): Likewise.
40130         * tests/test-mkfifoat.c (main): Likewise.
40131         * tests/test-open.c (main): Likewise.
40132         * tests/test-openat-safer.c (main): Likewise.
40133         * tests/test-openat.c (main): Likewise.
40134         * tests/test-quotearg.c (main): Likewise.
40135         * tests/test-rawmemchr.c (main): Likewise.
40136         * tests/test-readlink.c (main): Likewise.
40137         * tests/test-remove.c (main): Likewise.
40138         * tests/test-rename.c (main): Likewise.
40139         * tests/test-renameat.c (main): Likewise.
40140         * tests/test-rmdir.c (main): Likewise.
40141         * tests/test-sha1.c (main): Likewise.
40142         * tests/test-signal.c (main): Likewise.
40143         * tests/test-sigaction.c (main): Likewise.
40144         * tests/test-stat.c (main): Likewise.
40145         * tests/test-stat-time.c (main): Likewise.
40146         * tests/test-stddef.c (main): Likewise.
40147         * tests/test-stdint.c (main): Likewise.
40148         * tests/test-stdio.c (main): Likewise.
40149         * tests/test-stdlib.c (main): Likewise.
40150         * tests/test-strchrnul.c (main): Likewise.
40151         * tests/test-strerror.c (main): Likewise.
40152         * tests/test-string.c (main): Likewise.
40153         * tests/test-strtod.c (main): Likewise.
40154         * tests/test-strverscmp.c (main): Likewise.
40155         * tests/test-symlink.c (main): Likewise.
40156         * tests/test-symlinkat.c (main): Likewise.
40157         * tests/test-sys_stat.c (main): Likewise.
40158         * tests/test-sys_time.c (main): Likewise.
40159         * tests/test-time.c (main): Likewise.
40160         * tests/test-unistd.c (main): Likewise.
40161         * tests/test-unlink.c (main): Likewise.
40162         * tests/test-unlinkat.c (main): Likewise.
40163         * tests/test-utimens.c (main): Likewise.
40164         * tests/test-utimensat.c (main): Likewise.
40165         * tests/test-version-etc.c (main): Likewise.
40166         * tests/test-wchar.c (main): Likewise.
40167         * tests/test-wctype.c (main): Likewise.
40168         * tests/test-xprintf-posix.c (main): Likewise.
40169         * tests/test-posixtm.c (main): Likewise.
40170         (STREQ): Delete unused macro.
40171         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40172         shadowed variables.
40173         * tests/test-memchr.c (main): Likewise.
40174
40175 2009-10-21  Eric Blake  <ebb9@byu.net>
40176
40177         areadlinkat: avoid failure on older glibc
40178         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40179         rather than mis-comparing 0 against FUNC_RESULT of char*.
40180
40181 2009-10-21  Bruno Haible  <bruno@clisp.org>
40182
40183         * modules/stpncpy (License): Relicense under LGPLv2+.
40184         Reported by David Lutterkort <lutter@redhat.com>.
40185
40186 2009-10-20  Eric Blake  <ebb9@byu.net>
40187
40188         utimensat: work around Solaris 9 bug
40189         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40190         has trailing slash bugs.
40191         * tests/test-lutimens.h (test_lutimens): Enhance test.
40192         * tests/test-utimens.h (test_utimens): Likewise.
40193         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40194         * doc/posix-functions/utimes.texi (utimes): Likewise.
40195         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40196         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40197         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40198         * doc/posix-functions/futimens.texi (futimens): Likewise.
40199
40200         fdutimensat: new module
40201         * modules/fdutimensat: New file.
40202         * lib/fdutimensat.c (fdutimensat): Likewise.
40203         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40204         * MODULES.html.sh (File system functions): Mention module.
40205         * modules/fdutimensat-tests: New test.
40206         * tests/test-fdutimensat.c: Likewise.
40207
40208         doc: regenerate INSTALL
40209         * doc/INSTALL: Reflect recent autoconf update.
40210         * doc/INSTALL.ISO: Likewise.
40211         * doc/INSTALL.UTF-8: Likewise.
40212
40213 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40214
40215         acl: warn if ACL support is not detected
40216         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40217
40218 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40219
40220         * lib/nproc.h: Add extern "C" block for C++.
40221
40222 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40223             Bruno Haible  <bruno@clisp.org>
40224
40225         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40226         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40227         * doc/posix-functions/isalpha.texi: Likewise.
40228         * doc/posix-functions/isblank.texi: Likewise.
40229         * doc/posix-functions/iscntrl.texi: Likewise.
40230         * doc/posix-functions/isdigit.texi: Likewise.
40231         * doc/posix-functions/isgraph.texi: Likewise.
40232         * doc/posix-functions/islower.texi: Likewise.
40233         * doc/posix-functions/isprint.texi: Likewise.
40234         * doc/posix-functions/ispunct.texi: Likewise.
40235         * doc/posix-functions/isspace.texi: Likewise.
40236         * doc/posix-functions/isupper.texi: Likewise.
40237         * doc/posix-functions/isxdigit.texi: Likewise.
40238
40239 2009-10-18  Bruno Haible  <bruno@clisp.org>
40240
40241         Tests for module 'isblank'.
40242         * modules/isblank-tests: New file.
40243         * tests/test-isblank.c: New file.
40244
40245         New module 'isblank'.
40246         * lib/isblank.c: New file.
40247         * m4/isblank.m4: New file.
40248         * modules/isblank: New file.
40249         * doc/posix-functions/isblank.texi: Mention the new module.
40250
40251 2009-10-18  Bruno Haible  <bruno@clisp.org>
40252
40253         New module 'ctype'.
40254         * lib/ctype.in.h: New file.
40255         * m4/ctype.m4: New file.
40256         * modules/ctype: New file.
40257         * doc/posix-headers/ctype.texi: Mention the new module.
40258
40259 2009-10-18  Jim Meyering  <meyering@redhat.com>
40260
40261         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40262         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40263         right after its initialization, rather than farther down.
40264         Keeping these in close proximity makes it easier to ensure
40265         that each such variable is initialized.  E.g.,
40266
40267             LIB_CLOCK_GETTIME=
40268             AC_SUBST([LIB_CLOCK_GETTIME])
40269
40270         This change also increments these serial numbers.
40271         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40272         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40274
40275 2009-10-18  Bruno Haible  <bruno@clisp.org>
40276
40277         Don't let environment variables perturb build.
40278         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40279         (gl_PREREQ_GETHRXTIME): ... not here.
40280
40281 2009-10-18  Bruno Haible  <bruno@clisp.org>
40282
40283         Avoid symlink attack in localcharset module.
40284         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40285         (O_NOFOLLOW): Define fallback.
40286         (get_charset_aliases): Don't open the file if it is a symbolic link.
40287         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40288         gl_FCNTL_H.
40289         (gl_FCNTL_H): Require it.
40290         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40291         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40292         Reported by Fergal Glynn <fglynn@veracode.com>.
40293
40294 2009-10-18  Bruno Haible  <bruno@clisp.org>
40295
40296         Implement nproc for mingw.
40297         * lib/nproc.c: Include <windows.h>
40298         (num_processors): On native Windows platforms, try GetSystemInfo.
40299
40300 2009-10-18  Bruno Haible  <bruno@clisp.org>
40301
40302         Implement nproc for IRIX.
40303         * lib/nproc.c: Include <sys/sysmp.h>.
40304         (num_processors): On IRIX systems, try sysmp.
40305         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40306
40307 2009-10-18  Bruno Haible  <bruno@clisp.org>
40308
40309         Implement nproc for HP-UX.
40310         * lib/nproc.c: Include <sys/pstat.h>
40311         (num_processors): On HP-UX systems, try pstat_getdynamic.
40312         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40313         pstat_getdynamic.
40314
40315 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40316             Bruno Haible  <bruno@clisp.org>
40317
40318         Implement nproc for NetBSD, OpenBSD.
40319         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40320         (ARRAY_SIZE): New macro.
40321         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40322         * m4/nproc.m4: New file.
40323         * modules/nproc (Files): Add m4/nproc.m4.
40324         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40325         (Makefile.am): Instead, augment lib_SOURCES.
40326
40327 2009-10-18  Bruno Haible  <bruno@clisp.org>
40328
40329         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40330         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40331         sys/param.h.
40332
40333 2009-10-16  Eric Blake  <ebb9@byu.net>
40334
40335         utimensat: new module
40336         * modules/utimensat: New file.
40337         * lib/utimensat.c (utimensat): Likewise.
40338         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40339         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40340         so we can work around Linux bugs.
40341         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40342         * modules/sys_stat (Makefile.am): Substitute them.
40343         * lib/sys_stat.in.h (utimensat): Declare it.
40344         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40345         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40346         * modules/utimensat-tests: New test.
40347         * tests/test-utimensat.c: Likewise.
40348
40349         utimens: let lutimens work on non-symlinks
40350         * lib/utimens.c (lutimens): Fall back to utimens rather than
40351         failing with ENOSYS, when file is not a symlink.
40352         (utimens): Reduce redirection.
40353         * tests/test-lutimens.h (test_lutimens): Update test to cover
40354         non-symlinks.
40355         * tests/test-utimens.h (test_utimens): Update test to cover
40356         symlinks.
40357         * tests/test-utimens.c (main): Update caller.
40358
40359         utimens: cache whether utimensat syscall works
40360         * lib/utimens.c (utimensat_works_really): New cache variable.
40361         (fdutimens, lutimens): Use it to avoid failing syscall.
40362
40363         test-stat-time, test-utimens: improve portability
40364         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40365         ext4 on alpha, and for cygwin.
40366         * tests/test-utimens-common.h: New file.
40367         (nap): Factor delays into single function.
40368         * tests/test-lutimens.h (test_lutimens): Use new header.
40369         * tests/test-futimens.h (test_futimens): Likewise.
40370         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40371         timestamps to occur from same machine, as was done previously for
40372         test_utimens.
40373         * modules/utimens-tests (Files): Ship new file.
40374         * modules/futimens-tests (Files): Likewise.
40375         Reported in part by Jim Meyering.
40376
40377         sys_stat: sort replacement declarations
40378         * lib/sys_stat.in.h: Sort declarations.
40379         * lib/futimens.c (futimens): Fix typo.
40380
40381 2009-10-15  Jim Meyering  <meyering@redhat.com>
40382
40383         don't let environment settings perturb build
40384         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40385         could cause a configure-time and/or build-time malfunction.
40386         Typically, a configure-time function-in-library test is performed
40387         via code like this:
40388
40389           LIB_VAR=
40390           AC_SUBST([LIB_VAR])
40391           prefix_saved_LIBS=$LIBS
40392             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40393                        [test "$ac_cv_search_FUNC" = "none required" ||
40394                         LIB_VAR=$ac_cv_search_FUNC])
40395           LIBS=$prefix_saved_LIBS
40396
40397         However, in each of the files affected by this change, the LIB_VAR=
40398         initialization was omitted.  Thus, when set in the environment, its
40399         value would propagate into generated Makefiles when FUNC is not found
40400         in LIB_NAME.
40401         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40402         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40404
40405 2009-10-14  Eric Blake  <ebb9@byu.net>
40406
40407         fchdir: avoid infinite recursion in mingw
40408         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40409         recursing.
40410
40411         test-stat-time: port to mingw
40412         * tests/test-stat-time.c (force_unlink): Return a value.
40413         (test_ctime) [W32]: Fix compilation error.
40414         (nap): Don't call usleep with too large an argument.  Use
40415         force_unlink.
40416         * doc/pastposix-functions/usleep.texi (usleep): Document the
40417         portability issue.
40418
40419 2009-10-13  Jim Meyering  <meyering@redhat.com>
40420
40421         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40422         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40423         * modules/pipe-filter-ii: Likewise.
40424         * modules/sys_socket-tests: Likewise.
40425         * modules/tsearch-tests: Likewise.
40426         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40427         (check): Depend on it.
40428
40429 2009-10-12  Eric Blake  <ebb9@byu.net>
40430
40431         utimens-tests: port to NFS file systems
40432         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40433         comparisons to avoid spurious failures from timestamp drift
40434         between NFS machines.
40435
40436 2009-10-12  Eric Blake  <ebb9@byu.net>
40437
40438         stat-time-tests: minor cleanups
40439         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40440         * tests/test-stat-time.c (nap): Separate assignment from call.
40441         Suggested by Paolo Bonzini and Bruno Haible.
40442
40443         sys_stat: guarantee struct timespec
40444         * lib/sys_stat.in.h (includes): Always include <time.h>
40445         * modules/sys_stat (Depends-on): Add time.
40446         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40447         mode_t permission values.
40448         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40449         get at subsecond timestamps.
40450
40451 2009-10-10  Eric Blake  <ebb9@byu.net>
40452
40453         futimens: new module
40454         * modules/futimens: New file.
40455         * lib/futimens.c (futimens): Likewise.
40456         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40457         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40458         we can work around Linux bugs.
40459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40460         * modules/sys_stat (Makefile.am): Substitute them.
40461         * lib/sys_stat.in.h (futimens): Declare it.
40462         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40463         * doc/posix-functions/futimens.texi (futimens): Likewise.
40464         * modules/futimens-tests: New test.
40465         * tests/test-futimens.c: Likewise.
40466
40467         utimens: introduce fdutimens
40468         * lib/utimens.h (fdutimens): New prototype.
40469         * lib/utimens.c (gl_futimens): Move guts...
40470         (fdutimens): ...to new interface.
40471         * tests/test-utimens.c (do_fdutimens): Use it.
40472
40473         utimens: add UTIME_NOW and UTIME_OMIT support
40474         * lib/utimens.c (validate_timespec, update_timespec): New helper
40475         functions.
40476         (gl_futimens, lutimens): Use them.
40477         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40478         stdbool, sys_stat.
40479         (Link): Mention resulting library dependency.
40480         * modules/utimecmp (Link): Likewise.
40481         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40482         (Makefile.am): Pick up library dependency.
40483         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40484         definition.
40485         * tests/test-sys_stat.c: Test the definitions.
40486         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40487         * NEWS: Document library dependency.
40488
40489         utimecmp: support symlink timestamps
40490         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40491         hashing when possible.  Use pathconf when available.
40492         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40493         * modules/utimecmp (Depends-on): Add lstat.
40494
40495         utimens: add lutimens interface
40496         * lib/utimens.c (lutimens): New function.
40497         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40498         * lib/utimens.h (lutimens): Declare new interface.
40499         * tests/test-utimens.c (main): Enhance test.
40500         * tests/test-lutimens.h (test_lutimens): New file.
40501         * modules/utimens-tests (Files): Distribute it.
40502         (Depends-on): Add symlink.
40503         (configure.ac): Check for usleep.
40504
40505         utimens: validate futimens usage
40506         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40507         fewer syscalls on failure later on.  Avoid compiler warning on
40508         mingw.
40509         * modules/utimens (Depends-on): Add dup2.
40510
40511         utimens: add test
40512         * modules/utimens-tests: New test.
40513         * tests/test-utimens.h: New file.
40514         * tests/test-futimens.h: Likewise.
40515         * tests/test-utimens.c: Likewise.
40516
40517         doc: mention timestamp portability issues
40518         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40519         instead.
40520         * doc/posix-functions/utime.texi (utime): Likewise.
40521         * doc/posix-functions/utimes.texi (utimes): Likewise.
40522         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40523         instead.
40524         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40525         module.
40526         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40527         Mention weakness with symlink timestamps.
40528         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40529         to utimensat/futimens instead.
40530         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40531
40532         test-dup2: enhance test
40533         * tests/test-dup2.c (main): Also check AT_FDCWD.
40534
40535         test-stat-time: avoid more spurious failures
40536         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40537         xfs; and avoid race if the two timestamps cross quantization edge.
40538
40539         relocatable: prefer 'file system' over 'filesystem'
40540         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40541         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40542         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40543         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40544         * lib/relocatable.c (compute_curr_prefix): Likewise.
40545
40546 2009-10-10  Jim Meyering  <meyering@redhat.com>
40547
40548         stat-time-tests: check for the usleep function
40549         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40550
40551 2009-10-10  Bruno Haible  <bruno@clisp.org>
40552
40553         * modules/xnanosleep: Put the Link section after the Include section.
40554
40555 2009-10-09  Eric Blake  <ebb9@byu.net>
40556
40557         dup2: work around FreeBSD 6.1 bug
40558         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40559         * doc/posix-functions/dup2.texi (dup2): Document it.
40560         Reported by Nelson H. F. Beebe and Jim Meyering.
40561
40562         test-stat-time: port to buggy NFS clients
40563         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40564         (test_ctime): Also skip test if mtime and ctime are skewed.
40565
40566         maint: prefer 'file system' over 'filesystem'
40567         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40568         * doc/posix-functions/lstat.texi (lstat): Likewise.
40569         * lib/file-has-acl.c (file_has_acl): Likewise.
40570         * lib/fwriteerror.c [TEST]: Likewise.
40571         * tests/test-areadlink.h (test_areadlink): Likewise.
40572         * tests/test-areadlinkat-with-size.c (main): Likewise.
40573         * tests/test-areadlinkat.c (main): Likewise.
40574         * tests/test-canonicalize-lgpl.c (main): Likewise.
40575         * tests/test-canonicalize.c (main): Likewise.
40576         * tests/test-fstatat.c (main): Likewise.
40577         * tests/test-linkat.c (main): Likewise.
40578         * tests/test-lstat.h (test_lstat_func): Likewise.
40579         * tests/test-mkdir.h (test_mkdir): Likewise.
40580         * tests/test-readlink.h (test_readlink): Likewise.
40581         * tests/test-remove.c (main): Likewise.
40582         * tests/test-rename.h (test_rename): Likewise.
40583         * tests/test-renameat.c (main): Likewise.
40584         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40585         * tests/test-symlink.h (test_symlink): Likewise.
40586         * tests/test-symlinkat.c (main): Likewise.
40587         * tests/test-unlink.h (test_unlink_func): Likewise.
40588         * tests/test-unlinkat.c (main): Likewise.
40589
40590         maint: make realtime library usage explicit
40591         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40592         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40593         * modules/settime (Link): Likewise.
40594         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40595
40596         test-stat-time: speed up execution
40597         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40598         warning on mingw.
40599         (nap): New helper function.
40600         (prepare_test): Use it to reduce sleep time.
40601         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40602         execution.
40603         * modules/stat-time-tests (configure.ac): Check for usleep.
40604
40605 2009-10-09  Jim Meyering  <meyering@redhat.com>
40606
40607         selinux-h: always use getfilecon wrappers
40608         * lib/getfilecon.c: New file.
40609         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40610         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40611         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40612         (fgetfilecon): Provide a stub.
40613         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40614         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40615         file unconditionally.
40616         When <selinux/selinux.h> is found, arrange to use wrappers.
40617         * modules/selinux-h (Files): Add getfilecon.c.
40618         (Makefile.am): Substitute include-next-related bits
40619         into the now-always-generated selinux/selinux.h file.
40620         * doc/glibc-functions/lgetfilecon.texi: New file.
40621         * doc/glibc-functions/fgetfilecon.texi: New file.
40622         * doc/glibc-functions/getfilecon.texi: New file.
40623         * doc/glibc-functions/getfilecon-desc.texi: New file.
40624         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40625         which to pull in the new files.
40626         * MODULES.html.sh (Misc): Add selinux-h.
40627
40628 2009-10-08  Jim Meyering  <meyering@redhat.com>
40629
40630         unistd: fix comment typo
40631         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40632
40633 2009-10-08  Eric Blake  <ebb9@byu.net>
40634
40635         areadlink: use SIZE_MAX consistently
40636         * modules/areadlink (Depends-on): Add stdint.
40637         * modules/areadlink-with-size (Depends-on): Likewise.
40638         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40639         gives NULL; drop sys/types, since unistd gives size_t; and add
40640         stdint for SIZE_MAX.
40641         (SIZE_MAX): Rely on headers.
40642         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40643         and add stdint.
40644         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40645         (SIZE_MAX): Likewise.
40646         (INITIAL_BUF_SIZE): Turn into enum.
40647         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40648
40649 2009-10-08  Jim Meyering  <meyering@redhat.com>
40650
40651         areadlinkat: avoid compilation failure
40652         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40653         Fix typo in comment.
40654
40655 2009-10-07  Eric Blake  <ebb9@byu.net>
40656
40657         areadlinkat-with-size: new module
40658         * modules/areadlinkat-with-size: New module.
40659         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40660         * lib/areadlink.h (areadlinkat): Declare it.
40661         * MODULES.html.sh (File system functions): Mention it.
40662         * modules/areadlinkat-with-size-tests: New test.
40663         * tests/test-areadlinkat-with-size.c: New file.
40664
40665         xreadlinkat: new module
40666         * modules/xreadlinkat: New module.
40667         * lib/xreadlinkat.c (xreadlinkat): New file.
40668         * lib/xreadlink.h (xreadlinkat): Declare it.
40669         * MODULES.html.sh (File system functions): Mention it.
40670
40671         areadlinkat: new module
40672         * lib/at-func.c (FUNC_FAIL): New define.
40673         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40674         * modules/areadlinkat: New module.
40675         * lib/linkat.c (areadlinkat): Move...
40676         * lib/areadlinkat.c (areadlinkat): ...to new file.
40677         * lib/areadlink.h (areadlinkat): Declare it.
40678         * modules/linkat (Depends-on): Add areadlinkat.
40679         * MODULES.html.sh (File system functions): Mention it.
40680         * modules/areadlinkat-tests: New test.
40681         * tests/test-areadlinkat.c: New file.
40682
40683         areadlink, areadlink-with-size: add tests
40684         * modules/areadlink-tests: New test.
40685         * modules/areadlink-with-size-tests: Likewise.
40686         * tests/test-areadlink.h: New file.
40687         * tests/test-areadlink.c: Likewise.
40688         * tests/test-areadlink-with-size.c: Likewise.
40689
40690         maint: minor cleanups
40691         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40692         _UNUSED_PARAMETER_ instead.
40693         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40694         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40695         * modules/linkat-tests (Files): Distribute test-link.h.
40696
40697         openat, utimens: whitespace cleanup
40698         * lib/openat.c: Prefer space throughout, rather than mix of 8
40699         spaces vs. tabs.
40700         * lib/at-func.c: Likewise.
40701         * lib/utimens.c: Likewise.
40702
40703         openat: avoid using wrong fd
40704         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40705         working directory chooses same fd.
40706         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40707
40708         mkdir, mkdirat: fix cygwin 1.5.x bug
40709         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40710         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40711         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40712         bug.
40713         (gl_PREREQ_MKDIR): Delete unused macro.
40714         * modules/mkdir (Files): Track file rename.
40715         (configure.ac): Update macro name.
40716         * modules/openat (Depends-on): Add mkdir.
40717         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40718
40719         mkdir, mkdirat: add tests
40720         * modules/mkdir-tests: New test.
40721         * tests/test-mkdir.h: New file.
40722         * tests/test-mkdir.c: Likewise.
40723         * tests/test-mkdirat.c: Likewise.
40724         * modules/openat-tests (Files): Add new files.
40725         (Makefile.am): Run new test.
40726
40727 2009-10-06  Eric Blake  <ebb9@byu.net>
40728
40729         doc: tweak *at function documentation
40730         * doc/posix-functions/faccessat.texi (faccessat): Mention
40731         known issue with replacement.
40732         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40733         * doc/posix-functions/linkat.texi (linkat): Likewise.
40734         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40735         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40736         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40737         * doc/posix-functions/renameat.texi (renameat): Likewise.
40738         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40739
40740         openat: fix GNU/Hurd bug in unlinkat
40741         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40742         broken.
40743         * doc/posix-functions/unlink.texi (unlink): Document this.
40744         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40745
40746         fdopendir: fix GNU/Hurd bug
40747         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40748         allowing non-directory fds.
40749         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40750         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40751         * modules/dirent (Makefile.am): Substitute it.
40752         * lib/dirent.in.h (fdopendir): Declare replacement.
40753         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40754         * tests/test-fdopendir.c (main): Test something other than
40755         /dev/null, since on Hurd that behaves like a directory.
40756
40757         test-symlink: port to GNU/Hurd
40758         * tests/test-symlink.h (test_symlink): Relax expected errno.
40759
40760         doc: tweak more cygwin information
40761         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40762         now compatible with glibc.
40763         * doc/posix-functions/getopt.texi (getopt): Likewise.
40764
40765         getopt-gnu: add another test
40766         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40767         guarantee behavior relied on by m4.
40768         * tests/test-getopt.c (main): Use it.
40769         * modules/getopt-posix-tests (Depends-on): Add setenv.
40770         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40771
40772         getopt: fix compilation on darwin
40773         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40774         include.
40775         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40776         Reported by Ludovic Courtès.
40777
40778 2009-10-06  Bruno Haible  <bruno@clisp.org>
40779
40780         * modules/size_max (Description): Discourage its use.
40781         Reported by Simon Josefsson.
40782
40783 2009-10-06  Jim Meyering  <meyering@redhat.com>
40784
40785         linkat: avoid compilation failure
40786         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40787
40788 2009-10-05  Eric Blake  <ebb9@byu.net>
40789
40790         linkat: support Linux 2.6.17
40791         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40792         linkat on Linux, but allow cache variable override.
40793         * lib/linkat.c (rpl_linkat): Define override.
40794         * modules/linkat (Depends-on): Add symlinkat.
40795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40796         * modules/unistd (Makefile.am): Substitute it.
40797         * lib/unistd.in.h (linkat): Declare replacement.
40798         Reported by Pádraig Brady.
40799
40800         quotearg: port test to systems with C.UTF-8 locale
40801         * tests/test-quotearg.c (struct result_strings): Add another
40802         member, differentiating between C.ASCII and C.UTF-8 handling.
40803         (compare_strings): Add parameter.
40804         (main): Adjust all callers.
40805
40806         getopt: avoid clash with FreeBSD _getopt_internal
40807         * lib/getopt.in.h (_getopt_internal): Override the name.
40808         * lib/getopt_int.h (includes): Pick up any overrides.
40809         Reported by Reuben Thomas.
40810
40811         hash: allow C89 compilation
40812         * lib/hash.c (check_tuning): Move declaration before statement.
40813         Reported by Reuben Thomas.
40814
40815 2009-10-05  Karl Berry  <karl@gnu.org>
40816
40817         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40818
40819 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40820             Bruno Haible  <bruno@clisp.org>
40821
40822         * lib/uname.c (uname): Use a table-driven algorithm to compute
40823         Windows NT versions.
40824
40825 2009-10-04  Bruno Haible  <bruno@clisp.org>
40826
40827         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40828         program_invocation_short_name.
40829         * modules/progname (configure.ac): Test for presence of
40830         program_invocation_short_name.
40831         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40832
40833 2009-10-04  Bruno Haible  <bruno@clisp.org>
40834
40835         * lib/progname.c (set_program_name): Fix comment.
40836         Reported by Jim Meyering.
40837
40838 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40839             Bruno Haible  <bruno@clisp.org>
40840
40841         * lib/uname.c: Include <string.h>.
40842         (uname): Do only one call to GetVersionEx in the common case.
40843
40844 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40845             Bruno Haible  <bruno@clisp.org>
40846
40847         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40848         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40849         (uname): Add support for Windows CE and various non-x86 CPU types.
40850
40851 2009-10-03  Bruno Haible  <bruno@clisp.org>
40852
40853         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40854         invocation to tests/configure.ac.
40855         Reported by Ian Beckwith <ianb@erislabs.net>.
40856
40857 2009-10-02  Eric Blake  <ebb9@byu.net>
40858
40859         fchdir: avoid compiler warning
40860         * lib/fchdir.c (canonicalize_file_name)
40861         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40862
40863         test-open: support mingw errno values
40864         * tests/test-open.h (test_open): Relax test.
40865         * tests/test-fopen.h (test_fopen): Likewise.
40866         * tests/test-openat-safer.c (main): Likewise.
40867
40868         open: fix opening directory on mingw
40869         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40870
40871         test-open: on GNU/Hurd, /dev/null is a directory
40872         * tests/test-fopen.h (main): Rename...
40873         (test_fopen): ...to this.  Use a guaranteed non-directory when
40874         confirming open behavior on trailing slash.
40875         * tests/test-openat-safer.c (main): Likewise.
40876         * tests/test-open.h (main): Likewise....
40877         (test_open): ...to this.
40878         * tests/test-fopen.c (main): Adjust caller.
40879         * tests/test-fopen-safer.c (main): Likewise.
40880         * tests/test-open.c (main): Likewise.
40881         * tests/test-fcntl-safer.c (main): Likewise.
40882         Reported by Samuel Thibault.
40883
40884         rename, fchdir: don't ignore chdir failure
40885         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40886         * lib/rename.c (rpl_rename) [W32]: Likewise.
40887         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40888         an empty destination directory if source cannot be renamed,
40889         although there is still possibility for failure.
40890         * doc/posix-functions/rename.texi (rename): Document the race.
40891         Reported by Jim Meyering.
40892
40893         maint: cleanup whitespace in recent commits
40894         * lib/rename.c (rpl_rename): Remove tabs.
40895         * tests/test-link.h (test_link): Likewise.
40896         * lib/fchdir.c (get_name): Likewise.
40897         Reported by Jim Meyering.
40898
40899 2009-10-02  Ben Pfaff  <blp@gnu.org>
40900
40901         relocatable-prog-wrapper: Add missing dependency on
40902         double-slash-root.
40903         * modules/relocatable-prog-wrapper: Add dependency.
40904         Reported by Ian Beckwith <ianb@erislabs.net>.
40905
40906 2009-10-02  Eric Blake  <ebb9@byu.net>
40907
40908         renameat: fix Solaris bugs
40909         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40910         needed fixing.
40911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40912         * modules/stdio (Makefile.am): Substitute it.
40913         * lib/stdio.in.h (renameat): Declare replacement.
40914         * lib/renameat.c (rpl_renameat): Implement fix.
40915
40916         renameat: new module
40917         * modules/renameat: New file.
40918         * lib/renameat.c (renameat): Likewise.
40919         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40921         * modules/stdio (Makefile.am): Substitute them.
40922         * lib/stdio.in.h (renameat): Declare it.
40923         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40924         * doc/posix-functions/renameat.texi (renameat): Likewise.
40925         * modules/renameat-tests: New test.
40926         * tests/test-renameat.c: Likewise.
40927
40928         rename: fix mingw bugs
40929         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40930         directory overwrite bugs.
40931
40932         rename: fix another cygwin 1.5 bug
40933         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40934         checks.
40935         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40936         unnecessary cygwin workarounds.  Also work around bug with moving
40937         full directory onto an empty one.
40938         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40939
40940         rename-dest-slash: merge into rename module
40941         * modules/rename-dest-slash (Status): Mark obsolete.
40942         (Depends-on): Add rename.
40943         (Files): Let rename do it all.
40944         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40945         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40946         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40947         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40948         * lib/rename.c (rpl_rename): Update comments.
40949
40950         rename: fix cygwin 1.5.x bugs
40951         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40952         * lib/rename.c (rpl_rename): Work around them.
40953         * modules/rename (Depends-on): Add same-inode.
40954
40955         rename: fix Solaris 10 bug
40956         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40957         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40958         was the only bug.
40959
40960         rename: fix Solaris 9 bug
40961         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40962         on non-directory.  Avoid calling exit.
40963         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40964         strdup.
40965         * modules/rename-tests (Depends-on): Drop lstat.
40966         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40967         (gl_PREREQ_RENAME): Delete unused macro.
40968
40969         rename-dest-slash: fix NetBSD bug
40970         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40971         links.
40972         * modules/rename-dest-slash (Depends-on): Add same-inode.
40973
40974         rename-tests: new test, exposes several platform bugs
40975         * modules/rename-tests: New file.
40976         * tests/test-rename.h: Likewise.
40977         * tests/test-rename.c: Likewise.
40978         * doc/posix-functions/rename.texi (rename): Improve documentation,
40979         including bugs that will eventually be fixed in gnulib.
40980
40981 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40982
40983         * lib/uname.c: Include <stdlib.h>
40984         (uname): Assume version info is available.
40985
40986 2009-10-02  Jim Meyering  <meyering@redhat.com>
40987
40988         gnu-web-doc-update: correct --help output
40989         * build-aux/gnu-web-doc-update: Make --help output relevant.
40990
40991         gnu-web-doc-update: add standard options
40992         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40993
40994         gnu-web-doc-update: New module.
40995         Use this script to automatically update the on-line web documentation
40996         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40997         * modules/gnu-web-doc-update: New file, from coreutils.
40998         * build-aux/gnu-web-doc-update: New script.
40999
41000 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41001
41002         link: LoadLibrary is not needed.
41003         * lib/link.c: Use GetModuleHandle.
41004
41005 2009-10-01  Eric Blake  <ebb9@byu.net>
41006
41007         getopt: bump serial number
41008         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41009         change.
41010
41011         tests: tighten link, rmdir, and remove tests
41012         * tests/test-link.h (includes): No need to use <config.h> here.
41013         Clean up if directory hard link was created, otherwise test for
41014         trailing '.'.
41015         * tests/test-linkat.c (main): Simplify.
41016         * tests/test-remove.c (main): Enhance test for trailing '.'.
41017         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41018
41019 2009-10-01  Jim Meyering  <meyering@redhat.com>
41020
41021         maint.mk: requiring "make major" was annoying, for a "minor" release.
41022         What is intended is "stable", to contrast with alpha and beta,
41023         so require "make stable", not "make major".
41024         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41025         (get_tool_versions): Likewise.
41026         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41027
41028 2009-09-30  Ben Pfaff  <blp@gnu.org>
41029
41030         Fix broken build of replacement for Windows tmpfile().
41031         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41032         flags argument added along with the 'mkostemp' module.
41033
41034 2009-09-28  Bruno Haible  <bruno@clisp.org>
41035
41036         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41037         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41038         to 'remove_elt'.
41039         (gl_list_remove): Update.
41040         * lib/gl_list.c (gl_list_remove): Update.
41041         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41042         to 'remove_elt'.
41043         (gl_oset_remove): Update.
41044         * lib/gl_list.c (gl_oset_remove): Update.
41045         Reported by Eric Blake.
41046
41047 2009-09-28  Eric Blake  <ebb9@byu.net>
41048
41049         doc: mention yet more cygwin 1.7 status
41050         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41051         cygwin.
41052         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41053         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41054
41055         argp: fix test failure
41056         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41057         that are not upper-case.  Pass correct range to tolower.
41058
41059 2009-09-27  Jim Meyering  <meyering@redhat.com>
41060
41061         test-yesno: work around sparc-dash here-document infelicity
41062         Without this change, the literal \177 byte in a here document
41063         would make dash 0.5.5.1-3 access uninitialized memory.
41064         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41065         Instead, use a marker, "@", and filter through tr to create the desired
41066         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41067
41068 2009-09-27  Bruno Haible  <bruno@clisp.org>
41069
41070         Disable untested support for new flavours of ACLs on AIX.
41071         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41072         progress.
41073         * lib/set-mode-acl.c (qset_acl): Likewise.
41074
41075 2008-12-07  Bruno Haible  <bruno@clisp.org>
41076
41077         Add support for new flavours of ACLs on AIX. (Untested.)
41078         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41079         (file_has_acl): Add support for newer AIX.
41080         * lib/set-mode-acl.c (qset_acl): Likewise.
41081         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41082         Rainer Tammer <tammer@tammer.net>.
41083
41084 2009-09-26  Eric Blake  <ebb9@byu.net>
41085
41086         argp: fix compilation of getopt
41087         * lib/getopt.in.h (includes): Use different guard than glibc.
41088         Reported by Sergey Poznyakoff.
41089
41090         doc: mention more cygwin 1.7 status
41091         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41092         bug.
41093         * doc/posix-functions/execl.texi (execl): Likewise.
41094         * doc/posix-functions/execle.texi (execle): Likewise.
41095         * doc/posix-functions/execlp.texi (execlp): Likewise.
41096         * doc/posix-functions/execv.texi (execv): Likewise.
41097         * doc/posix-functions/execve.texi (execve): Likewise.
41098         * doc/posix-functions/execvp.texi (execvp): Likewise.
41099         * doc/glibc-functions/canonicalize_file_name.texi
41100         (canonicalize_file_name): Cygwin 1.7 now provides this.
41101         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41102         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41103         on AT_SYMLINK_NOFOLLOW.
41104
41105 2009-09-24  Eric Blake  <ebb9@byu.net>
41106
41107         test-linkat: make test more robust
41108         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41109
41110         getopt: fix inclusion guards for cygwin
41111         * modules/getopt-posix (Depends-on): Add include-next.
41112         (Makefile.am): Substitute more items in replacement header.
41113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41114         <getopt.h>.
41115         * lib/getopt.in.h (includes): Use split inclusion guard, and
41116         prefer <getopt.h> over include <unistd.h> when one is present.
41117         (option): Also override name of 'struct option'.
41118
41119         same-inode: revert prior change; it is not yet ready
41120         * NEWS: Undo mention of this change.
41121         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41122         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41123         * lib/cycle-check.c (cycle_check): Likewise.
41124         * lib/same.c (same_name): Likewise.
41125         * lib/at-func2.c (at_func2): Likewise.
41126
41127 2009-09-23  Eric Blake  <ebb9@byu.net>
41128
41129         linkat: new module
41130         * modules/linkat: New file.
41131         * lib/at-func2.c (at_func2): Likewise.
41132         * lib/linkat.c (linkat): Likewise.
41133         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41134         * lib/openat-priv.h (at_func2): Add declaration.
41135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41136         * modules/unistd (Makefile.am): Substitute them.
41137         * lib/unistd.in.h (linkat): Declare it.
41138         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41139         * doc/posix-functions/linkat.texi (linkat): Likewise.
41140         * doc/posix-functions/link.texi (link): Tweak wording.
41141         * tests/test-link.c (main): Move guts...
41142         * tests/test-link.h (test_link): ...into new file.
41143         * modules/linkat-tests: New test.
41144         * tests/test-linkat.c: Likewise.
41145         * modules/link-tests (Files): Ship new file.
41146         (Depends-on): Add stdbool.
41147
41148         dirname: add library-safe mdir_name
41149         * lib/dirname.h (mdir_name): New prototype.
41150         * lib/dirname.c (dir_name): Move guts...
41151         (mdir_name): ...to new function that avoids xalloc_die.
41152
41153         fchdir: another mingw fix
41154         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41155         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41156         on mingw (where it has not yet been ported), and make it optional
41157         elsewhere.
41158         (_gl_register_fd): Use it.
41159
41160         same-inode: make SAME_INODE tri-state, to port to mingw
41161         * NEWS: Mention this change.
41162         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41163         st_ino always being 0.
41164         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41165         * lib/cycle-check.c (cycle_check): Likewise.
41166         * lib/same.c (same_name): Likewise.
41167
41168         lstat: avoid mingw compilation error
41169         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41171         lstat ourselves.
41172         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41173         was adequate.
41174         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41175         the checks for lstat.
41176         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41177
41178         link: fix test failure on Solaris 9
41179         * lib/link.c (rpl_link): Don't assume link will catch bogus
41180         trailing slash on source.
41181
41182         test-symlinkat: enhance test
41183         * tests/test-readlink.c (main): Move guts...
41184         * tests/test-readlink.h (test_readlink): ...into new file.
41185         * tests/test-symlink.c (main): Move guts...
41186         * tests/test-symlink.h (test_symlink): ...into new file.
41187         * tests/test-symlinkat.c (main): Use new files for further
41188         coverage.
41189         (do_symlink, do_readlink): New helper functions.
41190         * modules/symlink-tests (Files): Ship new file.
41191         (Depends-on): Add stdbool.
41192         * modules/readlink-tests (Files): Ship new file.
41193         (Depends-on): Add stdbool.
41194         * modules/symlinkat-tests (Files): Use new files.
41195
41196 2009-09-23  Eric Blake  <ebb9@byu.net>
41197
41198         readlink: document portability issue with symlink length
41199         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41200         systems have bogus st_size on symlinks, and mention the
41201         areadlink-with-size module.
41202         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41203         * doc/posix-functions/readlink.texi (readlink): Mention the
41204         areadlink module, and ERANGE failure.
41205         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41206         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41207
41208         readlink: fix Solaris 9 bug with trailing slash
41209         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41210         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41211         * doc/posix-functions/readlink.texi (readlink): Document this.
41212         * modules/readlink-tests: New test.
41213         * tests/test-readlink.c: Likewise.
41214
41215         readlink: fix cygwin 1.5.x bug with return type
41216         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41217         * lib/unistd.in.h (readlink): Use ssize_t.
41218         * lib/readlink.c (readlink): Likewise.
41219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41220         * modules/unistd (Makefile.am): Substitute it.
41221         * lib/unistd.in.h (readlink): Declare replacement.
41222         * doc/posix-functions/readlink.texi (readlink): Document this.
41223
41224         symlink: use throughout gnulib
41225         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41226         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41227         symlink is not used.
41228         * modules/symlinkat (Depends-on): Add symlink.
41229         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41230         * modules/canonicalize-tests (Depends-on): Likewise.
41231         * modules/lstat-tests (Depends-on): Likewise.
41232         * modules/openat-tests (Depends-on): Likewise.
41233         * modules/remove-tests (Depends-on): Likewise.
41234         * modules/rmdir-tests (Depends-on): Likewise.
41235         * modules/unlink-tests (Depends-on): Likewise.
41236         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41237         * tests/test-canonicalize.c (symlink): Likewise.
41238         * tests/test-fstatat.c (symlink): Likewise.
41239         * tests/test-lstat.c (symlink): Likewise.
41240         * tests/test-remove.c (symlink): Likewise.
41241         * tests/test-rmdir.c (symlink): Likewise.
41242         * tests/test-unlink.c (symlink): Likewise.
41243         * tests/test-unlinkat.c (symlink): Likewise.
41244
41245         symlink: new module, for Solaris 9 bug
41246         * modules/symlink: New file.
41247         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41248         * lib/symlink.c: Likewise.
41249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41250         * modules/unistd (Makefile.am): Substitute them.
41251         * lib/unistd.in.h (symlink): Declare replacement.
41252         * MODULES.html.sh (File system functions): Mention it.
41253         * doc/posix-functions/symlink.texi (symlink): Likewise.
41254         * modules/symlink-tests: New test.
41255         * tests/test-symlink.c: Likewise.
41256
41257 2009-09-23  Bruno Haible  <bruno@clisp.org>
41258
41259         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41260         when needed.
41261         Test case: gnulib-tool --import --with-tests atexit inttypes.
41262         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41263
41264 2009-09-23  Bruno Haible  <bruno@clisp.org>
41265
41266         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41267         subcommand, not in a subshell.
41268
41269 2009-09-22  Eric Blake  <ebb9@byu.net>
41270
41271         unistd: sort replacement declarations
41272         * lib/unistd.in.h: Sort declarations.
41273
41274         open, openat: minor optimization
41275         * lib/open.c (open): If open succeeded, len is non-zero.
41276         * lib/openat.c (rpl_openat): Likewise.
41277
41278         link-follow: ensure correct result
41279         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41280         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41281         distinguish between possible failures.
41282
41283 2009-09-21  Eric Blake  <ebb9@byu.net>
41284
41285         fts: avoid compiler warning
41286         * lib/fts.c (dirent_inode_sort_may_be_useful)
41287         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41288
41289 2009-09-19  Bruno Haible  <bruno@clisp.org>
41290
41291         * lib/progreloc.c (canonicalize_file_name): New declaration.
41292
41293 2009-09-19  Eric Blake  <ebb9@byu.net>
41294
41295         link: fix quoting
41296         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41297
41298         openat: fix openat bugs on Solaris 9
41299         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41300         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41301         * modules/openat (Depends-on): Add open.
41302         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41303         * modules/fcntl-h (Makefile.am): Substitute it.
41304         * lib/fcntl.in.h (openat): Declare replacement.
41305         * doc/posix-functions/openat.texi (openat): Document this.
41306
41307         openat: move fstatat and unlinkat into correct files
41308         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41309         compiled.
41310         * lib/openat.c (fstatat, unlinkat): Move...
41311         * lib/fstatat.c (fstatat): ...into correct files.
41312         * lib/unlinkat.c (unlinkat): Likewise.
41313
41314         openat: fix unlinkat bugs on Solaris 9
41315         * lib/unlinkat.c (unlinkat): New file.
41316         * modules/openat (Depends-on): Add unlink.
41317         (Files): Distribute it.
41318         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41319         trailing slash behavior is broken.
41320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41321         * modules/unistd (Makefile.am): Substitute it.
41322         * lib/unistd.in.h (unlinkat): Declare replacement.
41323         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41324
41325         openat: fix fstatat bugs on Solaris 9
41326         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41327         stat.
41328         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41329
41330         test-unlinkat: enhance test, to expose Solaris 9 bug
41331         * tests/test-unlink.c (main): Factor guts...
41332         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41333         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41334         * tests/test-rmdir.c (main): Adjust caller.
41335         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41336         (unlinker): New helper function.
41337         (rmdirat): Enhance check.
41338         * modules/rmdir-tests (Depends-on): Add stdbool.
41339         * modules/unlink-tests (Depends-on): Likewise.
41340         (Files): Add test-unlink.h.
41341         * modules/openat-tests (Files): Likewise.
41342         (Depends-on): Add unlinkdir.
41343
41344         test-fstatat: new test, to expose Solaris 9 bugs
41345         * tests/test-stat.c (main): Factor guts...
41346         * tests/test-stat.h (test_stat_func): ...into new file.
41347         * tests/test-lstat.c (main): Factor guts...
41348         * tests/test-lstat.h (test_lstat_func): ...into new file.
41349         * tests/test-fstatat.c: New file.
41350         * modules/stat-tests (Files): Add test-stat.h.
41351         * modules/lstat-tests (Files): Add test-lstat.h.
41352         (Depends-on): Add stdbool.
41353         * modules/openat-tests (Depends-on): Add pathmax.
41354         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41355         (Makefile.am): Run new test.
41356
41357         remove: new module, for mingw and Solaris 9 bugs
41358         * modules/remove: New file.
41359         * lib/remove.c: Likewise.
41360         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41362         * modules/stdio (Makefile.am): Use them.
41363         * lib/stdio.in.h (remove): Declare replacement.
41364         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41365         * doc/posix-functions/remove.texi (remove): Likewise.
41366         * modules/remove-tests: New test.
41367         * tests/test-remove.c: Likewise.
41368
41369         unlink: new module, for Solaris 9 bug
41370         * modules/unlink: New file.
41371         * lib/unlink.c: Likewise.
41372         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41374         * modules/unistd (Makefile.am): Use them.
41375         * lib/unistd.in.h (stat): Declare replacement.
41376         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41377         * doc/posix-functions/unlink.texi (unlink): Likewise.
41378         * modules/unlink-tests: New test.
41379         * tests/test-unlink.c: Likewise.
41380
41381         lstat: fix Solaris 9 bug
41382         * lib/lstat.c (lstat): Also check for trailing slash on
41383         non-symlink, non-directories.  Use stat module to simplify logic.
41384         * doc/posix-functions/lstat.texi (lstat): Document it.
41385         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41386         (configure.ac): Check for symlink.
41387         * tests/test-lstat.c (main): Add more tests.
41388
41389         stat: add as dependency to other modules
41390         * modules/chown (Depends-on): Add stat.
41391         * modules/euidaccess (Depends-on): Likewise.
41392         * modules/fchdir (Depends-on): Likewise.
41393         * modules/isdir (Depends-on): Likewise.
41394         * modules/link (Depends-on): Likewise.
41395         * modules/lstat (Depends-on): Likewise.
41396         * modules/mkdir-p (Depends-on): Likewise.
41397         * modules/modechange (Depends-on): Likewise.
41398         * modules/open (Depends-on): Likewise.
41399         * modules/readlink (Depends-on): Likewise.
41400         * modules/same (Depends-on): Likewise.
41401
41402         stat: fix Solaris 9 bug
41403         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41404         slash.
41405         * lib/stat.c (rpl_stat): Work around it.
41406         * doc/posix-functions/stat.texi (stat): Update documentation.
41407
41408         stat: new module, for mingw bug
41409         * modules/stat: New file.
41410         * lib/stat.c: Likewise.
41411         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41413         * modules/sys_stat (Makefile.am): Use them.
41414         * lib/sys_stat.in.h (stat): Declare replacement.
41415         * lib/openat.c (fstatat): Deal with lstat and stat being function
41416         macros.
41417         * modules/openat (Depends-on): Add inline.
41418         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41419         * doc/posix-functions/stat.texi (stat): Likewise.
41420         * modules/stat-tests: New test.
41421         * tests/test-stat.c: Likewise.
41422
41423 2009-09-19  Jim Meyering  <meyering@redhat.com>
41424
41425         syntax-check: detect unnecessary inclusion of canonicalize.h
41426         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41427
41428 2009-09-19  Eric Blake  <ebb9@byu.net>
41429
41430         canonicalize-lgpl: adjust clients to use correct header
41431         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41432         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41433         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41434         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41435         * lib/progreloc.c (includes): Likewise.
41436
41437 2009-09-19  Jim Meyering  <meyering@redhat.com>
41438
41439         test-posixtm.c: correct a comment
41440         * tests/test-posixtm.c: Correct first-line comment.
41441         Spotted by Eric Blake.
41442
41443 2009-09-16  Jim Meyering  <meyering@redhat.com>
41444
41445         posixtm-tests: make T const-correct; add a test case
41446         * tests/test-posixtm.c (T): Declare const.
41447         Add a test for -(2^31+1).
41448         Remove useless can-succeed-only-in-2002 test.
41449
41450         posixtm-tests: adjust the sole failing test
41451         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41452         expected output matches what mktime now produces.  Cross-checked via
41453         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41454
41455         posixtm: move #ifdef'd tests into a new module
41456         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41457         * tests/test-posixtm.c: ... this new file.
41458         * modules/posixtm-tests: New module.
41459
41460 2009-09-19  Eric Blake  <ebb9@byu.net>
41461
41462         openat: simplify use of at-func.c
41463         * lib/at-func.c (includes): Include prerequisites here, to
41464         simplify requirements on client files.
41465         * lib/openat-priv.h: Add double-inclusion guard.
41466         * lib/faccessat.c (includes): Simplify.
41467         * lib/fchmodat.c (includes): Likewise.
41468         * lib/fchownat.c (includes): Likewise.
41469         * lib/mkdirat.c (includes): Likewise.
41470         * lib/mkfifoat.c (includes): Likewise.
41471         * lib/symlinkat.c (includes): Likewise.
41472
41473         openat: allow return of fd 0
41474         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41475         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41476         unistd-safer.
41477         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41478         <fcntl.h>; this module does not leak fds.
41479         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41480         must be allowed to return 0, leaving openat_safer to add the
41481         safety.
41482         (openat_permissive): Avoid writing to just-opened fd 2 if
41483         restoring the current directory fails.
41484         * lib/openat-die.c (openat_restore_fail): Add comment.
41485         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41486         (save_cwd): Guarantee safe fd, but without use of open_safer.
41487         * tests/test-openat.c: New test.
41488         * modules/openat-tests (Files, Makefile.am): Distribute and build
41489         new file.
41490
41491         relocatable-prog-wrapper: fix build
41492         * modules/relocatable-prog-wrapper (Files): Update name of
41493         canonicalize m4 file, broken on 2009-09-17.
41494         Reported by emad hajjar <aleppos@hotmail.com>.
41495
41496 2009-09-19  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41499         * lib/safe-alloc.c: Likewise.
41500         Reported by Ian Beckwith <ianb@erislabs.net>.
41501
41502 2009-09-18  Bruno Haible  <bruno@clisp.org>
41503
41504         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41505         Reported by <erobles@sensacd.com.mx>.
41506
41507 2009-09-17  Eric Blake  <ebb9@byu.net>
41508
41509         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41510         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41511         slashes when checking if last component is missing.
41512         * tests/test-canonicalize.c (main): Test this.
41513
41514         canonicalize, canonicalize-lgpl: honor // if distinct from /
41515         * modules/canonicalize (Files): Add double-slash-root.m4.
41516         * modules/canonicalize-lgpl (Files): Likewise.
41517         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41518         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41519         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41520         fallback definition.
41521         (canonicalize_filename_mode): Use it to protect //.
41522         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41523         (__realpath): Likewise.
41524         * tests/test-canonicalize.c (main): Test this.
41525         * tests/test-canonicalize-lgpl.c (main): Likewise.
41526         * modules/canonicalize-tests (Depends-on): Add same-inode.
41527         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41528
41529         canonicalize-lgpl: fix glibc bug with trailing slash
41530         * m4/canonicalize-lgpl.m4: Move contents...
41531         * m4/canonicalize.m4: ...here.
41532         (gl_CANONICALIZE_LGPL): Factor realpath check...
41533         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41534         glibc 2.3.5 bug, fixed 2005-04-27.
41535         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41536         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41537         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41538         * modules/canonicalize-lgpl (Files): Manage file rename.
41539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41540         * modules/stdlib (Makefile.am): Substitute witness.
41541         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41542         is needed.
41543         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41544         replacement is required.
41545         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41546         * doc/glibc-functions/canonicalize_file_name.texi
41547         (canonicalize_file_name): Document this.
41548         * doc/posix-functions/realpath.texi (realpath): Likewise.
41549
41550         canonicalize-lgpl: reject non-directory with trailing slash
41551         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41552         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41553         catches failures in glibc 2.3.5.
41554         * tests/test-canonicalize.c (main): Likewise.
41555
41556         canonicalize-lgpl: use native realpath if it works
41557         * lib/canonicalize-lgpl.c (realpath): Guard with
41558         FUNC_REALPATH_WORKS.
41559         * lib/stdlib.in.h (realpath): Make declaration optional based on
41560         HAVE_REALPATH.
41561         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41562         native realpath works.
41563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41564         * modules/stdlib (Makefile.am): Substitute witness.
41565
41566         canonicalize, canonicalize-lgpl: use <stdlib.h>
41567         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41568         (Include): Mention <stdlib.h>.
41569         (configure.ac): Mention functions we provide.
41570         * modules/canonicalize (configure.ac): Likewise.
41571         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41572         realpath if canonicalize_file_name is missing.
41573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41574         * modules/stdlib (Makefile.am): Substitute witnesses.
41575         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41576         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41577         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41578         * NEWS: Document this.
41579         * doc/glibc-functions/canonicalize_file_name.texi
41580         (canonicalize_file_name): Likewise.
41581         * doc/posix-functions/realpath.texi (realpath): Likewise.
41582         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41583
41584         test-canonicalize: consolidate into single C program
41585         * tests/test-canonicalize.sh: Delete; move setup into...
41586         * tests/test-canonicalize.c (main): ...the program, making it
41587         easier to run in debugger.  Add some tests.
41588         * modules/canonicalize-tests (Files): Remove unused file.
41589         (Depends-on): Add progname.
41590         (configure.ac, Makefile.am): Simplify.
41591
41592         test-canonicalize-lgpl: consolidate into single C program
41593         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41594         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41595         easier to run in debugger.  Add some tests.
41596         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41597         (configure.ac, Makefile.am): Simplify.
41598
41599         canonicalize: avoid resolvepath
41600         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41601         unnecessary checks.
41602         * lib/canonicalize.c (includes): Simplify.
41603         (canonicalize_file_name): Drop resolvepath implementation.
41604         * modules/canonicalize (Depends-on): Drop filenamecat.
41605
41606         canonicalize: don't lose errno
41607         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41608         over calls to free.
41609
41610         canonicalize: simplify errno handling
41611         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41612         assignment.
41613
41614         canonicalize, canonicalize-lgpl: update module dependencies
41615         * modules/canonicalize (Depends-on): Add extensions, lstat,
41616         pathmax, stdlib.
41617         (Files): Drop pathmax.h.
41618         (configure.ac): Adjust macro name.
41619         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41620         lstat, stdlib, sys_stat.
41621         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41622         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41623         extensions.
41624         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41625         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41626         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41627         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41628         declaration, if available.
41629         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41630         we can rely on the readlink module.
41631         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41632         (includes): Use <unistd.h> unconditionally.
41633
41634 2009-09-17  Eric Blake  <ebb9@byu.net>
41635
41636         maint: make Include sections of modules consistent
41637         * modules/alloca: Use only header name; no need to list #include.
41638         * modules/alloca-opt: Likewise.
41639         * modules/arpa_inet: Likewise.
41640         * modules/canon-host: Likewise.
41641         * modules/configmake: Likewise.
41642         * modules/dirent: Likewise.
41643         * modules/eealloc: Likewise.
41644         * modules/environ: Likewise.
41645         * modules/fchdir: Likewise.
41646         * modules/fcntl: Likewise.
41647         * modules/fcntl-h: Likewise.
41648         * modules/gethrxtime: Likewise.
41649         * modules/gettime: Likewise.
41650         * modules/ignore-value: Likewise.
41651         * modules/inet_ntop: Likewise.
41652         * modules/inet_pton: Likewise.
41653         * modules/inttypes: Likewise.
41654         * modules/isnand-nolibm: Likewise.
41655         * modules/isnanf-nolibm: Likewise.
41656         * modules/mbchar: Likewise.
41657         * modules/mbfile: Likewise.
41658         * modules/mbiter: Likewise.
41659         * modules/mbuiter: Likewise.
41660         * modules/netdb: Likewise.
41661         * modules/netinet_in: Likewise.
41662         * modules/nproc: Likewise.
41663         * modules/pagealign_alloc: Likewise.
41664         * modules/poll: Likewise.
41665         * modules/printf-frexp: Likewise.
41666         * modules/pthread: Likewise.
41667         * modules/putenv: Likewise.
41668         * modules/random_r: Likewise.
41669         * modules/relocatable-prog: Likewise.
41670         * modules/search: Likewise.
41671         * modules/select: Likewise.
41672         * modules/selinux-h: Likewise.
41673         * modules/settime: Likewise.
41674         * modules/signal: Likewise.
41675         * modules/size_max: Likewise.
41676         * modules/socklen: Likewise.
41677         * modules/ssize_t: Likewise.
41678         * modules/stdarg: Likewise.
41679         * modules/stdbool: Likewise.
41680         * modules/stddef: Likewise.
41681         * modules/stdint: Likewise.
41682         * modules/stdio: Likewise.
41683         * modules/stdlib: Likewise.
41684         * modules/string: Likewise.
41685         * modules/strings: Likewise.
41686         * modules/sys_file: Likewise.
41687         * modules/sys_ioctl: Likewise.
41688         * modules/sys_select: Likewise.
41689         * modules/sys_socket: Likewise.
41690         * modules/sys_stat: Likewise.
41691         * modules/sys_time: Likewise.
41692         * modules/sys_times: Likewise.
41693         * modules/sys_utsname: Likewise.
41694         * modules/sys_wait: Likewise.
41695         * modules/sysexits: Likewise.
41696         * modules/time: Likewise.
41697         * modules/times: Likewise.
41698         * modules/tmpfile: Likewise.
41699         * modules/trim: Likewise.
41700         * modules/unistd: Likewise.
41701         * modules/wchar: Likewise.
41702         * modules/wctype: Likewise.
41703
41704 2009-09-17  Bruno Haible  <bruno@clisp.org>
41705
41706         Make getdate.y compile on QNX and NetBSD 5 / i386.
41707         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41708         TIME_T_FITS_IN_LONG_INT.
41709         * lib/getdate.y (long_time_t): New type.
41710         (relative_time): Change type of 'seconds' field to long_time_t.
41711         (get_date): Update types of local variables. Check against overflow
41712         during conversion from long_time_t to time_t.
41713         Reported by Matt Kraai <kraai@ftbfs.org>
41714         and Hasso Tepper <hasso@netbsd.org>.
41715
41716 2009-09-17  Bruno Haible  <bruno@clisp.org>
41717
41718         * modules/COPYING: Update copyright years.
41719         * modules/README: Likeiwse.
41720         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41721         Reported by Ian Beckwith <ianb@erislabs.net>.
41722
41723 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41724
41725         * users.txt: Update references for gnuit package.
41726
41727 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41728
41729         * m4/getdelim.m4: Fix typo in copyright line.
41730
41731 2009-09-17  Bruno Haible  <bruno@clisp.org>
41732
41733         * lib/atoll.c: Use the standard header with GPL copyright.
41734         * lib/argz.in.h: Likewise.
41735         * lib/glob.c: Likewise.
41736         * lib/glob-libc.h: Likewise.
41737         * lib/random_r.c: Likewise.
41738         * lib/siglist.h: Likewise.
41739         * lib/strsignal.c: Likewise.
41740         Reported by Ian Beckwith <ianb@erislabs.net>.
41741
41742 2009-09-17  Eric Blake  <ebb9@byu.net>
41743
41744         rmdir: ensure correct dependency order
41745         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41746
41747 2009-09-17  Bruno Haible  <bruno@clisp.org>
41748
41749         Disable assertion that fails on NetBSD 5 / i386.
41750         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41751         Reported by Sam Steingold <sds@gnu.org>
41752         and Hasso Tepper <hasso@netbsd.org>.
41753
41754 2009-09-16  Eric Blake  <ebb9@byu.net>
41755
41756         unlinkdir: port to mingw
41757         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41758         on which no one can unlink a directory.
41759
41760         stdlib: sort witness names
41761         * modules/stdlib (Makefile.am): Sort replacements.
41762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41763         * lib/stdlib.in.h: Likewise.
41764
41765         parse-duration-tests: avoid link failure
41766         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41767         LIBINTL.
41768         Reported by Tom G. Christensen.
41769
41770         openat-tests: ensure unlinkat behaves like rmdir
41771         * tests/test-rmdir.c (main): Factor guts...
41772         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41773         * modules/rmdir-tests (Files): Ship new file.
41774         * modules/openat-tests: New test.
41775         * tests/test-unlinkat.c: Likewise.
41776
41777         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41778         * modules/rmdir-errno (Status, Notice): Now obsolete.
41779
41780         rmdir: work around cygwin 1.5.x and mingw bugs
41781         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41782         * lib/rmdir.c (rmdir): Work around it.
41783         * modules/rmdir (Status, Notice): No longer obsolete.
41784         (Files): Add dos.m4.
41785         (Depends-on): Add unistd.
41786         (configure.ac): Set witnesses.
41787         (License): Relax to LGPLv2+.
41788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41789         * modules/unistd (Makefile.am): Substitute witnesses.
41790         * lib/unistd.in.h (rmdir): Declare replacement.
41791         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41792         * modules/rmdir-tests: New tests.
41793         * tests/test-rmdir.c: Likewise.
41794
41795 2009-09-15  Eric Blake  <ebb9@byu.net>
41796
41797         fchdir: improve use of replacement functions
41798         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41799         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41800         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41801         REPLACE_CLOSEDIR.
41802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41803         * modules/sys_stat (Makefile.am): Substitute correct witness.
41804         * modules/dirent (Makefile.am): Likewise.
41805         * modules/unistd (Makefile.am): Likewise.
41806         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41807         * lib/unistd.in.h (dup): Likewise.
41808         * lib/sys_stat.in.h (fstat): Likewise.
41809
41810         maint: ignore gnulib-tool temp files
41811         * .gitignore: Ignore files created during gnulib-tool --test.
41812
41813 2009-09-13  Jim Meyering  <meyering@redhat.com>
41814
41815         posixtm: don't reject a time that specify "60" as the number of seconds
41816         * lib/posixtm.c (posixtime): The code to reject invalid dates
41817         would also reject a time specified with the .60 suffix.
41818         But POSIX allows that, in order to accommodate leap seconds.
41819         So don't reject it.
41820         (main): Adjust tests accordingly.
41821         * modules/posixtm (Depends-on): Add stpcpy.
41822
41823 2009-09-11  Jim Meyering  <meyering@redhat.com>
41824
41825         announce-gen: include [$release_type] in emitted Subject:
41826         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41827         e.g., [stable] in the emitted Subject: line.
41828
41829 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41830
41831         Remove obsolete macros from several modules.
41832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41833         obsolete Autoconf macros with their modern counterparts.
41834         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41835         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41836         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41837         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41838         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41839         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41840         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41841         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41842         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41843         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41844         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41845         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41846         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41847         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41848         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41849         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41850         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41851         * m4/time_r.m4 (gl_TIME_R): Likewise.
41852         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41853         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41854         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41855
41856         Fix copyright header in build-aux scripts.
41857         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41858         recommendation.
41859         * build-aux/ncftpput-ftp: Likewise.
41860         * build-aux/update-copyright: Likewise.
41861
41862 2009-09-09  Eric Blake  <ebb9@byu.net>
41863
41864         test-link: allow Linux choice of errno
41865         * tests/test-link.c (main): Relax test for alternate error.
41866
41867         strndup: fix improper m4 caching
41868         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41869         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41870         (gl_PREREQ_STRNDUP): Delete.
41871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41872         * modules/string (Makefile.am): Substitute it.
41873         * lib/string.in.h (strndup): Modernize prototype.
41874
41875         getcwd: port to mingw
41876         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41877         different from the POSIX assumptions made throughout the getcwd
41878         module; fortunately, the mingw getcwd does not need replacement.
41879         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41880         * modules/getcwd-tests: New test.
41881         * tests/test-getcwd.c: Likewise.
41882
41883         link: fix platform bugs
41884         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41885         * lib/link.c (link): Work around them.  Fix related mingw bug.
41886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41887         * modules/unistd (Makefile.am): Substitute it.
41888         * lib/unistd.in.h (link): Declare replacement.
41889         * doc/posix-functions/link.texi (link): Document this.
41890         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41891
41892         test-link: consolidate into single C program, test more cases
41893         * tests/test-link.sh: Delete.
41894         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41895         at least Cygwin and Solaris.
41896         * modules/link-tests (Files): Remove unused file.
41897         (Depends-on): Add errno, sys_stat.
41898         (Makefile.am): Simplify.
41899
41900 2009-09-08  Bruno Haible  <bruno@clisp.org>
41901
41902         Work around towlower, towupper bug on mingw.
41903         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41904         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41905         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41906         * doc/posix-functions/towupper.texi: Likewise.
41907         Reported by Eric Blake.
41908
41909 2009-09-08  Jim Meyering  <meyering@redhat.com>
41910
41911         build: don't try to run autoheader if we don't use it
41912         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41913         is not used in configure.ac.
41914
41915 2009-09-08  Eric Blake  <ebb9@byu.net>
41916
41917         euidaccess: fix compilation error
41918         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41919
41920         rawmemchr: relax license
41921         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41922         okay.
41923         Reported by Jim Meyering.
41924
41925         mkfifoat: new module
41926         * modules/mkfifoat: New file.
41927         * lib/mkfifoat.c: Likewise.
41928         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41930         * modules/sys_stat (Makefile.am): Use them.
41931         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41932         * MODULES.html.sh (File system functions): Mention module.
41933         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41934         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41935         * modules/mkfifoat-tests: New test.
41936         * tests/test-mkfifoat.c: Likewise.
41937
41938         strchrnul: relax license
41939         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41940         okay.
41941         Reported by Jim Meyering.
41942
41943 2009-09-08  Eric Blake  <ebb9@byu.net>
41944
41945         fstatat: fix compilation on Solaris
41946         * lib/fstatat.c (includes): Add fcntl.h.
41947         Reported by Pádraig Brady.
41948
41949 2009-09-07  Eric Blake  <ebb9@byu.net>
41950
41951         rename: modernize replacement
41952         * modules/rename (Depends-on): Add stdio.
41953         (configure.ac): Declare witness.
41954         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41955         stdio take care of replacement.
41956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41957         * modules/stdio (Makefile.am): Substitute them.
41958         * lib/stdio.in.h (rename): Declare replacement.
41959         * lib/rename.c (includes): Allow cross-compilation to non-windows
41960         machines.
41961         * doc/posix-functions/rename.texi (rename): Improve
41962         documentation.
41963
41964         stdio: sort witness names
41965         * modules/stdio (Makefile.am): Sort replacements.
41966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41967         * lib/stdio.in.h: Likewise.
41968
41969         getcwd: minor cleanups
41970         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41971         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41972
41973         openat: provide more convenience names
41974         * modules/faccessat (configure.ac): Add C witness.
41975         * lib/unistd.in.h (readlinkat): Fix typo.
41976         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41977         convenience wrappers.
41978         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41979         wrappers in syntax checks.
41980
41981 2009-09-06  Eric Blake  <ebb9@byu.net>
41982
41983         doc: fix comments in recent patches
41984         * lib/faccessat.c: Mention correct function.
41985         * lib/fchmodat.c: Likewise.
41986         * lib/fchownat.c: Likewise.
41987         * lib/symlinkat.c: Likewise.
41988         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41989         constants.
41990
41991         faccessat, symlinkat: continue cleanup of previous patch
41992         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41993         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41994         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41996         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41997         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41998         set.
41999
42000 2009-09-06  Bruno Haible  <bruno@clisp.org>
42001
42002         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42003         (fstatat): Declare if GNULIB_FSTATAT is set.
42004         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42005         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42006         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42007         * modules/fcntl-h (Files): Remove m4/openat.m4.
42008         * modules/sys_stat (Files): Remove m4/openat.m4.
42009         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42010         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42011         * modules/unistd (Files): Remove m4/openat.m4.
42012         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42013         GNULIB_OPENAT.
42014         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42015         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42016         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42017         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42018         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42019         gl_OPENAT_DEFAULTS.
42020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42021         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42022         Don't require gl_OPENAT_DEFAULTS.
42023         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42024         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42025         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42026         (gl_OPENAT_DEFAULTS): Remove macro.
42027
42028 2009-09-06  Bruno Haible  <bruno@clisp.org>
42029
42030         * modules/openat (configure.ac): Remove unneeded witness.
42031
42032 2009-09-06  Bruno Haible  <bruno@clisp.org>
42033
42034         Set errno to ENOSYS when a function is entirely unsupported.
42035         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42036         EOPNOTSUPP.
42037         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42038         * modules/chown (Depends-on): Remove errno.
42039
42040 2009-09-06  Bruno Haible  <bruno@clisp.org>
42041
42042         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42043
42044 2009-09-06  Bruno Haible  <bruno@clisp.org>
42045
42046         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42047
42048 2009-09-06  Ben Pfaff  <blp@gnu.org>
42049             Bruno Haible  <bruno@clisp.org>
42050
42051         Work around a glibc bug in strtok_r.
42052         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42053         Undefine if UNDEFINE_STRTOK_R is set.
42054         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42056         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42057         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42058         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42059         UNDEFINE_STRTOK_R.
42060         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42061
42062 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42063
42064         exclude: minor fix
42065         * lib/exclude.c: Include wctype.h
42066
42067 2009-09-06  Akim Demaille  <demaille@gostai.com>
42068
42069         bootstrap: improve error message
42070         * build-aux/bootstrap (find_tool): Upon failure, report the list
42071         of candidates.
42072         Honor the initial value of the envvar.
42073
42074 2009-09-05  Eric Blake  <ebb9@byu.net>
42075
42076         symlinkat: new module
42077         * modules/symlinkat: New file.
42078         * lib/symlinkat.c: Likewise.
42079         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42081         * modules/unistd (Makefile.am): Use them.
42082         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42083         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42084         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42085         * MODULES.html.sh (File system functions): Mention module.
42086         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42087         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42088         * modules/symlinkat-tests: New test.
42089         * tests/test-symlinkat.c: Likewise.
42090
42091         test-openat-safer: add more checks
42092         * tests/test-openat-safer.c (main): Check more code paths.
42093
42094 2009-09-05  Jim Meyering  <meyering@redhat.com>
42095
42096         syntax-check: detect unnecessary inclusion of openat.h
42097         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42098
42099 2009-09-05  Bruno Haible  <bruno@clisp.org>
42100
42101         Support towlower, towupper.
42102         * doc/posix-functions/towlower.texi: Mention module wctype.
42103         * doc/posix-functions/towupper.texi: Likewise.
42104         * lib/wctype.in.h (towlower, towupper): New functions.
42105         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42106         (ASSERT): New macro.
42107         (e): New variable.
42108         (main): Test also towlower, towupper. Test WEOF argument.
42109         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42110
42111 2009-09-05  Bruno Haible  <bruno@clisp.org>
42112
42113         Fix conversion behaviour when the input is invalid.
42114         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42115         mark occurring in first pass of indirect conversion.
42116         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42117         input.
42118         Found by clang's static analyzer.
42119
42120 2009-09-05  Bruno Haible  <bruno@clisp.org>
42121
42122         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42123         where direct conversion is possible.
42124
42125 2009-09-04  Eric Blake  <ebb9@byu.net>
42126
42127         openat: fail with ENOENT on empty name
42128         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42129         buffer.
42130
42131         link-follow: fix logic bug in prior patch
42132         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42133         reversed sense of yes and no in prior patch.  Avoid confusing
42134         compilation failure with desired semantics.
42135
42136         link-follow: accommodate mingw and cross-compilation
42137         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42138         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42139         cross-compilation results to -1, to make linkat easier to
42140         implement when cross-compiling.  Trivially support mingw.
42141         * modules/link-follow (configure.ac): Call new name.
42142         * NEWS: Mention this.
42143
42144 2009-09-03  Eric Blake  <ebb9@byu.net>
42145
42146         faccessat: compile replacement
42147         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42148         needed.
42149
42150         fts: fix compilation error
42151         * lib/fts.c (includes): Re-add "openat.h", for
42152         openat_needs_fchdir.
42153
42154         faccessat: new module
42155         * modules/faccessat: New file.
42156         * lib/faccessat.c: Likewise.
42157         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42159         * modules/unistd (Makefile.am): Use it.
42160         * lib/unistd.in.h (faccessat): Declare it.
42161         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42162         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42163         * MODULES.html.sh (File system functions): Mention it.
42164         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42165         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42166
42167         euidaccess: prefer POSIX over non-standard implementation
42168         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42169         * lib/euidaccess.c (euidaccess): Use it if available.
42170
42171         openat: make template easier to use
42172         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42173         AT_FUNC_F2 to be undefined.
42174         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42175         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42176         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42177         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42178         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42179         Likewise.
42180         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42181         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42182         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42183         Likewise.
42184
42185         openat: declare in POSIX headers
42186         * NEWS: Mention this.
42187         * modules/openat (configure.ac): Declare witnesses.
42188         (Depends-on): Add fcntl-h, sys_stat, unistd.
42189         (Include): Mention correct headers.
42190         * modules/fcntl-h (Depends-on): Add link-warning.
42191         (Files): Add openat.m4.
42192         (Makefile.am): Substitute witnesses.
42193         * modules/sys_stat (Files, Makefile.am): Likewise.
42194         * modules/unistd (Files, Makefile.am): Likewise.
42195         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42196         (gl_OPENAT_DEFAULTS): New macro.
42197         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42200         (SYS_STAT_H): Remove unused variable.
42201         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42202         * lib/fcntl--.h (includes): Remove unneeded header.
42203         * lib/openat-safer.c (includes): Likewise.
42204         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42205         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42206         appropriate headers.
42207         (__OPENAT_PREFIX): Delete.
42208         * lib/fcntl.in.h (openat): Provide declaration.
42209         (AT_FDCWD): Fix Solaris bug.
42210         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42211         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42212         * lib/fchmodat.c (includes):  Adjust to find declaration.
42213         * lib/fchownat.c (includes): Likewise.
42214         * lib/mkdirat.c (includes): Likewise.
42215         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42216         still visible.
42217
42218 2009-09-02  Eric Blake  <ebb9@byu.net>
42219
42220         errno: use consistently
42221         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42222         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42223         * lib/canonicalize.c (ELOOP): Likewise.
42224         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42225         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42226         * lib/lchown.c (EOPNOTSUPP): Likewise.
42227         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42228         * lib/savewd.c (ESTALE): Likewise.
42229         * lib/settime.c (ENOSYS): Likewise.
42230         * lib/utimens.c (ENOSYS): Likewise.
42231         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42232         * lib/chdir-safer.c (ELOOP): Likewise.
42233         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42234         * modules/c-stack (Depends-on): Add errno.
42235         * modules/canonicalize (Depends-on): Likewise.
42236         * modules/chdir-safer (Depends-on): Likewise.
42237         * modules/fdopendir (Depends-on): Likewise.
42238         * modules/inet_ntop (Depends-on): Likewise.
42239         * modules/inet_pton (Depends-on): Likewise.
42240         * modules/lchown (Depends-on): Likewise.
42241         * modules/openat (Depends-on): Likewise.
42242         * modules/savewd (Depends-on): Likewise.
42243         * modules/settime (Depends-on): Likewise.
42244         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42245
42246         fts: avoid leaking fds
42247         * modules/fts (Depends-on): Add cloexec.
42248         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42249         flag.
42250
42251         fts: make directory fds more robust
42252         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42253         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42254
42255         backupfile, chdir-long, fts, savedir: make safer
42256         * lib/backupfile.c (includes): Use "dirent--.h", since
42257         numbered_backup can write to stderr during readdir.
42258         * lib/savedir.c (includes): Likewise.
42259         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42260         emulation can write to stderr on failure.
42261         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42262         * lib/getcwd.c: Document why opendir_safer is unused.
42263         * lib/glob.c: Likewise.
42264         * lib/scandir.c: Likewise.
42265         * lib/openat-proc.c: Likewise, for open_safer.
42266         * modules/backupfile (Depends-on): Add dirent-safer.
42267         * modules/savedir (Depends-on): Likewise.
42268         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42269         * modules/chdir-long (Depends-on): Add openat-safer.
42270
42271         openat-safer: new module
42272         * modules/openat-safer: New file.
42273         * lib/openat-safer.c: Likewise.
42274         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42275         * lib/fcntl-safer.h (openat_safer): Declare.
42276         * lib/fcntl--.h (openat): Override.
42277         * MODULES.html.sh (File descriptor based I/O): Mention it.
42278         * lib/openat.h: Add double-inclusion guards.
42279         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42280         "fcntl--.h", so we can implement openat.
42281         * modules/openat-safer-tests: New test.
42282         * tests/test-openat-safer.c: New file.
42283
42284         dirent-safer: new module
42285         * modules/dirent-safer: New file.
42286         * lib/dirent--.h: Likewise.
42287         * lib/dirent-safer.h: Likewise.
42288         * lib/opendir-safer.c: Likewise.
42289         * m4/dirent-safer.m4: Likewise.
42290         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42291         * modules/dirent-safer-tests: New test.
42292         * tests/test-dirent-safer.c: New file.
42293         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42294
42295         fdopendir: optimize on mingw
42296         * lib/unistd.in.h (_gl_directory_name): New prototype.
42297         * lib/fchdir.c (_gl_directory_name): Implement it.
42298         (fchdir): Use it to simplify implementation.
42299         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42300         fchdir, when available, to avoid calling [f]chdir().
42301
42302         fdopendir: split into its own module
42303         * lib/openat.c (fdopendir): Move...
42304         * lib/fdopendir.c: ...into new file.
42305         * modules/fdopendir: New module.
42306         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42307         * modules/openat (Depends-on): Add fdopendir.
42308         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42309         fdopendir here.
42310         * modules/savedir (Depends-on): Only need fdopendir, not full
42311         openat.
42312         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42313         * lib/openat.h (fdopendir): Drop prototype.
42314         * lib/dirent.in.h (fdopendir): Provide prototype.
42315         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42316         * modules/dirent (Makefile.am): Substitute them.
42317         * MODULES.html.sh (File system functions): Mention it.
42318         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42319         * modules/fdopendir-tests: New file.
42320         * tests/test-fdopendir.c: Likewise.
42321
42322         fchdir: use more consistent macro convention
42323         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42324         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42325         REPLACE_FCHDIR, rather than relying on config.h macros.
42326         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42327         inside a single make-time REPLACE_FCHDIR block, rather than using
42328         the config.h FCHDIR_REPLACEMENT.
42329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42330         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42331         Manage fstat replacement.
42332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42333         REPLACE_FCHDIR.
42334         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42335         (Makefile.am): Substitute REPLACE_FCHDIR.
42336         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42337         FCHDIR_REPLACEMENT.
42338         * lib/dup-safer.c (dup_safer): Likewise.
42339         * lib/dup2.c (rpl_dup2): Likewise.
42340         * lib/dup3.c (rpl_dup3): Likewise.
42341         * lib/open.c (rpl_open): Likewise.
42342
42343         fchdir: simplify error handling, and support dup3
42344         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42345         stdbool, malloc-posix, realloc-posix.
42346         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42347         (ensure_dirs_slot): Return false on allocation failure.
42348         (rpl_dup2): Delete.
42349         (_gl_register_dup): New function.
42350         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42351         (_gl_register_fd): Close fd on allocation failure.
42352         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42353         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42354         prototype.
42355         (rpl_dup2_fchdir): Delete prototype.
42356         * lib/open.c (open): Update caller.
42357         * lib/dup2.c (dup2): Track fchdir metadata.
42358         * lib/dup3.c (dup3): Likewise.
42359         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42361
42362 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42363
42364         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42365         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42366         don't pass arguments to AC_OUTPUT.
42367
42368 2009-09-02  Bruno Haible  <bruno@clisp.org>
42369
42370         * modules/mkdtemp (License): Relicense under LGPLv2+.
42371         Reported by Paolo Bonzini.
42372
42373 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42374
42375         Replace uses of obsolete autoconf macros in Jim's modules.
42376         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42377         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42378         can evoke a warning from autoconf when run with -Wobsolete
42379         enabled.  They were declared obsolete for good reasons (see
42380         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42381         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42382         should not continue using the deprecated macros.
42383         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42384         obsolete Autoconf macros with modern counterparts.
42385         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42386         * m4/dos.m4 (gl_AC_DOS): Likewise.
42387         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42388         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42389         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42390         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42391         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42392         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42393         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42394         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42395         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42396         Likewise.
42397         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42398         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42399         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42400         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42401         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42402         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42403
42404 2009-09-01  Eric Blake  <ebb9@byu.net>
42405
42406         fchdir: fix off-by-one bug in previous patch
42407         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42408         (_gl_unregister_fd): Delete useless if.
42409
42410 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42411
42412         maint.mk: sort the list of syntax-check rules
42413         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42414         easier to get a sense of progress when the rules are run sequentially
42415         and take a long time.
42416
42417 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42418
42419         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42420         * modules/netinet_in: Likewise.
42421         * modules/sys_file: Likewise.
42422         * modules/sys_ioctl: Likewise.
42423         * modules/sys_select: Likewise.
42424         * modules/sys_socket: Likewise.
42425         * modules/sys_stat: Likewise.
42426         * modules/sys_time: Likewise.
42427         * modules/sys_times: Likewise.
42428         * modules/sys_utsname: Likewise.
42429         * modules/sys_wait: Likewise.
42430
42431 2009-09-01  Jim Meyering  <meyering@redhat.com>
42432
42433         fts: help ensure that return values are not ignored
42434         * lib/fts_.h (__GNUC_PREREQ): Define.
42435         (__attribute_warn_unused_result__): Define.
42436         (fts_children, fts_close, fts_open, fts_read): Declare with
42437         __attribute_warn_unused_result__.
42438
42439         fts: fts_close now fails also when closing a dir file descriptor fails
42440         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42441         and propagate to caller, along with errno.
42442
42443         announce-gen: correct formatting in --help output
42444         * build-aux/announce-gen (usage): Move the one-line description in
42445         --help output "up", to where it belongs, just after Usage:.
42446
42447 2009-08-31  Eric Blake  <ebb9@byu.net>
42448
42449         fchdir: port to mingw
42450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42451         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42452         opened, then use a substitute.
42453         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42454         replacement.
42455         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42456         (_gl_register_fd): No need to check stat if open already filters
42457         all directories.
42458         (fchdir): Fix error condition to match POSIX.
42459         * modules/fchdir (Depends-on): Add sys_stat.
42460         * doc/posix-functions/open.texi (open): Document the limitation.
42461         * modules/fchdir-tests: New file.
42462         * tests/test-fchdir.c: Likewise.
42463
42464         canonicalize: allow cross-testing from cygwin to mingw
42465         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42466         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42467         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42468         Likewise.
42469         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42470         target does not support symlinks.
42471         * tests/test-canonicalize-lgpl.sh: Likewise.
42472
42473         chown: avoid compilation warning on mingw
42474         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42475         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42476         mingw.
42477         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42478         * modules/chown (Depends-on): Add errno.
42479
42480 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42481
42482         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42483         command.
42484
42485 2009-08-31  Jim Meyering  <meyering@redhat.com>
42486
42487         canonicalize: remove useless initialization
42488         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42489         initialization of local, "end".
42490
42491 2009-08-30  Bruno Haible  <bruno@clisp.org>
42492
42493         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42494         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42495         ENOSYS.
42496
42497 2009-08-30  Bruno Haible  <bruno@clisp.org>
42498
42499         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42500         /usr/xpg4/bin/tr when it exists.
42501         * tests/test-pipe-filter-gi1.sh: Likewise.
42502
42503 2009-08-30  Bruno Haible  <bruno@clisp.org>
42504
42505         Work around deficient /usr/bin/id program on Solaris.
42506         * tests/test-file-has-acl.sh (ID): New variable.
42507         * tests/test-set-mode-acl.sh (ID): Likewise.
42508         * tests/test-copy-acl.sh (ID): Likewise.
42509         * tests/test-copy-file.sh (ID): Likewise.
42510
42511 2009-08-30  Bruno Haible  <bruno@clisp.org>
42512
42513         New module 'xstriconveh'.
42514         * lib/xstriconveh.h: New file.
42515         * lib/xstriconveh.c: New file.
42516         * modules/xstriconveh: New file.
42517
42518 2009-08-30  Bruno Haible  <bruno@clisp.org>
42519
42520         Make it easier to use mem_cd_iconveh.
42521         * lib/striconveh.h (iconveh_t): New type.
42522         (iconveh_open, iconveh_close): New declarations.
42523         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42524         with a single 'const iconveh_t *' argument.
42525         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42526         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42527         with a single 'const iconveh_t *' argument.
42528         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42529         * tests/test-striconveh.c (main): Update.
42530         * NEWS: Mention the change.
42531
42532 2009-08-30  Bruno Haible  <bruno@clisp.org>
42533
42534         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42535         problem.
42536
42537 2009-08-30  Bruno Haible  <bruno@clisp.org>
42538
42539         Work around iconv_open problem on Solaris.
42540         * lib/iconv_open-solaris.gperf: New file.
42541         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42542         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42543         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42544         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42545         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42546         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42547
42548 2009-08-29  Jim Meyering  <meyering@redhat.com>
42549
42550         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42551         * top/maint.mk (cvs-check): Remove target; it was just an alias
42552         to the better-named vc-diff-check.
42553         (maintainer-distcheck): Remove rule.  It was used only from
42554         the (alpha/beta/major) target, and all of its commands but one
42555         were coreutils-specific.
42556         (vc-dist): Remove rule.
42557         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42558         Run vc-diff-check, not vc-dist.
42559         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42560
42561 2009-08-27  Bruno Haible  <bruno@clisp.org>
42562
42563         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42564         of 0.
42565
42566 2009-08-27  Bruno Haible  <bruno@clisp.org>
42567
42568         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42569         compilers.
42570         * doc/func.texi: Document the SunPRO C bug.
42571
42572 2009-08-27  Bruno Haible  <bruno@clisp.org>
42573
42574         Fix link error on Solaris.
42575         * tests/test-parse-duration.c (xstrdup): Remove function.
42576
42577 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42578
42579         ignore-value: handle pointer types, too
42580         * lib/ignore-value.h (__attribute__): Remove definition.
42581         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42582         of a more concise and more-often effective "(void) i" statement.
42583         (ignore_ptr): New function to suppress warnings from functions that
42584         return pointers, and to make it explicit that one function doesn't
42585         handle all cases.
42586
42587 2009-08-25  Bruno Haible  <bruno@clisp.org>
42588
42589         dup2: work around a Linux bug.
42590         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42591         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42592         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42593         Reported by Simon Josefsson.
42594
42595 2009-08-25  Jim Meyering  <meyering@redhat.com>
42596
42597         libguestfs uses gnulib
42598         * users.txt: Add libguestfs.
42599
42600 2009-08-24  Eric Blake  <ebb9@byu.net>
42601
42602         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42603         * lib/pipe2.c (includes): Add binary-io.h.
42604         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42605
42606 2009-08-24  Bruno Haible  <bruno@clisp.org>
42607
42608         Tolerate declared but missing accept4 syscall.
42609         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42610         available.
42611         * lib/sys_socket.in.h (accept4): If the function is already present,
42612         override it.
42613         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42614         * modules/accept4 (Makefile.am): Compile accept4.c always.
42615         Reported by Paolo Bonzini and Eric Blake.
42616
42617 2009-08-23  Bruno Haible  <bruno@clisp.org>
42618
42619         New module 'accept4'.
42620         * lib/sys_socket.in.h (accept4): New declaration.
42621         * lib/accept4.c: New file.
42622         * m4/accept4.m4: New file.
42623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42624         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42625         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42626         HAVE_ACCEPT4.
42627         * modules/accept4: New file.
42628         * doc/glibc-functions/accept4.texi: Mention the new module.
42629
42630 2009-08-24  Jim Meyering  <meyering@redhat.com>
42631
42632         progname: also set global program_invocation_name, when possible
42633         Before this change, a libtool-enabled program that calls glibc's
42634         error function would report the program name as
42635         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42636         * modules/progname (configure.ac): Check for a declaration of
42637         program_invocation_name.
42638         * lib/progname.c:  Include <errno.h>.
42639         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42640         Set program_invocation_name.
42641
42642 2009-08-23  Bruno Haible  <bruno@clisp.org>
42643
42644         * lib/dup3.c: Include <string.h>.
42645
42646 2009-08-23  Bruno Haible  <bruno@clisp.org>
42647
42648         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42649         * lib/pipe2.c (pipe2): Likewise.
42650         Suggested by Eric Blake.
42651
42652 2009-08-23  Bruno Haible  <bruno@clisp.org>
42653
42654         Tolerate declared but missing dup3 syscall.
42655         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42656         * lib/unistd.in.h (dup3): If the function is already present,
42657         override it.
42658         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42659         * modules/dup3 (Makefile.am): Compile dup3.c always.
42660         Reported by Paolo Bonzini.
42661
42662 2009-08-23  Bruno Haible  <bruno@clisp.org>
42663
42664         Tolerate declared but missing pipe2 syscall.
42665         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42666         available.
42667         * lib/unistd.in.h (pipe2): If the function is already present,
42668         override it.
42669         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42670         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42671         Reported by Paolo Bonzini.
42672
42673 2009-08-23  Bruno Haible  <bruno@clisp.org>
42674
42675         * lib/pipe2.c (pipe2): Move #ifs inside function.
42676
42677 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42678
42679         quotearg: document limitations of quote_these_too
42680         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42681         those limitations are created.
42682         * lib/quotearg.h (set_char_quoting): Document that digits and
42683         letters that are special after backslash are not permitted.
42684         (quotearg_char): Cross-reference set_char_quoting documentation.
42685
42686 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42687
42688         quotearg: implement custom_quoting_style
42689         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42690         right_quote fields.
42691         (set_custom_quoting): New public function.
42692         (quotearg_buffer_restyled): Add left_quote and right_quote
42693         arguments, handle them very much like locale quoting, and update
42694         all uses.
42695         (quotearg_n_custom): New public function.
42696         (quotearg_n_custom_mem): New public function.
42697         (quotearg_custom): New public function.
42698         (quotearg_custom_mem): New public function.
42699         * lib/quotearg.h: Prototype and document new public functions.
42700         (enum quoting_style): For escape_quoting_style and
42701         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42702         ignored even though they're otherwise like c_quoting_style.
42703         Add custom_quoting_style member and document with comparison to
42704         clocale_quoting_style.
42705         * tests/test-quotearg.c (custom_quotes): New array.
42706         (custom_results): New array.
42707         (main): Extend to test custom quoting.
42708
42709 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42710
42711         quotearg: fix right quote escaping when it's in quote_these_too
42712         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42713         quote, be sure to prepend only one backslash.
42714         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42715         (main): Test it.
42716
42717 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42718
42719         quotearg-tests: test escaping of embedded locale quotes
42720         * tests/test-quotearg.c (struct result_strings): Add member for
42721         new input.
42722         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42723         (inputs): Add new input.
42724         (results_g): Add expected results.
42725         (flag_results): Likewise.
42726         (locale_results): Likewise.
42727         (compare_strings): Check those.
42728
42729 2009-08-23  Bruno Haible  <bruno@clisp.org>
42730
42731         Tests for module 'dup3'.
42732         * modules/dup3-tests: New file.
42733         * tests/test-dup3.c: New file.
42734
42735         New module 'dup3'.
42736         * lib/unistd.in.h (dup3): New declaration.
42737         * lib/dup3.c: New file.
42738         * m4/dup3.m4: New file.
42739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42740         HAVE_DUP3.
42741         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42742         * modules/dup3: New file.
42743         * doc/glibc-functions/dup3.texi: Mention the new module.
42744
42745 2009-08-23  Bruno Haible  <bruno@clisp.org>
42746
42747         Tweak the dup2 test.
42748         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42749         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42750         the test file is still empty. Fix argument order of lseek.
42751
42752 2009-08-23  Bruno Haible  <bruno@clisp.org>
42753
42754         Avoid test link errors when the modules getopt-gnu, gettext are used.
42755         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42757
42758 2009-08-23  Bruno Haible  <bruno@clisp.org>
42759
42760         Fix getdtablesize() on mingw.
42761         * lib/getdtablesize.c (getdtablesize): Implement differently.
42762         * lib/unistd.in.h (getdtablesize): Improve comment.
42763
42764 2009-08-23  Bruno Haible  <bruno@clisp.org>
42765
42766         New module 'mkostemp'.
42767         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42768         * lib/stdlib.in.h (mksotemp): New declaration.
42769         * lib/mkostemp.c: New file, from glibc with modifications.
42770         * lib/tempname.h (GT_FILE): Remove outdated comment.
42771         (gen_tempname): Add flags argument.
42772         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42773         (__GT_FILE): Map to 1.
42774         (small_open, large_open): Remove macros.
42775         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42776         * lib/mkstemp.c (mkstemp): Update.
42777         * lib/mkdtemp.c (mkdtemp): Likewise.
42778         * m4/mkostemp.m4: New file.
42779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42780         HAVE_MKOSTEMP.
42781         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42782         HAVE_MKOSTEMP.
42783         * modules/mkostemp: New file, based on modules/mkstemp.
42784         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42785         * NEWS: Mention the change.
42786
42787 2009-08-23  Bruno Haible  <bruno@clisp.org>
42788
42789         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42790         Reported by Eric Blake.
42791
42792 2009-08-23  Bruno Haible  <bruno@clisp.org>
42793
42794         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42795         Reported by Eric Blake.
42796
42797 2009-08-23  Bruno Haible  <bruno@clisp.org>
42798
42799         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42800         * modules/pipe2 (Depends-on): Likewise.
42801
42802 2009-08-23  Eric Blake  <ebb9@byu.net>
42803
42804         fcntl-h: add O_TTY_INIT support
42805         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42806         * tests/test-fcntl-h.c (o): Test it.
42807         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42808
42809         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42810         * modules/fcntl: Move <fcntl.h> header replacement...
42811         * modules/fcntl-h: ...to new name, so as not to collide with
42812         like-named function.
42813         * tests/test-fcntl.c: Rename...
42814         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42815         * modules/fcntl-tests: Rename...
42816         * modules/fcntl-h-tests: ...to this.  Update test file name.
42817         * modules/chdir-long (Depends-on): Update clients.
42818         * modules/chdir-safer (Depends-on): Likewise.
42819         * modules/fcntl-safer (Depends-on): Likewise.
42820         * modules/fts (Depends-on): Likewise.
42821         * modules/mkancesdirs (Depends-on): Likewise.
42822         * modules/mkdir-p (Depends-on): Likewise.
42823         * modules/open (Depends-on): Likewise.
42824         * modules/savewd (Depends-on): Likewise.
42825         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42826         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42827
42828 2009-08-22  Bruno Haible  <bruno@clisp.org>
42829
42830         * modules/binary-io (License): Relicense under LGPL.
42831         * modules/pipe2 (License): Likewise.
42832
42833 2009-08-22  Bruno Haible  <bruno@clisp.org>
42834
42835         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42836         return value.
42837         * lib/pipe-filter-gi.c (filter_init): Likewise.
42838         Reported by Eric Blake.
42839
42840 2009-08-22  Bruno Haible  <bruno@clisp.org>
42841
42842         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42843         * modules/pipe (Depends-on): Add pipe2.
42844
42845 2009-08-22  Bruno Haible  <bruno@clisp.org>
42846
42847         Tests for module 'pipe2'.
42848         * modules/pipe2-tests: New file.
42849         * tests/test-pipe2.c: New file.
42850
42851         New module 'pipe2'.
42852         * lib/unistd.in.h (pipe2): New declaration.
42853         * lib/pipe2.c: New file.
42854         * m4/pipe2.m4: New file.
42855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42856         HAVE_PIPE2.
42857         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42858         * modules/pipe2: New file.
42859         * doc/glibc-functions/pipe2.texi: Mention the new module.
42860
42861 2009-08-22  Bruno Haible  <bruno@clisp.org>
42862
42863         Reference some new glibc functions.
42864         * doc/glibc-functions/accept4.texi: New file.
42865         * doc/glibc-functions/dup3.texi: New file.
42866         * doc/glibc-functions/mkostemp.texi: New file.
42867         * doc/glibc-functions/pipe2.texi: New file.
42868         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42869         (Glibc sys/socket.h): Refer to accept4.
42870         (Glibc unistd.h): Refer to dup3, pipe2.
42871         Reported by Eric Blake.
42872
42873 2009-08-22  Jim Meyering  <meyering@redhat.com>
42874             Bruno Haible  <bruno@clisp.org>
42875
42876         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42877         This makes it so packages using automake-1.11's silent-rules option
42878         can print e.g., a single "GEN    configmake.h" line, rather than
42879         the 30+ statements that perform the job.  If you want to see the
42880         actual commands, you can still run "make V=1".
42881         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42882         so that make output is abbreviated when those variables are defined
42883         appropriately.
42884         * modules/argz: Likewise.
42885         * modules/arpa_inet: Likewise.
42886         * modules/byteswap: Likewise.
42887         * modules/configmake: Likewise.
42888         * modules/dirent: Likewise.
42889         * modules/errno: Likewise.
42890         * modules/fcntl: Likewise.
42891         * modules/float: Likewise.
42892         * modules/fnmatch: Likewise.
42893         * modules/getopt-posix: Likewise.
42894         * modules/glob: Likewise.
42895         * modules/iconv_open: Likewise.
42896         * modules/inttypes: Likewise.
42897         * modules/localcharset: Likewise.
42898         * modules/locale: Likewise.
42899         * modules/math: Likewise.
42900         * modules/netdb: Likewise.
42901         * modules/netinet_in: Likewise.
42902         * modules/poll: Likewise.
42903         * modules/posix_spawnp-tests: Likewise.
42904         * modules/sched: Likewise.
42905         * modules/search: Likewise.
42906         * modules/selinux-h: Likewise.
42907         * modules/signal: Likewise.
42908         * modules/spawn: Likewise.
42909         * modules/stdarg: Likewise.
42910         * modules/stdbool: Likewise.
42911         * modules/stddef: Likewise.
42912         * modules/stdint: Likewise.
42913         * modules/stdio: Likewise.
42914         * modules/stdlib: Likewise.
42915         * modules/string: Likewise.
42916         * modules/strings: Likewise.
42917         * modules/sys_file: Likewise.
42918         * modules/sys_ioctl: Likewise.
42919         * modules/sys_select: Likewise.
42920         * modules/sys_socket: Likewise.
42921         * modules/sys_stat: Likewise.
42922         * modules/sys_time: Likewise.
42923         * modules/sys_times: Likewise.
42924         * modules/sys_utsname: Likewise.
42925         * modules/sys_wait: Likewise.
42926         * modules/sysexits: Likewise.
42927         * modules/time: Likewise.
42928         * modules/unistd: Likewise.
42929         * modules/wchar: Likewise.
42930         * modules/wctype: Likewise.
42931
42932 2009-08-22  Jim Meyering  <meyering@redhat.com>
42933
42934         announce-gen: detect write failure
42935         * build-aux/announce-gen: Add Coda at end.
42936         Remove equivalent-but-more-verbose block at top.
42937
42938 2009-08-19  Akim Demaille  <demaille@gostai.com>
42939
42940         bootstrap: --help to stdout.
42941         * bootstrap (usage): Don't send --help to stderr.
42942         Use a here doc instead of a long string.
42943
42944 2009-08-21  Eric Blake  <ebb9@byu.net>
42945
42946         test-popen-safer: split from test-popen
42947         * tests/test-popen.c (main): Move...
42948         * tests/test-popen.h: ...into new file.
42949         * tests/test-popen-safer2.c: New file.
42950         * modules/popen-tests (Files): Add test-popen.h.
42951         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42952         Suggested by Bruno Haible.
42953
42954         test-fcntl-safer: split from test-open
42955         * tests/test-open.c (main): Move...
42956         * tests/test-open.h: ...into new file.
42957         * tests/test-fcntl-safer.c: New file.
42958         * modules/open-tests (Files): Add test-open.h.
42959         * modules/fcntl-safer-tests: New file.
42960         Suggested by Bruno Haible.
42961
42962         test-fopen-safer: split from test-fopen
42963         * tests/test-fopen.c (main): Move...
42964         * tests/test-fopen.h: ...into new file.
42965         * tests/test-fopen-safer.c: New file.
42966         * modules/fopen-tests (Files): Add test-fopen.h.
42967         * modules/fopen-safer-tests: New file.
42968         Suggested by Bruno Haible.
42969
42970 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42971
42972         popen-safer: test O_CLOEXEC at run-time.
42973         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42974
42975 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42976
42977         fcntl: move more flags to the header
42978         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42979         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42980         * lib/fcntl.in.h: Do both things here.
42981
42982 2009-08-21  Jim Meyering  <meyering@redhat.com>
42983
42984         consistently remove $@-t before redirecting to it
42985         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42986         * modules/alloca-opt: Likewise.
42987         * modules/byteswap: Likewise.
42988         * modules/fnmatch: Likewise.
42989         * modules/getopt-posix: Likewise.
42990         * modules/glob: Likewise.
42991         * modules/poll: Likewise.
42992         * modules/posix_spawnp-tests: Likewise.
42993         * modules/sys_socket: Likewise.
42994         * modules/sysexits: Likewise.
42995
42996 2009-08-21  Eric Blake  <ebb9@byu.net>
42997
42998         popen: simplify access to original popen
42999         * lib/popen.c (rpl_popen): No need to worry about popen being a
43000         macro.
43001         Reported by Bruno Haible.
43002
43003 2009-08-20  Eric Blake  <ebb9@byu.net>
43004
43005         build: avoid some compiler warnings
43006         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43007         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43008         type.
43009         (new_exclude_segment, excluded_file_pattern_p)
43010         (excluded_file_name_p): Reduce scope.
43011         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43012         old-style declaration.
43013
43014 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43015
43016         * tests/test-exclude1.sh: Handle Windows EOL.
43017         * tests/test-exclude2.sh: Likewise.
43018         * tests/test-exclude3.sh: Likewise.
43019         * tests/test-exclude4.sh: Likewise.
43020         * tests/test-exclude5.sh: Likewise.
43021         * tests/test-exclude6.sh: Likewise.
43022         * tests/test-exclude7.sh: Likewise.
43023
43024 2009-08-19  Akim Demaille  <demaille@gostai.com>
43025
43026         bootstrap: find sha1sum when named gsha1sum.
43027         * bootstrap (find_tool): New.
43028         ($SHA1SUM): New.
43029         Use it.
43030
43031 2009-08-20  Jim Meyering  <meyering@redhat.com>
43032
43033         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43034         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43035         expression that converts "." in a file name to "\." in the resulting
43036         regexp.  Start with a dummy statement, so that prior shell variable
43037         definitions are expanded portably.  Reported by Simon Josefsson.
43038
43039 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43040
43041         Fix polling for writeability of a screen buffer.
43042         * lib/poll.c: Distinguish input and screen buffers for the
43043         Win32 implementation.
43044         * lib/select.c: Likewise.
43045
43046 2009-08-19  Eric Blake  <ebb9@byu.net>
43047
43048         popen-safer: prevent popen from clobbering std descriptors
43049         * modules/popen-safer: New file.
43050         * lib/popen-safer.c: Likewise.
43051         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43052         * lib/stdio--.h (popen): Provide override.
43053         * lib/stdio-safer.h (popen_safer): Provide declaration.
43054         * tests/test-popen.c (includes): Partially test this.
43055         * modules/popen-safer-tests: New file, for more tests.
43056         * tests/test-popen-safer.c: Likewise.
43057         * MODULES.html.sh (file stream based Input/Output): Mention it.
43058
43059         tests: test some of the *-safer modules
43060         * modules/fopen-safer (Depends-on): Add fopen.
43061         * modules/fcntl-safer (Depends-on): Add fcntl.
43062         * modules/stdlib-safer (Depends-on): Add stdlib.
43063         (configure.ac): Set indicator.
43064         * modules/unistd-safer (configure.ac): Likewise.
43065         * modules/tmpfile-safer (configure.ac): Likewise.
43066         (Depends-on): Add tmpfile.
43067         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43068         active.
43069         * tests/test-fopen.c (includes): Test safer versions when they are
43070         in use.
43071         * tests/test-open.c (includes): Likewise.
43072
43073         popen: fix cygwin 1.5 bug when stdin closed
43074         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43075         * modules/popen: New file.
43076         * modules/popen-tests: Likewise.
43077         * tests/test-popen.c: Likewise.
43078         * m4/popen.m4: Likewise.
43079         * lib/popen.c: Likewise.
43080         * lib/stdio.in.h (popen): New declaration.
43081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43082         * modules/stdio (Makefile.am): Likewise.
43083         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43084
43085 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43086
43087         maint.mk: give full control over update-copyright exclusions
43088         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43089         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43090         (update-copyright): Don't force inclusion of top-level
43091         ChangeLog.  Don't force exclusion of all COPYING files, but make
43092         them the default exclusion instead.
43093
43094 2009-08-16  Bruno Haible  <bruno@clisp.org>
43095
43096         Fix test failures on Solaris 10.
43097         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43098         tests when Solaris iconv() is used.
43099         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43100         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43101         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43102         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43103         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43104
43105 2009-08-16  Bruno Haible  <bruno@clisp.org>
43106
43107         Fix test failures on Solaris 10.
43108         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43109         'tr' program and pass it as first argument.
43110         * tests/test-pipe-filter-gi1.sh: Likewise.
43111         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43112         program as first argument.
43113         * tests/test-pipe-filter-gi1.c (main): Likewise.
43114
43115 2009-08-16  Eric Blake  <ebb9@byu.net>
43116
43117         fpurge: fix previous commits
43118         * modules/fpurge (Makefile.am): Make replacement conditional,
43119         partially reverting 2007-04-29 change; missed in previous
43120         attempt.
43121         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43122         is missing.
43123
43124 2009-08-16  Bruno Haible  <bruno@clisp.org>
43125
43126         Clarify fpurge's effect on the file position.
43127         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43128         * tests/test-fpurge.c (main): Make a second pass for checking the file
43129         position.
43130
43131 2009-08-16  Bruno Haible  <bruno@clisp.org>
43132
43133         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43134         declaration of fpurge is missing.
43135         * tests/test-fpurge.c (main): Check that the file has not more contents
43136         than expected. Close the file before removing it.
43137
43138 2009-08-15  Eric Blake  <ebb9@byu.net>
43139
43140         fpurge: don't wrap working cygwin implementation
43141         * lib/fpurge.c (fpurge): Fix comment typo.
43142         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43143         1.7 to avoid replacement.
43144         * tests/test-fpurge.c (main): Enhance test.
43145
43146 2009-08-15  Eric Blake  <ebb9@byu.net>
43147         and Jim Meyering  <meyering@redhat.com>
43148
43149         test-update-copyright: skip if perl is insufficient
43150         * tests/test-update-copyright.sh: Failure to run maintainer tool
43151         should not cause testsuite failure on cygwin 1.5.
43152
43153 2009-08-14  Eric Blake  <ebb9@byu.net>
43154
43155         doc: mention more functions added in cygwin 1.7.0
43156         * doc/posix-headers/limits.texi (limits.h): Update for recent
43157         cygwin additions.
43158         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43159         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43160         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43161         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43162         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43163
43164 2009-08-14  Eric Blake  <ebb9@byu.net>
43165
43166         maint.mk: simplify update-copyright rule
43167         * top/maint.mk (update-copyright-local): Delete, and document how
43168         to do it in cfg.mk instead.
43169         (update-copyright-exclude-regexp): Delete, and document how to do
43170         it in .x-update-copyright instead.
43171         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43172         exclude ChangeLog.
43173
43174 2009-08-14  Bruno Haible  <bruno@clisp.org>
43175
43176         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43177
43178 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43179
43180         maint.mk: support update-copyright-env
43181         * top/maint.mk (update-copyright-env): Define place-holder.
43182         (update-copyright): Expand $(update-copyright-env) before
43183         invoking update-copyright.
43184
43185 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43186
43187         update-copyright: implement forced reformatting
43188         * build-aux/update-copyright: Implement and document
43189         UPDATE_COPYRIGHT_FORCE.
43190         * tests/test-update-copyright.sh: Test it.
43191
43192 2009-08-14  Eric Blake  <ebb9@byu.net>
43193         and Bruno Haible  <bruno@clisp.org>
43194
43195         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43196         * tests/test-locale.c: Revert previous patch related to NULL.
43197         * tests/test-stdio.c: Likewise.
43198         * tests/test-stdlib.c: Likewise.
43199         * tests/test-string.c: Likewise.
43200         * tests/test-unistd.c: Likewise.
43201         * modules/time-tests (Depends-on): Add verify.
43202         * modules/wchar-tests (Depends-on): Likewise.
43203         * tests/test-time.c: Test for NULL compliance.
43204         * tests/test-wchar.c: Likewise.
43205         * modules/locale (Depends-on): Add stddef.
43206         * modules/stdio (Depends-on): Likewise.
43207         * modules/stdlib (Depends-on): Likewise.
43208         * modules/string (Depends-on): Likewise.
43209         * modules/time (Depends-on): Likewise.
43210         * modules/unistd (Depends-on): Likewise.
43211         * modules/wchar (Depends-on): Likewise.
43212         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43213         * lib/stdlib.in.h (includes): Likewise.
43214         * lib/string.in.h (includes): Likewise.
43215         * lib/time.in.h (includes): Likewise.
43216         * lib/unistd.in.h (includes): Likewise.
43217         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43218         replaced.
43219         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43220         * m4/stddef_h.m4: New file.
43221         * modules/stddef: Likewise.
43222         * lib/stddef.in.h: Likewise.
43223         * modules/stddef-tests: Likewise.
43224         * tests/test-stddef.c: Likewise.
43225         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43226         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43227         * doc/posix-headers/locale.texi (locale.h): Likewise.
43228         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43229         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43230         * doc/posix-headers/string.texi (string.h): Likewise.
43231         * doc/posix-headers/time.texi (time.h): Likewise.
43232         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43233         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43234
43235 2009-08-14  Eric Blake  <ebb9@byu.net>
43236
43237         doc: improve git diff of texinfo files
43238         * .gitattributes: Add rule for *.texi files, with hint on how to
43239         use it.
43240         Copied from m4, and based on a report by Bruno Haible.
43241
43242 2009-08-14  Bruno Haible  <bruno@clisp.org>
43243
43244         Disable multithread support by default on Cygwin 1.5.x for real.
43245         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43246
43247 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43248
43249         update-copyright: much ado about intervals
43250         * build-aux/update-copyright: Implement and document
43251         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43252         of copyright year intervals.
43253         Also, document UPDATE_COPYRIGHT_YEAR.
43254         * tests/test-update-copyright.sh: Test it.
43255
43256         update-copyright: convert 2-digit to 4-digit years
43257         * build-aux/update-copyright: Implement and document.
43258         * tests/test-update-copyright.sh: Update.
43259
43260 2009-08-14  Jim Meyering  <meyering@redhat.com>
43261
43262         test-exclude: avoid coreutils "make check" failure
43263         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43264         just as in test-argmatch.c.
43265
43266 2009-08-13  Eric Blake  <ebb9@byu.net>
43267
43268         test-dup2: fix bad assumption
43269         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43270         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43271
43272         test-version-etc: fix CRLF portability issue
43273         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43274         recognize \r.
43275         * tests/test-argp-version-etc-1.sh: Likewise.
43276
43277         getopt: update client modules
43278         * modules/argp (Depends-on): Use getopt-gnu.
43279         * modules/git-merge-changelog (Depends-on): Likewise.
43280         * modules/long-options (Depends-on): Likewise.
43281         * modules/xstrtol (Depends-on): Likewise.
43282
43283 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43284
43285         * tests/test-version-etc.sh: Don't fail on different
43286         project/version.  Don't fail on CRLF differences.  Rewrite to use
43287         multiple -e instead of multiple sed forks, suggested by Eric Blake
43288         <ebb9@byu.net>.
43289         * tests/test-argp-version-etc-1.sh: Likewise.
43290
43291 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43292
43293         * tests/test-version-etc.sh: Don't fail on different
43294         project/version.
43295
43296 2009-08-12  Bruno Haible  <bruno@clisp.org>
43297
43298         Tests for modules 'getopt-posix', 'getopt-gnu'.
43299         * modules/getopt-posix-tests: New file.
43300         * tests/test-getopt.c: New file.
43301         * tests/test-getopt.h: New file.
43302         * tests/test-getopt_long.h: New file.
43303
43304         New modules 'getopt-posix', 'getopt-gnu'.
43305         * modules/getopt-gnu: New file, renamed from modules/getopt.
43306         * modules/getopt-posix: New file.
43307         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43308         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43309         (gl_GETOPT): Remove macro.
43310         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43311         Disable the test against BSD systems that declare optreset. Test
43312         against mingw bug. Test against lack of support of optional arguments
43313         on many platforms.
43314         * doc/glibc-headers/getopt.texi: Update module name and list of
43315         relevant platforms.
43316         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43317         'getopt-gnu' and more portability problems.
43318         * NEWS: Mention the changes.
43319
43320 2009-08-12  Bruno Haible  <bruno@clisp.org>
43321
43322         Ensure that optarg etc. get declared by <unistd.h>.
43323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43324         AC_USE_SYSTEM_EXTENSIONS.
43325         * modules/getopt (Depends-on): Add 'extensions'.
43326
43327 2009-08-12  Bruno Haible  <bruno@clisp.org>
43328
43329         Avoid test link errors.
43330         * modules/pipe-filter-ii-tests (Makefile.am): Define
43331         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43332         * modules/pipe-filter-gi-tests (Makefile.am): Define
43333         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43335
43336 2009-08-12  Bruno Haible  <bruno@clisp.org>
43337
43338         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43339         gl_GETOPT_SUBSTITUTE before.
43340         (gl_GETOPT): Use it.
43341         * m4/argp.m4 (gl_ARGP): Update.
43342         Reported by Sergey Poznyakoff.
43343
43344         * m4/getopt.m4: Reorder macros.
43345         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43346         (gl_GETOPT_SUBSTITUTE): Remove macro.
43347
43348 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43349
43350         Minor improvement in gitlog-to-changelog
43351
43352         * build-aux/gitlog-to-changelog: New option `--format' makes
43353         output format string configurable.
43354
43355 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43356
43357         Optimize exclude: use hash tables for non-wildcard patterns.
43358
43359         * lib/exclude.c: Include hash.h and mbuiter.h
43360         (struct exclude_pattern, exclude_segment): New data types.
43361         (struct exclude): Rewrite.
43362         (fnmatch_pattern_has_wildcards): New function.
43363         (new_exclude_segment, free_exclude_segment): New functions.
43364         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43365         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43366         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43367         * modules/exclude: Depend on hash and mbuiter.
43368
43369         * modules/exclude-tests: New file.
43370         * tests/test-exclude.c: New file.
43371         * tests/test-exclude1.sh: New file.
43372         * tests/test-exclude2.sh: New file.
43373         * tests/test-exclude3.sh: New file.
43374         * tests/test-exclude4.sh: New file.
43375         * tests/test-exclude5.sh: New file.
43376         * tests/test-exclude6.sh: New file.
43377         * tests/test-exclude7.sh: New file.
43378
43379 2009-08-12  Bruno Haible  <bruno@clisp.org>
43380
43381         Ensure that getopt() gets declared by <unistd.h>.
43382         * lib/unistd.in.h: Conditionally include getopt.h.
43383         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43384         Set GNULIB_UNISTD_H_GETOPT.
43385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43386         GNULIB_UNISTD_H_GETOPT.
43387         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43388
43389 2009-08-12  Bruno Haible  <bruno@clisp.org>
43390
43391         Clarify logic.
43392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43393         gl_replace_getopt instead of GETOPT_H.
43394
43395 2009-08-12  Bruno Haible  <bruno@clisp.org>
43396
43397         * m4/getopt.m4: Add comments.
43398
43399 2009-08-12  Bruno Haible  <bruno@clisp.org>
43400
43401         Disable multithread support by default on Cygwin 1.5.x.
43402         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43403         set gl_use_threads=no if not specified otherwise.
43404
43405 2009-08-11  Bruno Haible  <bruno@clisp.org>
43406
43407         Avoid compilation error on NetBSD 5.0.
43408         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43409         * tests/test-stdio.c: Likewise.
43410         * tests/test-stdlib.c: Likewise.
43411         * tests/test-string.c: Likewise.
43412         * tests/test-unistd.c: Likewise.
43413         Reported by Greg Troxel <gdt@ir.bbn.com>
43414         at <https://savannah.gnu.org/support/?106973>.
43415
43416 2009-08-11  Bruno Haible  <bruno@clisp.org>
43417
43418         * modules/dup2-tests (Depends-on): Remove close.
43419
43420         Undo 2009-07-19 commit.
43421         * modules/acl-tests (Depends-on): Remove close.
43422         * modules/binary-io-tests (Depends-on): Likewise.
43423         * modules/closein-tests (Depends-on): Likewise.
43424         * modules/flock-tests (Depends-on): Likewise.
43425         * modules/fsync-tests (Depends-on): Likewise.
43426         * modules/lseek-tests (Depends-on): Likewise.
43427         * modules/pipe-tests (Depends-on): Likewise.
43428         * modules/posix_spawn-tests (Depends-on): Likewise.
43429         * modules/posix_spawnp-tests (Depends-on): Likewise.
43430         * modules/stat-time-tests (Depends-on): Likewise.
43431         * modules/yesno-tests (Depends-on): Likewise.
43432
43433 2009-08-10  Bruno Haible  <bruno@clisp.org>
43434
43435         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43436
43437 2009-08-10  Bruno Haible  <bruno@clisp.org>
43438
43439         Fix a gcc warning.
43440         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43441
43442 2009-08-10  Bruno Haible  <bruno@clisp.org>
43443
43444         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43445         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43446         not only the first time.
43447         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43448         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43449         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43450         is 1, not only the the first time.
43451
43452 2009-08-10  Bruno Haible  <bruno@clisp.org>
43453
43454         Make it possible to use module 'gethostname' without module 'close'.
43455         * lib/unistd.in.h (close): Evoke a link error only if
43456         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43458         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43459         * modules/unistd (Makefile.am): Substitute
43460         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43461         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43462         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43463         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43464         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43465         * modules/sys_ioctl (Makefile.am): Substitute
43466         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43467         * modules/socket (configure.ac): On native Windows, set
43468         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43469         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43470         Reported by Sam Steingold <sds@gnu.org>.
43471
43472 2009-08-10  Bruno Haible  <bruno@clisp.org>
43473
43474         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43475         * modules/ioctl (configure.ac): Likewise.
43476
43477 2009-08-10  Bruno Haible  <bruno@clisp.org>
43478
43479         Avoid collision between gnulib wrapper and libintl wrapper.
43480         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43481         already defined in intl/printf.c.
43482         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43483         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43484
43485 2009-08-09  Bruno Haible  <bruno@clisp.org>
43486
43487         Make <sys/select.h> really self-contained, also on Solaris 10.
43488         * lib/sys_select.in.h: Include <string.h>.
43489         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43490         Solaris 10 problem.
43491         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43492         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43493         Reported by Jim Meyering.
43494
43495 2009-08-09  Bruno Haible  <bruno@clisp.org>
43496
43497         Avoid warnings from 'aclocal' that are due to a use of macro name
43498         AM_XGETTEXT_OPTION that is not defined in automake.
43499         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43500         automake.
43501         * modules/error (configure.ac): Likewise.
43502         * modules/propername (configure.ac): Likewise.
43503         * modules/vasprintf (configure.ac): Likewise.
43504         * modules/verror (configure.ac): Likewise.
43505         * modules/xprintf (configure.ac): Likewise.
43506         * modules/xvasprintf (configure.ac): Likewise.
43507
43508 2009-08-08  Bruno Haible  <bruno@clisp.org>
43509
43510         Avoid compilation error in C++ mode.
43511         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43512         Reported by Sam Steingold <sds@gnu.org>.
43513
43514 2009-08-08  Bruno Haible  <bruno@clisp.org>
43515
43516         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43517         for the various Unix platforms.
43518         * doc/posix-headers/limits.texi: Update platforms list regarding
43519         HOST_NAME_MAX.
43520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43521
43522 2009-08-07  Jim Meyering  <meyering@redhat.com>
43523
43524         selinux-at: fix typo in a comment
43525         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43526         Spotted by Paolo Bonzini.
43527
43528         selinux-at: remove redundant m4 code, add documentation
43529         * modules/selinux-at (configure.ac): Remove redundant code.
43530         LIB_SELINUX is already set via the dependent module, selinux-h.
43531         (Include): Add quotes around selinux-at.h.
43532         * lib/selinux-at.h: Add documentation.
43533         Reported by Bruno Haible in
43534         http://marc.info/?l=gnulib-bug&m=124958988300749
43535
43536 2009-08-07  Bruno Haible  <bruno@clisp.org>
43537
43538         Avoid link error on MacOS X 10.3 and 10.4.
43539         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43540         on non-ELF systems.
43541         * lib/argp-pv.c (argp_program_version): Likewise.
43542         Reported by Simon Josefsson.
43543
43544 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43545
43546         * tests/test-version-etc.sh: Use $EXEEXT.
43547
43548 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43549
43550         update-copyright: update documentation to point to maint.mk
43551         * build-aux/update-copyright: Here.
43552
43553 2009-08-06  Jim Meyering  <meyering@redhat.com>
43554
43555         maint.mk: support update-copyright-local
43556         * top/maint.mk (update-copyright-local): Define place-holder.
43557         (update-copyright): Depend on $(update-copyright-local).
43558
43559 2009-08-06  Jim Meyering  <meyering@redhat.com>
43560
43561         selinux-at: new module
43562         Initially written for coreutils, this module will soon be
43563         used by findutils, too.
43564         * MODULES.html.sh [Misc]: Add selinux-at.
43565         * lib/selinux-at.h: New file, from coreutils.
43566         * lib/selinux-at.c: Likewise.
43567         * modules/selinux-at: Likewise.
43568         (License): Change from LGPL to GPL, since it depends
43569         on the GPL'd openat module.
43570
43571         doc: update README
43572         * README: Remove references to cogito.
43573         Remove cvs-repo-updating instructions from 2007.
43574         Don't imply that CVS is better if you have limited disk space.
43575
43576 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43577
43578         update-copyright: support C-style comments
43579         * build-aux/update-copyright: Implement and document.
43580         * tests/test-update-copyright.sh: Test.
43581
43582 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43583
43584         update-copyright: support omitted "(C)"
43585         * build-aux/update-copyright: Implement and document.  Also,
43586         allow variable whitespace before "(C)".
43587         * tests/test-update-copyright.sh: Test.
43588
43589 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43590
43591         update-copyright: don't trip on non-FSF copyright statements
43592         * build-aux/update-copyright: Fix so that the first correctly
43593         formatted FSF copyright statement is recognized no matter what
43594         appears before it.  Update documentation.
43595         * tests/test-update-copyright.sh: Test that.
43596
43597 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43598
43599         update-copyright: clean up code a little
43600         * build-aux/update-copyright: Append "_re" to the name of any
43601         variable holding a regular expression.
43602         Replace "old" and "new" with "stmt" in variable names.
43603         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43604         handled correctly.
43605         Format code more consistently.
43606
43607 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43608
43609         update-copyright-tests: improve portability
43610         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43611         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43612
43613 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43614
43615         update-copyright: support @copyright{} and &copy;
43616         * build-aux/update-copyright: Implement and document.
43617         * tests/test-update-copyright.sh: Test.
43618
43619 2009-08-04  Jim Meyering  <meyering@redhat.com>
43620
43621         update-copyright-tests: correctly test EOL=\r\n handling
43622         * tests/test-update-copyright.sh: Put \r at the end of some lines
43623         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43624
43625         maint.mk: make update-copyright exclusion list more configurable
43626         * top/maint.mk (update-copyright): Default to excluding COPYING,
43627         but allow an override, in case someone does want to update that file.
43628
43629         maint.mk: don't update copyright date in COPYING
43630         * top/maint.mk (update-copyright): Exclude COPYING.
43631
43632         maint.mk: add a copyright-updating rule
43633         * top/maint.mk (update-copyright): New rule.
43634         Derived from coreutils/Makefile.am.
43635
43636         update-copyright: rename some variables
43637         * build-aux/update-copyright: Rename a few variables for clarity.
43638         Tweak syntax.  List Joel E. Denny as coauthor.
43639
43640 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43641
43642         update-copyright: fix bug for 2-digit last year and add tests
43643         * build-aux/update-copyright: Fix bug.
43644         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43645         specified.
43646         * modules/update-copyright-tests: New
43647         * tests/test-update-copyright.sh: New.
43648
43649 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43650
43651         update-copyright: handle leading tabs in line prefix
43652         * build-aux/update-copyright: Count leading tabs as 8 spaces
43653         when computing margin.  This helps with the formatting of
43654         ChangeLogs, for example.
43655         Fix documentation a little.
43656
43657 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43658
43659         update-copyright: support EOL=\r\n
43660         * build-aux/update-copyright: Implement that.
43661
43662 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43663
43664         update-copyright: automatically format copyright statements
43665         * build-aux/update-copyright: Implement that.
43666         Also, be a little more predictable and safer by always failing
43667         when the full copyright format is not perfectly recognized as an
43668         unbroken whole.  Discussed at
43669         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43670         Rewrite documentation.
43671
43672 2009-08-03  Bruno Haible  <bruno@clisp.org>
43673
43674         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43675
43676 2009-08-02  Bruno Haible  <bruno@clisp.org>
43677
43678         Tests for module 'uname'.
43679         * modules/uname-tests: New file.
43680         * tests/test-uname.c: New file.
43681
43682         New module 'uname'.
43683         * lib/uname.c: New file.
43684         * m4/uname.m4: New file.
43685         * modules/uname: New file.
43686         * doc/posix-functions/uname.texi: Mention the new module.
43687
43688 2009-08-02  Bruno Haible  <bruno@clisp.org>
43689
43690         Tests for module 'sys_utsname'.
43691         * modules/sys_utsname-tests: New file.
43692         * tests/test-sys_utsname.c: New file.
43693
43694         New module 'sys_utsname'.
43695         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43696         * m4/sys_utsname_h.m4: New file.
43697         * modules/sys_utsname: New file.
43698         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43699
43700 2009-08-02  Bruno Haible  <bruno@clisp.org>
43701
43702         Implicitly initialize the sockets library.
43703         * lib/gethostname.c: Include sockets.h.
43704         (rpl_gethostname): Invoke gl_sockets_startup.
43705         * lib/socket.c: Include sockets.h.
43706         (rpl_socket): Invoke gl_sockets_startup.
43707         * modules/gethostname (Depends-on): Add sockets.
43708         * modules/socket (Depends-on): Likewise.
43709         * tests/test-poll.c: Don't include sockets.h.
43710         (main): Don't invoke gl_sockets_startup.
43711         * tests/test-select.c: Don't include sockets.h.
43712         (main): Don't invoke gl_sockets_startup.
43713
43714 2009-08-02  Bruno Haible  <bruno@clisp.org>
43715
43716         Allow multiple calls to gl_sockets_startup.
43717         * lib/sockets.c (initialized_sockets_version): New variable.
43718         (gl_sockets_startup): Do nothing if already called for this or a higher
43719         version.
43720         (gl_sockets_cleanup): Reset initialized_sockets_version.
43721
43722 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43723
43724         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43725         different project/version.
43726
43727 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43728             Bruno Haible  <bruno@clisp.org>
43729
43730         Tests for module 'pipe-filter-gi'.
43731         * modules/pipe-filter-gi-tests: New file.
43732         * tests/test-pipe-filter-gi1.sh: New file.
43733         * tests/test-pipe-filter-gi1.c: New file.
43734         * tests/test-pipe-filter-gi2.sh: New file.
43735         * tests/test-pipe-filter-gi2-main.c: New file.
43736         * tests/test-pipe-filter-gi2-child.c: New file.
43737
43738         New module 'pipe-filter-gi'.
43739         * lib/pipe-filter-gi.c: New file.
43740         * modules/pipe-filter-gi: New file.
43741
43742 2009-08-02  Bruno Haible  <bruno@clisp.org>
43743             Paolo Bonzini  <bonzini@gnu.org>
43744
43745         Tests for module 'pipe-filter-ii'.
43746         * modules/pipe-filter-ii-tests: New file.
43747         * tests/test-pipe-filter-ii1.sh: New file.
43748         * tests/test-pipe-filter-ii1.c: New file.
43749         * tests/test-pipe-filter-ii2.sh: New file.
43750         * tests/test-pipe-filter-ii2-main.c: New file.
43751         * tests/test-pipe-filter-ii2-child.c: New file.
43752
43753         New module 'pipe-filter-ii'.
43754         * lib/pipe-filter.h: New file.
43755         * lib/pipe-filter-ii.c: New file.
43756         * lib/pipe-filter-aux.h: New file.
43757         * modules/pipe-filter-ii: New file.
43758
43759 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43760
43761         * lib/gc-libgcrypt.c: Change copyright to FSF.
43762         * lib/gc-gnulib.c: Likewise.
43763
43764 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43765
43766         * lib/gethostname.c: Include limits.h.
43767
43768 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43769             Bruno Haible  <bruno@clisp.org>
43770
43771         Ensure HOST_NAME_MAX as part of the gethostname module.
43772         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43773         define also HOST_NAME_MAX.
43774         * tests/test-gethostname.c: Include <limits.h>.
43775         (main): Check also HOST_NAME_MAX.
43776         * doc/posix-headers/limits.texi: Document the mingw problem.
43777
43778 2009-08-02  Bruno Haible  <bruno@clisp.org>
43779
43780         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43781         Add comments.
43782
43783 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43784
43785         * lib/gethostname.c: Add Windows wrapper.
43786         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43787         * modules/gethostname: Depend on sys_socket & errno, for also
43788         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43789         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43790
43791 2009-07-31  Jim Meyering  <meyering@redhat.com>
43792
43793         getloadavg: fix symbol name in comment
43794         * lib/getloadavg.c: Correct a typo I introduced when adding
43795         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43796         Matt Kraai spotted the problem.
43797
43798 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43799
43800         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43801         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43802         code also if ! defined N_NAME_POINTER.
43803         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43804         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43805         but the n_name member is a 12-byte array.
43806
43807 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43808
43809         update-copyright: generalize comment handling
43810         * build-aux/update-copyright: Handle copyright statements
43811         within more comment styles.
43812         Document usage.
43813         Report any file with an external copyright holder or parse failure.
43814
43815 2009-07-29  Jim Meyering  <meyering@redhat.com>
43816
43817         mktime: correct setting of REPLACE_MKTIME
43818         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43819
43820         update-copyright: new module
43821         * modules/update-copyright: New file.
43822         * build-aux/update-copyright: New file.
43823         * MODULES.html.sh (maint+release support): Add update-copyright.
43824
43825 2009-07-27  Bruno Haible  <bruno@clisp.org>
43826
43827         Fix compilation error when <ctime> is used and mktime is replaced.
43828         * lib/time.in.h (mktime): New declaration.
43829         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43830         REPLACE_MKTIME instead of defining mktime in config.h.
43831         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43832         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43833         Reported by Ross McFarland <rwmcfa1@neces.com>.
43834
43835 2009-07-27  Bruno Haible  <bruno@clisp.org>
43836
43837         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43838         Reported by Matt Kraai <mkraai@beckman.com>.
43839
43840 2009-07-25  Jim Meyering  <meyering@redhat.com>
43841
43842         maint.mk: avoid warnings about missing files
43843         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43844         diagnostic when .prev-version does not exist.
43845         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43846         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43847         nonexistent cfg.mk.
43848         Suggestions from Simon Josefsson.
43849
43850 2009-07-25  Bruno Haible  <bruno@clisp.org>
43851
43852         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43853         defined as macros. Needed on QNX 6.4.1.
43854         Reported by Matt Kraai <mkraai@beckman.com>.
43855
43856 2009-07-23  Jim Meyering  <meyering@redhat.com>
43857
43858         maint.mk: invoke "make dist" with a working value of XZ_OPT
43859         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43860
43861 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43862
43863         Make fseeko.c compile on QNX.
43864         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43865
43866 2009-07-22  Peter Simons  <simons@cryp.to>
43867
43868         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43869         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43870         * lib/md4.h: Likewise.
43871         * lib/md5.h: Likewise.
43872         * lib/sha1.h: Likewise.
43873         * lib/sha256.h: Likewise.
43874         * lib/sha512.h: Likewise.
43875
43876         tests-sha1: don't assign literal string to 'char *' variable
43877         * tests/test-sha1.c (main): Declare locals with "const" to match
43878         attributes of the right hand side.
43879
43880 2009-07-21  Eric Blake  <ebb9@byu.net>
43881
43882         dup2: fix more mingw problems
43883         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43884         fd to itself.
43885         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43886         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43887         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43888         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43889         care of mingw bugs.
43890
43891 2009-07-21  Jim Meyering  <meyering@redhat.com>
43892
43893         vc-list-files: avoid failure when /bin/sh is dash
43894         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43895         On some Debian based systems, /bin/sh is a symlink to dash, and running
43896         this command would omit the "/" following each 'tests' prefix:
43897           dash -x build-aux/vc-list-files -C . tests
43898         That is because bash and dash work differently:
43899           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43900           bash ok
43901           dash odd
43902
43903 2009-07-21  Eric Blake  <ebb9@byu.net>
43904
43905         dup2-tests: test previous patch
43906         * modules/dup2-tests: New file.
43907         * tests/test-dup2.c: Likewise.
43908         * tests/test-open.c (main): Avoid unspecified behavior.
43909         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43910         test.
43911
43912         dup2: work around mingw and cygwin 1.5 bug
43913         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43915         * modules/unistd (Makefile.am): Substitute it.
43916         * lib/unistd.in.h (dup2): Declare the replacement.
43917         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43918         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43919         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43920         * modules/execute (Depends-on): Add dup2.
43921         * modules/fseterr (Depends-on): Likewise.
43922         * modules/pipe (Depends-on): Likewise.
43923         * modules/posix_spawn-internal (Depends-on): Likewise.
43924
43925 2009-07-21  Bruno Haible  <bruno@clisp.org>
43926
43927         * modules/.gitattributes: New file.
43928
43929 2009-07-20  Bruno Haible  <bruno@clisp.org>
43930
43931         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43932         (main): Use it.
43933
43934 2009-07-20  Eric Blake  <ebb9@byu.net>
43935
43936         test-pipe: make a bit more robust.
43937         * tests/test-pipe.c (myerr): Allow error messages regardless of
43938         what we do to stderr.
43939         (test_pipe): Rearrange to avoid deadlock.
43940         (child_main): Try a larger read, to ensure we avoided deadlock.
43941         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43942         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43943         if misused.
43944
43945 2009-07-19  Jim Meyering  <meyering@redhat.com>
43946
43947         fts: avoid false-positive cycle-detection
43948         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43949         for each new command line argument.
43950
43951 2009-07-19  Bruno Haible  <bruno@clisp.org>
43952
43953         Fix build error on mingw with the modules sys_select and unistd.
43954         * modules/acl-tests (Depends-on): Add close.
43955         * modules/binary-io-tests (Depends-on): Likewise.
43956         * modules/closein-tests (Depends-on): Likewise.
43957         * modules/flock-tests (Depends-on): Likewise.
43958         * modules/fsync-tests (Depends-on): Likewise.
43959         * modules/lseek-tests (Depends-on): Likewise.
43960         * modules/pipe-tests (Depends-on): Likewise.
43961         * modules/posix_spawn-tests (Depends-on): Likewise.
43962         * modules/posix_spawnp-tests (Depends-on): Likewise.
43963         * modules/stat-time-tests (Depends-on): Likewise.
43964         * modules/yesno-tests (Depends-on): Likewise.
43965
43966 2009-07-19  Bruno Haible  <bruno@clisp.org>
43967
43968         Unify conditionals.
43969         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43970         macros, not at the compiler macros.
43971         * lib/pipe.c: Likewise.
43972         * lib/execute.c: Likewise.
43973         * lib/spawni.c: Likewise.
43974
43975 2009-07-19  Bruno Haible  <bruno@clisp.org>
43976
43977         Fix handling of closed stdin/stdout/stderr on mingw.
43978         * lib/w32spawn.h: Include unistd.h.
43979         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43980         file descriptor with O_NOINHERIT flag.
43981         (fd_safer_noinherit): New function, based on fd-safer.c.
43982         (dup_safer_noinherit): New function, based on dup-safer.c.
43983         (undup_safer_noinherit): New function.
43984         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43985         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43986         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43987         instead of fd_safer.
43988         * tests/test-pipe.c: Include <windows.h>.
43989         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43990         result.
43991
43992         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43993         from main.
43994         (test_pipe): Pass an extra argument for disambiguation.
43995         (main): Invoke parent_main or child_main.
43996
43997         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43998         consistently.
43999
44000 2009-07-18  Eric Blake  <ebb9@byu.net>
44001
44002         test-pipe: fix mingw build
44003         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44004
44005 2009-07-18  Bruno Haible  <bruno@clisp.org>
44006
44007         * modules/pipe-tests (Makefile.am): Fix typo.
44008
44009 2009-07-18  Eric Blake  <ebb9@byu.net>
44010
44011         error: fix mingw build
44012         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44013         Reported by Bruno Haible.
44014
44015         error: avoid undefined use of stdout
44016         * lib/error.c (error, error_at_line): Check that fd 1 is open
44017         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44018         is handling faults and the close_stdout module wants to report the
44019         detection of closed stdout as an error.
44020
44021 2009-07-17  Eric Blake  <ebb9@byu.net>
44022
44023         pipe: be robust in face of closed fds
44024         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44025         should cause child to misbehave.
44026         * modules/pipe-tests: New module.
44027         * tests/test-pipe.c: New file.
44028         * tests/test-pipe.sh: New file.
44029         Reported by Akim Demaille.
44030
44031 2009-07-14  Bruno Haible  <bruno@clisp.org>
44032
44033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44034         Reported by anonymous kc.
44035
44036 2009-07-07  Jim Meyering  <meyering@redhat.com>
44037
44038         maint.mk: don't look for translatable strings in *.m4 or *.mk
44039         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44040         when searching for translatable strings.
44041
44042 2009-07-05  Jim Meyering  <meyering@redhat.com>
44043
44044         remove superfluous parentheses in STREQ definition
44045         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44046         * lib/getugroups.c (STREQ): Likewise.
44047         * lib/fnmatch.c (STREQ): Likewise.
44048         Spotted by Bruno Haible.
44049
44050 2009-07-04  Jim Meyering  <meyering@redhat.com>
44051
44052         argv-iter: new module
44053         * MODULES.html.sh: Add argv-iter.
44054         * lib/argv-iter.c, lib/argv-iter.h: New files.
44055         * modules/argv-iter: New file.
44056         * modules/argv-iter-tests: New file.
44057         * tests/test-argv-iter.c: Test it.
44058
44059 2009-07-04  Bruno Haible  <bruno@clisp.org>
44060
44061         Fix assertion.
44062         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44063         contains more exact copies of a given entry than file2, leave the extra
44064         copies unpaired rather than aborting.
44065         Reported by Eric Blake.
44066
44067 2009-07-02  Bruno Haible  <bruno@clisp.org>
44068
44069         Speedup git-merge-changelog for git cherry-pick.
44070         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44071         (entries_mapping_get): New function, extracted from compute_mapping.
44072         (entries_mapping_reverse_get): New function.
44073         (compute_mapping): Add a 'full' argument. Return the result in a
44074         'struct entries_mapping'.
44075         (main): Update. Access the mappings through entries_mapping_get.
44076         Reported by Eric Blake.
44077
44078 2009-07-02  Bruno Haible  <bruno@clisp.org>
44079
44080         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44081         best_i.
44082
44083 2009-07-02  Bruno Haible  <bruno@clisp.org>
44084
44085         Speed up approximate search for matching ChangeLog entries.
44086         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44087         argument. Call fstrcmp_bounded instead of fstrcmp.
44088         (compute_mapping, try_split_merged_entry, main): Update callers.
44089
44090 2009-07-02  Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44093
44094 2009-06-30  Bruno Haible  <bruno@clisp.org>
44095
44096         Reduce the number of uc_is_cased calls.
44097         * lib/unicase.h (casing_suffix_context_t): Add
44098         'first_char_except_ignorable' field.
44099         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44100         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44101         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44102         Update initializer.
44103         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44104         case-ignorable characters.
44105         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44106         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44107         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44108         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44109         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44110
44111 2009-06-30  Bruno Haible  <bruno@clisp.org>
44112
44113         Tests for module 'unicase/ignorable'.
44114         * modules/unicase/ignorable-tests: New file.
44115         * tests/unicase/test-ignorable.c: New file, generated by
44116         gen-uni-tables.
44117
44118         Tests for module 'unicase/cased'.
44119         * modules/unicase/cased-tests: New file.
44120         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44121         * tests/unicase/test-predicate-part1.h: New file, derived from
44122         tests/unictype/test-predicate-part1.h.
44123         * tests/unicase/test-predicate-part2.h: New file, same as
44124         tests/unictype/test-predicate-part2.h.
44125
44126         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44127         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44128         (output_casing_properties): New function.
44129         (main): Call it.
44130         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44131         * lib/unicase/cased.c: Include unictype/bitmap.h.
44132         (uc_is_cased): Define through a bitmap lookup.
44133         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44134         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44135         (uc_is_case_ignorable): Define through a bitmap lookup.
44136         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44137         lib/unictype/bitmap.h.
44138         (Depends-on): Add inline. Clean up.
44139         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44140         lib/unictype/bitmap.h.
44141         (Depends-on): Add inline. Clean up.
44142         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44143         recognition.
44144         * tests/unicase/test-u16-tolower.c (main): Likewise.
44145         * tests/unicase/test-u32-tolower.c (main): Likewise.
44146
44147 2009-06-30  Bruno Haible  <bruno@clisp.org>
44148
44149         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44150         * lib/unicase/u16-casemap.c: Likewise.
44151         * lib/unicase/u32-casemap.c: Likewise.
44152
44153 2009-06-29  Bruno Haible  <bruno@clisp.org>
44154
44155         Define u32_casefold as a wrapper around u32_ct_casefold.
44156         * lib/unicase/u32-casefold.c: Update.
44157         * modules/unicase/u32-casefold (Depends-on): Add
44158         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44159         unicase/empty-suffix-context. Clean up.
44160
44161         Define u16_casefold as a wrapper around u16_ct_casefold.
44162         * lib/unicase/u16-casefold.c: Update.
44163         * modules/unicase/u16-casefold (Depends-on): Add
44164         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44165         unicase/empty-suffix-context. Clean up.
44166
44167         Define u8_casefold as a wrapper around u8_ct_casefold.
44168         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44169         * lib/unicase/u8-casefold.c: Update.
44170         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44171         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44172
44173         Define u32_totitle as a wrapper around u32_ct_totitle.
44174         * lib/unicase/u32-totitle.c: Update.
44175         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44176         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44177
44178         Define u16_totitle as a wrapper around u16_ct_totitle.
44179         * lib/unicase/u16-totitle.c: Update.
44180         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44181         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44182
44183         Define u8_totitle as a wrapper around u8_ct_totitle.
44184         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44185         functions.
44186         (FUNC): Delegate to U_CT_TOTITLE.
44187         * lib/unicase/u8-totitle.c: Update.
44188         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44189         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44190
44191         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44192         invocation.
44193         * modules/unicase/u32-tolower (Depends-on): Add
44194         unicase/empty-prefix-context, unicase/empty-suffix-context.
44195
44196         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44197         invocation.
44198         * modules/unicase/u16-tolower (Depends-on): Add
44199         unicase/empty-prefix-context, unicase/empty-suffix-context.
44200
44201         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44202         * modules/unicase/u8-tolower (Depends-on): Add
44203         unicase/empty-prefix-context, unicase/empty-suffix-context.
44204
44205         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44206         invocation.
44207         * modules/unicase/u32-toupper (Depends-on): Add
44208         unicase/empty-prefix-context, unicase/empty-suffix-context.
44209
44210         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44211         invocation.
44212         * modules/unicase/u16-toupper (Depends-on): Add
44213         unicase/empty-prefix-context, unicase/empty-suffix-context.
44214
44215         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44216         * modules/unicase/u8-toupper (Depends-on): Add
44217         unicase/empty-prefix-context, unicase/empty-suffix-context.
44218
44219         New module 'unicase/u32-ct-casefold'.
44220         * lib/unicase/u32-ct-casefold.c: New file.
44221         * modules/unicase/u32-ct-casefold: New file.
44222
44223         New module 'unicase/u16-ct-casefold'.
44224         * lib/unicase/u16-ct-casefold.c: New file.
44225         * modules/unicase/u16-ct-casefold: New file.
44226
44227         New module 'unicase/u8-ct-casefold'.
44228         * lib/unicase/u8-ct-casefold.c: New file.
44229         * lib/unicase/u-ct-casefold.h: New file, derived from
44230         lib/unicase/u-casefold.h.
44231         * modules/unicase/u8-ct-casefold: New file.
44232
44233         New module 'unicase/u32-ct-totitle'.
44234         * lib/unicase/u32-ct-totitle.c: New file.
44235         * modules/unicase/u32-ct-totitle: New file.
44236
44237         New module 'unicase/u16-ct-totitle'.
44238         * lib/unicase/u16-ct-totitle.c: New file.
44239         * modules/unicase/u16-ct-totitle: New file.
44240
44241         New module 'unicase/u8-ct-totitle'.
44242         * lib/unicase/u8-ct-totitle.c: New file.
44243         * lib/unicase/u-ct-totitle.h: New file, derived from
44244         lib/unicase/u-totitle.h.
44245         * modules/unicase/u8-ct-totitle: New file.
44246
44247         New module 'unicase/u32-ct-tolower'.
44248         * lib/unicase/u32-ct-tolower.c: New file.
44249         * modules/unicase/u32-ct-tolower: New file.
44250
44251         New module 'unicase/u16-ct-tolower'.
44252         * lib/unicase/u16-ct-tolower.c: New file.
44253         * modules/unicase/u16-ct-tolower: New file.
44254
44255         New module 'unicase/u8-ct-tolower'.
44256         * lib/unicase/u8-ct-tolower.c: New file.
44257         * modules/unicase/u8-ct-tolower: New file.
44258
44259         New module 'unicase/u32-ct-toupper'.
44260         * lib/unicase/u32-ct-toupper.c: New file.
44261         * modules/unicase/u32-ct-toupper: New file.
44262
44263         New module 'unicase/u16-ct-toupper'.
44264         * lib/unicase/u16-ct-toupper.c: New file.
44265         * modules/unicase/u16-ct-toupper: New file.
44266
44267         New module 'unicase/u8-ct-toupper'.
44268         * lib/unicase/u8-ct-toupper.c: New file.
44269         * modules/unicase/u8-ct-toupper: New file.
44270
44271         Add context arguments to u*_casemap functions.
44272         * lib/unicase/unicasemap.h: Include unicase.h.
44273         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44274         suffix_context arguments.
44275         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44276         functions.
44277         (FUNC): Add prefix_context and suffix_context arguments. Use
44278         uc_is_cased and uc_is_case_ignorable.
44279         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44280         * lib/unicase/u16-casemap.c: Likewise.
44281         * lib/unicase/u32-casemap.c: Likewise.
44282         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44283         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44284         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44285         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44286         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44287         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44288
44289         New module 'unicase/u32-suffix-context'.
44290         * lib/unicase/u32-suffix-context.c: New file.
44291         * modules/unicase/u32-suffix-context: New file.
44292
44293         New module 'unicase/u16-suffix-context'.
44294         * lib/unicase/u16-suffix-context.c: New file.
44295         * modules/unicase/u16-suffix-context: New file.
44296
44297         New module 'unicase/u8-suffix-context'.
44298         * lib/unicase/u8-suffix-context.c: New file.
44299         * lib/unicase/u-suffix-context.h: New file.
44300         * modules/unicase/u8-suffix-context: New file.
44301
44302         New module 'unicase/empty-suffix-context'.
44303         * lib/unicase/empty-suffix-context.c: New file.
44304         * modules/unicase/empty-suffix-context: New file.
44305
44306         New module 'unicase/u32-prefix-context'.
44307         * lib/unicase/u32-prefix-context.c: New file.
44308         * modules/unicase/u32-prefix-context: New file.
44309
44310         New module 'unicase/u16-prefix-context'.
44311         * lib/unicase/u16-prefix-context.c: New file.
44312         * modules/unicase/u16-prefix-context: New file.
44313
44314         New module 'unicase/u8-prefix-context'.
44315         * lib/unicase/u8-prefix-context.c: New file.
44316         * lib/unicase/u-prefix-context.h: New file.
44317         * lib/unicase/context.h: New file.
44318         * modules/unicase/u8-prefix-context: New file.
44319
44320         New module 'unicase/empty-prefix-context'.
44321         * lib/unicase/empty-prefix-context.c: New file.
44322         * modules/unicase/empty-prefix-context: New file.
44323
44324         New module 'unicase/ignorable'.
44325         * lib/unicase/ignorable.c: New file.
44326         * modules/unicase/ignorable: New file.
44327
44328         New module 'unicase/cased'.
44329         * lib/unicase/caseprop.h: New file.
44330         * lib/unicase/cased.c: New file.
44331         * modules/unicase/cased: New file.
44332
44333         New functions for case mapping of substrings.
44334         * lib/unicase.h (casing_prefix_context_t): New type.
44335         (unicase_empty_prefix_context): New variable.
44336         (u8_casing_prefix_context, u16_casing_prefix_context,
44337         u32_casing_prefix_context, u8_casing_prefixes_context,
44338         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44339         declarations.
44340         (casing_suffix_context_t): New type.
44341         (unicase_empty_suffix_context): New variable.
44342         (u8_casing_suffix_context, u16_casing_suffix_context,
44343         u32_casing_suffix_context, u8_casing_suffixes_context,
44344         u16_casing_suffixes_context, u32_casing_suffixes_context,
44345         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44346         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44347         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44348         declarations.
44349
44350 2009-06-28  Jim Meyering  <meyering@redhat.com>
44351
44352         boostrap: indent only with spaces
44353         * build-aux/bootstrap: Indent only with spaces, never TABs.
44354
44355         bootstrap: split long lines
44356         * build-aux/bootstrap: Keep line length < 80.
44357
44358         bootstrap: sync from coreutils
44359         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44360         just as autoreconf does.  Verify a list of prerequisite
44361         package-name,version-number pairs if defined in bootstrap.conf.
44362         Refer to README-prereq, if prerequisites are not satisfied.
44363
44364 2009-06-27  Eric Blake  <ebb9@byu.net>
44365
44366         tests: add test for bogus NULL definition
44367         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44368         * tests/test-stdlib.c: Likewise.
44369         * tests/test-string.c: Likewise.
44370         * tests/test-locale.c: Likewise.
44371         * tests/test-unistd.c: Likewise.
44372         * modules/stdio-tests (Depends-on): Add verify.
44373         * modules/stdlib-tests (Depends-on): Likewise.
44374         * modules/string-tests (Depends-on): Likewise.
44375         * modules/locale-tests (Depends-on): Likewise.
44376         * modules/unistd-tests (Depends-on): Likewise.
44377
44378 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44379
44380         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44381         self-explaining comment.
44382         * m4/selinux-selinux-h: Update serial.
44383         (gl_LIBSELINUX): New macro, adding a warning for missing development
44384         packages to code extracted from...
44385         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44386         Add warning for missing development packages here, too.
44387
44388 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44389
44390         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44391
44392 2009-06-25  Eric Blake  <ebb9@byu.net>
44393
44394         version-etc: fix regression
44395         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44396         gcc.
44397         (version_etc): Use it, to catch bugs with trailing NULL.
44398         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44399         (version_etc_va): Fix logic bug.
44400         * modules/version-etc-tests: Add test.
44401         * tests/test-version-etc.c: New file.
44402         * tests/test-version-etc.sh: Likewise.
44403
44404 2009-06-25  Sam Steingold  <sds@gnu.org>
44405
44406         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44407         mbtowc declaration.
44408
44409 2009-06-25  Eric Blake  <ebb9@byu.net>
44410
44411         fpurge: migrate into <stdio.h>
44412         * lib/fpurge.h: Delete...
44413         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44414         * lib/fpurge.c (fpurge): Change declaring header.
44415         * modules/fpurge (Files): Drop deleted file.
44416         (Depends-on): Add stdio.
44417         (configure.ac): Set witness.
44418         * modules/stdio (Makefile.am): Support fpurge macros.
44419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44420         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44421         * lib/fflush.c: Update client.
44422         * tests/test-fpurge.c: Likewise.
44423         * NEWS: Mention the change.
44424
44425 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44426
44427         * lib/argp-version-etc.c (program_authors): Add const
44428         qualifier.
44429         * lib/version-etc.c: Fix typos in the comments.
44430         * modules/argp-version-etc: Depends on version-etc.
44431
44432 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44433
44434         argp-version-etc: new module.
44435
44436         * lib/argp-version-etc.c: New file.
44437         * lib/argp-version-etc.h: New file.
44438         * modules/argp-version-etc: New file.
44439         * modules/argp-version-etc-tests: New file.
44440         * tests/test-argp-version-etc.c: New test.
44441         * tests/test-argp-version-etc-1.sh: New test.
44442
44443 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44444
44445         Provide additional interfaces and documentation for version-etc
44446         module.
44447
44448         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44449         interfaces.
44450         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44451         prototypes.
44452
44453 2009-06-24  Bruno Haible  <bruno@clisp.org>
44454
44455         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44456         HAVE_LIB${NAME} macro.
44457         Reported by Sam Steingold <sds@gnu.org>.
44458
44459 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44460
44461         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44462         needed.
44463
44464 2009-06-21  Bruno Haible  <bruno@clisp.org>
44465
44466         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44467         work.
44468         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44469         together with LIB${NAME}, LTLIB${NAME}.
44470         Reported by Sam Steingold <sds@gnu.org>.
44471
44472 2009-06-20  Jim Meyering  <meyering@redhat.com>
44473
44474         tests: make sc_require_test_exit_idiom more generic
44475         * top/maint.mk (Exit_witness_file): New overridable variable.
44476         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44477         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44478
44479 2009-06-19  Jim Meyering  <meyering@redhat.com>
44480
44481         hash: reverse order of src/dst parameters in an internal interface
44482         * lib/hash.c (transfer_entries): Reverse order of parameters to
44483         put DST before SRC.  Adjust callers.
44484
44485         tests: test-hash: avoid wholesale duplication
44486         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44487         Instead, use a loop and add a single conditional.
44488
44489         tests: test-hash: allow seed selection via a command line argument
44490         * tests/test-hash.c (get_seed): New function.
44491         (main): Use it.
44492
44493 2009-06-19  Eric Blake  <ebb9@byu.net>
44494
44495         hash: avoid memory leak on allocation failure
44496         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44497         failure.  Factor repeated algorithm...
44498         (transfer_entries): ...into new helper routine.
44499         (hash_delete): React to hash_rehash return value.
44500
44501         hash: reduce memory pressure in hash_rehash no-op case
44502         * lib/hash.c (next_prime): Avoid overflow.
44503         (hash_initialize): Factor bucket size computation...
44504         (compute_bucket_size): ...into new helper function.
44505         (hash_rehash): Use new function and open coding to reduce memory
44506         pressure, and avoid a memory leak in USE_OBSTACK code.
44507         Reported by Jim Meyering.
44508
44509 2009-06-18  Eric Blake  <ebb9@byu.net>
44510
44511         hash: make rotation more obvious
44512         * modules/hash (Depends-on): Add bitrotate and stdint.
44513         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44514         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44515         (SIZE_MAX): Rely on headers for definition.
44516         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44517         (raw_hasher): Use rotr_sz.
44518         Suggested by Jim Meyering.
44519
44520         hash: fix memory leak in last patch
44521         * lib/hash.c (hash_rehash): Avoid memory leak.
44522
44523         hash: avoid no-op rehashing
44524         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44525
44526         hash: provide default callback functions
44527         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44528         (hash_initialize): Use them as defaults.
44529         * tests/test-hash.c (main): Test this.
44530
44531         hash: minor optimization
44532         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44533         when possible.
44534         (hash_initialize): Document this promise.
44535         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44536         * tests/test-hash.c (hash_compare_strings): Test this.
44537
44538 2009-06-18  Bruno Haible  <bruno@clisp.org>
44539
44540         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44541         going to be replaced anyway.
44542
44543 2009-06-18  Bruno Haible  <bruno@clisp.org>
44544
44545         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44546         in one place.
44547         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44548         be replaced anyway.
44549
44550 2009-06-18  Eric Blake  <ebb9@byu.net>
44551
44552         hash: check for resize before insertion
44553         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44554         threshold before insertion, so that a pathological hash_rehash
44555         that fills every bucket can still trigger another rehash.
44556
44557 2009-06-18  Jim Meyering  <meyering@redhat.com>
44558
44559         hash-tests: add a loop around the small tests
44560         * tests/test-hash.c (main): Repeat small tests with selected
44561         small initial table sizes.
44562
44563 2009-06-17  Eric Blake  <ebb9@byu.net>
44564
44565         hash: minor cleanups
44566         * lib/hash.h (hash_entry): Make opaque, by moving...
44567         * lib/hash.c (hash_entry): ...here.
44568         (hash_insert): Clarify restrictions on what can be inserted.
44569         (hash_get_next): Clarify when it is safe to remove an element
44570         during traversal.
44571         (check_tuning): Skip verification when tuning is known safe.
44572         (hash_initialize): Clarify restrictions on tuning.
44573
44574 2009-06-17  Jim Meyering  <jim@meyering.net>
44575         and Eric Blake  <ebb9@byu.net>
44576
44577         hash-tests: new module
44578         * modules/hash-tests: New file.
44579         * tests/test-hash.c: New file.
44580
44581 2009-06-17  Eric Blake  <ebb9@byu.net>
44582
44583         strstr-simple: document new module
44584         * MODULES.html.sh: Document new module.
44585
44586         strstr, strcasestr: replace on platforms with broken memchr
44587         * modules/strstr: Split into...
44588         * modules/strstr-simple: ...new module that does not care about
44589         performance, but does care about glibc bug.
44590         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44591         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44592         if platform memchr is broken, per Debian bug 521737.
44593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44594         memchr.
44595         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44596         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44597         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44598         * modules/mountlist (Depends-on): Add strstr-simple.
44599         * modules/gen-uni-tables (Depends-on): Likewise.
44600         * modules/argz (Depends-on): Add strstr.
44601
44602 2009-06-17  Bruno Haible  <bruno@clisp.org>
44603
44604         * modules/posix_spawn-internal (Depends-on): Add errno.
44605
44606 2009-06-17  Bruno Haible  <bruno@clisp.org>
44607
44608         Define missing ESTALE on Interix 3.5.
44609         * lib/errno.in.h (ESTALE): Assign a value if missing.
44610         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44611         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44612         missing.
44613         * doc/posix-headers/errno.texi: Mention the Interix bug.
44614         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44615
44616 2009-06-15  Eric Blake  <ebb9@byu.net>
44617
44618         memchr, memchr2: add valgrind exception
44619         * lib/memchr.valgrind: New file.
44620         * lib/memchr2.valgrind: New file.
44621         * modules/memchr (Files): Distribute valgrind file.
44622         * modules/memchr2 (Files): Likewise.
44623
44624         docs: memchr is no longer obsolete
44625         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44626         * lib/string.in.h (memchr): Simplify logic.
44627
44628 2009-06-14  Jim Meyering  <meyering@redhat.com>
44629
44630         link-follow: fix the "checking..." message to not mention trailing slash
44631         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44632         never considered trailing slashes.
44633
44634 2009-06-14  Bruno Haible  <bruno@clisp.org>
44635
44636         * m4/memchr.m4: Mention also the bug on IA-64.
44637         * doc/posix-functions/memchr.texi: Likewise.
44638
44639 2009-06-12  Eric Blake  <ebb9@byu.net>
44640
44641         memchr: detect broken x86_64 and alpha implementations
44642         * modules/memchr-tests (Depends-on): Move mmap detection...
44643         * modules/memchr (Depends-on): ...here.
44644         (configure.ac): Set indicator.
44645         * lib/string.in.h (memchr): Declare replacement.
44646         * modules/string (Makefile.am): Trigger replacement.
44647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44648         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44649         bugs.
44650         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44651         * modules/getpagesize (License): Relax license.
44652
44653 2009-06-11  Bruno Haible  <bruno@clisp.org>
44654
44655         * lib/idpriv.h: Add more references.
44656
44657 2009-06-08  Bruno Haible  <bruno@clisp.org>
44658
44659         Tests for module 'idpriv-droptemp'.
44660         * modules/idpriv-droptemp-tests: New file.
44661         * tests/test-idpriv-droptemp.sh: New file.
44662         * tests/test-idpriv-droptemp.su.sh: New file.
44663         * tests/test-idpriv-droptemp.c: New file.
44664
44665         New module 'idpriv-droptemp'.
44666         * lib/idpriv-droptemp.c: New file.
44667         * modules/idpriv-droptemp: New file.
44668
44669 2009-06-08  Bruno Haible  <bruno@clisp.org>
44670
44671         Tests for module 'idpriv-drop'.
44672         * modules/idpriv-drop-tests: New file.
44673         * tests/test-idpriv-drop.sh: New file.
44674         * tests/test-idpriv-drop.su.sh: New file.
44675         * tests/test-idpriv-drop.c: New file.
44676
44677         New module 'idpriv-drop'.
44678         * lib/idpriv.h: New file.
44679         * lib-idpriv-drop.c: New file.
44680         * m4/idpriv.m4: New file.
44681         * modules/idpriv-drop: New file.
44682
44683 2009-06-08  Bruno Haible  <bruno@clisp.org>
44684
44685         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44686         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44687         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44688         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44689         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44690         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44691         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44692
44693 2009-06-08  Eric Blake  <ebb9@byu.net>
44694
44695         test-strstr: use memory fence, when possible
44696         * tests/test-strstr.c (main): Use memory fence, in order to be
44697         more likely to trigger Debian bug 521737.
44698         * modules/strstr-tests (Files): Pull in additional files.
44699
44700         memchr: no longer obsolete, for wider field testing
44701         * modules/memchr (Status, Notice): Delete, this module is no
44702         longer obsolete.
44703         * modules/vasnprintf (Depends-on): Add memchr.
44704
44705 2009-06-07  Jim Meyering  <meyering@redhat.com>
44706
44707         hash: declare some functions with the warn_unused_result attribute
44708         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44709
44710 2009-06-07  Bruno Haible  <bruno@clisp.org>
44711
44712         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44713         Reported by Eric Blake.
44714
44715 2009-06-06  Eric Blake  <ebb9@byu.net>
44716
44717         test-alignof: fix typo with long double
44718         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44719         compiler error.
44720
44721 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44722
44723         Escape non-texinfo { and }s.
44724         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44725         markup error.
44726
44727 2009-06-04  Jim Meyering  <meyering@redhat.com>
44728
44729         gitlog-to-changelog: don't infloop on an empty commit log
44730         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44731         Reported by Boris Petersen <transacid@centerim.org>.
44732
44733 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44734
44735         version-etc: extend for packagers
44736         Add three new configure options, intended for packagers:
44737           --with-packager="packager name"
44738           --with-packager-version="packager-specific version"
44739           --with-packager-bug-reports="packager bug reporting"
44740         An example with coreutils:
44741           $ ./configure \
44742             --with-packager=Gentoo \
44743             --with-packager-bug-report=http://bugs.gentoo.org/ \
44744             --with-packager-version="patchset 1.6"
44745           $ ./src/ls --version | head -n2
44746           ls (GNU coreutils) 7.1-dirty
44747           Packaged by Gentoo (patchset 1.6)
44748         Note that the bug reporting info via --help doesn't show up because
44749         coreutils uses its own custom emit_bug_reporting_address() implementation
44750         in src/system.h.  If it didn't, it'd look like:
44751           $ ./src/ls --help | tail -n4
44752           Report bugs to <bug-coreutils@gnu.org>.
44753           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44754           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44755           General help using GNU software: <http://www.gnu.org/gethelp/>.
44756         * lib/version-etc.c: Print new information, if provided.
44757         * m4/version-etc.m4: New file.
44758         * modules/version-etc (Files): Add m4/version-etc.m4.
44759         (configure.ac): Add gl_VERSION_ETC.
44760
44761 2009-05-31  Bruno Haible  <bruno@clisp.org>
44762
44763         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44764         and 'int64_t'.
44765         * modules/alignof-tests (Dependencies): Add stdint.
44766         Reported by Eric Blake.
44767
44768 2009-05-31  Bruno Haible  <bruno@clisp.org>
44769
44770         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44771         restriction due to compiler bugs.
44772         Reported by Eric Blake.
44773
44774 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44775             Bruno Haible  <bruno@clisp.org>
44776
44777         Fix test-alignof failure.
44778         * lib/alignof.h (alignof_slot): New macro.
44779         (alignof_type): New macro, with the same semantics as the previous
44780         'alignof'.
44781         (alignof): Alias to alignof_slot.
44782         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44783         check that the results are usable as constant expressions.
44784
44785 2009-05-31  Bruno Haible  <bruno@clisp.org>
44786
44787         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44788         * tests/test-memchr.c (main): Check that memchr does not read past the
44789         first occurrence of the byte.
44790         * tests/test-strstr.c (main): Update comment.
44791         Suggested by Eric Blake.
44792
44793 2009-05-30  Bruno Haible  <bruno@clisp.org>
44794
44795         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44796         detail how to use dumpbin.
44797         Reported by David Byron <dbyron@dbyron.com>.
44798
44799 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44800
44801         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44802
44803 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44804
44805         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44806
44807 2009-05-28  Bruno Haible  <bruno@clisp.org>
44808
44809         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44810         build-aux/ files.
44811
44812 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44813
44814         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44815
44816 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44817
44818         * gnulib-tool (sed_transform_main_lib_file)
44819         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44820         regexps.
44821
44822 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44823
44824         * tests/test-strstr.c: Add another self-test.
44825         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44826         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44827
44828 2009-05-23  Bruno Haible  <bruno@clisp.org>
44829
44830         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44831         change.
44832
44833 2009-05-21  Bruno Haible  <bruno@clisp.org>
44834
44835         Simplify use of mode_t varargs.
44836         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44837         uses 'mode_t' or 'int'.
44838         * lib/openat.c (openat): Likewise.
44839         * lib/open-safer.c (open_safer): Likewise.
44840         * m4/mode_t.m4: New file.
44841         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44842         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44843         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44844         * modules/open (Files): Add m4/mode_t.m4.
44845         * modules/openat (Files): Likewise.
44846         * modules/fcntl-safer (Files): Likewise.
44847         Suggested by Eric Blake.
44848
44849 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44850
44851         * doc/glibc-functions/fallocate.texi: New file.
44852         * doc/gnulib.texi: Include it.
44853
44854 2009-05-21  Eric Blake  <ebb9@byu.net>
44855             Bruno Haible  <bruno@clisp.org>
44856
44857         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44858         invocations.
44859         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44860
44861 2009-05-21  Eric Blake  <ebb9@byu.net>
44862             Bruno Haible  <bruno@clisp.org>
44863
44864         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44865         include_next. Fix of 2008-11-20 commit.
44866         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44867         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44868         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44869         NEXT_MATH_H.
44870         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44871         instead of NEXT_MATH_H.
44872
44873 2009-05-21  Bruno Haible  <bruno@clisp.org>
44874
44875         Avoid redefinition warnings for SIZE_MAX.
44876         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44877         Reported by Simon Josefsson.
44878
44879 2009-05-21  Bruno Haible  <bruno@clisp.org>
44880
44881         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44882         AC_CACHE_VAL.
44883
44884 2009-05-20  Bruno Haible  <bruno@clisp.org>
44885
44886         Make zeroptr.h work on mingw.
44887         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44888         mprotect.
44889         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44890         * modules/memchr2-tests (configure.ac): Likewise.
44891         * modules/memcmp-tests (configure.ac): Likewise.
44892         * modules/memmem-tests (configure.ac): Likewise.
44893         * modules/memrchr-tests (configure.ac): Likewise.
44894         Reported by Simon Josefsson.
44895
44896 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44897
44898         * tests/test-glob.c: Include string.h for strcmp prototype.
44899
44900 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44901
44902         * modules/getdelim (Depends-on): Add explicit stdint, although it
44903         was implicitly already pulled in via realloc-posix.
44904         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44905
44906 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44907
44908         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44909         G. Christensen" <tgc@jupiterrise.com>.
44910         * m4/sys_socket_h.m4: Check for sa_family_t.
44911         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44912         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44913         * tests/test-sys_socket.c: Check that sa_family_t works.
44914
44915 2009-05-18  Eric Blake  <ebb9@byu.net>
44916
44917         maint.mk: allow gnulib_dir in VPATH build
44918         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44919
44920 2009-05-15  Jim Meyering  <meyering@redhat.com>
44921
44922         maint.mk: Give gnulib_dir a default definition.
44923         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44924         Thus, most packages no longer need to specify this variable in cfg.mk
44925
44926 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44927
44928         rename.m4: fix typos that would make non-mingw cross-configure fail
44929         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44930
44931 2009-05-13  Eric Blake  <ebb9@byu.net>
44932
44933         mmap-anon: avoid out-of-order autoconf expansion
44934         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44935         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44936         * modules/memchr-tests (Depends-on): Add extensions.
44937         * modules/memchr2-tests (Depends-on): Add extensions.
44938         * modules/memcmp-tests (Depends-on): Add extensions.
44939         * modules/memmem-tests (Depends-on): Add extensions.
44940         * modules/memrchr-tests (Depends-on): Add extensions.
44941
44942 2009-05-13  Bruno Haible  <bruno@clisp.org>
44943
44944         Make some tests ISO C 99 compliant.
44945         * tests/zerosize-ptr.h: New file.
44946         * tests/test-memchr.c: Include zerosize-ptr.h.
44947         (main): Use a zero-size object pointer instead of NULL.
44948         * tests/test-memchr2.c: Include zerosize-ptr.h.
44949         (main): Use a zero-size object pointer instead of NULL.
44950         * tests/test-memcmp.c: Include zerosize-ptr.h.
44951         (main): Use a zero-size object pointer instead of NULL.
44952         * tests/test-memmem.c: Include zerosize-ptr.h.
44953         (main): Use a zero-size object pointer instead of NULL.
44954         * tests/test-memrchr.c: Include zerosize-ptr.h.
44955         (main): Use a zero-size object pointer instead of NULL.
44956         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44957         m4/mmap-anon.m4.
44958         (Depends-on): Add getpagesize.
44959         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44960         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44961         m4/mmap-anon.m4.
44962         (Depends-on): Add getpagesize.
44963         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44964         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44965         m4/mmap-anon.m4.
44966         (Depends-on): Add getpagesize.
44967         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44968         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44969         m4/mmap-anon.m4.
44970         (Depends-on): Add getpagesize.
44971         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44972         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44973         m4/mmap-anon.m4.
44974         (Depends-on): Add getpagesize.
44975         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44976
44977 2009-05-12  Bruno Haible  <bruno@clisp.org>
44978
44979         Tests for module 'alignof'.
44980         * modules/alignof-tests: New file.
44981         * tests/test-alignof.c: New file.
44982
44983 2009-05-12  Bruno Haible  <bruno@clisp.org>
44984
44985         Fix alignof macro.
44986         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44987         vendor compilers that are always correct.
44988
44989 2009-05-12  Bruno Haible  <bruno@clisp.org>
44990
44991         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44992         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44993         not whether its fully works.
44994
44995 2009-05-12  Bruno Haible  <bruno@clisp.org>
44996
44997         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44998
44999 2009-05-12  Jim Meyering  <meyering@redhat.com>
45000
45001         * top/maint.mk: Adjust backslash alignment.
45002
45003 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45004
45005         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45006
45007 2009-05-11  Eric Blake  <ebb9@byu.net>
45008
45009         argp: avoid undefined behavior
45010         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45011         macros.
45012
45013 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45014
45015         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45016         user.name to prevent git commit from complaining.
45017
45018 2009-05-10  Bruno Haible  <bruno@clisp.org>
45019
45020         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45021         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45022         it rewrites every file name only once.
45023         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45024
45025 2009-05-08  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45028         instead of 'max'.
45029
45030 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45031
45032         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45033         sockaddr_storage test.
45034
45035 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45036
45037         * modules/sys_socket (Makefile.am): Substitute
45038         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45039         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45040         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45041         * tests/test-sys_socket.c: Check sockaddr_storage.
45042
45043 2009-05-08  Bruno Haible  <bruno@clisp.org>
45044
45045         New module 'alignof'.
45046         * lib/alignof.h: New file.
45047         * modules/alignof: New file.
45048
45049 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45050             Bruno Haible  <bruno@clisp.org>
45051
45052         Fix test-file-has-acl on FreeBSD.
45053         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45054         mask is implicitly added.
45055         * tests/test-file-has-acl.c: Include <signal.h>.
45056         (main): Terminate the test after 5 seconds.
45057         * modules/acl-tests (configure.ac): Check for alarm function.
45058
45059 2009-05-04  Bruno Haible  <bruno@clisp.org>
45060
45061         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45062         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45063         * modules/errno (configure.ac): Drop AC_REQUIRE.
45064         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45065         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45066
45067 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45068
45069         * modules/glob-tests: New module.
45070         * tests/test-glob.c: Add.
45071
45072 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45073
45074         * modules/fnmatch-tests: New module.
45075         * tests/test-fnmatch.c: Add.
45076
45077 2009-05-04  Eric Blake  <ebb9@byu.net>
45078
45079         maint: make the new no-submodule-changes rule VPATH-safe
45080         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45081
45082 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45083             Bruno Haible  <bruno@clisp.org>
45084
45085         acl: Fix infinite loop on FreeBSD.
45086         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45087         of return value from acl_get_entry.
45088         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45089         Likewise.
45090
45091 2009-05-03  Bruno Haible  <bruno@clisp.org>
45092
45093         * lib/acl-internal.h (acl_entries): Clarify return value.
45094         * lib/acl_entries.c (acl_entries): Likewise.
45095
45096 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45097
45098         Bug fix in acl module.
45099         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45100
45101 2009-05-03  Bruno Haible  <bruno@clisp.org>
45102
45103         Create gperf-generated file in the source dir, not in the build dir.
45104         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45105         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45106         * modules/unicase/locale-language (unicase/locale-languages.h):
45107         Likewise.
45108         * modules/unicase/special-casing (unicase/special-casing-table.h):
45109         Likewise.
45110         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45111         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45112         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45113         Reported by Ralf Wildenhues.
45114
45115 2009-05-03  Bruno Haible  <bruno@clisp.org>
45116
45117         * modules/fnmatch (Description, configure.ac): Taken from
45118         fnmatch-posix.
45119         * modules/fnmatch-posix: Turn into a symbolic reference to the
45120         'fnmatch' module, and deprecate.
45121         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45122
45123 2009-05-03  Bruno Haible  <bruno@clisp.org>
45124
45125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45126         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45127         Reported by Ralf Wildenhues.
45128
45129 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45130
45131         * m4/fnmatch.m4: Fix fnmatch re-define.
45132
45133 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45134
45135         priv-set: new module and tests; adapt write-any-file
45136         * lib/priv-set.c: New file.
45137         * lib/priv-set.h: New file.
45138         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45139         * lib/write-any-file.c: Simplify by using priv-set module.
45140         * m4/priv-set.m4: New file.
45141         * modules/priv-set: New file.
45142         * modules/unlinkdir: Add dependency on priv-set module.
45143         * modules/write-any-file: Likewise.
45144
45145         Tests for module 'priv-set'.
45146         * modules/priv-set-tests: New file.
45147         * tests/test-priv-set.c: New file.
45148
45149 2009-05-03  Jim Meyering  <meyering@redhat.com>
45150             Bruno Haible  <bruno@clisp.org>
45151
45152         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45153         use the converted UTF-8 variant of the name instead.
45154
45155 2009-05-03  Jim Meyering  <meyering@redhat.com>
45156
45157         tests: tighten some getdate tests
45158         * tests/test-getdate.c (main): Tighten tests: require equality,
45159         not just greater than.  Set TZ envvar to UTC0.
45160
45161 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45162
45163         getdate: correctly interpret "next monday" when run on a Monday
45164         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45165         that e.g., "next tues" (when run on a tuesday) results in a date
45166         that is one week in the future, and not today's date.
45167         I.e., add a week when the wday is the same as the current one.
45168         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45169         and earlier by Martin Bernreuther and Jan Minář.
45170         * tests/test-getdate.c (main): Check that "next DAY" is always in
45171         the future and that "last DAY" is always in the past.
45172
45173 2009-05-02  Jim Meyering  <meyering@redhat.com>
45174
45175         build: ensure that a release build fails when a submodule is unclean
45176         * top/maint.mk (no-submodule-changes): New rule.
45177         (alpha beta major): Depend on it.
45178
45179 2009-05-02  Bruno Haible  <bruno@clisp.org>
45180
45181         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45182         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45183         shell variable gl_fnmatch_required to detect which variant is
45184         requested.
45185         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45186         gl_FUNC_FNMATCH_POSIX.
45187         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45188         exclude fnmatch-posix.
45189
45190 2009-05-02  Bruno Haible  <bruno@clisp.org>
45191
45192         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45193         * modules/mbsrtowcs (License): Change to LGPLv2+.
45194         * modules/strnlen1 (License): Likewise.
45195         Reported by Simon Josefsson.
45196
45197 2009-05-02  Bruno Haible  <bruno@clisp.org>
45198
45199         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45200         "cross".
45201         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45202         gnulib-tool was called with option --source-base=lib.
45203
45204 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45205
45206         Use automake *-local hooks without commands, for extensibility.
45207         * modules/localcharset (Makefile.am): Rename install-exec-local
45208         rule to install-exec-localcharset, and make it a prerequisite of
45209         install-exec-local.  Likewise, rename the uninstall-local rule to
45210         uninstall-localcharset, and make it a prerequisite of the former.
45211
45212 2009-05-01  Bruno Haible  <bruno@clisp.org>
45213
45214         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45215         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45216         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45217         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45218         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45219         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45220         m4/locale-zh.m4, m4/codeset.m4.
45221
45222         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45223         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45224         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45225         m4/locale-zh.m4.
45226
45227         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45228         REPLACE_WCRTOMB if mbstate_t must be replaced.
45229         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45230         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45231
45232 2009-05-01  Bruno Haible  <bruno@clisp.org>
45233
45234         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45235         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45236         dngettext, dcngettext, textdomain, bindtextdomain,
45237         bind_textdomain_codeset): Undefine before redefining.
45238
45239 2009-04-30  Bruno Haible  <bruno@clisp.org>
45240
45241         Fix bug introduced on 2009-04-25.
45242         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45243         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45244         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45245         is defined.
45246         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45247         is defined.
45248         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45249         is defined.
45250         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45251
45252 2009-04-28  Bruno Haible  <bruno@clisp.org>
45253
45254         Comment tweaks.
45255         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45256         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45257         * lib/unicase.h (u*_casexfrm): Likewise.
45258         Reported by Paolo Bonzini.
45259
45260 2009-04-28  Bruno Haible  <bruno@clisp.org>
45261
45262         Fix a compilation error.
45263         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45264         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45265         Reported by Jim Meyering.
45266
45267 2009-04-27  Bruno Haible  <bruno@clisp.org>
45268
45269         New module 'libunistring'.
45270         * modules/libunistring: New file.
45271         * m4/libunistring.m4: New file.
45272         * MODULES.html.sh (Unicode string functions): Add it.
45273
45274 2009-04-27  Eric Blake  <ebb9@byu.net>
45275
45276         maint.mk: allow package-specific header to provide <config.h>
45277         * top/maint.mk (sc_require_config_h): New variable.
45278         (sc_require_config_h, sc_require_config_h_first): Use it.
45279
45280 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45281
45282         * top/maint.mk (sc_avoid_if_before_free): Except
45283         useless-if-before-free script.
45284
45285 2009-04-27  Eric Blake  <ebb9@byu.net>
45286
45287         maintainer-makefile: depend on all required helper scripts
45288         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45289         useless-if-before-free.
45290         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45291         version, rather than assuming gnulib checkout is available.
45292         Reported by Simen Josefsson.
45293
45294 2009-04-26  Bruno Haible  <bruno@clisp.org>
45295
45296         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45297         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45298         "../" or "..".
45299
45300 2009-04-26  Bruno Haible  <bruno@clisp.org>
45301
45302         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45303         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45304         AC_LIB_HAVE_LINKFLAGS.
45305
45306 2009-04-26  Bruno Haible  <bruno@clisp.org>
45307
45308         Simplify calling convention of u*_conv_from_encoding.
45309         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45310         u32_conv_from_encoding): Expect a resultbuf argument and return the
45311         result directly as a pointer.
45312         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45313         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45314         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45315         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45316         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45317         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45318         Update.
45319         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45320         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45321         * lib/vasnprintf.c (VASNPRINTF): Update.
45322         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45323         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45324         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45325         * NEWS: Mention the change.
45326
45327 2009-04-26  Bruno Haible  <bruno@clisp.org>
45328
45329         Simplify calling convention of u*_conv_to_encoding.
45330         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45331         u32_conv_to_encoding): Expect a resultbuf argument and return the
45332         result directly as a pointer.
45333         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45334         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45335         freeing scaled_offsets if mem_iconveha failed.
45336         * lib/unicase/u-casexfrm.h (FUNC): Update.
45337         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45338         * lib/vasnprintf.c (VASNPRINTF): Update.
45339         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45340         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45341         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45342         * NEWS: Mention the change.
45343
45344 2009-04-26  Bruno Haible  <bruno@clisp.org>
45345
45346         Avoid test failures on AIX and OSF/1.
45347         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45348         malloc(0).
45349         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45350         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45351         Likewise.
45352         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45353         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45354         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45355         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45356         * doc/posix-functions/malloc.texi: Document the portability problem
45357         related to malloc(0).
45358
45359 2009-04-26  Bruno Haible  <bruno@clisp.org>
45360
45361         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45362         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45363         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45364
45365 2009-04-25  Bruno Haible  <bruno@clisp.org>
45366
45367         Avoid link error when creating a namespace clean library.
45368         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45369         as macro with arguments if already defined as an alias.
45370         * lib/signbitf.c (gl_signbitf): Don't undefine.
45371         * lib/signbitd.c (gl_signbitd): Don't undefine.
45372         * lib/signbitl.c (gl_signbitl): Don't undefine.
45373
45374 2009-04-25  Jim Meyering  <meyering@redhat.com>
45375
45376         vc-list-files: fix another quoting bug
45377         * build-aux/vc-list-files: Avoid sed backslash expansion
45378         of pathological directory names.
45379
45380 2009-04-25  Eric Blake  <ebb9@byu.net>
45381
45382         vc-list-files: fix shell quoting error
45383         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45384         timestamp.
45385
45386 2009-04-25  Jim Meyering  <meyering@redhat.com>
45387
45388         vc-list-files: restore lost functionality with subdir argument
45389         * build-aux/vc-list-files: When given a non-"." sub-directory
45390         argument, substitute the $dir/ prefix back onto each resulting name.
45391         Otherwise, coreutils' root_tests check would fail.
45392
45393 2009-04-24  Eric Blake  <ebb9@byu.net>
45394
45395         vc-list-files: ignore git symlinks
45396         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45397         than ls-files, to ignore git symlinks.
45398
45399         maint.mk: import improvements from m4
45400         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45401         (move_if_change): Delete unused macro.
45402         (news-date-check, vc-diff-check): Support VPATH builds.
45403         (announcement): Likewise.  Split --bootstrap-tools list...
45404         (boostrap-tools): ...into separate list, which can be overridden
45405         in cfg.mk.
45406         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45407         requiring dependency on useless-if-before-free module.
45408         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45409         Support VPATH builds.
45410
45411 2009-04-24  Jim Meyering  <meyering@redhat.com>
45412
45413         maint.mk: remove coreutils-specific rules and variables
45414         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45415         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45416         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45417
45418         maint.mk: remove obsolete rule
45419         * top/maint.mk (rel-check): Remove rule.
45420         (WGET, WGETFLAGS): Remove now-unused variables.
45421
45422 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45423
45424         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45425         consistency.
45426
45427         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45428         '$(PATH_SEPARATOR)' instead of ':'.
45429
45430 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45431
45432         * lib/getopt1.c (main): Use 'const' for static array.
45433
45434 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45435
45436         * top/maint.mk: Sync with coreutils.
45437         * NEWS: Explain incompatibilities.
45438
45439 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45440             Bruno Haible  <bruno@clisp.org>
45441
45442         Fix cross-compilation results.
45443         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45444         statement, as third argument of AC_TRY_RUN.
45445         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45446         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45447         Likewise.
45448         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45449         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45450         Likewise.
45451         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45452         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45453         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45454
45455 2009-04-20  Bruno Haible  <bruno@clisp.org>
45456
45457         Avoid test failure on mingw.
45458         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45459
45460 2009-04-20  Bruno Haible  <bruno@clisp.org>
45461
45462         Avoid compilation error on mingw.
45463         * modules/localename-tests (Depends-on): Add locale.
45464
45465 2009-04-19  Bruno Haible  <bruno@clisp.org>
45466
45467         Support for building a shared library on Windows platforms.
45468         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45469         (main): Test the presence of UNINORM_NFC here.
45470         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45471         (main): Test the presence of UNINORM_NFD here.
45472         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45473         (main): Test the presence of UNINORM_NFKC here.
45474         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45475         (main): Test the presence of UNINORM_NFKD here.
45476
45477 2009-04-19  Bruno Haible  <bruno@clisp.org>
45478
45479         Avoid a compiler warning.
45480         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45481         Change type of variable 'sequence'.
45482
45483 2009-04-19  Bruno Haible  <bruno@clisp.org>
45484
45485         * modules/configmake (Makefile.am): When the contents of configmake.h
45486         does not change, arrange to preserve its modification time.
45487
45488 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45489
45490         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45491         gettext domain.
45492
45493 2009-04-16  Jim Meyering  <meyering@redhat.com>
45494
45495         useless-if-before-free: improve conversion code
45496         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45497         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45498
45499 2009-04-14  Bruno Haible  <bruno@clisp.org>
45500
45501         * modules/fcntl (Depends-on): Add extensions.
45502         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45503
45504 2009-04-12  Ben Pfaff  <blp@gnu.org>
45505
45506         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45507         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45508
45509 2009-03-20  Ben Pfaff  <blp@gnu.org>
45510
45511         Make rename replace existing destinations on Windows.
45512         * m4/rename.m4: Add test for Mingw.
45513         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45514         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45515         * doc/posix-functions/rename.texi: Document.
45516
45517 2009-04-10  Bruno Haible  <bruno@clisp.org>
45518
45519         New include file "iconveh.h".
45520         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45521         * lib/striconveh.h: Include it.
45522         (enum iconv_ilseq_handler): Remove definition.
45523         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45524         striconveh.h.
45525         * lib/striconveha.c: Include striconveh.h.
45526         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45527         * modules/striconveh (Files): Add lib/iconveh.h.
45528         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45529         lib/striconveh.h.
45530
45531 2009-04-10  Bruno Haible  <bruno@clisp.org>
45532
45533         * lib/uniconv.h: Update comment.
45534
45535 2009-04-10  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45538         always.
45539         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45540         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45541         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45542         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45543         "unistring-notinline.h", so that the function gets defined always.
45544         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45545         * lib/unistr/u8-uctomb.c: Likewise.
45546         * lib/unistr/u16-mbtouc.c: Likewise.
45547         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45548         * lib/unistr/u16-uctomb.c: Likewise.
45549         * lib/unistr/u32-mbtouc.c: Likewise.
45550         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45551         * lib/unistr/u32-uctomb.c: Likewise.
45552
45553 2009-04-10  Bruno Haible  <bruno@clisp.org>
45554
45555         Mark 'utime' obsolete.
45556         * modules/utime (Status, Notice): New sections.
45557         Suggested by Jim Meyering.
45558
45559         Fix cross-compile guess for utime test.
45560         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45561         autoconf.
45562         * doc/posix-functions/utime.texi: Give more precisions.
45563         Reported by Jan <ipif@ymail.com>.
45564
45565 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45566
45567         filevercmp: correct today's change
45568         * lib/filevercmp.c: Also handle coreutils' test inputs.
45569         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45570
45571         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45572         for reporting it.
45573         * lib/filevercmp.c: Special handle for "", "." and "..".
45574         * tests/test-filevercmp.c: Enlarge the set suite.
45575
45576 2009-04-07  Jim Meyering  <meyering@redhat.com>
45577
45578         useless-if-before-free: show how to remove braced useless free, too
45579         * build-aux/useless-if-before-free: still only in a comment, though.
45580
45581 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45582
45583         maint.mk: import changes to syntax-check macros from coreutils
45584         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45585         Use them in the relevant macros.
45586
45587 2009-04-06  Bruno Haible  <bruno@clisp.org>
45588
45589         Fix unportable use of bit-fields.
45590         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45591         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45592         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45593
45594 2009-04-06  Bruno Haible  <bruno@clisp.org>
45595
45596         Avoid test failures on AIX and OSF/1.
45597         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45598         that malloc(0) = NULL.
45599         * tests/unicase/test-u8-tolower.c (check): Likewise.
45600         * tests/unicase/test-u8-totitle.c (check): Likewise.
45601         * tests/unicase/test-u8-toupper.c (check): Likewise.
45602         * tests/unicase/test-u16-casefold.c (check): Likewise.
45603         * tests/unicase/test-u16-tolower.c (check): Likewise.
45604         * tests/unicase/test-u16-totitle.c (check): Likewise.
45605         * tests/unicase/test-u16-toupper.c (check): Likewise.
45606         * tests/unicase/test-u32-casefold.c (check): Likewise.
45607         * tests/unicase/test-u32-tolower.c (check): Likewise.
45608         * tests/unicase/test-u32-totitle.c (check): Likewise.
45609         * tests/unicase/test-u32-toupper.c (check): Likewise.
45610         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45611         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45612         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45613         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45614         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45615         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45616         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45617         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45618         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45619         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45620         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45621         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45622
45623 2009-04-05  Bruno Haible  <bruno@clisp.org>
45624
45625         Work around an autoconf limitation.
45626         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45627         comment line if it would be longer than 3 KB.
45628
45629 2009-04-05  Bruno Haible  <bruno@clisp.org>
45630
45631         Avoid test failure with libiconv-1.13.
45632         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45633         of the expected test results.
45634
45635 2009-04-05  Bruno Haible  <bruno@clisp.org>
45636
45637         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45638         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45639         that it should be installed.
45640
45641 2009-04-05  Bruno Haible  <bruno@clisp.org>
45642
45643         * gnulib-tool: New option --copy-file.
45644         (func_usage): Document it.
45645         (func_dest_tmpfilename): Moved out of func_import.
45646         (func_add_file, func_update_file): New functions, extracted from
45647         func_import.
45648         (func_import): Update.
45649
45650 2009-04-05  Karl Berry  <karl@gnu.org>
45651
45652         * README: prominently mention gnulib-tool.
45653         Rearrange sections so getting the code is near the top.
45654
45655 2009-04-05  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/unicase.h: Mention u*_cmp2.
45658         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45659         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45660         * lib/unicase/ulc-casecmp.c: Likewise.
45661         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45662         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45663         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45664         unistr/u8-cmp.
45665         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45666         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45667         unistr/u16-cmp.
45668         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45669         unistr/u32-cmp.
45670
45671         * lib/uninorm.h: Mention u*_cmp2.
45672         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45673         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45674         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45675         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45676         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45677         unistr/u8-cmp.
45678         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45679         unistr/u16-cmp.
45680         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45681         unistr/u32-cmp.
45682
45683         New module 'unistr/u32-cmp2'.
45684         * lib/unistr/u32-cmp2.c: New file.
45685         * modules/unistr/u32-cmp2: New file.
45686
45687         New module 'unistr/u16-cmp2'.
45688         * lib/unistr/u16-cmp2.c: New file.
45689         * modules/unistr/u16-cmp2: New file.
45690
45691         New module 'unistr/u8-cmp2'.
45692         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45693         * lib/unistr/u8-cmp2.c: New file.
45694         * lib/unistr/u-cmp2.h: New file.
45695         * modules/unistr/u8-cmp2: New file.
45696
45697 2009-04-05  Bruno Haible  <bruno@clisp.org>
45698
45699         * lib/unictype.h (uc_property_is_valid): New macro.
45700         * tests/unictype/test-pr_byname.c (main): Use it.
45701
45702         * lib/unistr.h: Doc fixes.
45703         * lib/uniconv.h: Doc fixes.
45704         * lib/unictype.h: Doc fixes.
45705
45706 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45707
45708         Port coreutils 7.2 to Solaris 8.
45709
45710         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45711         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45712         for Solaris 8.  This is a bit of a hack, as it means it's the
45713         caller's responsibility to add -lnsl if needed, but most likely it
45714         won't be needed since only getaddrinfo uses this and getaddrinfo
45715         isn't needed on Solaris 8.
45716
45717         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45718         problem to Solaris 8 encountered with coreutils 7.2, which
45719         resulted in a message "fnmatch.c:292: warning: passing argument 4
45720         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45721         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45722
45723 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45724
45725         * m4/ld-version-script.m4: Add FIXME comment.
45726
45727 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45728
45729         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45730         SOVERSION variable.
45731
45732 2009-04-02  Bruno Haible  <bruno@clisp.org>
45733
45734         * Makefile (info, html, dvi, pdf): Combine the rules.
45735         Suggested by Jim Meyering.
45736
45737 2009-04-01  Bruno Haible  <bruno@clisp.org>
45738
45739         * Makefile (info, html, dvi, pdf): New targets.
45740         Reported by Reuben Thomas <rrt@sc3d.org>.
45741
45742 2009-04-01  Bruno Haible  <bruno@clisp.org>
45743
45744         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45745         can be put into PATH.
45746         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45747
45748 2009-04-01  Bruno Haible  <bruno@clisp.org>
45749
45750         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45751
45752 2009-04-01  Bruno Haible  <bruno@clisp.org>
45753
45754         Rename module 'visibility'.
45755         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45756         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45757         * doc/gnulib.texi: Update.
45758         * MODULES.html.sh (Misc): Update.
45759         * NEWS: Mention the change.
45760
45761 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45762
45763         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45764         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45765         Eric Blake <ebb9@byu.net> for review.
45766         * MODULES.html.sh: Add lib-msvc-compat.
45767         * doc/gnulib.texi: Link to new section.
45768         * m4/ld-output-def.m4: New file.
45769         * doc/ld-output-def.texi: New file.
45770
45771 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45772
45773         Rename ld-version-script to lib-symbol-versions.  Suggested by
45774         Bruno Haible <bruno@clisp.org>.
45775         * modules/ld-version-script: Renamed to lib-symbol-versions.
45776         * doc/ld-version-script.texi: Fix module name.
45777         * MODULES.html.sh: Add lib-symbol-versions.
45778
45779 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45780
45781         * modules/u64-tests: New file.
45782         * tests/test-u64.c: New file.
45783
45784 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45785
45786         * MODULES.html.sh: Mention u64.
45787         * modules/u64: New module.
45788         * modules/crypto/sha512: Depend on u64 module instead of providing
45789         u64.h.
45790
45791 2009-03-27  Eric Blake  <ebb9@byu.net>
45792
45793         test-strerror: make debugging EAI_SYSTEM easier
45794         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45795         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45796         failure was EAI_SYSTEM.
45797
45798 2009-03-25  Bruno Haible  <bruno@clisp.org>
45799
45800         Fix a problem with --enable-relocatable on Solaris 7.
45801         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45802         since 2008-02-24.
45803
45804 2009-03-25  Eric Blake  <ebb9@byu.net>
45805
45806         test-sockets: avoid gcc warning
45807         * tests/test-sockets.c (main): Silence compiler warning.
45808
45809 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45810
45811         New modules nproc, pthread, contributed by Glen Lenker.
45812
45813         * MODULES.html.sh: Add pthread, nproc.
45814         * lib/nproc.c: New file.
45815         * lib/nproc.h: New file.
45816         * lib/pthread.in.h: New file.
45817         * m4/pthread.m4: New file.
45818         * modules/nproc: New file.
45819         * modules/pthread: New file.
45820
45821 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45822
45823         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45824         New variable.
45825
45826 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45827
45828         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45829         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45830         * tests/test-filevercmp.c: Add tests for backup suffixes.
45831
45832 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45833
45834         * modules/stdlib (Depends-on): Add stdint, needed when defining
45835         struct random_data on, for example, HP-UX 10.20.  Reported by
45836         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45837
45838 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45839
45840         * lib/readline.c (readline): Call fflush on stdout after printing
45841         prompt.
45842
45843 2009-03-20  Bruno Haible  <bruno@clisp.org>
45844
45845         Remove dependency from 'close' module to -lws2_32 on native Windows.
45846         * lib/close-hook.h: New file.
45847         * lib/close-hook.c: New file.
45848         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45849         w32sock.h.
45850         (_gl_close_fd_maybe_socket): Remove function.
45851         (rpl_close): Invoke execute_all_close_hooks instead of
45852         _gl_close_fd_maybe_socket.
45853         * lib/sockets.c: Include close-hook.h, w32sock.h.
45854         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45855         (close_sockets_hook): New variable.
45856         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45857         (gl_sockets_cleanup): Unregister it.
45858         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45859         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45860         * modules/close-hook: New file.
45861         * modules/close (Files): Remove lib/w32sock.h.
45862         (Depends-on): Add close-hook.
45863         (Link): Remove section.
45864         * modules/sockets (Files): Add lib/w32sock.h.
45865         (Depends-on): Add close-hook.
45866         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45867         invocation.
45868         * NEWS: Mention that LIB_CLOSE is gone.
45869
45870 2009-03-23  Eric Blake  <ebb9@byu.net>
45871
45872         signal-tests: test previous patch
45873         * tests/test-signal.c: New file.
45874         * modules/signal-tests: Likewise.
45875
45876         signal.h: always support 'volatile sig_atomic_t'
45877         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45878         (gl_SIGNAL_H_DEFAULTS): Add a default.
45879         * modules/signal (Makefile.am): Substitute if needed.
45880         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45881         users can blindly add volatile.
45882         * doc/posix-headers/signal.texi (signal.h): Document it.
45883         Reported by Matthew Woehlke.
45884
45885 2009-03-23  Jim Meyering  <meyering@redhat.com>
45886
45887         pathmax: PATH_MAX: use pathconf only when available
45888         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45889         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45890         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45891         This avoids a link failure in a PSP cross-compilation environment
45892         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45893
45894         * lib/vasnprintf.c (divide): Fix typo in comment.
45895
45896 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45897
45898         * gnulib-tool (func_filter_filelist): Fix comment.
45899
45900 2009-03-20  Bruno Haible  <bruno@clisp.org>
45901
45902         Make sockets.h self-contained.
45903         * lib/sockets.c: Include sockets.h first.
45904         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45905
45906 2009-03-19  Eric Blake  <ebb9@byu.net>
45907
45908         doc: mention more functions added in cygwin 1.7.0
45909         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45910         addition.
45911         * doc/posix-functions/log2f.texi: Likewise.
45912
45913 2009-03-19  Jim Meyering  <meyering@redhat.com>
45914
45915         fsusage: avoid syntax error due to statement-before-declaration
45916         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45917         after all declarations.  Reported by Matthew Woehlke in
45918         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45919
45920 2009-03-18  Eric Blake  <ebb9@byu.net>
45921
45922         build-aux/compile: sync from automake
45923         * build-aux/compile: New file, from automake.
45924         * config/srclist.txt: Mention build-aux/compile.
45925
45926 2009-03-17  Bruno Haible  <bruno@clisp.org>
45927
45928         * lib/git-merge-changelog.c: Fix typo in comment.
45929         Reported by Reuben Thomas <rrt@sc3d.org>.
45930
45931 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45932
45933         * m4/regex.m4: update and improve help for
45934         --without-included-regex.
45935
45936 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45937
45938         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45939         failure on missing include files.
45940
45941 2009-03-17  Eric Blake  <ebb9@byu.net>
45942
45943         doc: mention more functions added in cygwin 1.7.0
45944         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45945         addition.
45946         * doc/posix-functions/fwscanf.texi: Likewise.
45947         * doc/posix-functions/swprintf.texi: Likewise.
45948         * doc/posix-functions/swscanf.texi: Likewise.
45949         * doc/posix-functions/vfwprintf.texi: Likewise.
45950         * doc/posix-functions/vfwscanf.texi: Likewise.
45951         * doc/posix-functions/vswprintf.texi: Likewise.
45952         * doc/posix-functions/vswscanf.texi: Likewise.
45953         * doc/posix-functions/vwprintf.texi: Likewise.
45954         * doc/posix-functions/vwscanf.texi: Likewise.
45955         * doc/posix-functions/wcscasecmp.texi: Likewise.
45956         * doc/posix-functions/wcsdup.texi: Likewise.
45957         * doc/posix-functions/wcsftime.texi: Likewise.
45958         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45959         * doc/posix-functions/wprintf.texi: Likewise.
45960         * doc/posix-functions/wscanf.texi: Likewise.
45961         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45962
45963 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45964
45965         maint.mk: really add $(AM_MAKEFLAGS)
45966         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45967         was inadvertently omitted in the last commit.
45968         Spotted by Bruno Haible.
45969
45970         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45971         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45972         $(AM_MAKEFLAGS)' rather than plain `make'.
45973
45974         gnulib-tool: execute $MAKE not make
45975         * gnulib-tool: Default $MAKE to 'make'.
45976         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45977         than make.  Initialize $MAKE in the do-autobuild script.
45978
45979         gnulib-tool: use $MAKE not make in generated files
45980         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45981         make, in generated files.  Initialize $MAKE in the do-autobuild
45982         script.
45983
45984         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45985
45986         GNUmakefile: disable parallelism only for multiple, recursive targets
45987         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45988         additions in the Makefile.
45989         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45990         by Automake.
45991         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45992         are listed on the command line and at least one of them is
45993         listed in $(ALL_RECURSIVE_TARGETS).
45994
45995 2009-03-14  Bruno Haible  <bruno@clisp.org>
45996
45997         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45998         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45999         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46000         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46001         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46002         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46003         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46004         unistr/u8-uctomb.
46005         * modules/unistr/u8-strchr (Depends-on): Likewise.
46006         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46007         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46008         unistr/u16-uctomb.
46009         * modules/unistr/u16-strchr (Depends-on): Likewise.
46010         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46011
46012 2009-03-12  Bruno Haible  <bruno@clisp.org>
46013
46014         Work around select() bug on Interix 3.5.
46015         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46016         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46017         * m4/select.m4: New file.
46018         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46019         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46020         * modules/select (Files): Add m4/select.m4.
46021         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46022         * modules/nanosleep (Depends-on): Add select.
46023         * modules/poll (Depends-on): Likewise.
46024         * doc/posix-functions/select.texi: Mention the Interix bug.
46025         Reported by Markus Duft <mduft@gentoo.org>.
46026
46027         * lib/select.c: Renamed from lib/winsock-select.c.
46028         * modules/select (Files): Add lib/select.c, remove
46029         lib/winsock-select.c.
46030         (configure.ac): Update.
46031
46032 2009-03-12  Jim Meyering  <meyering@redhat.com>
46033
46034         avoid gcc warnings about unused macro definitions
46035         * lib/readtokens.c (STREQ): Remove unused definition.
46036         * lib/xmalloc.c (SIZE_MAX): Likewise.
46037         * lib/openat-die.c (N_): Likewise.
46038         * lib/mountlist.c (SIZE_MAX): Remove definition.
46039         Instead, include <stdint.h>.
46040         * lib/readutmp.c: Likewise.
46041         * modules/readutmp (Depends-on): Add stdint.
46042         * modules/mountlist (Depends-on): Add stdint.
46043         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46044
46045 2009-03-10  Bruno Haible  <bruno@clisp.org>
46046
46047         Tests for module 'mbmemcasecoll'.
46048         * modules/mbmemcasecoll-tests: New file.
46049         * tests/test-mbmemcasecoll1.sh: New file.
46050         * tests/test-mbmemcasecoll2.sh: New file.
46051         * tests/test-mbmemcasecoll3.sh: New file.
46052         * tests/test-mbmemcasecoll.c: New file.
46053
46054         New module 'mbmemcasecoll'.
46055         * lib/mbmemcasecoll.h: New file.
46056         * lib/mbmemcasecoll.c: New file.
46057         * modules/mbmemcasecoll: New file.
46058
46059         * tests/test-mbmemcasecmp.h: New file, extracted from
46060         tests/test-mbmemcasecmp.c.
46061         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46062         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46063         (main): Update.
46064         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46065
46066 2009-03-09  Bruno Haible  <bruno@clisp.org>
46067
46068         Tests for module 'mbmemcasecmp'.
46069         * modules/mbmemcasecmp-tests: New file.
46070         * tests/test-mbmemcasecmp1.sh: New file.
46071         * tests/test-mbmemcasecmp2.sh: New file.
46072         * tests/test-mbmemcasecmp3.sh: New file.
46073         * tests/test-mbmemcasecmp.c: New file.
46074
46075         New module 'mbmemcasecmp'.
46076         * lib/mbmemcasecmp.h: New file.
46077         * lib/mbmemcasecmp.c: New file.
46078         * modules/mbmemcasecmp: New file.
46079
46080 2009-03-09  Bruno Haible  <bruno@clisp.org>
46081
46082         Tests for module 'unicase/ulc-casecoll'.
46083         * modules/unicase/ulc-casecoll-tests: New file.
46084         * tests/unicase/test-ulc-casecoll1.sh: New file.
46085         * tests/unicase/test-ulc-casecoll2.sh: New file.
46086         * tests/unicase/test-ulc-casecoll.c: New file.
46087
46088         New module 'unicase/ulc-casecoll'.
46089         * lib/unicase.h (ulc_casecoll): New declaration.
46090         * lib/unicase/ulc-casecoll.c: New file.
46091         * modules/unicase/ulc-casecoll: New file.
46092
46093         New module 'unicase/ulc-casexfrm'.
46094         * lib/unicase.h (ulc_casexfrm): New declaration.
46095         * lib/unicase/ulc-casexfrm.c: New file.
46096         * modules/unicase/ulc-casexfrm: New file.
46097
46098 2009-03-09  Bruno Haible  <bruno@clisp.org>
46099
46100         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46101         invocations.
46102
46103         * m4/mbscasecmp.m4: Remove file.
46104         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46105         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46106
46107         * m4/mbscasestr.m4: Remove file.
46108         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46109         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46110
46111         * m4/mbschr.m4: Remove file.
46112         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46113         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46114
46115         * m4/mbscspn.m4: Remove file.
46116         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46117         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46118
46119         * m4/mbslen.m4: Remove file.
46120         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46121         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46122
46123         * m4/mbsncasecmp.m4: Remove file.
46124         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46125         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46126
46127         * m4/mbsnlen.m4: Remove file.
46128         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46129         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46130
46131         * m4/mbspbrk.m4: Remove file.
46132         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46133         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46134
46135         * m4/mbspcasecmp.m4: Remove file.
46136         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46137         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46138
46139         * m4/mbsrchr.m4: Remove file.
46140         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46141         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46142
46143         * m4/mbssep.m4: Remove file.
46144         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46145         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46146
46147         * m4/mbsspn.m4: Remove file.
46148         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46149         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46150
46151         * m4/mbsstr.m4: Remove file.
46152         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46153         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46154
46155         * m4/mbstok_r.m4: Remove file.
46156         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46157         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46158
46159         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46160
46161         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46162         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46163
46164         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46165
46166 2009-03-08  Bruno Haible  <bruno@clisp.org>
46167
46168         Tests for module 'unicase/ulc-casecmp'.
46169         * modules/unicase/ulc-casecmp-tests: New file.
46170         * tests/unicase/test-ulc-casecmp1.sh: New file.
46171         * tests/unicase/test-ulc-casecmp2.sh: New file.
46172         * tests/unicase/test-ulc-casecmp.c: New file.
46173
46174         New module 'unicase/ulc-casecmp'.
46175         * lib/unicase.h (ulc_casecmp): New declaration.
46176         * lib/unicase/ulc-casecmp.c: New file.
46177         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46178         'const SRC_UNIT *'.
46179         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46180         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46181         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46182         * modules/unicase/ulc-casecmp: New file.
46183
46184         Tests for module 'unicase/u32-is-cased'.
46185         * modules/unicase/u32-is-cased-tests: New file.
46186         * tests/unicase/test-u32-is-cased.c: New file.
46187
46188         Tests for module 'unicase/u16-is-cased'.
46189         * modules/unicase/u16-is-cased-tests: New file.
46190         * tests/unicase/test-u16-is-cased.c: New file.
46191
46192         Tests for module 'unicase/u8-is-cased'.
46193         * modules/unicase/u8-is-cased-tests: New file.
46194         * tests/unicase/test-u8-is-cased.c: New file.
46195         * tests/unicase/test-is-cased.h: New file.
46196
46197         New module 'unicase/u32-is-cased'.
46198         * lib/unicase/u32-is-cased.c: New file.
46199         * modules/unicase/u32-is-cased: New file.
46200
46201         New module 'unicase/u16-is-cased'.
46202         * lib/unicase/u16-is-cased.c: New file.
46203         * modules/unicase/u16-is-cased: New file.
46204
46205         New module 'unicase/u8-is-cased'.
46206         * lib/unicase/u8-is-cased.c: New file.
46207         * lib/unicase/u-is-cased.h: New file.
46208         * modules/unicase/u8-is-cased: New file.
46209
46210         Tests for module 'unicase/u32-is-casefolded'.
46211         * modules/unicase/u32-is-casefolded-tests: New file.
46212         * tests/unicase/test-u32-is-casefolded.c: New file.
46213
46214         Tests for module 'unicase/u16-is-casefolded'.
46215         * modules/unicase/u16-is-casefolded-tests: New file.
46216         * tests/unicase/test-u16-is-casefolded.c: New file.
46217
46218         Tests for module 'unicase/u8-is-casefolded'.
46219         * modules/unicase/u8-is-casefolded-tests: New file.
46220         * tests/unicase/test-u8-is-casefolded.c: New file.
46221         * tests/unicase/test-is-casefolded.h: New file.
46222
46223         New module 'unicase/u32-is-casefolded'.
46224         * lib/unicase/u32-is-casefolded.c: New file.
46225         * modules/unicase/u32-is-casefolded: New file.
46226
46227         New module 'unicase/u16-is-casefolded'.
46228         * lib/unicase/u16-is-casefolded.c: New file.
46229         * modules/unicase/u16-is-casefolded: New file.
46230
46231         New module 'unicase/u8-is-casefolded'.
46232         * lib/unicase/u8-is-casefolded.c: New file.
46233         * modules/unicase/u8-is-casefolded: New file.
46234
46235         Tests for module 'unicase/u32-is-titlecase'.
46236         * modules/unicase/u32-is-titlecase-tests: New file.
46237         * tests/unicase/test-u32-is-titlecase.c: New file.
46238
46239         Tests for module 'unicase/u16-is-titlecase'.
46240         * modules/unicase/u16-is-titlecase-tests: New file.
46241         * tests/unicase/test-u16-is-titlecase.c: New file.
46242
46243         Tests for module 'unicase/u8-is-titlecase'.
46244         * modules/unicase/u8-is-titlecase-tests: New file.
46245         * tests/unicase/test-u8-is-titlecase.c: New file.
46246         * tests/unicase/test-is-titlecase.h: New file.
46247
46248         New module 'unicase/u32-is-titlecase'.
46249         * lib/unicase/u32-is-titlecase.c: New file.
46250         * modules/unicase/u32-is-titlecase: New file.
46251
46252         New module 'unicase/u16-is-titlecase'.
46253         * lib/unicase/u16-is-titlecase.c: New file.
46254         * modules/unicase/u16-is-titlecase: New file.
46255
46256         New module 'unicase/u8-is-titlecase'.
46257         * lib/unicase/u8-is-titlecase.c: New file.
46258         * modules/unicase/u8-is-titlecase: New file.
46259
46260         Tests for module 'unicase/u32-is-lowercase'.
46261         * modules/unicase/u32-is-lowercase-tests: New file.
46262         * tests/unicase/test-u32-is-lowercase.c: New file.
46263
46264         Tests for module 'unicase/u16-is-lowercase'.
46265         * modules/unicase/u16-is-lowercase-tests: New file.
46266         * tests/unicase/test-u16-is-lowercase.c: New file.
46267
46268         Tests for module 'unicase/u8-is-lowercase'.
46269         * modules/unicase/u8-is-lowercase-tests: New file.
46270         * tests/unicase/test-u8-is-lowercase.c: New file.
46271         * tests/unicase/test-is-lowercase.h: New file.
46272
46273         New module 'unicase/u32-is-lowercase'.
46274         * lib/unicase/u32-is-lowercase.c: New file.
46275         * modules/unicase/u32-is-lowercase: New file.
46276
46277         New module 'unicase/u16-is-lowercase'.
46278         * lib/unicase/u16-is-lowercase.c: New file.
46279         * modules/unicase/u16-is-lowercase: New file.
46280
46281         New module 'unicase/u8-is-lowercase'.
46282         * lib/unicase/u8-is-lowercase.c: New file.
46283         * modules/unicase/u8-is-lowercase: New file.
46284
46285         Tests for module 'unicase/u32-is-uppercase'.
46286         * modules/unicase/u32-is-uppercase-tests: New file.
46287         * tests/unicase/test-u32-is-uppercase.c: New file.
46288
46289         Tests for module 'unicase/u16-is-uppercase'.
46290         * modules/unicase/u16-is-uppercase-tests: New file.
46291         * tests/unicase/test-u16-is-uppercase.c: New file.
46292
46293         Tests for module 'unicase/u8-is-uppercase'.
46294         * modules/unicase/u8-is-uppercase-tests: New file.
46295         * tests/unicase/test-u8-is-uppercase.c: New file.
46296         * tests/unicase/test-is-uppercase.h: New file.
46297
46298         New module 'unicase/u32-is-uppercase'.
46299         * lib/unicase/u32-is-uppercase.c: New file.
46300         * modules/unicase/u32-is-uppercase: New file.
46301
46302         New module 'unicase/u16-is-uppercase'.
46303         * lib/unicase/u16-is-uppercase.c: New file.
46304         * modules/unicase/u16-is-uppercase: New file.
46305
46306         New module 'unicase/u8-is-uppercase'.
46307         * lib/unicase/u8-is-uppercase.c: New file.
46308         * modules/unicase/u8-is-uppercase: New file.
46309
46310         New module 'unicase/u32-is-invariant'.
46311         * lib/unicase/u32-is-invariant.c: New file.
46312         * modules/unicase/u32-is-invariant: New file.
46313
46314         New module 'unicase/u16-is-invariant'.
46315         * lib/unicase/u16-is-invariant.c: New file.
46316         * modules/unicase/u16-is-invariant: New file.
46317
46318         New module 'unicase/u8-is-invariant'.
46319         * lib/unicase/u8-is-invariant.c: New file.
46320         * lib/unicase/invariant.h: New file.
46321         * lib/unicase/u-is-invariant.h: New file.
46322         * modules/unicase/u8-is-invariant: New file.
46323
46324         Tests for module 'unicase/u32-casecoll'.
46325         * modules/unicase/u32-casecoll-tests: New file.
46326         * tests/unicase/test-u32-casecoll.c: New file.
46327
46328         Tests for module 'unicase/u16-casecoll'.
46329         * modules/unicase/u16-casecoll-tests: New file.
46330         * tests/unicase/test-u16-casecoll.c: New file.
46331
46332         Tests for module 'unicase/u8-casecoll'.
46333         * modules/unicase/u8-casecoll-tests: New file.
46334         * tests/unicase/test-u8-casecoll.c: New file.
46335
46336         New module 'unicase/u32-casecoll'.
46337         * lib/unicase/u32-casecoll.c: New file.
46338         * modules/unicase/u32-casecoll: New file.
46339
46340         New module 'unicase/u16-casecoll'.
46341         * lib/unicase/u16-casecoll.c: New file.
46342         * modules/unicase/u16-casecoll: New file.
46343
46344         New module 'unicase/u8-casecoll'.
46345         * lib/unicase/u8-casecoll.c: New file.
46346         * lib/unicase/u-casecoll.h: New file.
46347         * modules/unicase/u8-casecoll: New file.
46348
46349         New module 'unicase/u32-casexfrm'.
46350         * lib/unicase/u32-casexfrm.c: New file.
46351         * modules/unicase/u32-casexfrm: New file.
46352
46353         New module 'unicase/u16-casexfrm'.
46354         * lib/unicase/u16-casexfrm.c: New file.
46355         * modules/unicase/u16-casexfrm: New file.
46356
46357         New module 'unicase/u8-casexfrm'.
46358         * lib/unicase/u8-casexfrm.c: New file.
46359         * lib/unicase/u-casexfrm.h: New file.
46360         * modules/unicase/u8-casexfrm: New file.
46361
46362         Tests for module 'unicase/u32-casecmp'.
46363         * modules/unicase/u32-casecmp-tests: New file.
46364         * tests/unicase/test-u32-casecmp.c: New file.
46365
46366         Tests for module 'unicase/u16-casecmp'.
46367         * modules/unicase/u16-casecmp-tests: New file.
46368         * tests/unicase/test-u16-casecmp.c: New file.
46369
46370         Tests for module 'unicase/u8-casecmp'.
46371         * modules/unicase/u8-casecmp-tests: New file.
46372         * tests/unicase/test-u8-casecmp.c: New file.
46373         * tests/unicase/test-casecmp.h: New file.
46374
46375         New module 'unicase/u32-casecmp'.
46376         * lib/unicase/u32-casecmp.c: New file.
46377         * modules/unicase/u32-casecmp: New file.
46378
46379         New module 'unicase/u16-casecmp'.
46380         * lib/unicase/u16-casecmp.c: New file.
46381         * modules/unicase/u16-casecmp: New file.
46382
46383         New module 'unicase/u8-casecmp'.
46384         * lib/unicase/u8-casecmp.c: New file.
46385         * lib/unicase/u-casecmp.h: New file.
46386         * modules/unicase/u8-casecmp: New file.
46387
46388         Tests for module 'unicase/u32-casefold'.
46389         * modules/unicase/u32-casefold-tests: New file.
46390         * tests/unicase/test-u32-casefold.c: New file.
46391
46392         Tests for module 'unicase/u16-casefold'.
46393         * modules/unicase/u16-casefold-tests: New file.
46394         * tests/unicase/test-u16-casefold.c: New file.
46395
46396         Tests for module 'unicase/u8-casefold'.
46397         * modules/unicase/u8-casefold-tests: New file.
46398         * tests/unicase/test-u8-casefold.c: New file.
46399
46400         New module 'unicase/u32-casefold'.
46401         * lib/unicase/u32-casefold.c: New file.
46402         * modules/unicase/u32-casefold: New file.
46403
46404         New module 'unicase/u16-casefold'.
46405         * lib/unicase/u16-casefold.c: New file.
46406         * modules/unicase/u16-casefold: New file.
46407
46408         New module 'unicase/u8-casefold'.
46409         * lib/unicase/u8-casefold.c: New file.
46410         * lib/unicase/u-casefold.h: New file.
46411         * modules/unicase/u8-casefold: New file.
46412
46413         New module 'unicase/tocasefold'.
46414         * lib/unicase/casefold.h: New file.
46415         * lib/unicase/tocasefold.c: New file.
46416         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46417         * modules/unicase/tocasefold: New file.
46418
46419         Tests for module 'unicase/u32-totitle'.
46420         * modules/unicase/u32-totitle-tests: New file.
46421         * tests/unicase/test-u32-totitle.c: New file.
46422
46423         Tests for module 'unicase/u16-totitle'.
46424         * modules/unicase/u16-totitle-tests: New file.
46425         * tests/unicase/test-u16-totitle.c: New file.
46426
46427         Tests for module 'unicase/u8-totitle'.
46428         * modules/unicase/u8-totitle-tests: New file.
46429         * tests/unicase/test-u8-totitle.c: New file.
46430
46431         New module 'unicase/u32-totitle'.
46432         * lib/unicase/u32-totitle.c: New file.
46433         * modules/unicase/u32-totitle: New file.
46434
46435         New module 'unicase/u16-totitle'.
46436         * lib/unicase/u16-totitle.c: New file.
46437         * modules/unicase/u16-totitle: New file.
46438
46439         New module 'unicase/u8-totitle'.
46440         * lib/unicase/u8-totitle.c: New file.
46441         * lib/unicase/u-totitle.h: New file.
46442         * modules/unicase/u8-totitle: New file.
46443
46444         Tests for module 'unicase/u32-tolower'.
46445         * modules/unicase/u32-tolower-tests: New file.
46446         * tests/unicase/test-u32-tolower.c: New file.
46447
46448         Tests for module 'unicase/u16-tolower'.
46449         * modules/unicase/u16-tolower-tests: New file.
46450         * tests/unicase/test-u16-tolower.c: New file.
46451
46452         Tests for module 'unicase/u8-tolower'.
46453         * modules/unicase/u8-tolower-tests: New file.
46454         * tests/unicase/test-u8-tolower.c: New file.
46455
46456         New module 'unicase/u32-tolower'.
46457         * lib/unicase/u32-tolower.c: New file.
46458         * modules/unicase/u32-tolower: New file.
46459
46460         New module 'unicase/u16-tolower'.
46461         * lib/unicase/u16-tolower.c: New file.
46462         * modules/unicase/u16-tolower: New file.
46463
46464         New module 'unicase/u8-tolower'.
46465         * lib/unicase/u8-tolower.c: New file.
46466         * modules/unicase/u8-tolower: New file.
46467
46468         Tests for module 'unicase/u32-toupper'.
46469         * modules/unicase/u32-toupper-tests: New file.
46470         * tests/unicase/test-u32-toupper.c: New file.
46471
46472         Tests for module 'unicase/u16-toupper'.
46473         * modules/unicase/u16-toupper-tests: New file.
46474         * tests/unicase/test-u16-toupper.c: New file.
46475
46476         Tests for module 'unicase/u8-toupper'.
46477         * modules/unicase/u8-toupper-tests: New file.
46478         * tests/unicase/test-u8-toupper.c: New file.
46479
46480         New module 'unicase/u32-toupper'.
46481         * lib/unicase/u32-toupper.c: New file.
46482         * modules/unicase/u32-toupper: New file.
46483
46484         New module 'unicase/u16-toupper'.
46485         * lib/unicase/u16-toupper.c: New file.
46486         * modules/unicase/u16-toupper: New file.
46487
46488         New module 'unicase/u8-toupper'.
46489         * lib/unicase/u8-toupper.c: New file.
46490         * modules/unicase/u8-toupper: New file.
46491
46492         New module 'unicase/u32-casemap'.
46493         * lib/unicase/u32-casemap.c: New file.
46494         * modules/unicase/u32-casemap: New file.
46495
46496         New module 'unicase/u16-casemap'.
46497         * lib/unicase/u16-casemap.c: New file.
46498         * modules/unicase/u16-casemap: New file.
46499
46500         New module 'unicase/u8-casemap'.
46501         * lib/unicase/unicasemap.h: New file.
46502         * lib/unicase/u8-casemap.c: New file.
46503         * lib/unicase/u-casemap.h: New file.
46504         * modules/unicase/u8-casemap: New file.
46505
46506         New module 'unicase/special-casing'.
46507         * lib/unicase/special-casing.h: New file.
46508         * lib/unicase/special-casing.c: New file.
46509         * lib/unicase/special-casing-table.gperf: New file, generated by
46510         gen-uni-tables.c.
46511         * modules/unicase/special-casing: New file.
46512
46513         Tests for module 'unicase/locale-language'.
46514         * modules/unicase/locale-language-tests: New file.
46515         * tests/unicase/test-locale-language.sh: New file.
46516         * tests/unicase/test-locale-language.c: New file.
46517
46518         New module 'unicase/locale-language'.
46519         * lib/unicase/locale-language.c: New file.
46520         * lib/unicase/locale-languages.gperf: New file.
46521         * modules/unicase/locale-language: New file.
46522
46523         Generate more tables for case conversion and case folding.
46524         * lib/gen-uni-tables.c (SCC_*): New enum items.
46525         (struct special_casing_rule): New type.
46526         (casing_rules, num_casing_rules, allocated_casing_rules): New
46527         variables.
46528         (add_casing_rule, fill_casing_rules): New functions.
46529         (struct casefold_rule): New type.
46530         (casefolding_rules, num_casefolding_rules,
46531         allocated_casefolding_rules): New variables.
46532         (fill_casefolding_rules): New function.
46533         (unicode_casefold): New variable.
46534         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46535         sort_casing_rules, output_casing_rules): New functions.
46536         (main): Accept to more arguments: SpecialCasing.txt and
46537         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46538         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46539         Output mapping for casefolding.
46540
46541         * lib/unicase.h: Include stdbool.h, uninorm.h.
46542         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46543         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46544         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46545         arguments.
46546         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46547         resultp arguments.
46548         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46549         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46550         resultp arguments.
46551         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46552         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46553         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46554         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46555         declarations.
46556         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46557
46558 2009-03-08  Bruno Haible  <bruno@clisp.org>
46559
46560         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46561         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46562         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46563         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46564
46565 2009-03-07  Bruno Haible  <bruno@clisp.org>
46566
46567         Adjust u*_normcmp, u*_normcoll API.
46568         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46569         u16_normcoll, u32_normcoll): Change failure conventions.
46570         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46571         errno and return -1.
46572         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46573
46574 2009-03-07  Bruno Haible  <bruno@clisp.org>
46575
46576         Tests for module 'uninorm/u32-normcoll'.
46577         * modules/uninorm/u32-normcoll-tests: New file.
46578         * tests/uninorm/test-u32-normcoll.c: New file.
46579
46580         Tests for module 'uninorm/u16-normcoll'.
46581         * modules/uninorm/u16-normcoll-tests: New file.
46582         * tests/uninorm/test-u16-normcoll.c: New file.
46583
46584         Tests for module 'uninorm/u8-normcoll'.
46585         * modules/uninorm/u8-normcoll-tests: New file.
46586         * tests/uninorm/test-u8-normcoll.c: New file.
46587
46588 2009-03-07  Bruno Haible  <bruno@clisp.org>
46589
46590         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46591         tests/uninorm/test-u32-normcmp.c.
46592         * tests/uninorm/test-u32-normcmp.c: Include it.
46593         (test_nonascii): New function, extracted from main. Add some more
46594         tests.
46595         (main): Invoke test_ascii and test_nonascii.
46596         * modules/uninorm/u32-normcmp-tests (Files): Add
46597         tests/uninorm/test-u32-normcmp.h.
46598         (Depends-on): Remove uninorm/u32-normcmp.
46599
46600         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46601         tests/uninorm/test-u16-normcmp.c.
46602         * tests/uninorm/test-u16-normcmp.c: Include it.
46603         (test_nonascii): New function, extracted from main. Add some more
46604         tests.
46605         (main): Invoke test_ascii and test_nonascii.
46606         * modules/uninorm/u16-normcmp-tests (Files): Add
46607         tests/uninorm/test-u16-normcmp.h.
46608         (Depends-on): Remove uninorm/u16-normcmp.
46609
46610         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46611         tests/uninorm/test-u8-normcmp.c.
46612         * tests/uninorm/test-u8-normcmp.c: Include it.
46613         (test_nonascii): New function, extracted from main. Add some more
46614         tests.
46615         (main): Invoke test_ascii and test_nonascii.
46616         * modules/uninorm/u8-normcmp-tests (Files): Add
46617         tests/uninorm/test-u8-normcmp.h.
46618         (Depends-on): Remove uninorm/u8-normcmp.
46619
46620 2009-03-07  Bruno Haible  <bruno@clisp.org>
46621
46622         New module 'uninorm/u32-normcoll'.
46623         * lib/uninorm/u32-normcoll.c: New file.
46624         * modules/uninorm/u32-normcoll: New file.
46625
46626         New module 'uninorm/u16-normcoll'.
46627         * lib/uninorm/u16-normcoll.c: New file.
46628         * modules/uninorm/u16-normcoll: New file.
46629
46630         New module 'uninorm/u8-normcoll'.
46631         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46632         declarations.
46633         * lib/uninorm/u8-normcoll.c: New file.
46634         * lib/uninorm/u-normcoll.h: New file.
46635         * modules/uninorm/u8-normcoll: New file.
46636
46637         New module 'uninorm/u32-normxfrm'.
46638         * lib/uninorm/u32-normxfrm.c: New file.
46639         * modules/uninorm/u32-normxfrm: New file.
46640
46641         New module 'uninorm/u16-normxfrm'.
46642         * lib/uninorm/u16-normxfrm.c: New file.
46643         * modules/uninorm/u16-normxfrm: New file.
46644
46645         New module 'uninorm/u8-normxfrm'.
46646         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46647         declarations.
46648         * lib/uninorm/u8-normxfrm.c: New file.
46649         * lib/uninorm/u-normxfrm.h: New file.
46650         * modules/uninorm/u8-normxfrm: New file.
46651
46652 2009-03-07  Bruno Haible  <bruno@clisp.org>
46653
46654         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46655         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46656         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46657
46658 2009-03-07  Bruno Haible  <bruno@clisp.org>
46659
46660         New module 'memxfrm'.
46661         * lib/memxfrm.h: New file.
46662         * lib/memxfrm.c: New file.
46663         * modules/memxfrm: New file.
46664
46665 2009-03-07  Bruno Haible  <bruno@clisp.org>
46666
46667         New module 'memcmp2'.
46668         * lib/memcmp2.h: New file.
46669         * lib/memcmp2.c: New file.
46670         * modules/memcmp2: New file.
46671
46672 2009-03-07  Bruno Haible  <bruno@clisp.org>
46673
46674         Tests for module 'uninorm/decomposing-form'.
46675         * modules/uninorm/decomposing-form-tests: New file.
46676         * tests/uninorm/test-decomposing-form.c: New file.
46677
46678         New module 'uninorm/decomposing-form'.
46679         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46680         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46681         Add 'decomposing_variant' field.
46682         * lib/uninorm/decomposing-form.c: New file.
46683         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46684         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46685         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46686         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46687         * modules/uninorm/decomposing-form: New file.
46688         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46689         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46690
46691 2009-03-07  Bruno Haible  <bruno@clisp.org>
46692
46693         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46694         strings.
46695
46696 2009-03-06  Bruno Haible  <bruno@clisp.org>
46697
46698         Tests for module 'uninorm/u32-normcmp'.
46699         * tests/uninorm/test-u32-normcmp.c: New file.
46700         * modules/uninorm/u32-normcmp-tests: New file.
46701
46702         Tests for module 'uninorm/u16-normcmp'.
46703         * tests/uninorm/test-u16-normcmp.c: New file.
46704         * modules/uninorm/u16-normcmp-tests: New file.
46705
46706         Tests for module 'uninorm/u8-normcmp'.
46707         * tests/uninorm/test-u8-normcmp.c: New file.
46708         * modules/uninorm/u8-normcmp-tests: New file.
46709
46710         New module 'uninorm/u32-normcmp'.
46711         * lib/uninorm/u32-normcmp.c: New file.
46712         * modules/uninorm/u32-normcmp: New file.
46713
46714         New module 'uninorm/u16-normcmp'.
46715         * lib/uninorm/u16-normcmp.c: New file.
46716         * modules/uninorm/u16-normcmp: New file.
46717
46718         New module 'uninorm/u8-normcmp'.
46719         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46720         declarations.
46721         * lib/uninorm/u8-normcmp.c: New file.
46722         * lib/uninorm/u-normcmp.h: New file.
46723         * modules/uninorm/u8-normcmp: New file.
46724
46725 2009-03-06  Bruno Haible  <bruno@clisp.org>
46726
46727         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46728         Reported by Eric Blake.
46729
46730 2009-03-06  Eric Blake  <ebb9@byu.net>
46731             Bruno Haible  <bruno@clisp.org>
46732
46733         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46734         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46735         condition.
46736         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46737         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46738         condition.
46739         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46740
46741 2009-03-06  Eric Blake  <ebb9@byu.net>
46742
46743         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46744         to avoid compiler warnings.
46745         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46746
46747 2009-03-05  Bruno Haible  <bruno@clisp.org>
46748
46749         * tests/test-ftell.c (main): Disable test beyond end of file on
46750         FreeMiNT.
46751         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46752
46753 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46754
46755         * lib/filevercmp.c: Move hidden files up in ordering.
46756         * tests/test-filevercmp.c: Add tests for hidden files.
46757
46758 2009-03-04  Bruno Haible  <bruno@clisp.org>
46759
46760         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46761         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46762         AM_CFLAGS.
46763         Reported by Simon Josefsson.
46764
46765 2009-03-03  Bruno Haible  <bruno@clisp.org>
46766
46767         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46768         Reported by Simon Josefsson.
46769
46770         * doc/ld-version-script.texi: Update node reference.
46771
46772 2009-03-03  Bruno Haible  <bruno@clisp.org>
46773
46774         * modules/visibility (License): Change to 'unlimited'.
46775         Suggested by Simon Josefsson.
46776
46777 2009-03-03  Jim Meyering  <meyering@redhat.com>
46778
46779         unlinkdir: cannot_unlink_dir may modify process state
46780         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46781         it's neither thread-safe nor appropriate for use in a library.
46782
46783 2009-03-03  Eric Blake  <ebb9@byu.net>
46784
46785         test-closein: silence test under Darwin
46786         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46787         care if it dies from EPIPE or EBADF.
46788
46789 2009-03-03  Bruno Haible  <bruno@clisp.org>
46790
46791         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46792         earlier.
46793         * doc/visibility.texi: Fix @node and @section.
46794
46795 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46796
46797         * doc/gnulib.texi: Link to sections for ld version script and
46798         visibility.
46799         * doc/visibility.texi: Add @node and @section.
46800         * modules/ld-version-script: New module.
46801         * m4/ld-version-script.m4: New file.
46802         * doc/ld-version-script.texi: New file.
46803
46804 2009-03-02  David Lutterkort  <lutter@redhat.com>
46805
46806         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46808
46809 2009-03-02  Bruno Haible  <bruno@clisp.org>
46810
46811         * doc/visibility.texi: Mention libtool's -export-symbols option.
46812
46813 2009-03-02  Jim Meyering  <meyering@redhat.com>
46814
46815         announce-gen: new option: --no-print-checksums
46816         * build-aux/announce-gen (usage): Describe it.
46817         (print_checksums): Print a newline here, not in the [*] footnote.
46818         (main): Honor it.
46819
46820 2009-03-01  Bruno Haible  <bruno@clisp.org>
46821
46822         Use socklen_t in the native Windows replacements prototypes.
46823         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46824         instead of 'int'.
46825         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46826         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46827         * modules/getsockopt (Depends-on): Add socklen.
46828         * modules/setsockopt (Depends-on): Add socklen.
46829
46830 2009-03-01  Bruno Haible  <bruno@clisp.org>
46831
46832         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46833         least 4.2.
46834
46835 2009-03-01  Eric Blake  <ebb9@byu.net>
46836             Bruno Haible  <bruno@clisp.org>
46837
46838         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46839         error messages.
46840         * lib/wait-process.c (wait_subprocess): Omit error message about
46841         deadly signal sent to the child of termsigp != NULL.
46842
46843 2009-03-01  Eric Blake  <ebb9@byu.net>
46844
46845         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46846
46847 2009-03-01  Bruno Haible  <bruno@clisp.org>
46848
46849         Avoid a gcc warning.
46850         * tests/test-sched.c (b): Make global.
46851         Reported by Eric Blake.
46852
46853 2009-01-19  Martin Lambers  <marlam@marlam.de>
46854
46855         Provide POSIX semantics for socket timeout options on W32.
46856         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46857         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46858         * modules/setsockopt: Depend on sys_time module for struct timeval.
46859         * modules/getsockopt: Depend on sys_time module for struct timeval.
46860
46861 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46862
46863         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46864         __USE_GNU, for consistency with netdb.in.h.
46865         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46866
46867 2009-03-01  Bruno Haible  <bruno@clisp.org>
46868
46869         More support for FreeMiNT.
46870         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46871         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46872
46873 2009-03-01  Bruno Haible  <bruno@clisp.org>
46874
46875         More support for FreeMiNT.
46876         * lib/fpurge.c (fpurge): Correct last commit.
46877         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46878
46879 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46880
46881         Fix unportable awk script in vc-list-files.
46882         * build-aux/vc-list-files: In the replacement awk script, use
46883         substr with a second argument of 1, not zero.
46884         Report by Simon Josefsson.
46885
46886 2009-02-28  Bruno Haible  <bruno@clisp.org>
46887
46888         More support for FreeMiNT.
46889         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46890         to FreeMiNT today.
46891         * lib/fwriting.c (fwriting): Likewise.
46892         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46893
46894 2009-02-28  Bruno Haible  <bruno@clisp.org>
46895
46896         * tests/test-freadseek.c (main): Disable test beyond end of file on
46897         FreeMiNT.
46898         * tests/test-ftello.c (main): Likewise.
46899         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46900
46901 2009-02-28  Bruno Haible  <bruno@clisp.org>
46902
46903         Add tentative support for FreeMiNT.
46904         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46905         * lib/fpurge.c (fpurge): Likewise.
46906         * lib/freadable.c (freadable): Likewise.
46907         * lib/freading.c (freading): Likewise.
46908         * lib/freadptr.c (freadptr): Likewise.
46909         * lib/freadseek.c (freadptrinc): Likewise.
46910         * lib/fseeko.c (rpl_fseeko): Likewise.
46911         * lib/fseterr.c (fseterr): Likewise.
46912         * lib/fwritable.c (fwritable): Likewise.
46913         * lib/fwriting.c (fwriting): Likewise.
46914         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46915         Hourihane.
46916         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46917
46918 2009-02-28  Bruno Haible  <bruno@clisp.org>
46919
46920         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46921         SIGCHLD.
46922         Reported by Jim Meyering.
46923
46924 2009-02-28  Bruno Haible  <bruno@clisp.org>
46925
46926         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46927         Mention the results of these tests on various platforms.
46928         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46929         order.
46930         * doc/posix-functions/printf.texi: Likewise.
46931         * doc/posix-functions/snprintf.texi: Likewise.
46932         * doc/posix-functions/sprintf.texi: Likewise.
46933         * doc/posix-functions/vfprintf.texi: Likewise.
46934         * doc/posix-functions/vprintf.texi: Likewise.
46935         * doc/posix-functions/vsnprintf.texi: Likewise.
46936         * doc/posix-functions/vsprintf.texi: Likewise.
46937         * doc/glibc-functions/obstack_printf.texi: Likewise.
46938         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46939
46940 2009-02-28  Bruno Haible  <bruno@clisp.org>
46941
46942         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46943         Reported by Loïc Minier <lool@dooz.org>.
46944
46945 2009-02-27  Bruno Haible  <bruno@clisp.org>
46946
46947         * gnulib-tool (func_import): Make the sed expression used to create the
46948         sed script for updating the .gitignore file POSIX compliant.
46949         Reported by Eric Blake.
46950
46951 2009-02-27  Bruno Haible  <bruno@clisp.org>
46952
46953         * gnulib-tool (sed): Don't alias as "sed --posix".
46954         Reported by Eric Blake.
46955
46956 2009-02-27  Bruno Haible  <bruno@clisp.org>
46957
46958         Avoid test link errors.
46959         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46960         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46961         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46962         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46963         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46964
46965 2009-02-27  Bruno Haible  <bruno@clisp.org>
46966
46967         Avoid spurious "(cached)" in configure output.
46968         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46969         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46970         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46971         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46972         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46973         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46974         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46975         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46976         Reported by Eric Blake.
46977
46978 2009-02-27  Eric Blake  <ebb9@byu.net>
46979
46980         printf: fix regression in previous patch
46981         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46982
46983 2009-02-27  Bruno Haible  <bruno@clisp.org>
46984
46985         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46986         value.
46987         * lib/stdint.in.h: Likewise.
46988         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46989
46990 2009-02-27  Eric Blake  <ebb9@byu.net>
46991
46992         doc: mention more functions added in cygwin 1.7.0
46993         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46994         addition.
46995         * doc/posix-functions/open_wmemstream.texi: Likewise.
46996         * doc/posix-functions/wcsnlen.texi: Likewise.
46997         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46998         * doc/posix-functions/wcstod.texi: Likewise.
46999         * doc/posix-functions/wcstof.texi: Likewise.
47000         * doc/posix-functions/wcstoimax.texi: Likewise.
47001         * doc/posix-functions/wcstok.texi: Likewise.
47002         * doc/posix-functions/wcstoumax.texi: Likewise.
47003
47004         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47006         * doc/posix-functions/fprintf.texi: Update.
47007         * doc/posix-functions/printf.texi: Update.
47008         * doc/posix-functions/snprintf.texi: Update.
47009         * doc/posix-functions/sprintf.texi: Update.
47010         * doc/posix-functions/vfprintf.texi: Update.
47011         * doc/posix-functions/vprintf.texi: Update.
47012         * doc/posix-functions/vsnprintf.texi: Update.
47013         * doc/posix-functions/vsprintf.texi: Update.
47014         * doc/glibc-functions/obstack_printf.texi: Update.
47015         * doc/glibc-functions/obstack_vprintf.texi: Update.
47016
47017 2009-02-26  Eric Blake  <ebb9@byu.net>
47018
47019         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47020         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47021         compilation bug by using runtime conversion.
47022         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47023         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47024         * modules/ceill-tests (Files): Use nan.h.
47025         * modules/floorl-tests (Files): Likewise.
47026         * modules/frexpl-tests (Files): Likewise.
47027         * modules/isnanl-tests (Files): Likewise.
47028         * modules/ldexpl-tests (Files): Likewise.
47029         * modules/roundl-tests (Files): Likewise.
47030         * modules/truncl-tests (Files): Likewise.
47031         * tests/test-ceill.c (main): Use a working NaN.
47032         * tests/test-floorl.c (main): Likewise.
47033         * tests/test-frexpl.c (main): Likewise.
47034         * tests/test-isnan.c (test_long_double): Likewise.
47035         * tests/test-isnanl.h (main): Likewise.
47036         * tests/test-ldexpl.h (main): Likewise.
47037         * tests/test-roundl.h (main): Likewise.
47038         * tests/test-truncl.h (main): Likewise.
47039         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47040
47041 2009-02-26  Eric Blake  <ebb9@byu.net>
47042             Bruno Haible  <bruno@clisp.org>
47043
47044         Work around a *printf bug with %ls on Solaris.
47045         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47046         precision is specified, sprintf stops converting the wide string
47047         argument when the number of bytes that have been produced by this
47048         conversion equals or exceeds the precision.
47049         * doc/posix-functions/fprintf.texi: Update.
47050         * doc/posix-functions/printf.texi: Update.
47051         * doc/posix-functions/snprintf.texi: Update.
47052         * doc/posix-functions/sprintf.texi: Update.
47053         * doc/posix-functions/vfprintf.texi: Update.
47054         * doc/posix-functions/vprintf.texi: Update.
47055         * doc/posix-functions/vsnprintf.texi: Update.
47056         * doc/posix-functions/vsprintf.texi: Update.
47057         * doc/glibc-functions/obstack_printf.texi: Update.
47058         * doc/glibc-functions/obstack_vprintf.texi: Update.
47059
47060 2009-02-26  Eric Blake  <ebb9@byu.net>
47061
47062         stdlib: favor compiler check of random.h
47063         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47064         to avoid an ObjC random.h installed by Swarm.
47065
47066 2009-02-26  Bruno Haible  <bruno@clisp.org>
47067
47068         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47069         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47070         Reported by Gary V. Vaughan <gary@gnu.org>.
47071
47072 2009-02-26  Bruno Haible  <bruno@clisp.org>
47073
47074         Fix *printf behaviour regarding the %ls directive.
47075         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47076         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47077         NEED_PRINTF_DIRECTIVE_LS.
47078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47079         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47080         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47081         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47082         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47083         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47084         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47086         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47087         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47088         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47089         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47090         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47092         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47093         * doc/posix-functions/fprintf.texi: Update.
47094         * doc/posix-functions/printf.texi: Update.
47095         * doc/posix-functions/snprintf.texi: Update.
47096         * doc/posix-functions/sprintf.texi: Update.
47097         * doc/posix-functions/vfprintf.texi: Update.
47098         * doc/posix-functions/vprintf.texi: Update.
47099         * doc/posix-functions/vsnprintf.texi: Update.
47100         * doc/posix-functions/vsprintf.texi: Update.
47101         * doc/glibc-functions/obstack_printf.texi: Update.
47102         * doc/glibc-functions/obstack_vprintf.texi: Update.
47103         Reported by Eric Blake.
47104
47105 2009-02-25  Bruno Haible  <bruno@clisp.org>
47106
47107         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47108         with known value.
47109         Reported by Gary V. Vaughan <gary@gnu.org>.
47110
47111 2009-02-25  Bruno Haible  <bruno@clisp.org>
47112
47113         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47114         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47115         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47116         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47117         Reported by Gary V. Vaughan <gary@gnu.org>.
47118
47119 2009-02-25  Bruno Haible  <bruno@clisp.org>
47120
47121         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47122         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47123         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47124         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47125         Reported by Gary V. Vaughan <gary@gnu.org>.
47126
47127 2009-02-25  Eric Blake  <ebb9@byu.net>
47128
47129         tests: skip fseek/ftell tests if ungetc is broken
47130         * m4/ungetc.m4: New file.
47131         * modules/fseek-tests: Split test, so ungetc dependency is
47132         separate from rest of test.
47133         * modules/fseeko-tests: Likewise.
47134         * modules/ftell-tests: Likewise.
47135         * modules/ftello-tests: Likewise.
47136         * tests/test-fseek.c (main): Isolate ungetc dependency.
47137         * tests/test-fseeko.c (main): Likewise.
47138         * tests/test-ftell.c (main): Likewise.
47139         * tests/test-ftello.c (main): Likewise.
47140         * tests/test-fseek2.sh: New file.
47141         * tests/test-fseeko2.sh: Likewise.
47142         * tests/test-ftell2.sh: Likewise.
47143         * tests/test-ftello2.sh: Likewise.
47144
47145 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
47146
47147         test-getaddrinfo: fix usage of skip return code 77
47148         * tests/test-gettaddrinfo.c: Return skip code 77 only
47149         for first occurrence of skip (4x77 is not 77)
47150
47151 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47152
47153         strtod: avoid C99 decl-after-statement
47154         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47155
47156 2009-02-24  Eric Blake  <ebb9@byu.net>
47157
47158         strtod: detect HP-UX 11.31 bug
47159         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47160         Reported by Gary V. Vaughan.
47161
47162 2009-02-23  Bruno Haible  <bruno@clisp.org>
47163
47164         Fix invalid read past end of memory block.
47165         * lib/vasnprintf.c (DCHAR_SET): Define.
47166         (local_wcslen): Define only when needed.
47167         (local_strnlen, local_wcsnlen): New functions.
47168         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47169         directives that involve a conversion ourselves.
47170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47171         wcsnlen, mbrtowc, wcrtomb.
47172         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47173         * tests/test-vasprintf-posix.c (test_function): Likewise.
47174         * tests/test-snprintf-posix.h (test_function): Likewise.
47175         * tests/test-sprintf-posix.h (test_function): Likewise.
47176         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47177
47178 2009-02-22  Bruno Haible  <bruno@clisp.org>
47179
47180         Implement new clarified decomposition of Hangul syllables.
47181         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47182         of type LTV, return only a pairwise decomposition.
47183         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47184         Likewise.
47185         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47186         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47187         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47188
47189 2009-02-22  Bruno Haible  <bruno@clisp.org>
47190
47191         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47192         zero-length results and shrink excess allocated memory.
47193         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47194         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47195         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47196         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47197         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47198         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47199         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47200         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47201         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47202         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47203         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47204         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47205
47206 2009-02-21  Bruno Haible  <bruno@clisp.org>
47207
47208         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47209         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47210         spaces after a period. Put a space between a macro name and its
47211         argument list. Trivial rewordings.
47212         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47213         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47214         (main): Return 0 explicitly.
47215
47216 2009-02-21  Bruno Haible  <bruno@clisp.org>
47217
47218         Tests for module 'uninorm/filter'.
47219         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47220         * modules/uninorm/filter-tests: New file.
47221
47222         New module 'uninorm/filter'.
47223         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47224         uninorm_filter_flush, uninorm_filter_free): New declarations.
47225         * lib/uninorm/uninorm-filter.c: New file.
47226         * modules/uninorm/filter: New file.
47227
47228 2009-02-21  Bruno Haible  <bruno@clisp.org>
47229
47230         Tests for module 'uninorm/nfkc'.
47231         * tests/uninorm/test-nfkc.c: New file.
47232         * tests/uninorm/test-u8-nfkc.c: New file.
47233         * tests/uninorm/test-u16-nfkc.c: New file.
47234         * tests/uninorm/test-u32-nfkc.c: New file.
47235         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47236         * tests/uninorm/test-u32-nfkc-big.c: New file.
47237         * modules/uninorm/nfkc-tests: New file.
47238
47239         New module 'uninorm/nfkc'.
47240         * lib/uninorm/nfkc.c: New file.
47241         * modules/uninorm/nfkc: New file.
47242
47243         Tests for module 'uninorm/nfkd'.
47244         * tests/uninorm/test-nfkd.c: New file.
47245         * tests/uninorm/test-u8-nfkd.c: New file.
47246         * tests/uninorm/test-u16-nfkd.c: New file.
47247         * tests/uninorm/test-u32-nfkd.c: New file.
47248         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47249         * tests/uninorm/test-u32-nfkd-big.c: New file.
47250         * modules/uninorm/nfkd-tests: New file.
47251
47252         New module 'uninorm/nfkd'.
47253         * lib/uninorm/nfkd.c: New file.
47254         * modules/uninorm/nfkd: New file.
47255
47256         Tests for module 'uninorm/nfc'.
47257         * tests/uninorm/test-nfc.c: New file.
47258         * tests/uninorm/test-u8-nfc.c: New file.
47259         * tests/uninorm/test-u16-nfc.c: New file.
47260         * tests/uninorm/test-u32-nfc.c: New file.
47261         * tests/uninorm/test-u32-nfc-big.sh: New file.
47262         * tests/uninorm/test-u32-nfc-big.c: New file.
47263         * modules/uninorm/nfc-tests: New file.
47264
47265         New module 'uninorm/nfc'.
47266         * lib/uninorm/nfc.c: New file.
47267         * modules/uninorm/nfc: New file.
47268
47269         Tests for module 'uninorm/nfd'.
47270         * tests/uninorm/test-nfd.c: New file.
47271         * tests/uninorm/test-u8-nfd.c: New file.
47272         * tests/uninorm/test-u16-nfd.c: New file.
47273         * tests/uninorm/test-u32-nfd.c: New file.
47274         * tests/uninorm/test-u32-nfd-big.sh: New file.
47275         * tests/uninorm/test-u32-nfd-big.c: New file.
47276         * tests/uninorm/test-u32-normalize-big.h: New file.
47277         * tests/uninorm/test-u32-normalize-big.c: New file.
47278         * tests/uninorm/NormalizationTest.txt: New file, created from
47279         Unicode 5.1.0 NormalizationTest.txt.
47280         * modules/uninorm/nfd-tests: New file.
47281
47282         New module 'uninorm/nfd'.
47283         * lib/uninorm/nfd.c: New file.
47284         * modules/uninorm/nfd: New file.
47285
47286         New module 'uninorm/u32-normalize'.
47287         * lib/uninorm/u32-normalize.c: New file.
47288         * modules/uninorm/u32-normalize: New file.
47289
47290         New module 'uninorm/u16-normalize'.
47291         * lib/uninorm/u16-normalize.c: New file.
47292         * modules/uninorm/u16-normalize: New file.
47293
47294         New module 'uninorm/u8-normalize'.
47295         * lib/uninorm/u8-normalize.c: New file.
47296         * lib/uninorm/normalize-internal.h: New file.
47297         * lib/uninorm/u-normalize-internal.h: New file.
47298         * modules/uninorm/u8-normalize: New file.
47299
47300         New module 'uninorm/decompose-internal'.
47301         * lib/uninorm/decompose-internal.c: New file.
47302         * modules/uninorm/decompose-internal: New file.
47303
47304         Tests for module 'uninorm/composition'.
47305         * tests/uninorm/test-composition.c: New file.
47306         * modules/uninorm/composition-tests: New file.
47307
47308         New module 'uninorm/composition'.
47309         * lib/uninorm/composition.c: New file.
47310         * lib/uninorm/composition-table.gperf: New file, generated by
47311         gen-uni-tables.
47312         * modules/uninorm/composition: New file.
47313
47314         Tests for module 'uninorm/compat-decomposition'.
47315         * tests/uninorm/test-compat-decomposition.c: New file.
47316         * modules/uninorm/compat-decomposition-tests: New file.
47317
47318         New module 'uninorm/compat-decomposition'.
47319         * lib/uninorm/decompose-internal.h: New file.
47320         * lib/uninorm/compat-decomposition.c: New file.
47321         * modules/uninorm/compat-decomposition: New file.
47322
47323         Tests for module 'uninorm/canonical-decomposition'.
47324         * tests/uninorm/test-canonical-decomposition.c: New file.
47325         * modules/uninorm/canonical-decomposition-tests: New file.
47326
47327         New module 'uninorm/canonical-decomposition'.
47328         * lib/uninorm/canonical-decomposition.c: New file.
47329         * modules/uninorm/canonical-decomposition: New file.
47330
47331         Tests for module 'uninorm/decomposition'.
47332         * tests/uninorm/test-decomposition.c: New file.
47333         * modules/uninorm/decomposition-tests: New file.
47334
47335         New module 'uninorm/decomposition'.
47336         * lib/uninorm/decomposition.c: New file.
47337         * modules/uninorm/decomposition: New file.
47338
47339         New module 'uninorm/decomposition-table'.
47340         * lib/uninorm/decomposition-table.h: New file.
47341         * lib/uninorm/decomposition-table.c: New file.
47342         * lib/uninorm/decomposition-table1.h: New file, generated by
47343         gen-uni-tables.
47344         * lib/uninorm/decomposition-table2.h: New file, generated by
47345         gen-uni-tables.
47346         * modules/uninorm/decomposition-table: New file.
47347
47348         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47349         (UC_DECOMP_*): New enumeration items.
47350         (get_decomposition): New function.
47351         (struct decomp_table): New type.
47352         (output_decomposition, output_decomposition_tables): New functions.
47353         (unicode_composition_exclusions): New variable.
47354         (fill_composition_exclusions, debug_output_composition_tables): New
47355         functions.
47356         (main): Accept one more argument. Invoke fill_composition_exclusions.
47357         Output decomposition and composition tables.
47358
47359         New module 'uninorm/base'.
47360         * lib/uninorm.h: New file.
47361         * lib/unictype.h: Update comment.
47362         * modules/uninorm/base: New file.
47363
47364 2009-02-21  David Lutterkort  <lutter@redhat.com>
47365
47366         Tests for module 'safe-alloc'.
47367         * tests/test-safe-alloc.c: New file.
47368         * modules/safe-alloc-tests: New file.
47369
47370         New module 'safe-alloc'.
47371         * lib/safe-alloc.h: New file.
47372         * lib/safe-alloc.c: New file.
47373         * m4/safe-alloc.m4: New file.
47374         * modules/safe-alloc: New file.
47375         * doc/safe-alloc.texi: New file.
47376         * doc/gnulib.texi: Include it.
47377         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47378         safe-alloc.
47379
47380 2009-02-18  Bruno Haible  <bruno@clisp.org>
47381
47382         Fix link error on non-glibc systems.
47383         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47384         variable.
47385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47386
47387 2009-02-18  Jim Meyering  <meyering@redhat.com>
47388
47389         fts: avoid used-uninitialized error due to recent change
47390         * lib/fts.c (fts_read): Guard uses of the new member,
47391         parent->fts_n_dirs_remaining, since it's not relevant for
47392         the parent of a directory specified on the command-line.
47393
47394 2009-02-17  James Youngman  <jay@gnu.org>
47395             Bruno Haible  <bruno@clisp.org>
47396
47397         * m4/include_next.m4: Reformulate comment.
47398
47399 2009-02-16  Jim Meyering  <meyering@redhat.com>
47400
47401         fts: add #if guards so that the fts_lgpl module still builds
47402         * lib/fts.c: Guard just-added hash-table-using parts with
47403         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47404         Reported by Simon Josefsson.
47405
47406 2009-02-15  Bruno Haible  <bruno@clisp.org>
47407
47408         * modules/array-mergesort-tests: New file.
47409         * tests/test-array-mergesort.c: New file.
47410
47411         New module 'array-mergesort'.
47412         * modules/array-mergesort: New file.
47413         * lib/array-mergesort.h: New file.
47414
47415 2009-02-15  Bruno Haible  <bruno@clisp.org>
47416
47417         Fix 2009-02-07 commit.
47418         * lib/gen-uni-tables.c (output_predicate, output_category,
47419         output_combclass, output_bidi_category, output_decimal_digit,
47420         output_digit, output_numeric, output_mirror, output_scripts,
47421         output_ident_category, output_simple_mapping): Fix format directives.
47422         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47423
47424 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47425
47426         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47427         fixes are available from IBM.
47428
47429 2009-02-13  Jim Meyering  <meyering@redhat.com>
47430
47431         fts: arrange not to stat non-directories in more cases
47432         This makes GNU find (when it doesn't need to stat each file)
47433         *much* more efficient at traversing reiserfs file systems.
47434         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47435         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47436         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47437         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47438         (leaf_optimization_applies): New function.
47439         (LCO_hash, LCO_compare): New helper functions.
47440         (link_count_optimize_ok): New function.
47441         (fts_stat): Initialize new member (if dir).
47442         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47443         we've just stat'ed a directory.  Skip the stat call when possible.
47444         ---
47445         Note this AFS-related exchange:
47446         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47447         and note find's pioctl call in find/fstype.c.
47448         But that is necessary only if you want to enable the
47449         optimization for AFS, and for now, I don't.
47450
47451         fts: move a function definition "up" (no semantic change)
47452         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47453         "up" to precede upcoming use of a related function.
47454
47455 2009-02-11  Jim Meyering  <meyering@redhat.com>
47456
47457         fts: correct internal computation of nlinks (optimization-related)
47458         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47459         whether the current entry is a directory, so don't test it.
47460
47461 2009-02-10  Bruno Haible  <bruno@clisp.org>
47462
47463         Tests for module 'uniwbrk/ulc-wordbreaks'.
47464         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47465         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47466         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47467
47468         Tests for module 'uniwbrk/u32-wordbreaks'.
47469         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47470         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47471
47472         Tests for module 'uniwbrk/u16-wordbreaks'.
47473         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47474         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47475
47476         Tests for module 'uniwbrk/u8-wordbreaks'.
47477         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47478         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47479
47480 2009-02-10  Bruno Haible  <bruno@clisp.org>
47481
47482         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47483         property.
47484         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47485         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47486         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47487
47488 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47489
47490         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47491         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47492
47493 2009-02-10  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47496         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47497         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47498         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47499         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47500         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47501
47502 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47503
47504         * lib/sockets.h (gl_fd_to_handle): New function.
47505
47506         * tests/test-sockets.c: Call gl_fd_to_handle.
47507
47508 2009-02-09  Bruno Haible  <bruno@clisp.org>
47509
47510         * doc/havelib.texi: Document the conventions on bi-arch systems.
47511
47512 2009-02-08  Bruno Haible  <bruno@clisp.org>
47513
47514         Document the AC_LIB_LINKFLAGS macro.
47515         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47516         * doc/gnulib.texi: Include it.
47517
47518 2009-02-08  Bruno Haible  <bruno@clisp.org>
47519
47520         Fix wrong order of sections, compared to TOC.
47521         * doc/gnulib.texi: Include relocatable-maint.texi after the
47522         "Regular expressions" node, not before.
47523
47524 2009-02-08  Bruno Haible  <bruno@clisp.org>
47525
47526         Tests for module 'unicase/totitle'.
47527         * modules/unicase/totitle-tests: New file.
47528
47529         Tests for module 'unicase/tolower'.
47530         * modules/unicase/tolower-tests: New file.
47531
47532         Tests for module 'unicase/toupper'.
47533         * modules/unicase/toupper-tests: New file.
47534         * tests/unicase/test-mapping-part1.h: New file.
47535         * tests/unicase/test-mapping-part2.h: New file.
47536
47537         New module 'unicase/totitle'.
47538         * modules/unicase/totitle: New file.
47539         * lib/unicase/totitle.c: New file.
47540
47541         New module 'unicase/tolower'.
47542         * modules/unicase/tolower: New file.
47543         * lib/unicase/tolower.c: New file.
47544
47545         New module 'unicase/toupper'.
47546         * modules/unicase/toupper: New file.
47547         * lib/unicase/toupper.c: New file.
47548         * lib/unicase/simple-mapping.h: New file.
47549
47550         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47551         (mapping_table): New structure.
47552         (output_simple_mapping): New function.
47553         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47554         * modules/gen-uni-tables (Description): Update.
47555         * lib/unicase/toupper.h: New file, automatically generated by
47556         gen-uni-tables.
47557         * lib/unicase/tolower.h: New file, automatically generated by
47558         gen-uni-tables.
47559         * lib/unicase/totitle.h: New file, automatically generated by
47560         gen-uni-tables.
47561         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47562         gen-uni-tables.
47563         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47564         gen-uni-tables.
47565         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47566         gen-uni-tables.
47567
47568         New module 'unicase/base'.
47569         * modules/unicase/base: New file.
47570         * lib/unicase.h: New file.
47571
47572 2009-02-08  Bruno Haible  <bruno@clisp.org>
47573
47574         New module 'uniwbrk/ulc-wordbreaks'.
47575         * modules/uniwbrk/ulc-wordbreaks: New file.
47576         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47577
47578         New module 'uniwbrk/u32-wordbreaks'.
47579         * modules/uniwbrk/u32-wordbreaks: New file.
47580         * lib/uniwbrk/u32-wordbreaks.c: New file.
47581
47582         New module 'uniwbrk/u16-wordbreaks'.
47583         * modules/uniwbrk/u16-wordbreaks: New file.
47584         * lib/uniwbrk/u16-wordbreaks.c: New file.
47585
47586         New module 'uniwbrk/u8-wordbreaks'.
47587         * modules/uniwbrk/u8-wordbreaks: New file.
47588         * lib/uniwbrk/u8-wordbreaks.c: New file.
47589         * lib/uniwbrk/u-wordbreaks.h: New file.
47590
47591         New module 'uniwbrk/table'.
47592         * modules/uniwbrk/table: New file.
47593         * lib/uniwbrk/wbrktable.h: New file.
47594         * lib/uniwbrk/wbrktable.c: New file.
47595
47596         New module 'uniwbrk/wordbreak-property'.
47597         * modules/uniwbrk/wordbreak-property: New file.
47598         * lib/uniwbrk/wordbreak-property.c: New file.
47599
47600         * lib/gen-uni-tables.c (WBP_*): New enum items.
47601         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47602         (unicode_org_wbp): New variable.
47603         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47604         New functions.
47605         (wbp_table): New structure.
47606         (output_wbp, output_wbrk_tables): New functions.
47607         (main): Accept additional argument. Invoke fill_org_wbp,
47608         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47609         output_wbrk_tables.
47610         * modules/gen-uni-tables (Description): Update.
47611         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47612         gen-uni-tables.
47613
47614         New module 'uniwbrk/base'.
47615         * modules/uniwbrk/base: New file.
47616         * lib/uniwbrk.h: New file.
47617
47618 2009-02-08  Bruno Haible  <bruno@clisp.org>
47619
47620         Update to Unicode 5.1.0.
47621         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47622         U+2185..U+2188.
47623         (is_property_default_ignorable_code_point): Don't include characters
47624         of category Cc or Cs and not-a-characters.
47625         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47626         U+0D79, U+109E, U+109F, U+A60C.
47627         * lib/unictype/bidi_of.h: Regenerated.
47628         * lib/unictype/blocks.h: Regenerated.
47629         * lib/unictype/categ_C.h: Regenerated.
47630         * lib/unictype/categ_Cf.h: Regenerated.
47631         * lib/unictype/categ_Cn.h: Regenerated.
47632         * lib/unictype/categ_L.h: Regenerated.
47633         * lib/unictype/categ_Ll.h: Regenerated.
47634         * lib/unictype/categ_Lm.h: Regenerated.
47635         * lib/unictype/categ_Lo.h: Regenerated.
47636         * lib/unictype/categ_Lu.h: Regenerated.
47637         * lib/unictype/categ_M.h: Regenerated.
47638         * lib/unictype/categ_Mc.h: Regenerated.
47639         * lib/unictype/categ_Me.h: Regenerated.
47640         * lib/unictype/categ_Mn.h: Regenerated.
47641         * lib/unictype/categ_N.h: Regenerated.
47642         * lib/unictype/categ_Nd.h: Regenerated.
47643         * lib/unictype/categ_Nl.h: Regenerated.
47644         * lib/unictype/categ_No.h: Regenerated.
47645         * lib/unictype/categ_P.h: Regenerated.
47646         * lib/unictype/categ_Pd.h: Regenerated.
47647         * lib/unictype/categ_Pe.h: Regenerated.
47648         * lib/unictype/categ_Pf.h: Regenerated.
47649         * lib/unictype/categ_Pi.h: Regenerated.
47650         * lib/unictype/categ_Po.h: Regenerated.
47651         * lib/unictype/categ_Ps.h: Regenerated.
47652         * lib/unictype/categ_S.h: Regenerated.
47653         * lib/unictype/categ_Sk.h: Regenerated.
47654         * lib/unictype/categ_Sm.h: Regenerated.
47655         * lib/unictype/categ_So.h: Regenerated.
47656         * lib/unictype/categ_of.h: Regenerated.
47657         * lib/unictype/combining.h: Regenerated.
47658         * lib/unictype/ctype_alnum.h: Regenerated.
47659         * lib/unictype/ctype_alpha.h: Regenerated.
47660         * lib/unictype/ctype_graph.h: Regenerated.
47661         * lib/unictype/ctype_lower.h: Regenerated.
47662         * lib/unictype/ctype_print.h: Regenerated.
47663         * lib/unictype/ctype_punct.h: Regenerated.
47664         * lib/unictype/ctype_upper.h: Regenerated.
47665         * lib/unictype/decdigit.h: Regenerated.
47666         * lib/unictype/digit.h: Regenerated.
47667         * lib/unictype/mirror.h: Regenerated.
47668         * lib/unictype/numeric.h: Regenerated.
47669         * lib/unictype/pr_alphabetic.h: Regenerated.
47670         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47671         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47672         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47673         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47674         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47675         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47676         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47677         * lib/unictype/pr_combining.h: Regenerated.
47678         * lib/unictype/pr_dash.h: Regenerated.
47679         * lib/unictype/pr_decimal_digit.h: Regenerated.
47680         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47681         * lib/unictype/pr_deprecated.h: Regenerated.
47682         * lib/unictype/pr_diacritic.h: Regenerated.
47683         * lib/unictype/pr_extender.h: Regenerated.
47684         * lib/unictype/pr_format_control.h: Regenerated.
47685         * lib/unictype/pr_grapheme_base.h: Regenerated.
47686         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47687         * lib/unictype/pr_grapheme_link.h: Regenerated.
47688         * lib/unictype/pr_id_continue.h: Regenerated.
47689         * lib/unictype/pr_id_start.h: Regenerated.
47690         * lib/unictype/pr_ideographic.h: Regenerated.
47691         * lib/unictype/pr_ignorable_control.h: Regenerated.
47692         * lib/unictype/pr_lowercase.h: Regenerated.
47693         * lib/unictype/pr_math.h: Regenerated.
47694         * lib/unictype/pr_numeric.h: Regenerated.
47695         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47696         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47697         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47698         * lib/unictype/pr_other_id_continue.h: Regenerated.
47699         * lib/unictype/pr_other_lowercase.h: Regenerated.
47700         * lib/unictype/pr_other_math.h: Regenerated.
47701         * lib/unictype/pr_punctuation.h: Regenerated.
47702         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47703         * lib/unictype/pr_soft_dotted.h: Regenerated.
47704         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47705         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47706         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47707         * lib/unictype/pr_uppercase.h: Regenerated.
47708         * lib/unictype/pr_xid_continue.h: Regenerated.
47709         * lib/unictype/pr_xid_start.h: Regenerated.
47710         * lib/unictype/pr_zero_width.h: Regenerated.
47711         * lib/unictype/scripts.h: Regenerated.
47712         * lib/unictype/scripts_byname.gperf: Regenerated.
47713         * lib/unictype/sy_java_ident.h: Regenerated.
47714         * lib/unilbrk/lbrkprop1.h: Regenerated.
47715         * lib/unilbrk/lbrkprop2.h: Regenerated.
47716         * tests/unictype/test-categ_C.c: Regenerated.
47717         * tests/unictype/test-categ_Cf.c: Regenerated.
47718         * tests/unictype/test-categ_Cn.c: Regenerated.
47719         * tests/unictype/test-categ_L.c: Regenerated.
47720         * tests/unictype/test-categ_Ll.c: Regenerated.
47721         * tests/unictype/test-categ_Lm.c: Regenerated.
47722         * tests/unictype/test-categ_Lo.c: Regenerated.
47723         * tests/unictype/test-categ_Lu.c: Regenerated.
47724         * tests/unictype/test-categ_M.c: Regenerated.
47725         * tests/unictype/test-categ_Mc.c: Regenerated.
47726         * tests/unictype/test-categ_Me.c: Regenerated.
47727         * tests/unictype/test-categ_Mn.c: Regenerated.
47728         * tests/unictype/test-categ_N.c: Regenerated.
47729         * tests/unictype/test-categ_Nd.c: Regenerated.
47730         * tests/unictype/test-categ_Nl.c: Regenerated.
47731         * tests/unictype/test-categ_No.c: Regenerated.
47732         * tests/unictype/test-categ_P.c: Regenerated.
47733         * tests/unictype/test-categ_Pd.c: Regenerated.
47734         * tests/unictype/test-categ_Pe.c: Regenerated.
47735         * tests/unictype/test-categ_Pf.c: Regenerated.
47736         * tests/unictype/test-categ_Pi.c: Regenerated.
47737         * tests/unictype/test-categ_Po.c: Regenerated.
47738         * tests/unictype/test-categ_Ps.c: Regenerated.
47739         * tests/unictype/test-categ_S.c: Regenerated.
47740         * tests/unictype/test-categ_Sk.c: Regenerated.
47741         * tests/unictype/test-categ_Sm.c: Regenerated.
47742         * tests/unictype/test-categ_So.c: Regenerated.
47743         * tests/unictype/test-ctype_alnum.c: Regenerated.
47744         * tests/unictype/test-ctype_alpha.c: Regenerated.
47745         * tests/unictype/test-ctype_graph.c: Regenerated.
47746         * tests/unictype/test-ctype_lower.c: Regenerated.
47747         * tests/unictype/test-ctype_print.c: Regenerated.
47748         * tests/unictype/test-ctype_punct.c: Regenerated.
47749         * tests/unictype/test-ctype_upper.c: Regenerated.
47750         * tests/unictype/test-decdigit.h: Regenerated.
47751         * tests/unictype/test-digit.h: Regenerated.
47752         * tests/unictype/test-numeric.h: Regenerated.
47753         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47754         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47755         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47756         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47757         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47758         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47759         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47760         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47761         * tests/unictype/test-pr_combining.c: Regenerated.
47762         * tests/unictype/test-pr_dash.c: Regenerated.
47763         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47764         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47765         * tests/unictype/test-pr_deprecated.c: Regenerated.
47766         * tests/unictype/test-pr_diacritic.c: Regenerated.
47767         * tests/unictype/test-pr_extender.c: Regenerated.
47768         * tests/unictype/test-pr_format_control.c: Regenerated.
47769         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47770         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47771         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47772         * tests/unictype/test-pr_id_continue.c: Regenerated.
47773         * tests/unictype/test-pr_id_start.c: Regenerated.
47774         * tests/unictype/test-pr_ideographic.c: Regenerated.
47775         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47776         * tests/unictype/test-pr_lowercase.c: Regenerated.
47777         * tests/unictype/test-pr_math.c: Regenerated.
47778         * tests/unictype/test-pr_numeric.c: Regenerated.
47779         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47780         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47781         Regenerated.
47782         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47783         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47784         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47785         * tests/unictype/test-pr_other_math.c: Regenerated.
47786         * tests/unictype/test-pr_punctuation.c: Regenerated.
47787         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47788         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47789         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47790         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47791         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47792         * tests/unictype/test-pr_uppercase.c: Regenerated.
47793         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47794         * tests/unictype/test-pr_xid_start.c: Regenerated.
47795         * tests/unictype/test-pr_zero_width.c: Regenerated.
47796
47797         Update to Unicode 5.1.0.
47798         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47799         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47800         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47801         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47802         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47803         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47804         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47805         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47806         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47807         (nonspacing_table_ind): Update.
47808         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47809
47810         Update to Unicode 5.1.0.
47811         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47812         code transform.
47813         * lib/uniname/uniname.c (unicode_character_name,
47814         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47815         * lib/uniname/uninames.h: Regenerated.
47816         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47817
47818 2009-02-07  Bruno Haible  <bruno@clisp.org>
47819
47820         Merge gen-ctype and gen-lbrk into a single program.
47821         * lib/gen-uni-tables.c: New file, incorporating
47822         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47823         Add directory prefixes to the names of the generated files.
47824         * lib/unictype/gen-ctype.c: Remove file.
47825         * lib/unilbrk/gen-lbrk.c: Remove file.
47826         * modules/gen-uni-tables: New file.
47827         * modules/unictype/gen-ctype: Remove file.
47828         * modules/unilbrk/gen-lbrk: Remove file.
47829
47830 2009-02-07  Bruno Haible  <bruno@clisp.org>
47831
47832         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47833
47834         New module 'unistr/u32-strcoll'.
47835         * modules/unistr/u32-strcoll: New file.
47836         * lib/unistr/u32-strcoll.c: New file.
47837
47838         New module 'unistr/u16-strcoll'.
47839         * modules/unistr/u16-strcoll: New file.
47840         * lib/unistr/u16-strcoll.c: New file.
47841
47842         New module 'unistr/u8-strcoll'.
47843         * modules/unistr/u8-strcoll: New file.
47844         * lib/unistr/u8-strcoll.c: New file.
47845         * lib/unistr/u-strcoll.h: New file.
47846
47847 2009-02-07  Bruno Haible  <bruno@clisp.org>
47848
47849         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47850         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47851         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47852         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47853         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47854         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47855
47856 2009-02-07  Bruno Haible  <bruno@clisp.org>
47857
47858         Make 64-bit clean.
47859         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47860         output_combclass, output_bidi_category, output_decimal_digit,
47861         output_digit, output_numeric, output_mirror, output_scripts,
47862         output_ident_category): Use proper width specifier in format strings.
47863
47864 2009-02-07  Bruno Haible  <bruno@clisp.org>
47865
47866         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47867         failure behaviour.
47868
47869 2009-02-07  Jim Meyering  <meyering@redhat.com>
47870
47871         regex: avoid compilation failure with upcoming gcc-4.4
47872         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47873         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47874         "... error: integer overflow in preprocessor expression".
47875
47876 2009-02-05  Ben Pfaff  <blp@gnu.org>
47877
47878         Fix link errors on Windows when close module is used.
47879         * modules/close: Add $(LIB_CLOSE) to Link section.
47880         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47881         $(LIB_CLOSE) on Windows.
47882
47883 2009-02-05  Jim Meyering  <meyering@redhat.com>
47884
47885         still avoid unused-parameter warnings, but do it cleanly
47886         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47887         (get_fs_usage): Cast to void instead.
47888         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47889         (dev_from_mount_options, read_file_system_list): Cast to void.
47890         Prompted by Bruno Haible.
47891
47892 2009-02-04  Jim Meyering  <meyering@redhat.com>
47893
47894         fsusage.c: correct copyright year
47895         * lib/fsusage.c: Reflect year in which the change is pushed into
47896
47897         avoid misc. warnings
47898         * lib/fsusage.c (UNUSED_PARAM): Define.
47899         (get_fs_usage): Mark parameter "disk" as unused.
47900         * lib/getugroups.c (getgrent): Use "void" in prototype.
47901         * lib/mountlist.c: Mark unused parameters.
47902         (read_file_system_list): Declare a local with "const".
47903         * lib/nanosleep.c (getnow): Declare static.
47904         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47905
47906         dirfd: set errno upon failure
47907         * lib/dirfd.c: Include <errno.h>.
47908         Set errno to ENOTSUP when returning -1.
47909         * modules/dirfd (Depends-on): Add errno.
47910         Suggested by John Kodis <kodis@comcast.net>.
47911
47912 2009-02-01  Bruno Haible  <bruno@clisp.org>
47913
47914         Don't assume sizeof (long) >= sizeof (void *).
47915         * lib/memcmp.c: Include stdint.h.
47916         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47917         srcp2 to 'const byte *'.
47918         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47919         types to uintptr_t.
47920         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47921         * modules/memcmp (Depends-on): Add stdint.
47922         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47923
47924 2009-01-30  Eric Blake  <ebb9@byu.net>
47925
47926         fix more require-before-expand issues
47927         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47928         expand, AC_PROG_AWK.
47929         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47930
47931 2009-01-28  Eric Blake  <ebb9@byu.net>
47932
47933         version-etc: use consistent URL formatting
47934         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47935         Improve formatting.  Use fputs for string without %.
47936
47937 2009-01-28  Jim Meyering  <meyering@redhat.com>
47938
47939         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47940         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47941         "underquoted definition of NAME" from autoconf-2.59.
47942
47943 2009-01-28  Bruno Haible  <bruno@clisp.org>
47944
47945         * doc/gnulib.texi: Add "Obsolete modules" to index.
47946
47947 2009-01-28  Jim Meyering  <meyering@redhat.com>
47948
47949         useless-if-before-free: recognize more variants
47950         * build-aux/useless-if-before-free: Also recognize e.g.,
47951         if (NULL != p) free (p);
47952
47953 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47954
47955         test-getaddrinfo: skip (don't fail) this test when there's no network
47956         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47957         on the presumption that it means you lack network access.
47958
47959 2009-01-26  Jim Meyering  <meyering@redhat.com>
47960
47961         fflush: avoid warnings on modern systems
47962         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47963         pos and result, into scopes where they're used.
47964
47965 2009-01-26  Eric Blake  <ebb9@byu.net>
47966
47967         Silence warning reintroduced by recent extensions patch.
47968         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47969         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47970         autoconf.
47971
47972         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47973         * m4/00gnulib.m4: New file.
47974         * gnulib-tool (func_get_filelist): Always use it.
47975         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47976         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47977
47978 2009-01-25  Bruno Haible  <bruno@clisp.org>
47979
47980         Make test-quotearg work on MacOS X and AIX.
47981         * tests/test-quotearg.sh: New file.
47982         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47983         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47984         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47985         include <libintl.h>.
47986         (fake_locale): Remove variable.
47987         (gettext, dgettext, dcgettext): Remove functions.
47988         (main): Instead of setting a fake locale, set a real locale. Call
47989         textdomain and bindtextdomain.
47990         * modules/quotearg-tests (Files): Add the new files.
47991         (Depends-on): Add gettext, setenv, unsetenv.
47992         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47993         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47994         Augment TESTS_ENVIRONMENT.
47995
47996 2009-01-25  Bruno Haible  <bruno@clisp.org>
47997
47998         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47999         fr_FR.ISO8859-1 locale on MacOS X.
48000         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48001         ja_JP.eucJP locale on MacOS X.
48002         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48003         zh_CN.GB18030 locale on MacOS X.
48004
48005 2009-01-25  Bruno Haible  <bruno@clisp.org>
48006
48007         Avoid link errors on MacOS X 10.3.
48008         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48009         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48010
48011 2009-01-25  Bruno Haible  <bruno@clisp.org>
48012
48013         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48014         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48015         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48016         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48017         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48018         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48019         posix_spawnattr_init, posix_spawnattr_setsigmask,
48020         posix_spawnattr_setflags, posix_spawnattr_destroy.
48021
48022         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48023         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48024         * modules/execute (Files): Remove m4/posix_spawn.m4.
48025         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48026         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48027         posix_spawnattr_init, posix_spawnattr_setsigmask,
48028         posix_spawnattr_setflags, posix_spawnattr_destroy.
48029
48030 2009-01-25  Bruno Haible  <bruno@clisp.org>
48031
48032         * lib/glthread/threadlib.c: Include <stdlib.h>.
48033
48034 2009-01-25  Bruno Haible  <bruno@clisp.org>
48035
48036         * lib/glthread/threadlib.c (dummy): New declaration.
48037
48038 2009-01-25  Bruno Haible  <bruno@clisp.org>
48039
48040         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48041         multibyte characters also for the GB18030 encoding. Don't crash when
48042         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48043
48044 2009-01-25  Bruno Haible  <bruno@clisp.org>
48045
48046         Avoid redefining 'struct random_data' on OSF/1 5.1.
48047         * lib/stdlib.in.h: Include <random.h> if it exists.
48048         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48049         HAVE_RANDOM_H. Include <random.h> when testing whether
48050         'struct random_data' exists.
48051         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48052
48053 2009-01-25  Bruno Haible  <bruno@clisp.org>
48054
48055         Don't install charset.alias on MacOS X >= 10.3.
48056         * lib/localcharset.c (DARWIN7): New macro.
48057         (get_charset_aliases): Hardcode the result for Darwin7.
48058         * modules/localcharset (install-exec-local): Don't install
48059         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48060
48061 2009-01-25  Bruno Haible  <bruno@clisp.org>
48062
48063         Don't install charset.alias on mingw and Cygwin.
48064         * modules/localcharset (install-exec-local): Don't install
48065         charset.alias on mingw and Cygwin, if the file does not yet exist.
48066         The result for these platforms is hardcoded in localcharset.c.
48067
48068 2009-01-25  Bruno Haible  <bruno@clisp.org>
48069
48070         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48072         before requiring AC_USE_SYSTEM_EXTENSIONS.
48073
48074 2009-01-25  Jim Meyering  <meyering@redhat.com>
48075
48076         c-strtod: avoid warnings
48077         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48078         "assignment discards qualifiers from pointer target type" warnings.
48079
48080 2009-01-24  Bruno Haible  <bruno@clisp.org>
48081
48082         Add support for non-UTF-8 locales on MacOS X.
48083         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48084         canonical encodings. For Darwin 7 and newer, don't map traditional
48085         encodings to UTF-8.
48086         Reported by Vincent Lefevre <vincent@vinc17.org>
48087         at <http://savannah.gnu.org/bugs/?25235>.
48088
48089 2009-01-24  Bruno Haible  <bruno@clisp.org>
48090
48091         * doc/gnulib.texi (Obsolete modules): New section.
48092         Reported by Mike Frysinger <vapier@gentoo.org>.
48093
48094 2009-01-24  Bruno Haible  <bruno@clisp.org>
48095
48096         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48097         (%.dvi): New rule.
48098
48099 2009-01-24  Bruno Haible  <bruno@clisp.org>
48100
48101         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48102         Reported by Eric Blake.
48103
48104 2009-01-24  Bruno Haible  <bruno@clisp.org>
48105
48106         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48107         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48108         Reported by Gary V. Vaughan <gary@gnu.org>.
48109
48110 2009-01-24  Bruno Haible  <bruno@clisp.org>
48111
48112         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48113
48114 2009-01-23  Bruno Haible  <bruno@clisp.org>
48115
48116         Make c-strtod, c-strtold usable in libraries.
48117         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48118         (C_STRTOD): Call strdup instead of xstrdup.
48119         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48120         * modules/c-strtold (Depends-on): Likewise.
48121         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48122         * NEWS: Mention the change.
48123         Reported by Michael Gold <mgold@ncf.ca>.
48124
48125 2009-01-23  Jim Meyering  <meyering@redhat.com>
48126
48127         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48128         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48129         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48130
48131 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48132
48133         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48134         GNU CoreUtils.
48135         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48136         * modules/version-etc (Description): Update.
48137
48138 2009-01-22  Bruno Haible  <bruno@clisp.org>
48139
48140         Cache the C locale object.
48141         * lib/c-strtod.c (c_locale_cache): New variable.
48142         (c_locale): New function.
48143         (C_STRTOD): Use it, and don't call freelocale.
48144         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48145         Suggested by Paolo Bonzini.
48146
48147 2009-01-21  Bruno Haible  <bruno@clisp.org>
48148
48149         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48150         conditions other than overflow.
48151
48152 2009-01-21  Bruno Haible  <bruno@clisp.org>
48153
48154         * lib/c-strtod.c: Include errno.h.
48155         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48156         value from STRTOD_L and STRTOD.
48157
48158 2009-01-21  Bruno Haible  <bruno@clisp.org>
48159         and Jim Meyering  <meyering@redhat.com>
48160
48161         nanosleep: skip configure test (fail it) for apple universal builds
48162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48163         universal builds, assume that nanosleep does not work.
48164         * modules/nanosleep (Depends-on): Add multiarch.
48165
48166         mktime: skip configure test (fail it) for apple universal builds
48167         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48168         universal builds, assume that mktime does not work.
48169         * modules/mktime (Depends-on): Add multiarch.
48170
48171 2009-01-21  Eric Blake  <ebb9@byu.net>
48172
48173         multiarch: avoid expand-before-require warning
48174         * modules/multiarch (configure.ac): Require, rather than expand,
48175         gl_MULTIARCH.
48176         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48177         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48178         enforce that all clients require it.  Partial reversion of
48179         2008-12-29 patch.
48180
48181         error: avoid expand-before-require warning
48182         * modules/errno (configure.ac): Require, rather than expand,
48183         gl_HEADER_ERRNO_H.
48184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48185         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48186         enforce that all clients require it.
48187
48188         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48189         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48190         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48191         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48192
48193 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48194
48195         Revert:
48196         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48197
48198         regex: do not depend on obsolete modules.
48199         * modules/regex: Remove memcmp and memmove.
48200
48201 2009-01-20  Bruno Haible  <bruno@clisp.org>
48202
48203         Make the 'link' module link on Windows NT 4.
48204         * lib/link.c (_WIN32_WINNT): Don't define.
48205         (CreateHardLinkFuncType): New type.
48206         (CreateHardLinkFunc, initialized): New variables.
48207         (initialize): New function.
48208         (link): Invoke CreateHardLink indirectly through the function pointer.
48209
48210 2009-01-20  Bruno Haible  <bruno@clisp.org>
48211
48212         Fix compilation failure on mingw.
48213         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48214
48215 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48216
48217         * doc/c-strtod.texi: Mention a couple of restrictions.
48218
48219 2009-01-20  Jim Meyering  <meyering@redhat.com>
48220
48221         gettimeofday: move more declarations out of functions
48222         * lib/gettimeofday.c: Move extern declarations of tzset and
48223         gmtime out of containing functions.  Prompted by Bruno Haible.
48224
48225 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48226
48227         regex: do not depend on obsolete modules.
48228         * modules/regex: Remove memcmp and memmove.
48229
48230 2009-01-19  Bruno Haible  <bruno@clisp.org>
48231
48232         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48233         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48234         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48235         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48236         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48237
48238 2009-01-19  Bruno Haible  <bruno@clisp.org>
48239
48240         * tests/test-link.c: Include <errno.h>.
48241         (main): Exit with code 77 when a hard link cannot be created due to
48242         the file system.
48243         * tests/test-link.sh: Skip test when a hard link cannot be created due
48244         to the file system.
48245         Suggested by Eric Blake.
48246
48247 2009-01-19  Martin Lambers  <marlam@marlam.de>
48248
48249         * modules/link-tests: New file.
48250         * tests/test-link.sh: New file.
48251         * tests/test-link.c: New file.
48252
48253 2009-01-19  Eric Blake  <ebb9@byu.net>
48254
48255         doc: mention another function added in cygwin 1.7.0
48256         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48257         Another new function in cygwin 1.7.
48258
48259 2009-01-19  Bruno Haible  <bruno@clisp.org>
48260
48261         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48262         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48263         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48264         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48265         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48266         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48267         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48268         * m4/md4.m4 (gl_MD4): Likewise.
48269         * m4/md5.m4 (gl_MD5): Likewise.
48270         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48271         * m4/sha1.m4 (gl_SHA1): Likewise.
48272         * m4/sha256.m4 (gl_SHA256): Likewise.
48273         * m4/sha512.m4 (gl_SHA512): Likewise.
48274
48275 2009-01-19  Bruno Haible  <bruno@clisp.org>
48276
48277         * modules/uniname/uniname-tests (Depends-on): Add progname.
48278         * tests/uniname/test-uninames.c: Include progname.h.
48279         (main): Call set_program_name.
48280
48281         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48282         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48283         (main): Call set_program_name.
48284
48285         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48286         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48287         (main): Call set_program_name.
48288
48289         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48290         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48291         (main): Call set_program_name.
48292
48293         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48294         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48295         (main): Call set_program_name.
48296
48297         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48298         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48299         (main): Call set_program_name.
48300
48301         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48302         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48303         (main): Call set_program_name.
48304
48305         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48306         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48307         (main): Call set_program_name.
48308
48309         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48310         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48311         (main): Call set_program_name.
48312
48313 2009-01-19  Eric Blake  <ebb9@byu.net>
48314
48315         test-unistd: test previous patch
48316         * tests/test-unistd.c: Test *_FILENO macros.
48317
48318         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48319         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48320         Guarantee a definition.
48321         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48322         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48323         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48324         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48325         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48326         Likewise.
48327         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48328         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48329         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48330         Likewise.
48331         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48332         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48333         (STDERR_FILENO): Likewise.
48334         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48335         (STDERR_FILENO): Likewise.
48336         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48337         (STDERR_FILENO): Likewise.
48338         Reported by Elbert Pol.
48339
48340 2009-01-19  Eric Blake  <ebb9@byu.net>
48341
48342         doc: mention more functions added in cygwin 1.7.0
48343         * doc/posix-functions/abort.texi (abort): Update wording related
48344         to cygwin.
48345         * doc/posix-functions/daylight.texi (daylight): Likewise.
48346         * doc/posix-functions/optarg.texi (optarg): Likewise.
48347         * doc/posix-functions/optarg.texi (opterr): Likewise.
48348         * doc/posix-functions/optarg.texi (optind): Likewise.
48349         * doc/posix-functions/optarg.texi (optopt): Likewise.
48350         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48351         worked in 1.5.x, and was withdrawn in 1.7.
48352         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48353         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48354         cygwin versions.
48355         * doc/posix-functions/perror.texi (perror): Likewise.
48356         * doc/posix-functions/printf.texi (printf): Likewise.
48357         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48358         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48359         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48360         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48361         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48362         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48363         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48364         Likewise.
48365         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48366         Likewise.
48367         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48368         this function.
48369         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48370         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48371         Likewise.
48372         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48373         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48374         * doc/posix-functions/confstr.texi (confstr): Likewise.
48375         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48376         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48377         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48378         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48379         * doc/posix-functions/fputws.texi (fputws): Likewise.
48380         * doc/posix-functions/fwide.texi (fwide): Likewise.
48381         * doc/posix-functions/getwc.texi (getwc): Likewise.
48382         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48383         * doc/posix-functions/putwc.texi (putwc): Likewise.
48384         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48385         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48386         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48387         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48388         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48389         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48390         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48391         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48392         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48393         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48394         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48395
48396 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48397
48398         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48399         * lib/ioctl.c: Include <sys/ioctl.h>.
48400
48401 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48402
48403         * modules/getdate-tests (Depends-on): Add progname.
48404         * tests/test-getdate.c: Use progname module, to avoid link errors
48405         on non-glibc systems.
48406
48407 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48408
48409         * modules/filenamecat-tests (Depends-on): Add progname.
48410         * modules/fstrcmp-tests (Depends-on): Likewise.
48411
48412         * tests/test-filenamecat.c: Use progname module, to avoid link
48413         errors on non-glibc systems.
48414         * tests/test-fstrcmp.c: Likewise.
48415
48416 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48417
48418         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48419         * lib/gettimeofday.c: Move extern declaration out of function.
48420
48421 2009-01-18  Bruno Haible  <bruno@clisp.org>
48422
48423         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48424         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48425         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48426
48427 2009-01-18  Bruno Haible  <bruno@clisp.org>
48428
48429         * lib/strftime.c (MEMPCPY): Remove unused macro.
48430         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48431
48432 2009-01-18  Martin Lambers  <marlam@marlam.de>
48433
48434         New module 'link'.
48435         * lib/unistd.in.h (link): New declaration.
48436         * lib/link.c: New file.
48437         * m4/link.m4: New file.
48438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48439         HAVE_LINK.
48440         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48441         * modules/link: New file.
48442         * doc/posix-functions/link.texi: Mention the new module.
48443
48444 2009-01-18  Bruno Haible  <bruno@clisp.org>
48445
48446         * tests/test-avltree_list.c (main): Call set_program_name.
48447         * tests/test-avltree_oset.c (main): Likewise.
48448         * tests/test-obstack-printf.c: Include progname.h.
48449         (main): Call set_program_name.
48450         * tests/test-quotearg.c: Include progname.h.
48451         (main): Call set_program_name.
48452         * tests/test-xmemdup0.c: Include progname.h.
48453         (main): Call set_program_name.
48454
48455 2009-01-18  Bruno Haible  <bruno@clisp.org>
48456
48457         New module 'alphasort'.
48458         * lib/dirent.in.h (alphasort): New declaration.
48459         * lib/alphasort.c: New file, from glibc with modifications.
48460         * m4/alphasort.m4: New file.
48461         * modules/alphasort: New file.
48462         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48463         HAVE_ALPHASORT.
48464         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48465         HAVE_ALPHASORT.
48466         * doc/posix-functions/alphasort.texi: Mention the new module and the
48467         portability problems.
48468
48469 2009-01-18  Bruno Haible  <bruno@clisp.org>
48470
48471         New module 'scandir'.
48472         * lib/dirent.in.h (scandir): New declaration.
48473         * lib/scandir.c: New file, from glibc with modifications.
48474         * m4/scandir.m4: New file.
48475         * modules/scandir: New file.
48476         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48477         HAVE_SCANDIR.
48478         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48479         HAVE_SCANDIR.
48480         * doc/posix-functions/scandir.texi: Mention the new module and the
48481         portability problems.
48482
48483 2009-01-17  Bruno Haible  <bruno@clisp.org>
48484
48485         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48486         Update documentation.
48487         (func_remove_suffix): Escape all dots in the suffix. Update
48488         documentation.
48489         (func_filter_filelist): Update documentation.
48490         Reported by Ralf Wildenhues.
48491
48492 2009-01-17  Bruno Haible  <bruno@clisp.org>
48493
48494         * modules/dprintf-posix-tests: New file.
48495         * tests/test-dprintf-posix.sh: New file.
48496         * tests/test-dprintf-posix.c: New file.
48497
48498         New modules 'dprintf', 'dprintf-posix'.
48499         * lib/stdio.in.h (dprintf): New declaration.
48500         * lib/dprintf.c: New file.
48501         * m4/dprintf.m4: New file.
48502         * m4/dprintf-posix.m4: New file.
48503         * modules/dprintf: New file.
48504         * modules/dprintf-posix: New file.
48505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48506         HAVE_DPRINTF, REPLACE_DPRINTF.
48507         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48508         HAVE_DPRINTF, REPLACE_DPRINTF.
48509         * doc/posix-functions/dprintf.texi: Mention the new modules.
48510
48511 2009-01-17  Bruno Haible  <bruno@clisp.org>
48512
48513         * modules/vdprintf-posix-tests: New file.
48514         * tests/test-vdprintf-posix.sh: New file.
48515         * tests/test-vdprintf-posix.c: New file.
48516
48517         New modules 'vdprintf', 'vdprintf-posix'.
48518         * lib/stdio.in.h (vdprintf): New declaration.
48519         * lib/vdprintf.c: New file.
48520         * m4/vdprintf.m4: New file.
48521         * m4/vdprintf-posix.m4: New file.
48522         * modules/vdprintf: New file.
48523         * modules/vdprintf-posix: New file.
48524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48525         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48526         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48527         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48528         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48529
48530 2009-01-17  Bruno Haible  <bruno@clisp.org>
48531
48532         Fix replacement of fopen on mingw.
48533         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48534         mingw.
48535
48536 2009-01-17  Bruno Haible  <bruno@clisp.org>
48537
48538         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48539         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48540
48541 2009-01-17  Bruno Haible  <bruno@clisp.org>
48542
48543         Avoid test-fflush2.sh failure on mingw.
48544         * tests/test-fflush2.c: Include binary-io.h.
48545         (main): Put standard input into binary mode.
48546         * modules/fflush-tests (Depends-on): Add binary-io.
48547
48548 2009-01-17  Bruno Haible  <bruno@clisp.org>
48549
48550         * lib/wchar.in.h: In another particular situation, include only the
48551         system's <wchar.h> file.
48552         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48553         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48554         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48555
48556 2009-01-17  Bruno Haible  <bruno@clisp.org>
48557
48558         Support for stripping executables in --enable-relocatable.
48559         * build-aux/install-reloc: Expect one more argument, or an environment
48560         variable RELOC_STRIP_PROG. If set, strip the destination program and
48561         its wrapper.
48562         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48563         RELOC_STRIP_PROG.
48564         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48565         to set RELOCATABLE_STRIP.
48566         * NEWS: Mention the new Makefile requirement.
48567
48568 2009-01-17  Bruno Haible  <bruno@clisp.org>
48569
48570         * build-aux/install-reloc: Remove debugging information left over by
48571         C compiler on MacOS X.
48572
48573 2009-01-17  Bruno Haible  <bruno@clisp.org>
48574
48575         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48576         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48577         _NSGetExecutablePath.
48578
48579 2009-01-16  Jim Meyering  <meyering@redhat.com>
48580
48581         strerror: avoid warnings about discarding "const"
48582         * lib/strerror.c (rpl_strerror): Instead of returning a const
48583         string from each and every "case", use a variable, and add a single
48584         cast after the switch.
48585
48586 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48587
48588         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48589
48590 2009-01-16  Bruno Haible  <bruno@clisp.org>
48591
48592         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48593         array initializer syntax that also works in C++ mode.
48594         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48595
48596 2009-01-16  Jim Meyering  <meyering@redhat.com>
48597
48598         poll: suppress a warning
48599         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48600         to ignore "...unsigned expression < 0 is always false" warnings.
48601
48602 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48603
48604         poll: remove declarations of unused variables
48605         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48606         sockbuf and optlen.
48607
48608 2009-01-15  Bruno Haible  <bruno@clisp.org>
48609
48610         Make fflush-after-ungetc POSIX compliant on BSD systems.
48611         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48612         (clear_ungetc_buffer): Implement also for other systems.
48613         (rpl_fflush): On glibc systems, invoke
48614         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48615         clear_ungetc_buffer after fetching the stream's position, not before.
48616
48617 2009-01-15  Bruno Haible  <bruno@clisp.org>
48618
48619         Make fflush-after-ungetc POSIX compliant on glibc systems.
48620         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48621         after ungetc.
48622         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48623         (rpl_fflush): On glibc systems, simply call the system's fflush
48624         function after clearing the ungetc buffer.
48625         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48626         Instead, lseek only to the end of file, then use the system's fseeko
48627         for the rest. On glibc systems, reset the EOF indicator bit.
48628
48629 2009-01-15  Jim Meyering  <meyering@redhat.com>
48630
48631         openmp.m4: revert quote-adding change, for portability to older autoconf
48632         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48633         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48634         Simon Josefsson noticed the problem when using autoconf-2.61.
48635
48636 2009-01-15  Bruno Haible  <bruno@clisp.org>
48637
48638         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48639         * tests/test-fflush2.c (ASSERT): Always fail.
48640         (main): Add two tests for fflush() after ungetc(), taking into account
48641         the Austin Group's clarification.
48642         Suggested by Eric Blake.
48643
48644 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48645
48646         mktime.m4: remove K&R-style function prototypes
48647         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48648         for the Sun C++ compiler.
48649
48650 2009-01-14  Bruno Haible  <bruno@clisp.org>
48651
48652         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48653         while including <wchar.h>.
48654         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48655         the system's <wchar.h> file.
48656         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48657
48658 2009-01-14  Bruno Haible  <bruno@clisp.org>
48659
48660         * m4/csharp.m4: Don't mention gettext on the serial number line.
48661         * m4/csharpexec.m4: Likewise.
48662         * m4/eaccess.m4: Likewise.
48663         * m4/javaexec.m4: Likewise.
48664         * m4/sig_atomic_t.m4: Likewise.
48665         * m4/tmpdir.m4: Likewise.
48666         * m4/intldir.m4: Bump gettext version.
48667         * m4/lib-ld.m4: Likewise.
48668
48669 2009-01-14  Bruno Haible  <bruno@clisp.org>
48670
48671         * lib/progname.c (set_program_name): Add more comments.
48672         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48673
48674 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48675
48676         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48677         were sys/stat.h does not define it.
48678
48679 2009-01-14  Jim Meyering  <meyering@redhat.com>
48680
48681         many *.m4 files: improve m4 quoting
48682         99% of this change was performed by running the following commands:
48683         git ls-files | grep '\.m4$' | xargs perl -pi \
48684           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48685           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48686           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48687           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48688         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48689         The remainder were to add Copyright dates, increment serial numbers,
48690         undo some changes in comments, exclude m4/intl.m4, and add quotes
48691         around the "1" in ",1" where the unusual spacing prohibited the
48692         above regexps from doing the job.  For more details, see
48693         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48694         * m4/acl.m4: Modified.
48695         * m4/afs.m4: Likewise.
48696         * m4/alloca.m4: Likewise.
48697         * m4/argp.m4: Likewise.
48698         * m4/argz.m4: Likewise.
48699         * m4/atexit.m4: Likewise.
48700         * m4/bison-i18n.m4: Likewise.
48701         * m4/bison.m4: Likewise.
48702         * m4/byteswap.m4: Likewise.
48703         * m4/c-stack.m4: Likewise.
48704         * m4/c-strtod.m4: Likewise.
48705         * m4/calloc.m4: Likewise.
48706         * m4/canonicalize-lgpl.m4: Likewise.
48707         * m4/chown.m4: Likewise.
48708         * m4/clock_time.m4: Likewise.
48709         * m4/codeset.m4: Likewise.
48710         * m4/copy-file.m4: Likewise.
48711         * m4/csharp.m4: Likewise.
48712         * m4/csharpcomp.m4: Likewise.
48713         * m4/csharpexec.m4: Likewise.
48714         * m4/d-ino.m4: Likewise.
48715         * m4/d-type.m4: Likewise.
48716         * m4/dirfd.m4: Likewise.
48717         * m4/double-slash-root.m4: Likewise.
48718         * m4/eaccess.m4: Likewise.
48719         * m4/eealloc.m4: Likewise.
48720         * m4/environ.m4: Likewise.
48721         * m4/errno_h.m4: Likewise.
48722         * m4/euidaccess.m4: Likewise.
48723         * m4/execute.m4: Likewise.
48724         * m4/fatal-signal.m4: Likewise.
48725         * m4/fchdir.m4: Likewise.
48726         * m4/fcntl_h.m4: Likewise.
48727         * m4/fileblocks.m4: Likewise.
48728         * m4/filenamecat.m4: Likewise.
48729         * m4/findprog.m4: Likewise.
48730         * m4/flexmember.m4: Likewise.
48731         * m4/fnmatch.m4: Likewise.
48732         * m4/fopen.m4: Likewise.
48733         * m4/fpending.m4: Likewise.
48734         * m4/fprintf-posix.m4: Likewise.
48735         * m4/free.m4: Likewise.
48736         * m4/frexp.m4: Likewise.
48737         * m4/frexpl.m4: Likewise.
48738         * m4/fsusage.m4: Likewise.
48739         * m4/ftruncate.m4: Likewise.
48740         * m4/gc-camellia.m4: Likewise.
48741         * m4/gc-random.m4: Likewise.
48742         * m4/gc.m4: Likewise.
48743         * m4/getaddrinfo.m4: Likewise.
48744         * m4/getcwd-abort-bug.m4: Likewise.
48745         * m4/getcwd-path-max.m4: Likewise.
48746         * m4/getdate.m4: Likewise.
48747         * m4/getdomainname.m4: Likewise.
48748         * m4/getgroups.m4: Likewise.
48749         * m4/gethostname.m4: Likewise.
48750         * m4/gethrxtime.m4: Likewise.
48751         * m4/getline.m4: Likewise.
48752         * m4/getloadavg.m4: Likewise.
48753         * m4/getndelim2.m4: Likewise.
48754         * m4/getpass.m4: Likewise.
48755         * m4/gettext.m4: Likewise.
48756         * m4/gettime.m4: Likewise.
48757         * m4/gettimeofday.m4: Likewise.
48758         * m4/gnulib-common.m4: Likewise.
48759         * m4/group-member.m4: Likewise.
48760         * m4/host-os.m4: Likewise.
48761         * m4/iconv.m4: Likewise.
48762         * m4/iconv_open.m4: Likewise.
48763         * m4/inet_ntop.m4: Likewise.
48764         * m4/inet_pton.m4: Likewise.
48765         * m4/inline.m4: Likewise.
48766         * m4/intldir.m4: Likewise.
48767         * m4/intlmacosx.m4: Likewise.
48768         * m4/intmax.m4: Likewise.
48769         * m4/intmax_t.m4: Likewise.
48770         * m4/inttypes.m4: Likewise.
48771         * m4/inttypes_h.m4: Likewise.
48772         * m4/inttypes-pri.m4: Likewise.
48773         * m4/isapipe.m4: Likewise.
48774         * m4/isnand.m4: Likewise.
48775         * m4/isnanf.m4: Likewise.
48776         * m4/isnanl.m4: Likewise.
48777         * m4/javacomp.m4: Likewise.
48778         * m4/javaexec.m4: Likewise.
48779         * m4/jm-winsz1.m4: Likewise.
48780         * m4/jm-winsz2.m4: Likewise.
48781         * m4/lchown.m4: Likewise.
48782         * m4/lcmessage.m4: Likewise.
48783         * m4/ldexpl.m4: Likewise.
48784         * m4/lib-ld.m4: Likewise.
48785         * m4/lib-link.m4: Likewise.
48786         * m4/libsigsegv.m4: Likewise.
48787         * m4/link-follow.m4: Likewise.
48788         * m4/localcharset.m4: Likewise.
48789         * m4/locale-fr.m4: Likewise.
48790         * m4/locale-ja.m4: Likewise.
48791         * m4/locale-tr.m4: Likewise.
48792         * m4/locale-zh.m4: Likewise.
48793         * m4/lock.m4: Likewise.
48794         * m4/longlong.m4: Likewise.
48795         * m4/ls-mntd-fs.m4: Likewise.
48796         * m4/lstat.m4: Likewise.
48797         * m4/malloc.m4: Likewise.
48798         * m4/mathl.m4: Likewise.
48799         * m4/mbrtowc.m4: Likewise.
48800         * m4/mbstate_t.m4: Likewise.
48801         * m4/mbswidth.m4: Likewise.
48802         * m4/memchr.m4: Likewise.
48803         * m4/memcmp.m4: Likewise.
48804         * m4/memcpy.m4: Likewise.
48805         * m4/memmem.m4: Likewise.
48806         * m4/memmove.m4: Likewise.
48807         * m4/mempcpy.m4: Likewise.
48808         * m4/memrchr.m4: Likewise.
48809         * m4/memset.m4: Likewise.
48810         * m4/minmax.m4: Likewise.
48811         * m4/mkdir-slash.m4: Likewise.
48812         * m4/mkdtemp.m4: Likewise.
48813         * m4/mktime.m4: Likewise.
48814         * m4/mmap-anon.m4: Likewise.
48815         * m4/mountlist.m4: Likewise.
48816         * m4/nanosleep.m4: Likewise.
48817         * m4/nls.m4: Likewise.
48818         * m4/nocrash.m4: Likewise.
48819         * m4/open.m4: Likewise.
48820         * m4/openat.m4: Likewise.
48821         * m4/openmp.m4: Likewise.
48822         * m4/pathmax.m4: Likewise.
48823         * m4/perl.m4: Likewise.
48824         * m4/physmem.m4: Likewise.
48825         * m4/pipe.m4: Likewise.
48826         * m4/po.m4: Likewise.
48827         * m4/poll.m4: Likewise.
48828         * m4/posixtm.m4: Likewise.
48829         * m4/posixver.m4: Likewise.
48830         * m4/printf-frexp.m4: Likewise.
48831         * m4/printf-frexpl.m4: Likewise.
48832         * m4/printf-posix.m4: Likewise.
48833         * m4/printf-posix-rpl.m4: Likewise.
48834         * m4/printf.m4: Likewise.
48835         * m4/progtest.m4: Likewise.
48836         * m4/putenv.m4: Likewise.
48837         * m4/readline.m4: Likewise.
48838         * m4/readlink.m4: Likewise.
48839         * m4/readutmp.m4: Likewise.
48840         * m4/realloc.m4: Likewise.
48841         * m4/regex.m4: Likewise.
48842         * m4/relocatable.m4: Likewise.
48843         * m4/relocatable-lib.m4: Likewise.
48844         * m4/rename-dest-slash.m4: Likewise.
48845         * m4/rename.m4: Likewise.
48846         * m4/rmdir-errno.m4: Likewise.
48847         * m4/rmdir.m4: Likewise.
48848         * m4/roundf.m4: Likewise.
48849         * m4/roundl.m4: Likewise.
48850         * m4/rpmatch.m4: Likewise.
48851         * m4/save-cwd.m4: Likewise.
48852         * m4/selinux-selinux-h.m4: Likewise.
48853         * m4/setenv.m4: Likewise.
48854         * m4/settime.m4: Likewise.
48855         * m4/sig2str.m4: Likewise.
48856         * m4/sig_atomic_t.m4: Likewise.
48857         * m4/signalblocking.m4: Likewise.
48858         * m4/signbit.m4: Likewise.
48859         * m4/sigpipe.m4: Likewise.
48860         * m4/sockets.m4: Likewise.
48861         * m4/sockpfaf.m4: Likewise.
48862         * m4/st_dm_mode.m4: Likewise.
48863         * m4/stat-time.m4: Likewise.
48864         * m4/stdbool.m4: Likewise.
48865         * m4/stdint.m4: Likewise.
48866         * m4/stdint_h.m4: Likewise.
48867         * m4/stpcpy.m4: Likewise.
48868         * m4/stpncpy.m4: Likewise.
48869         * m4/strcase.m4: Likewise.
48870         * m4/strchrnul.m4: Likewise.
48871         * m4/strcspn.m4: Likewise.
48872         * m4/strdup.m4: Likewise.
48873         * m4/strftime.m4: Likewise.
48874         * m4/strndup.m4: Likewise.
48875         * m4/strnlen.m4: Likewise.
48876         * m4/strpbrk.m4: Likewise.
48877         * m4/strptime.m4: Likewise.
48878         * m4/strsep.m4: Likewise.
48879         * m4/strtod.m4: Likewise.
48880         * m4/strtoimax.m4: Likewise.
48881         * m4/strtok_r.m4: Likewise.
48882         * m4/strtol.m4: Likewise.
48883         * m4/strtoll.m4: Likewise.
48884         * m4/strtoul.m4: Likewise.
48885         * m4/strtoull.m4: Likewise.
48886         * m4/strtoumax.m4: Likewise.
48887         * m4/strverscmp.m4: Likewise.
48888         * m4/threadlib.m4: Likewise.
48889         * m4/timegm.m4: Likewise.
48890         * m4/tm_gmtoff.m4: Likewise.
48891         * m4/tmpdir.m4: Likewise.
48892         * m4/tmpfile.m4: Likewise.
48893         * m4/tzset.m4: Likewise.
48894         * m4/uintmax_t.m4: Likewise.
48895         * m4/unlinkdir.m4: Likewise.
48896         * m4/unlocked-io.m4: Likewise.
48897         * m4/uptime.m4: Likewise.
48898         * m4/userspec.m4: Likewise.
48899         * m4/utimbuf.m4: Likewise.
48900         * m4/utime.m4: Likewise.
48901         * m4/utimes-null.m4: Likewise.
48902         * m4/utimes.m4: Likewise.
48903         * m4/vararrays.m4: Likewise.
48904         * m4/vasnprintf.m4: Likewise.
48905         * m4/vfprintf-posix.m4: Likewise.
48906         * m4/vprintf-posix.m4: Likewise.
48907         * m4/wait-process.m4: Likewise.
48908         * m4/wchar_t.m4: Likewise.
48909         * m4/wint_t.m4: Likewise.
48910         * m4/write-any-file.m4: Likewise.
48911         * m4/yield.m4: Likewise.
48912
48913 2009-01-13  Bruno Haible  <bruno@clisp.org>
48914
48915         Avoid test-copy-file.sh failures when ACL support insufficient.
48916         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48917         TESTS_ENVIRONMENT.
48918         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48919         Reported by Jim Meyering.
48920
48921 2009-01-13  Bruno Haible  <bruno@clisp.org>
48922
48923         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48924         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48925         * modules/unistdio/u8-printf-parse (Files): Likewise.
48926         * modules/unistdio/u32-printf-parse (Files): Likewise.
48927         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48928
48929 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48930
48931         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48932         and m4/inttypes_h.m4 too.
48933
48934 2009-01-12  Eric Blake  <ebb9@byu.net>
48935
48936         tests: IRIX 6.2 cc can't compile -0.0 into .data
48937         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48938         rather than at compile-time.
48939         * tests/test-floorl.c (minus_zero): Likewise.
48940         * tests/test-frexpl.c (minus_zero): Likewise.
48941         * tests/test-isnan.c (minus_zerol): Likewise.
48942         * tests/test-isnanl.h (minus_zero): Likewise.
48943         * tests/test-ldexpl.c (minus_zero): Likewise.
48944         * tests/test-roundl.c (minus_zero): Likewise.
48945         * tests/test-signbit.c (minus_zerol): Likewise.
48946         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48947         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48948         * tests/test-truncl.c (minus_zero): Likewise.
48949         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48950         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48951         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48952
48953 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48954
48955         regex: fix glibc bug 9697
48956         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48957         handling.
48958
48959 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48960
48961         regex: fix glibc bug 697
48962         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48963         being NULL also if there are no backreferences.
48964
48965 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48966
48967         regex: merge glibc changes
48968         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48969         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48970         re_string_skip_chars, re_string_reconstruct): Likewise.
48971         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48972
48973 2009-01-07  Jim Meyering  <meyering@redhat.com>
48974
48975         poll: filter through cppi
48976         * lib/poll.c: Indent cpp directives to reflect nesting.
48977
48978 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48979
48980         poll: don't return uninitialized
48981         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48982
48983 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48984
48985         avoid compile failure on AIX 6.1
48986         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48987         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48988
48989 2009-01-04  Jim Meyering  <meyering@redhat.com>
48990
48991         remove duplicate inclusion of <stdio.h>
48992         * tests/test-fprintf-posix.c: Likewise.
48993         * tests/test-printf-posix.c: Likewise.
48994         * tests/test-snprintf-posix.c: Likewise.
48995         * tests/test-sprintf-posix.c: Likewise.
48996         * tests/test-vasprintf-posix.c: Likewise.
48997         * tests/test-vfprintf-posix.c: Likewise.
48998         * tests/test-vprintf-posix.c: Likewise.
48999         * tests/test-vsnprintf-posix.c: Likewise.
49000         * tests/test-vsprintf-posix.c: Likewise.
49001
49002 2009-01-03  Jim Meyering  <meyering@redhat.com>
49003
49004         gnulib-tool: fix sed-based filtering
49005         * gnulib-tool (func_filter_filelist): Remove extra backslash
49006         in sed_fff_filter definition.
49007
49008 2009-01-02  Jim Meyering  <meyering@redhat.com>
49009
49010         strftime: avoid compilation failure on Solaris 2.6
49011         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49012         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49013         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49014         be available.  Reported by Tom G. Christensen.  Details in
49015         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49016
49017 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49018             Bruno Haible  <bruno@clisp.org>
49019
49020         Speed up gnulib-tool by doing more string processing through shell
49021         built-ins.
49022         * gnulib-tool (fast_func_append): New variable.
49023         (func_remove_prefix, func_remove_suffix): New functions.
49024         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49025         (func_filter_filelist): New function.
49026         (func_get_dependencies): Use func_remove_suffix instead of sed.
49027         (func_get_automake_snippet): Use func_filter_filelist instead of a
49028         subshell and sed invocation.
49029
49030 2009-01-01  Bruno Haible  <bruno@clisp.org>
49031
49032         Fix a security bug.
49033         * gnulib-tool (func_import, import, update): Don't allow the characters
49034         '"', '$', '`', '\' in macro arguments that become part of commands that
49035         are evaluated.
49036
49037 2009-01-01  Bruno Haible  <bruno@clisp.org>
49038
49039         * gnulib-tool (func_reset_sigpipe): Add more comments.
49040
49041 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49042
49043         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49044         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49045         already know the answer.
49046
49047 2009-01-01  Jim Meyering  <meyering@redhat.com>
49048
49049         * lib/version-etc.c (version_etc_va): Update copyright year.
49050
49051 2008-12-30  Bruno Haible  <bruno@clisp.org>
49052
49053         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49054         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49055         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49056
49057 2008-12-29  Eric Blake  <ebb9@byu.net>
49058
49059         multiarch: avoid autoconf AC_REQUIRE bug
49060         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49061         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49062         2.63 and older.
49063         Reported by Bruno Haible, and analyzed in
49064         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49065
49066 2008-12-29  Bruno Haible  <bruno@clisp.org>
49067
49068         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49069         files in subdirectories correctly.
49070         Reported by Ralf Wildenhues.
49071
49072 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49073
49074         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49075         rather than 'join FILE -', for Solaris join.
49076
49077 2008-12-29  Bruno Haible  <bruno@clisp.org>
49078
49079         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49080         quoting.
49081         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49082         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49083         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49084         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49085         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49086         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49087         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49088         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49089         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49090         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49091         * m4/nls.m4 (AM_NLS): Likewise.
49092         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49093         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49094         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49095         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49096         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49097         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49098         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49099         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49100         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49101         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49102         * m4/xsize.m4 (gl_XSIZE): Likewise.
49103         Suggested by Jim Meyering.
49104
49105 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49106
49107         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49108         * lib/parse-duration.c: use a switch instead of cascading if's.
49109
49110 2008-12-29  Eric Blake  <ebb9@byu.net>
49111
49112         wchar.h: supply WEOF on Irix 5.3
49113         * lib/wchar.in.h (wint_t): Also supply WEOF.
49114         * lib/wctype.in.h (wint_t): Likewise.
49115         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49116         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49117         Reported by Tom G. Christensen.
49118
49119 2008-12-26  Bruno Haible  <bruno@clisp.org>
49120
49121         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49122         i486, i586, i686.
49123
49124 2008-12-26  Bruno Haible  <bruno@clisp.org>
49125
49126         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49127
49128 2008-12-26  Bruno Haible  <bruno@clisp.org>
49129
49130         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49131         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49132         not __STDC_CONSTANT_MACROS.
49133         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49134
49135 2008-12-25  Bruno Haible  <bruno@clisp.org>
49136
49137         Add support for universal builds to vasnprintf.
49138         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49139         universal builds, guess no.
49140         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49141         * modules/vasprintf-posix (Depends-on): Likewise.
49142         * modules/fprintf-posix (Depends-on): Likewise.
49143         * modules/vfprintf-posix (Depends-on): Likewise.
49144         * modules/snprintf-posix (Depends-on): Likewise.
49145         * modules/vsnprintf-posix (Depends-on): Likewise.
49146         * modules/sprintf-posix (Depends-on): Likewise.
49147         * modules/vsprintf-posix (Depends-on): Likewise.
49148         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49149         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49150         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49151         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49152         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49153         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49154         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49155
49156         Add support for universal builds to <inttypes.h>.
49157         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49158         _SCNu64_PREFIX): In Apple
49159         universal builds, define directly, using _LP64.
49160         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49161         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49162         * modules/inttypes (Depends-on): Add multiarch.
49163         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49164
49165         Add support for universal builds to <stdint.h>.
49166         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49167         universal builds, define directly, using _LP64.
49168         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49169         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49170         and size_t.
49171         * modules/stdint (Depends-on): Add multiarch.
49172         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49173
49174         New module 'multiarch'.
49175         * modules/multiarch: New file.
49176         * m4/multiarch.m4: New file.
49177
49178 2008-12-25  Bruno Haible  <bruno@clisp.org>
49179
49180         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49181
49182 2008-12-25  Bruno Haible  <bruno@clisp.org>
49183
49184         * modules/btowc (License): Relicense under LGPLv2+.
49185         * modules/mbsinit (License): Likewise.
49186         * modules/mbrtowc (License): Likewise.
49187         * modules/wcrtomb (License): Likewise.
49188         * modules/streq (License): Likewise.
49189         Reported by David Lutterkort <lutter@redhat.com>.
49190
49191 2008-12-23  Bruno Haible  <bruno@clisp.org>
49192
49193         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49194
49195 2008-12-23  Bruno Haible  <bruno@clisp.org>
49196
49197         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49198         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49199         GETADDRINFO_LIB, not in LIBS.
49200         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49201         * modules/canon-host (Link): Likewise.
49202         * NEWS: Mention the change.
49203         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49204         GETADDRINFO_LIB.
49205
49206 2008-12-22  Bruno Haible  <bruno@clisp.org>
49207
49208         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49209         * doc/posix-functions/iswalpha_l.texi: Likewise.
49210         * doc/posix-functions/iswblank_l.texi: Likewise.
49211         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49212         * doc/posix-functions/iswctype_l.texi: Likewise.
49213         * doc/posix-functions/iswdigit_l.texi: Likewise.
49214         * doc/posix-functions/iswgraph_l.texi: Likewise.
49215         * doc/posix-functions/iswlower_l.texi: Likewise.
49216         * doc/posix-functions/iswprint_l.texi: Likewise.
49217         * doc/posix-functions/iswpunct_l.texi: Likewise.
49218         * doc/posix-functions/iswspace_l.texi: Likewise.
49219         * doc/posix-functions/iswupper_l.texi: Likewise.
49220         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49221         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49222         * doc/posix-functions/open_wmemstream.texi: Likewise.
49223         * doc/posix-functions/swscanf.texi: Likewise.
49224         * doc/posix-functions/towctrans_l.texi: Likewise.
49225         * doc/posix-functions/towlower.texi: Likewise.
49226         * doc/posix-functions/towlower_l.texi: Likewise.
49227         * doc/posix-functions/towupper.texi: Likewise.
49228         * doc/posix-functions/towupper_l.texi: Likewise.
49229         * doc/posix-functions/vfwprintf.texi: Likewise.
49230         * doc/posix-functions/vfwscanf.texi: Likewise.
49231         * doc/posix-functions/vswscanf.texi: Likewise.
49232         * doc/posix-functions/vwprintf.texi: Likewise.
49233         * doc/posix-functions/vwscanf.texi: Likewise.
49234         * doc/posix-functions/wcpcpy.texi: Likewise.
49235         * doc/posix-functions/wcpncpy.texi: Likewise.
49236         * doc/posix-functions/wcscasecmp.texi: Likewise.
49237         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49238         * doc/posix-functions/wcscoll_l.texi: Likewise.
49239         * doc/posix-functions/wcsdup.texi: Likewise.
49240         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49241         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49242         * doc/posix-functions/wcsnlen.texi: Likewise.
49243         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49244         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49245         * doc/posix-functions/wctrans_l.texi: Likewise.
49246         * doc/posix-functions/wctype_l.texi: Likewise.
49247         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49248         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49249         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49250         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49251         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49252         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49253         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49254         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49255         * doc/glibc-functions/wcschrnul.texi: Likewise.
49256         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49257         * doc/glibc-functions/wcstod_l.texi: Likewise.
49258         * doc/glibc-functions/wcstof_l.texi: Likewise.
49259         * doc/glibc-functions/wcstol_l.texi: Likewise.
49260         * doc/glibc-functions/wcstold_l.texi: Likewise.
49261         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49262         * doc/glibc-functions/wcstoq.texi: Likewise.
49263         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49264         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49265         * doc/glibc-functions/wcstouq.texi: Likewise.
49266         * doc/glibc-functions/wmempcpy.texi: Likewise.
49267
49268 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49269             Eric Blake  <ebb9@byu.net>
49270             Paolo Bonzini  <bonzini@gnu.org>
49271             Bruno Haible  <bruno@clisp.org>
49272
49273         Make c-stack work on Haiku.
49274         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49275         (c_stack_action): Use SA_ONSTACK flag.
49276
49277 2008-12-22  Bruno Haible  <bruno@clisp.org>
49278
49279         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49280
49281 2008-12-22  Bruno Haible  <bruno@clisp.org>
49282
49283         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49284         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49285         being overridden.
49286         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49287         New macros.
49288         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49290         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49291         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49292
49293 2008-12-22  Bruno Haible  <bruno@clisp.org>
49294
49295         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49296         from test code.
49297
49298 2008-12-22  Eric Blake  <ebb9@byu.net>
49299
49300         Avoid gcc warnings on cygwin.
49301         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49302         Avoid unused variable.
49303         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49304         Likewise.
49305
49306 2008-12-22  Bruno Haible  <bruno@clisp.org>
49307
49308         Remove HAVE_MBRTOWC conditionals.
49309         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49310         (mbscasecmp): Assume mbrtowc function.
49311         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49312         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49313         * lib/mbschr.c: Include mbuiter.h unconditionally.
49314         (mbschr): Assume mbrtowc function.
49315         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49316         (mbscspn): Assume mbrtowc function.
49317         * lib/mbslen.c: Include mbuiter.h unconditionally.
49318         (mbslen): Assume mbrtowc function.
49319         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49320         (mbsncasecmp): Assume mbrtowc function.
49321         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49322         (mbsnlen): Assume mbrtowc function.
49323         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49324         (mbspbrk): Assume mbrtowc function.
49325         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49326         (mbspcasecmp): Assume mbrtowc function.
49327         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49328         (mbsrchr): Assume mbrtowc function.
49329         * lib/mbssep.c: Include mbuiter.h unconditionally.
49330         (mbssep): Assume mbrtowc function.
49331         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49332         (mbsspn): Assume mbrtowc function.
49333         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49334         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49335         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49336         (mbstok_r): Assume mbrtowc function.
49337         * lib/propername.c: Include mbuiter.h unconditionally.
49338         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49339         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49340         (trim2): Assume mbrtowc function.
49341         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49342         (mbsnwidth): Assume mbrtowc function.
49343         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49344         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49345         fallback definitions.
49346         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49347
49348 2008-12-22  Bruno Haible  <bruno@clisp.org>
49349
49350         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49351
49352 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49353
49354         * modules/regex: Request emulations for the mb*/wc* functions we need.
49355         * m4/regex.m4: Don't look for those functions here.
49356         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49357
49358 2008-12-22  Bruno Haible  <bruno@clisp.org>
49359
49360         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49361
49362 2008-12-21  Bruno Haible  <bruno@clisp.org>
49363
49364         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49365         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49366         (Include): Remove conditionalization.
49367         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49368         (Include): Remove conditionalization.
49369         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49370         (Include): Remove conditionalization.
49371         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49372         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49373         * NEWS: Mention the change.
49374         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49375         via Sergey Poznyakoff <gray@gnu.org.ua>.
49376
49377 2008-12-21  Bruno Haible  <bruno@clisp.org>
49378
49379         * MODULES.html.sh (Extended multibyte and wide character utilities
49380         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49381         wcrtomb, wcsrtombs.
49382         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49383         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49384         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49385         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49386
49387 2008-12-21  Bruno Haible  <bruno@clisp.org>
49388
49389         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49390
49391 2008-12-21  Bruno Haible  <bruno@clisp.org>
49392
49393         * modules/wcsnrtombs-tests: New file.
49394         * tests/test-wcsnrtombs1.sh: New file.
49395         * tests/test-wcsnrtombs2.sh: New file.
49396         * tests/test-wcsnrtombs3.sh: New file.
49397         * tests/test-wcsnrtombs4.sh: New file.
49398         * tests/test-wcsnrtombs.c: New file.
49399
49400         New module 'wcsnrtombs'.
49401         * lib/wchar.in.h (wcsnrtombs): New declaration.
49402         * lib/wcsnrtombs.c: New file.
49403         * lib/wcsrtombs-state.c: New file.
49404         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49405         (internal_state): Remove variable.
49406         * m4/wcsnrtombs.m4: New file.
49407         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49408         compilation units.
49409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49410         HAVE_WCSNRTOMBS.
49411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49412         HAVE_WCSNRTOMBS.
49413         * modules/wcsnrtombs: New file.
49414         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49415         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49416
49417 2008-12-21  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/wcsrtombs-tests: New file.
49420         * tests/test-wcsrtombs1.sh: New file.
49421         * tests/test-wcsrtombs2.sh: New file.
49422         * tests/test-wcsrtombs3.sh: New file.
49423         * tests/test-wcsrtombs4.sh: New file.
49424         * tests/test-wcsrtombs.c: New file.
49425
49426         New module 'wcsrtombs'.
49427         * lib/wchar.in.h (wcsrtombs): New declaration.
49428         * lib/wcsrtombs.c: New file.
49429         * m4/wcsrtombs.m4: New file.
49430         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49431         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49433         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49434         * modules/wcsrtombs: New file.
49435         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49436         bugs.
49437
49438 2008-12-21  Bruno Haible  <bruno@clisp.org>
49439
49440         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49441         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49442         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49443         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49444         if not correct.
49445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49446         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49447         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49448         m4/locale-zh.m4, m4/codeset.m4.
49449         * doc/posix-functions/wcrtomb.texi: Document the bug.
49450
49451 2008-12-21  Bruno Haible  <bruno@clisp.org>
49452
49453         Work around a btowc() bug on IRIX 6.5.
49454         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49455         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49456         REPLACE_WTOBC if not.
49457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49458         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49459         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49460
49461 2008-12-21  Bruno Haible  <bruno@clisp.org>
49462
49463         * modules/wcrtomb-tests: New file.
49464         * tests/test-wcrtomb.sh: New file.
49465         * tests/test-wcrtomb.c: New file.
49466
49467         New module 'wcrtomb'.
49468         * lib/wchar.in.h (wcrtomb): New declaration.
49469         * lib/wcrtomb.c: New file.
49470         * m4/wcrtomb.m4: New file.
49471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49472         HAVE_WCRTOMB.
49473         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49474         HAVE_WCRTOMB.
49475         * modules/wcrtomb: New file.
49476         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49477
49478 2008-12-21  Bruno Haible  <bruno@clisp.org>
49479
49480         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49481         * modules/mbsrtowcs (Files): Likewise.
49482         * modules/wctob (Files): Likewise.
49483         * modules/c-strcase-tests (Files): Likewise.
49484         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49485         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49486         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49487         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49488         * modules/vasnprintf-posix-tests (Files): Likewise.
49489
49490 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49491
49492         gitlog-to-changelog: pass all command-line arguments to git-log
49493         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49494         it is sometimes convenient to filter the commits in various ways.
49495         gitlog-to-changelog only allows --since to specify a start date,
49496         but git-log itself supports many other filtering mechanisms.
49497         At the moment, I want to filter by branch name.  Rather than
49498         adding a --branch option to gitlog-to-changelog, it seems more
49499         flexible to simply pass all options directly to git-log and let
49500         git do the work.  Notice that this effectively makes --since a
49501         redundant option for gitlog-to-changelog, but removing it would
49502         require current usage to change since calls would then require
49503         an additional '--'.
49504
49505 2008-12-21  Bruno Haible  <bruno@clisp.org>
49506
49507         * modules/mbsnrtowcs-tests: New file.
49508         * tests/test-mbsnrtowcs1.sh: New file.
49509         * tests/test-mbsnrtowcs2.sh: New file.
49510         * tests/test-mbsnrtowcs3.sh: New file.
49511         * tests/test-mbsnrtowcs4.sh: New file.
49512         * tests/test-mbsnrtowcs.c: New file.
49513
49514         New module 'mbsnrtowcs'.
49515         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49516         * lib/mbsnrtowcs.c: New file.
49517         * lib/mbsrtowcs-state.c: New file.
49518         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49519         (internal_state): Remove variable.
49520         * m4/mbsnrtowcs.m4: New file.
49521         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49522         compilation units.
49523         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49524         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49525         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49526         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49527         * modules/mbsnrtowcs: New file.
49528         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49529         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49530         portability problem.
49531
49532 2008-12-21  Bruno Haible  <bruno@clisp.org>
49533
49534         Work around mbsrtowcs bug.
49535         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49536         (gl_FUNC_MBSRTOWCS): Invoke it.
49537         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49538         m4/locale-zh.m4.
49539         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49540
49541 2008-12-21  Bruno Haible  <bruno@clisp.org>
49542
49543         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49544
49545 2008-12-21  Bruno Haible  <bruno@clisp.org>
49546
49547         Update doc for AIX.
49548         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49549         16-bit wchar_t type.
49550         * doc/posix-functions/btowc.texi: Likewise.
49551         * doc/posix-functions/fgetwc.texi: Likewise.
49552         * doc/posix-functions/fgetws.texi: Likewise.
49553         * doc/posix-functions/fputwc.texi: Likewise.
49554         * doc/posix-functions/fputws.texi: Likewise.
49555         * doc/posix-functions/fwide.texi: Likewise.
49556         * doc/posix-functions/fwprintf.texi: Likewise.
49557         * doc/posix-functions/fwscanf.texi: Likewise.
49558         * doc/posix-functions/getwchar.texi: Likewise.
49559         * doc/posix-functions/getwc.texi: Likewise.
49560         * doc/posix-functions/iswalnum.texi: Likewise.
49561         * doc/posix-functions/iswalpha.texi: Likewise.
49562         * doc/posix-functions/iswblank.texi: Likewise.
49563         * doc/posix-functions/iswcntrl.texi: Likewise.
49564         * doc/posix-functions/iswctype.texi: Likewise.
49565         * doc/posix-functions/iswdigit.texi: Likewise.
49566         * doc/posix-functions/iswgraph.texi: Likewise.
49567         * doc/posix-functions/iswlower.texi: Likewise.
49568         * doc/posix-functions/iswprint.texi: Likewise.
49569         * doc/posix-functions/iswpunct.texi: Likewise.
49570         * doc/posix-functions/iswspace.texi: Likewise.
49571         * doc/posix-functions/iswupper.texi: Likewise.
49572         * doc/posix-functions/iswxdigit.texi: Likewise.
49573         * doc/posix-functions/mbrtowc.texi: Likewise.
49574         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49575         * doc/posix-functions/mbstowcs.texi: Likewise.
49576         * doc/posix-functions/mbtowc.texi: Likewise.
49577         * doc/posix-functions/putwchar.texi: Likewise.
49578         * doc/posix-functions/putwc.texi: Likewise.
49579         * doc/posix-functions/swprintf.texi: Likewise.
49580         * doc/posix-functions/tolower.texi: Likewise.
49581         * doc/posix-functions/toupper.texi: Likewise.
49582         * doc/posix-functions/towctrans.texi: Likewise.
49583         * doc/posix-functions/ungetwc.texi: Likewise.
49584         * doc/posix-functions/vswprintf.texi: Likewise.
49585         * doc/posix-functions/wcrtomb.texi: Likewise.
49586         * doc/posix-functions/wcscat.texi: Likewise.
49587         * doc/posix-functions/wcschr.texi: Likewise.
49588         * doc/posix-functions/wcscmp.texi: Likewise.
49589         * doc/posix-functions/wcscoll.texi: Likewise.
49590         * doc/posix-functions/wcscpy.texi: Likewise.
49591         * doc/posix-functions/wcscspn.texi: Likewise.
49592         * doc/posix-functions/wcsftime.texi: Likewise.
49593         * doc/posix-functions/wcslen.texi: Likewise.
49594         * doc/posix-functions/wcsncat.texi: Likewise.
49595         * doc/posix-functions/wcsncmp.texi: Likewise.
49596         * doc/posix-functions/wcsncpy.texi: Likewise.
49597         * doc/posix-functions/wcspbrk.texi: Likewise.
49598         * doc/posix-functions/wcsrchr.texi: Likewise.
49599         * doc/posix-functions/wcsrtombs.texi: Likewise.
49600         * doc/posix-functions/wcsspn.texi: Likewise.
49601         * doc/posix-functions/wcsstr.texi: Likewise.
49602         * doc/posix-functions/wcstod.texi: Likewise.
49603         * doc/posix-functions/wcstof.texi: Likewise.
49604         * doc/posix-functions/wcstoimax.texi: Likewise.
49605         * doc/posix-functions/wcstok.texi: Likewise.
49606         * doc/posix-functions/wcstold.texi: Likewise.
49607         * doc/posix-functions/wcstoll.texi: Likewise.
49608         * doc/posix-functions/wcstol.texi: Likewise.
49609         * doc/posix-functions/wcstombs.texi: Likewise.
49610         * doc/posix-functions/wcstoull.texi: Likewise.
49611         * doc/posix-functions/wcstoul.texi: Likewise.
49612         * doc/posix-functions/wcstoumax.texi: Likewise.
49613         * doc/posix-functions/wcswidth.texi: Likewise.
49614         * doc/posix-functions/wcsxfrm.texi: Likewise.
49615         * doc/posix-functions/wctob.texi: Likewise.
49616         * doc/posix-functions/wctomb.texi: Likewise.
49617         * doc/posix-functions/wctrans.texi: Likewise.
49618         * doc/posix-functions/wctype.texi: Likewise.
49619         * doc/posix-functions/wcwidth.texi: Likewise.
49620         * doc/posix-functions/wmemchr.texi: Likewise.
49621         * doc/posix-functions/wmemcmp.texi: Likewise.
49622         * doc/posix-functions/wmemcpy.texi: Likewise.
49623         * doc/posix-functions/wmemmove.texi: Likewise.
49624         * doc/posix-functions/wmemset.texi: Likewise.
49625         * doc/posix-functions/wprintf.texi: Likewise.
49626         * doc/posix-functions/wscanf.texi: Likewise.
49627
49628 2008-12-21  Bruno Haible  <bruno@clisp.org>
49629
49630         Update doc for HP-UX 11.11.
49631         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49632         in HP-UX version 11.00, not in all versions of HP-UX 11.
49633         * doc/posix-functions/fwide.texi: Likewise.
49634         * doc/posix-functions/fwprintf.texi: Likewise.
49635         * doc/posix-functions/fwscanf.texi: Likewise.
49636         * doc/posix-functions/inet_ntop.texi: Likewise.
49637         * doc/posix-functions/inet_pton.texi: Likewise.
49638         * doc/posix-functions/mbrlen.texi: Likewise.
49639         * doc/posix-functions/mbrtowc.texi: Likewise.
49640         * doc/posix-functions/mbsinit.texi: Likewise.
49641         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49642         * doc/posix-functions/swprintf.texi: Likewise.
49643         * doc/posix-functions/swscanf.texi: Likewise.
49644         * doc/posix-functions/towctrans.texi: Likewise.
49645         * doc/posix-functions/vfwprintf.texi: Likewise.
49646         * doc/posix-functions/vswprintf.texi: Likewise.
49647         * doc/posix-functions/vwprintf.texi: Likewise.
49648         * doc/posix-functions/wcrtomb.texi: Likewise.
49649         * doc/posix-functions/wcsrtombs.texi: Likewise.
49650         * doc/posix-functions/wcsstr.texi: Likewise.
49651         * doc/posix-functions/wctob.texi: Likewise.
49652         * doc/posix-functions/wctrans.texi: Likewise.
49653         * doc/posix-functions/wmemchr.texi: Likewise.
49654         * doc/posix-functions/wmemcmp.texi: Likewise.
49655         * doc/posix-functions/wmemcpy.texi: Likewise.
49656         * doc/posix-functions/wmemmove.texi: Likewise.
49657         * doc/posix-functions/wmemset.texi: Likewise.
49658         * doc/posix-functions/wprintf.texi: Likewise.
49659         * doc/posix-functions/wscanf.texi: Likewise.
49660
49661 2008-12-21  Bruno Haible  <bruno@clisp.org>
49662
49663         Work around a portability problem.
49664         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49665         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49666
49667 2008-12-20  Bruno Haible  <bruno@clisp.org>
49668
49669         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49670         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49671         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49673         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49674
49675         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49676         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49677         set.
49678         (GNULIB_defined_mbstate_t): New macro.
49679         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49680         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49681         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49682         reuses the system's mbrtowc function but works around the bugs.
49683         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49684         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49685         macros.
49686         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49687         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49688         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49689         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49690         REPLACE_MBSINIT if mbsinit needs to be overridden.
49691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49692         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49693         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49694         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49695         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49696         m4/locale-zh.m4.
49697         (Depends): Add mbsinit.
49698         * modules/mbsinit (Depends): Add mbrtowc.
49699         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49700
49701 2008-12-20  Bruno Haible  <bruno@clisp.org>
49702
49703         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49704         so that there are no conversion errors on AIX.
49705         * tests/test-mbsrtowcs.c (main): LIkewise.
49706
49707 2008-12-20  Bruno Haible  <bruno@clisp.org>
49708
49709         Work around wctob bug on Solaris <= 9.
49710         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49711         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49712         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49713         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49714         * modules/wctob (Files): Add m4/locale-fr.m4.
49715         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49716
49717 2008-12-20  Bruno Haible  <bruno@clisp.org>
49718
49719         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49720         /dev/null.
49721         * tests/test-select-in.sh: Likewise.
49722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49723
49724 2008-12-20  Bruno Haible  <bruno@clisp.org>
49725
49726         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49727         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49728         Cygwin 1.5.x.
49729
49730 2008-12-20  Bruno Haible  <bruno@clisp.org>
49731
49732         Ensure mbstate_t is defined on HP-UX 11.11.
49733         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49734         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49735         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49736         AC_USE_SYSTEM_EXTENSIONS.
49737         * modules/fnmatch (Depends-on): Add extensions.
49738         * modules/mbrlen (Depends-on): Likewise.
49739         * modules/mbrtowc (Depends-on): Likewise.
49740         * modules/mbsinit (Depends-on): Likewise.
49741         * modules/mbsrtowcs (Depends-on): Likewise.
49742         * modules/mbswidth (Depends-on): Likewise.
49743         * modules/quotearg (Depends-on): Likewise.
49744         * modules/strftime (Depends-on): Likewise.
49745
49746 2008-12-20  Bruno Haible  <bruno@clisp.org>
49747
49748         Ensure wctob is declared on IRIX 6.5.
49749         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49750         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49751         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49753         of HAVE_WCTOB.
49754         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49755         HAVE_WCTOB.
49756         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49757
49758 2008-12-19  Bruno Haible  <bruno@clisp.org>
49759
49760         * modules/mbsrtowcs-tests: New file.
49761         * tests/test-mbsrtowcs1.sh: New file.
49762         * tests/test-mbsrtowcs2.sh: New file.
49763         * tests/test-mbsrtowcs3.sh: New file.
49764         * tests/test-mbsrtowcs4.sh: New file.
49765         * tests/test-mbsrtowcs.c: New file.
49766
49767         New module 'mbsrtowcs'.
49768         * lib/wchar.in.h (mbsrtowcs): New declaration.
49769         * lib/mbsrtowcs.c: New file.
49770         * m4/mbsrtowcs.m4: New file.
49771         * modules/mbsrtowcs: New file.
49772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49773         HAVE_MBSRTOWCS.
49774         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49775         HAVE_MBSRTOWCS.
49776         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49777
49778 2008-12-19  Bruno Haible  <bruno@clisp.org>
49779
49780         New module 'mbrlen'.
49781         * lib/wchar.in.h (mbrlen): New declaration.
49782         * lib/mbrlen.c: New file.
49783         * m4/mbrlen.m4: New file.
49784         * modules/mbrlen: New file.
49785         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49786         HAVE_MBRLEN.
49787         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49788         HAVE_MBRLEN.
49789         * doc/posix-functions/mbrlen.texi: Document the new module.
49790
49791 2008-12-19  Bruno Haible  <bruno@clisp.org>
49792
49793         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49794         * modules/mbrtowc (Depends-on): Add verify.
49795         Suggested by Paul Eggert.
49796
49797 2008-12-18  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/mbsinit-tests: New file.
49800         * tests/test-mbsinit.sh: New file.
49801         * tests/test-mbsinit.c: New file.
49802
49803 2008-12-18  Bruno Haible  <bruno@clisp.org>
49804
49805         * modules/mbrtowc-tests: New file.
49806         * tests/test-mbrtowc1.sh: New file.
49807         * tests/test-mbrtowc2.sh: New file.
49808         * tests/test-mbrtowc3.sh: New file.
49809         * tests/test-mbrtowc4.sh: New file.
49810         * tests/test-mbrtowc.c: New file.
49811
49812         New module 'mbrtowc'.
49813         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49814         mbsinit and mbrtowc.
49815         (mbrtowc): New declaration.
49816         * lib/mbrtowc.c: New file.
49817         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49818         * modules/mbrtowc: New file.
49819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49820         HAVE_MBRTOWC.
49821         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49822         HAVE_MBRTOWC.
49823         * doc/posix-functions/mbrtowc.texi: Document the new module.
49824
49825 2008-12-18  Bruno Haible  <bruno@clisp.org>
49826
49827         New module 'wctob'.
49828         * lib/wchar.in.h (wctob): New declaration.
49829         * lib/wctob.c: New file.
49830         * m4/wctob.m4: New file.
49831         * modules/wctob: New file.
49832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49833         HAVE_WCTOB.
49834         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49835         * doc/posix-functions/wctob.texi: Document the new module.
49836
49837 2008-12-18  Bruno Haible  <bruno@clisp.org>
49838
49839         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49840         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49841
49842 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49843
49844         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49845         G. Christensen" <tgc@jupiterrise.com>.
49846
49847         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49848         G. Christensen" <tgc@jupiterrise.com>.
49849
49850         * lib/flock.c: Need to include string.h.  Reported by "Tom
49851         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49852         <ebb9@byu.net>.
49853
49854 2008-12-18  Bruno Haible  <bruno@clisp.org>
49855
49856         * m4/locale-ja.m4: New file, from GNU gettext.
49857
49858 2008-12-17  Bruno Haible  <bruno@clisp.org>
49859
49860         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49861         Suggested by Eric Blake.
49862
49863 2008-12-17  Bruno Haible  <bruno@clisp.org>
49864
49865         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49866
49867 2008-12-17  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49870         * modules/mbsinit (Depends-on): Add verify.
49871         Suggested by Paul Eggert.
49872
49873 2008-12-17  Bruno Haible  <bruno@clisp.org>
49874
49875         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49876         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49877         gl_FUNC_MBRTOWC.
49878         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49879         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49880         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49881         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49882         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49883         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49884         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49885         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49886         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49887         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49888         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49889         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49890         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49891         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49892         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49893         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49894         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49895         * modules/trim (configure.ac): Likewise.
49896
49897 2008-12-17  Bruno Haible  <bruno@clisp.org>
49898
49899         * modules/btowc-tests: New file.
49900         * tests/test-btowc1.sh: New file.
49901         * tests/test-btowc2.sh: New file.
49902         * tests/test-btowc.c: New file.
49903
49904         New module 'btowc'.
49905         * lib/wchar.in.h (btowc): New declaration.
49906         * lib/btowc.c: New file.
49907         * m4/btowc.m4: New file.
49908         * modules/btowc: New file.
49909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49910         HAVE_BTOWC.
49911         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49912         * doc/posix-functions/btowc.texi: Document the new module.
49913
49914 2008-12-17  Bruno Haible  <bruno@clisp.org>
49915
49916         New module 'mbsinit'.
49917         * lib/wchar.in.h (mbsinit): New declaration.
49918         * lib/mbsinit.c: New file.
49919         * m4/mbsinit.m4: New file.
49920         * modules/mbsinit: New file.
49921         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49922         HAVE_MBSINIT.
49923         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49924         HAVE_MBSINIT.
49925         * doc/posix-functions/mbsinit.texi: Document the new module.
49926
49927 2008-12-16  Bruno Haible  <bruno@clisp.org>
49928
49929         * lib/unistd.in.h: Add comment.
49930         * tests/test-environ.c: Don't include <stdlib.h>.
49931
49932 2008-12-16  Bruno Haible  <bruno@clisp.org>
49933
49934         * lib/parse-duration.h (parse_duration): Document return value
49935         convention.
49936         * lib/parse-duration.c: Include specification header first. Add
49937         comments.
49938         (_): Remove macro.
49939         (parse_year_month_day, parse_hour_minute_second): Move side effects
49940         outside of strchr call.
49941         (parse_non_iso8601): Move side effects outside of isspace call.
49942         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49943         call.
49944
49945 2008-12-16  Bruno Haible  <bruno@clisp.org>
49946
49947         * tests/test-parse-duration.sh: Produce no output when the test
49948         succeeds.
49949
49950 2008-12-16  Bruno Haible  <bruno@clisp.org>
49951
49952         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49953         expressions.
49954
49955 2008-12-15  Bruno Haible  <bruno@clisp.org>
49956
49957         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49958         * doc/glibc-functions/flistxattr.texi: Likewise.
49959         * doc/glibc-functions/fopencookie.texi: Likewise.
49960         * doc/glibc-functions/fremovexattr.texi: Likewise.
49961         * doc/glibc-functions/fsetxattr.texi: Likewise.
49962         * doc/glibc-functions/getxattr.texi: Likewise.
49963         * doc/glibc-functions/lgetxattr.texi: Likewise.
49964         * doc/glibc-functions/listxattr.texi: Likewise.
49965         * doc/glibc-functions/llistxattr.texi: Likewise.
49966         * doc/glibc-functions/lremovexattr.texi: Likewise.
49967         * doc/glibc-functions/lsetxattr.texi: Likewise.
49968         * doc/glibc-functions/removexattr.texi: Likewise.
49969         * doc/glibc-functions/setxattr.texi: Likewise.
49970         * doc/posix-functions/open_memstream.texi: Likewise.
49971
49972 2008-12-15  Eric Blake  <ebb9@byu.net>
49973
49974         Update doc for cygwin 1.7.
49975         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49976         functions.
49977         * doc/posix-functions/fchmodat.texi: Likewise.
49978         * doc/posix-functions/fchownat.texi: Likewise.
49979         * doc/posix-functions/fdopendir.texi: Likewise.
49980         * doc/posix-functions/fmemopen.texi: Likewise.
49981         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49982         * doc/posix-functions/fstatat.texi: Likewise.
49983         * doc/posix-functions/futimens.texi: Likewise.
49984         * doc/posix-functions/gai_strerror.texi: Likewise.
49985         * doc/posix-functions/getaddrinfo.texi: Likewise.
49986         * doc/posix-functions/getnameinfo.texi: Likewise.
49987         * doc/posix-functions/if_freenameindex.texi: Likewise.
49988         * doc/posix-functions/if_indextoname.texi: Likewise.
49989         * doc/posix-functions/if_nameindex.texi: Likewise.
49990         * doc/posix-functions/if_nametoindex.texi: Likewise.
49991         * doc/posix-functions/insque.texi: Likewise.
49992         * doc/posix-functions/linkat.texi: Likewise.
49993         * doc/posix-functions/llrint.texi: Likewise.
49994         * doc/posix-functions/llrintf.texi: Likewise.
49995         * doc/posix-functions/llrintl.texi: Likewise.
49996         * doc/posix-functions/lockf.texi: Likewise.
49997         * doc/posix-functions/lrintl.texi: Likewise.
49998         * doc/posix-functions/mkdirat.texi: Likewise.
49999         * doc/posix-functions/mkfifoat.texi: Likewise.
50000         * doc/posix-functions/mknodat.texi: Likewise.
50001         * doc/posix-functions/mq_close.texi: Likewise.
50002         * doc/posix-functions/mq_getattr.texi: Likewise.
50003         * doc/posix-functions/mq_notify.texi: Likewise.
50004         * doc/posix-functions/mq_open.texi: Likewise.
50005         * doc/posix-functions/mq_receive.texi: Likewise.
50006         * doc/posix-functions/mq_send.texi: Likewise.
50007         * doc/posix-functions/mq_setattr.texi: Likewise.
50008         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50009         * doc/posix-functions/mq_timedsend.texi: Likewise.
50010         * doc/posix-functions/mq_unlink.texi: Likewise.
50011         * doc/posix-functions/open_memstream.texi: Likewise.
50012         * doc/posix-functions/openat.texi: Likewise.
50013         * doc/posix-functions/posix_fadvise.texi: Likewise.
50014         * doc/posix-functions/posix_fallocate.texi: Likewise.
50015         * doc/posix-functions/posix_madvise.texi: Likewise.
50016         * doc/posix-functions/posix_memalign.texi: Likewise.
50017         * doc/posix-functions/posix_openpt.texi: Likewise.
50018         * doc/posix-functions/readlinkat.texi: Likewise.
50019         * doc/posix-functions/remque.texi: Likewise.
50020         * doc/posix-functions/renameat.texi: Likewise.
50021         * doc/posix-functions/rintl.texi: Likewise.
50022         * doc/posix-functions/sem_unlink.texi: Likewise.
50023         * doc/posix-functions/shm_open.texi: Likewise.
50024         * doc/posix-functions/shm_unlink.texi: Likewise.
50025         * doc/posix-functions/signgam.texi: Likewise.
50026         * doc/posix-functions/sigset.texi: Likewise.
50027         * doc/posix-functions/stpcpy.texi: Likewise.
50028         * doc/posix-functions/stpncpy.texi: Likewise.
50029         * doc/posix-functions/strerror.texi: Likewise.
50030         * doc/posix-functions/strtod.texi: Likewise.
50031         * doc/posix-functions/symlinkat.texi: Likewise.
50032         * doc/posix-functions/unlinkat.texi: Likewise.
50033         * doc/posix-functions/utimensat.texi: Likewise.
50034         * doc/glibc-functions/bindresvport.texi: Likewise.
50035         * doc/glibc-functions/dn_expand.texi: Likewise.
50036         * doc/glibc-functions/exp10.texi: Likewise.
50037         * doc/glibc-functions/exp10f.texi: Likewise.
50038         * doc/glibc-functions/fgetxattr.texi: Likewise.
50039         * doc/glibc-functions/flistxattr.texi: Likewise.
50040         * doc/glibc-functions/fopencookie.texi: Likewise.
50041         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50042         * doc/glibc-functions/fremovexattr.texi: Likewise.
50043         * doc/glibc-functions/fsetxattr.texi: Likewise.
50044         * doc/glibc-functions/getifaddrs.texi: Likewise.
50045         * doc/glibc-functions/getxattr.texi: Likewise.
50046         * doc/glibc-functions/lgetxattr.texi: Likewise.
50047         * doc/glibc-functions/listxattr.texi: Likewise.
50048         * doc/glibc-functions/llistxattr.texi: Likewise.
50049         * doc/glibc-functions/lremovexattr.texi: Likewise.
50050         * doc/glibc-functions/lsetxattr.texi: Likewise.
50051         * doc/glibc-functions/pow10.texi: Likewise.
50052         * doc/glibc-functions/pow10f.texi: Likewise.
50053         * doc/glibc-functions/rcmd_af.texi: Likewise.
50054         * doc/glibc-functions/removexattr.texi: Likewise.
50055         * doc/glibc-functions/res_init.texi: Likewise.
50056         * doc/glibc-functions/res_mkquery.texi: Likewise.
50057         * doc/glibc-functions/res_query.texi: Likewise.
50058         * doc/glibc-functions/res_querydomain.texi: Likewise.
50059         * doc/glibc-functions/res_send.texi: Likewise.
50060         * doc/glibc-functions/rresvport_af.texi: Likewise.
50061         * doc/glibc-functions/setxattr.texi: Likewise.
50062         * doc/glibc-functions/strcasestr.texi: Likewise.
50063
50064 2008-12-15  Bruno Haible  <bruno@clisp.org>
50065
50066         Fix compilation error on OSF/1 4.0.
50067         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50068         <sys/time.h>, simply delegate to the system header.
50069         Reported by Daniel Richard G. <oss@teragram.com>.
50070
50071 2008-12-15  Bruno Haible  <bruno@clisp.org>
50072
50073         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50074         * doc/posix-functions/fchmodat.texi: Likewise.
50075         * doc/posix-functions/fchownat.texi: Likewise.
50076         * doc/posix-functions/fdopendir.texi: Likewise.
50077         * doc/posix-functions/fstatat.texi: Likewise.
50078         * doc/posix-functions/mkdirat.texi: Likewise.
50079         * doc/posix-functions/unlinkat.texi: Likewise.
50080
50081 2008-12-14  Bruno Haible  <bruno@clisp.org>
50082
50083         Update doc for POSIX:2008.
50084         * doc/posix-functions/faccessat.texi: New file.
50085         * doc/posix-functions/fchmodat.texi: New file.
50086         * doc/posix-functions/fchownat.texi: New file.
50087         * doc/posix-functions/fdopendir.texi: New file.
50088         * doc/posix-functions/fstatat.texi: New file.
50089         * doc/posix-functions/futimens.texi: New file.
50090         * doc/posix-functions/linkat.texi: New file.
50091         * doc/posix-functions/mkdirat.texi: New file.
50092         * doc/posix-functions/mkfifoat.texi: New file.
50093         * doc/posix-functions/mknodat.texi: New file.
50094         * doc/posix-functions/open_wmemstream.texi: New file.
50095         * doc/posix-functions/openat.texi: New file.
50096         * doc/posix-functions/psiginfo.texi: New file.
50097         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50098         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50099         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50100         * doc/posix-functions/readlinkat.texi: New file.
50101         * doc/posix-functions/renameat.texi: New file.
50102         * doc/posix-functions/strerror_l.texi: New file.
50103         * doc/posix-functions/symlinkat.texi: New file.
50104         * doc/posix-functions/unlinkat.texi: New file.
50105         * doc/posix-functions/utimensat.texi: New file.
50106         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50107
50108 2008-12-14  Bruno Haible  <bruno@clisp.org>
50109
50110         Update doc for POSIX:2008.
50111         * doc/posix-functions/alphasort.texi: Renamed from
50112         doc/glibc-functions/alphasort.texi.
50113         * doc/posix-functions/dirfd.texi: Renamed from
50114         doc/glibc-functions/dirfd.texi.
50115         * doc/posix-functions/dprintf.texi: Renamed from
50116         doc/glibc-functions/dprintf.texi.
50117         * doc/posix-functions/duplocale.texi: Renamed from
50118         doc/glibc-functions/duplocale.texi.
50119         * doc/posix-functions/fexecve.texi: Renamed from
50120         doc/glibc-functions/fexecve.texi.
50121         * doc/posix-functions/fmemopen.texi: Renamed from
50122         doc/glibc-functions/fmemopen.texi.
50123         * doc/posix-functions/freelocale.texi: Renamed from
50124         doc/glibc-functions/freelocale.texi.
50125         * doc/posix-functions/getdate_err.texi: Renamed from
50126         doc/glibc-functions/getdate_err.texi.
50127         * doc/posix-functions/isalnum_l.texi: Renamed from
50128         doc/glibc-functions/isalnum_l.texi.
50129         * doc/posix-functions/isalpha_l.texi: Renamed from
50130         doc/glibc-functions/isalpha_l.texi.
50131         * doc/posix-functions/isblank_l.texi: Renamed from
50132         doc/glibc-functions/isblank_l.texi.
50133         * doc/posix-functions/iscntrl_l.texi: Renamed from
50134         doc/glibc-functions/iscntrl_l.texi.
50135         * doc/posix-functions/isdigit_l.texi: Renamed from
50136         doc/glibc-functions/isdigit_l.texi.
50137         * doc/posix-functions/isgraph_l.texi: Renamed from
50138         doc/glibc-functions/isgraph_l.texi.
50139         * doc/posix-functions/islower_l.texi: Renamed from
50140         doc/glibc-functions/islower_l.texi.
50141         * doc/posix-functions/isprint_l.texi: Renamed from
50142         doc/glibc-functions/isprint_l.texi.
50143         * doc/posix-functions/ispunct_l.texi: Renamed from
50144         doc/glibc-functions/ispunct_l.texi.
50145         * doc/posix-functions/isspace_l.texi: Renamed from
50146         doc/glibc-functions/isspace_l.texi.
50147         * doc/posix-functions/isupper_l.texi: Renamed from
50148         doc/glibc-functions/isupper_l.texi.
50149         * doc/posix-functions/iswalnum_l.texi: Renamed from
50150         doc/glibc-functions/iswalnum_l.texi.
50151         * doc/posix-functions/iswalpha_l.texi: Renamed from
50152         doc/glibc-functions/iswalpha_l.texi.
50153         * doc/posix-functions/iswblank_l.texi: Renamed from
50154         doc/glibc-functions/iswblank_l.texi.
50155         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50156         doc/glibc-functions/iswcntrl_l.texi.
50157         * doc/posix-functions/iswctype_l.texi: Renamed from
50158         doc/glibc-functions/iswctype_l.texi.
50159         * doc/posix-functions/iswdigit_l.texi: Renamed from
50160         doc/glibc-functions/iswdigit_l.texi.
50161         * doc/posix-functions/iswgraph_l.texi: Renamed from
50162         doc/glibc-functions/iswgraph_l.texi.
50163         * doc/posix-functions/iswlower_l.texi: Renamed from
50164         doc/glibc-functions/iswlower_l.texi.
50165         * doc/posix-functions/iswprint_l.texi: Renamed from
50166         doc/glibc-functions/iswprint_l.texi.
50167         * doc/posix-functions/iswpunct_l.texi: Renamed from
50168         doc/glibc-functions/iswpunct_l.texi.
50169         * doc/posix-functions/iswspace_l.texi: Renamed from
50170         doc/glibc-functions/iswspace_l.texi.
50171         * doc/posix-functions/iswupper_l.texi: Renamed from
50172         doc/glibc-functions/iswupper_l.texi.
50173         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50174         doc/glibc-functions/iswxdigit_l.texi.
50175         * doc/posix-functions/isxdigit_l.texi: Renamed from
50176         doc/glibc-functions/isxdigit_l.texi.
50177         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50178         doc/glibc-functions/mbsnrtowcs.texi.
50179         * doc/posix-functions/mkdtemp.texi: Renamed from
50180         doc/glibc-functions/mkdtemp.texi.
50181         * doc/posix-functions/newlocale.texi: Renamed from
50182         doc/glibc-functions/newlocale.texi.
50183         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50184         doc/glibc-functions/nl_langinfo_l.texi.
50185         * doc/posix-functions/open_memstream.texi: Renamed from
50186         doc/glibc-functions/open_memstream.texi.
50187         * doc/posix-functions/opterr.texi: Renamed from
50188         doc/glibc-functions/opterr.texi.
50189         * doc/posix-functions/optind.texi: Renamed from
50190         doc/glibc-functions/optind.texi.
50191         * doc/posix-functions/optopt.texi: Renamed from
50192         doc/glibc-functions/optopt.texi.
50193         * doc/posix-functions/psignal.texi: Renamed from
50194         doc/glibc-functions/psignal.texi.
50195         * doc/posix-functions/scandir.texi: Renamed from
50196         doc/glibc-functions/scandir.texi.
50197         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50198         doc/glibc-functions/sched_get_priority_min.texi.
50199         * doc/posix-functions/signgam.texi: Renamed from
50200         doc/glibc-functions/signgam.texi.
50201         * doc/posix-functions/stpcpy.texi: Renamed from
50202         doc/glibc-functions/stpcpy.texi.
50203         * doc/posix-functions/stpncpy.texi: Renamed from
50204         doc/glibc-functions/stpncpy.texi.
50205         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50206         doc/glibc-functions/strcasecmp_l.texi.
50207         * doc/posix-functions/strcoll_l.texi: Renamed from
50208         doc/glibc-functions/strcoll_l.texi.
50209         * doc/posix-functions/strfmon_l.texi: Renamed from
50210         doc/glibc-functions/strfmon_l.texi.
50211         * doc/posix-functions/strftime_l.texi: Renamed from
50212         doc/glibc-functions/strftime_l.texi.
50213         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50214         doc/glibc-functions/strncasecmp_l.texi.
50215         * doc/posix-functions/strndup.texi: Renamed from
50216         doc/glibc-functions/strndup.texi.
50217         * doc/posix-functions/strnlen.texi: Renamed from
50218         doc/glibc-functions/strnlen.texi.
50219         * doc/posix-functions/strsignal.texi: Renamed from
50220         doc/glibc-functions/strsignal.texi.
50221         * doc/posix-functions/strxfrm_l.texi: Renamed from
50222         doc/glibc-functions/strxfrm_l.texi.
50223         * doc/posix-functions/timer_gettime.texi: Renamed from
50224         doc/glibc-functions/timer_gettime.texi.
50225         * doc/posix-functions/tolower_l.texi: Renamed from
50226         doc/glibc-functions/tolower_l.texi.
50227         * doc/posix-functions/toupper_l.texi: Renamed from
50228         doc/glibc-functions/toupper_l.texi.
50229         * doc/posix-functions/towctrans_l.texi: Renamed from
50230         doc/glibc-functions/towctrans_l.texi.
50231         * doc/posix-functions/towlower_l.texi: Renamed from
50232         doc/glibc-functions/towlower_l.texi.
50233         * doc/posix-functions/towupper_l.texi: Renamed from
50234         doc/glibc-functions/towupper_l.texi.
50235         * doc/posix-functions/uselocale.texi: Renamed from
50236         doc/glibc-functions/uselocale.texi.
50237         * doc/posix-functions/vdprintf.texi: Renamed from
50238         doc/glibc-functions/vdprintf.texi.
50239         * doc/posix-functions/wcpcpy.texi:
50240         Renamed from doc/glibc-functions/wcpcpy.texi.
50241         * doc/posix-functions/wcpncpy.texi: Renamed from
50242         doc/glibc-functions/wcpncpy.texi.
50243         * doc/posix-functions/wcscasecmp.texi: Renamed from
50244         doc/glibc-functions/wcscasecmp.texi.
50245         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50246         doc/glibc-functions/wcscasecmp_l.texi.
50247         * doc/posix-functions/wcscoll_l.texi: Renamed from
50248         doc/glibc-functions/wcscoll_l.texi.
50249         * doc/posix-functions/wcsdup.texi: Renamed from
50250         doc/glibc-functions/wcsdup.texi.
50251         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50252         doc/glibc-functions/wcsncasecmp.texi.
50253         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50254         doc/glibc-functions/wcsncasecmp_l.texi.
50255         * doc/posix-functions/wcsnlen.texi: Renamed from
50256         doc/glibc-functions/wcsnlen.texi.
50257         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50258         doc/glibc-functions/wcsnrtombs.texi.
50259         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50260         doc/glibc-functions/wcsxfrm_l.texi.
50261         * doc/posix-functions/wctrans_l.texi: Renamed from
50262         doc/glibc-functions/wctrans_l.texi.
50263         * doc/posix-functions/wctype_l.texi: Renamed from
50264         doc/glibc-functions/wctype_l.texi.
50265         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50266         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50267         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50268         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50269         these subsections.
50270         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50271         Remove sections.
50272
50273 2008-12-14  Bruno Haible  <bruno@clisp.org>
50274
50275         Update doc for POSIX:2008.
50276         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50277
50278 2008-12-14  Bruno Haible  <bruno@clisp.org>
50279
50280         Update doc for POSIX:2008.
50281         * doc/pastposix-functions/bcmp.texi: Renamed from
50282         doc/posix-functions/bcmp.texi.
50283         * doc/pastposix-functions/bcopy.texi: Renamed from
50284         doc/posix-functions/bcopy.texi.
50285         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50286         doc/posix-functions/bsd_signal.texi.
50287         * doc/pastposix-functions/bzero.texi: Renamed from
50288         doc/posix-functions/bzero.texi.
50289         * doc/pastposix-functions/ecvt.texi: Renamed from
50290         doc/posix-functions/ecvt.texi.
50291         * doc/pastposix-functions/fcvt.texi: Renamed from
50292         doc/posix-functions/fcvt.texi.
50293         * doc/pastposix-functions/ftime.texi: Renamed from
50294         doc/posix-functions/ftime.texi.
50295         * doc/pastposix-functions/gcvt.texi: Renamed from
50296         doc/posix-functions/gcvt.texi.
50297         * doc/pastposix-functions/getcontext.texi: Renamed from
50298         doc/posix-functions/getcontext.texi.
50299         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50300         doc/posix-functions/gethostbyaddr.texi.
50301         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50302         doc/posix-functions/gethostbyname.texi.
50303         * doc/pastposix-functions/getwd.texi: Renamed from
50304         doc/posix-functions/getwd.texi.
50305         * doc/pastposix-functions/h_errno.texi: Renamed from
50306         doc/posix-functions/h_errno.texi.
50307         * doc/pastposix-functions/index.texi: Renamed from
50308         doc/posix-functions/index.texi.
50309         * doc/pastposix-functions/makecontext.texi: Renamed from
50310         doc/posix-functions/makecontext.texi.
50311         * doc/pastposix-functions/mktemp.texi: Renamed from
50312         doc/posix-functions/mktemp.texi.
50313         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50314         doc/posix-functions/pthread_attr_getstackaddr.texi.
50315         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50316         doc/posix-functions/pthread_attr_setstackaddr.texi.
50317         * doc/pastposix-functions/rindex.texi: Renamed from
50318         doc/posix-functions/rindex.texi.
50319         * doc/pastposix-functions/scalb.texi: Renamed from
50320         doc/posix-functions/scalb.texi.
50321         * doc/pastposix-functions/setcontext.texi: Renamed from
50322         doc/posix-functions/setcontext.texi.
50323         * doc/pastposix-functions/swapcontext.texi: Renamed from
50324         doc/posix-functions/swapcontext.texi.
50325         * doc/pastposix-functions/ualarm.texi: Renamed from
50326         doc/posix-functions/ualarm.texi.
50327         * doc/pastposix-functions/usleep.texi: Renamed from
50328         doc/posix-functions/usleep.texi.
50329         * doc/pastposix-functions/vfork.texi: Renamed from
50330         doc/posix-functions/vfork.texi.
50331         * doc/pastposix-functions/wcswcs.texi: Renamed from
50332         doc/posix-functions/wcswcs.texi.
50333         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50334         (Function Substitutes): Update.
50335
50336 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50337
50338         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50339         m4/strerror.m4.
50340
50341 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50342             Bruno Haible  <bruno@clisp.org>
50343
50344         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50345
50346 2008-12-13  Bruno Haible  <bruno@clisp.org>
50347
50348         * modules/strtoull (Depends-on): Remove unistd.
50349
50350 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50351
50352         * modules/strtoull (Depends-on): Add stdlib.
50353
50354 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50355
50356         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50357
50358 2008-12-10  Jim Meyering  <meyering@redhat.com>
50359
50360         gl_ASSERT: don't say assertions are disabled when they're not
50361         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50362         "checking whether to enable assertions... no", when they are in
50363         fact enabled.  This is solely a bug in the output of configure.
50364         In spite of saying "no", NDEBUG was not defined in that case.
50365         Also, as noted by Eric Blake, leave assertions enabled upon
50366         --enable-assert=INVALID.
50367
50368 2008-12-10  Bruno Haible  <bruno@clisp.org>
50369
50370         Change MODULES.html to refer to POSIX:2008 where possible.
50371         * MODULES.html.sh (POSIX2008_URL): New variable.
50372         (posix_headers): Remove sys/timeb, ucontext.
50373         (posix2001_headers): New variable.
50374         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50375         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50376         index, makecontext, mktemp, pthread_attr_getstackaddr,
50377         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50378         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50379         (posix2001_functions): New variable.
50380         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50381         otherwise.
50382
50383 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50384
50385         add missing include to parse-duration.c
50386         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50387         * modules/parse-duration (Depends-on): Add xalloc.
50388
50389         fix sed script reading maint.mk
50390         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50391         (syntax-check-rules): Use it.
50392
50393 2008-12-09  Bruno Haible  <bruno@clisp.org>
50394
50395         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50396         MacOS X 10.4/PowerPC.
50397         Reported by Simon Josefsson.
50398
50399 2008-12-08  Jim Meyering  <meyering@redhat.com>
50400
50401         work around mingw's lack of some S_IF definitions
50402         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50403         Reported by Simon Josefsson.
50404
50405 2008-12-08  Bruno Haible  <bruno@clisp.org>
50406
50407         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50408         applied to variables. Needed on MacOS X 10.4/PowerPC.
50409         Reported by Simon Josefsson.
50410
50411 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50412         and Eric Blake  <ebb9@byu.net>
50413
50414         assert: honor --enable-assert
50415         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50416         order to honor --enable-assert, rather than treating it as a
50417         synonym for --disable-assert.
50418
50419 2008-12-08  Jim Meyering  <meyering@redhat.com>
50420
50421         * lib/posixtm.c: Remove now-useless declaration of mktime.
50422
50423         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50424
50425 2008-12-07  Bruno Haible  <bruno@clisp.org>
50426
50427         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50428         test_once): Mark functions as static.
50429         * tests/test-tls.c (test_tls): Likewise.
50430
50431 2008-12-07  Bruno Haible  <bruno@clisp.org>
50432
50433         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50434         iconv_register_autodetect.
50435
50436 2008-12-07  Jim Meyering  <meyering@redhat.com>
50437
50438         posixtm.c: avoid a warning
50439         * lib/posixtm.c (posixtime): Don't initialize tm0.
50440         It's no longer needed to placate gcc4's -Wuninitialized,
50441         and the attempt to placate would elicit a new warning.
50442
50443         unicodeio.c: mark unused parameters
50444         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50445         (fallback_failure_callback): Likewise.
50446
50447 2008-12-07  Bruno Haible  <bruno@clisp.org>
50448
50449         * gnulib-tool (func_create_testdir): When building the tests
50450         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50451         Reported by Simon Josefsson.
50452
50453 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50454
50455         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50456
50457 2008-12-06  Bruno Haible  <bruno@clisp.org>
50458
50459         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50460         Suggested by Eric Blake.
50461
50462 2008-12-06  Bruno Haible  <bruno@clisp.org>
50463
50464         Fix a c-stack test failure on MacOS X.
50465         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50466         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50467         handler for SIGBUS as well.
50468         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50469         install a signal handler for SIGBUS as well.
50470         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50471
50472 2008-12-06  Bruno Haible  <bruno@clisp.org>
50473
50474         Advocacy documentation.
50475         * doc/gnulib-intro.texi (Benefits): New section.
50476         * doc/gnulib.texi: Update.
50477
50478 2008-12-06  Bruno Haible  <bruno@clisp.org>
50479
50480         Document the 'manywarnings' module.
50481         * doc/manywarnings.texi: New file.
50482         * doc/gnulib.texi: Include it.
50483
50484 2008-12-05  Eric Blake  <ebb9@byu.net>
50485
50486         tests: silence some gcc warnings
50487         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50488         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50489         type mismatches.
50490
50491 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50492             Bruno Haible  <bruno@clisp.org>
50493
50494         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50495
50496 2008-11-29  Jim Meyering  <meyering@redhat.com>
50497
50498         unicodeio.c: mark unused parameters
50499         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50500         (fallback_failure_callback): Likewise.
50501
50502         fts: fix a thinko
50503         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50504         (set_stat_type): Return S_IF*-valued "type" directly.
50505         Prompted by James Youngman's spotting a related bug.
50506         Confirmed by further testing through find.
50507
50508         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50509         * lib/fts.c (D_TYPE): Define.
50510         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50511         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50512         (s_ifmt_shift_bits): New function.
50513         (set_stat_type): New function.
50514         (fts_build): When not calling fts_stat, call set_stat_type
50515         to propagate dirent.d_type info to fts_read caller.
50516         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50517         fts_statp->st_mode type information may be valid.
50518
50519 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50520
50521         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50522         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50523         <sds@gnu.org>.
50524
50525 2008-11-20  Bruno Haible  <bruno@clisp.org>
50526
50527         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50528         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50529         INCLUDE_NEXT.
50530         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50531         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50532         * modules/math (Makefile.am): Substitute
50533         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50534         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50535
50536 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50537             Bruno Haible  <bruno@clisp.org>
50538
50539         * lib/stdint.in.h: Define all type macros so that their expansion is
50540         a single typedef'ed token. Fixes a compilation failure in Boost which
50541         does "using ::int8_t;".
50542
50543 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50544
50545         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50546         gl_MANYWARN_ALL_GCC.
50547         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50548         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50549         * modules/manywarnings: New file.
50550         * MODULES.html.sh: Mention manywarnings module.
50551
50552 2008-11-18  Bruno Haible  <bruno@clisp.org>
50553
50554         * doc/gnulib-tool.texi (Unit tests): New section.
50555
50556 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50557
50558         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50559         paths like 'lib/po/foo.po'.
50560
50561 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50562
50563         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50564         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50565
50566 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50567
50568         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50569         parameter works.
50570
50571 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50572
50573         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50574
50575 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50576
50577         * modules/parse-duration-tests: New file.
50578         * tests/test-parse-duration.sh: New file.
50579         * tests/test-parse-duration.c: New file.
50580
50581         New module 'parse-duration'.
50582         * lib/parse-duration.h: New file.
50583         * lib/parse-duration.c: New file.
50584         * modules/parse-duration: New file.
50585
50586 2008-11-17  Bruno Haible  <bruno@clisp.org>
50587
50588         * tests/test-select-out.sh: Comment out the first pipe test.
50589         Reported by Simon Josefsson.
50590
50591 2008-11-17  Bruno Haible  <bruno@clisp.org>
50592
50593         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50594         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50595         gl_HOSTENT.
50596
50597 2008-11-17  Bruno Haible  <bruno@clisp.org>
50598
50599         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50600         -lnetwork and -lnet. Needed for Haiku and BeOS.
50601
50602 2008-11-16  Bruno Haible  <bruno@clisp.org>
50603
50604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50605
50606 2008-11-16  Bruno Haible  <bruno@clisp.org>
50607
50608         Avoid test failure on Haiku.
50609         * tests/test-fsync.c: Include <errno.h>.
50610         (main): Don't require that fsync (0) fails.
50611
50612 2008-11-15  Bruno Haible  <bruno@clisp.org>
50613
50614         New module 'hostent'.
50615         * modules/hostent: New file.
50616         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50617
50618 2008-11-15  Bruno Haible  <bruno@clisp.org>
50619
50620         New module 'servent'.
50621         * modules/servent: New file.
50622         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50623
50624 2008-11-15  Bruno Haible  <bruno@clisp.org>
50625
50626         Avoid generating same test program with two different rules.
50627         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50628         test-frexp to test-frexp-nolibm.
50629         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50630         test-frexpl to test-frexpl-nolibm.
50631
50632 2008-11-15  Bruno Haible  <bruno@clisp.org>
50633
50634         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50635         $(FREXPL_LIBM).
50636
50637 2008-11-15  Bruno Haible  <bruno@clisp.org>
50638
50639         * lib/netdb.in.h: Activate the definitions also when the system's
50640         <netdb.h> has 'struct addrinfo'.
50641         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50642         EAI_OVERFLOW or AI_NUMERICSERV.
50643         * doc/posix-headers/netdb.texi: Document the problem.
50644
50645 2008-11-15  Bruno Haible  <bruno@clisp.org>
50646
50647         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50648
50649         Make the 'sched' module work on platforms where <sched.h> exists but
50650         is incomplete (such as Haiku).
50651         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50652         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50653         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50654         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50655         HAVE_STRUCT_SCHED_PARAM.
50656         * modules/sched (Depends-on): Add include_next.
50657         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50658         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50659         * doc/posix-headers/sched.texi: Document the issue.
50660
50661 2008-11-13  Jim Meyering  <meyering@redhat.com>
50662
50663         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50664         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50665         test would fail due to the difference in the Report bugs to ...
50666         line.  The expected address is empty, "<>", while the actual
50667         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50668
50669 2008-11-12  Bruno Haible  <bruno@clisp.org>
50670
50671         lstat: don't compile lstat.c on systems lacking lstat
50672         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50673         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50674         Reported by Daniel P. Berrange via Jim Meyering.
50675
50676 2008-11-12  Jim Meyering  <meyering@redhat.com>
50677
50678         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50679
50680 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50681
50682         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50683         instead.
50684
50685 2008-11-12  Bruno Haible  <bruno@clisp.org>
50686
50687         * lib/unicodeio.c: Include unistr.h.
50688         (utf8_wctomb): Remove function.
50689         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50690
50691 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50692
50693         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50694         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50695         <bruno@clisp.org>.
50696         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50697
50698 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50699
50700         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50701         * doc/gnulib.texi: Add section for warnings.
50702
50703 2008-11-11  Bruno Haible  <bruno@clisp.org>
50704
50705         * lib/sockets.h: Add a comment.
50706
50707 2008-11-11  Karl Berry  <karl@gnu.org>
50708
50709         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50710
50711 2008-11-11  Eric Blake  <ebb9@byu.net>
50712
50713         fdl.texi: avoid git symlinks
50714         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50715
50716 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50717
50718         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50719
50720 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50721
50722         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50723         (gl_WARN_ADD): Substitute $2 if literal.
50724
50725 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50726
50727         * m4/warning.m4: Remove.
50728
50729 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50730
50731         * m4/warnings.m4: Almost complete rewrite. :-)
50732
50733 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50734
50735         * modules/warnings: New module.
50736         * m4/warnings.m4: New file.
50737         * MODULES.html.sh: Mention warnings module.
50738         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50739         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50740
50741 2008-11-10  Eric Blake  <ebb9@byu.net>
50742
50743         fdl.texi: make a symlink to the latest version
50744         * doc/standards.texi: Revert today's earlier change.
50745         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50746         * doc/fdl.texi: ...and replace this with a symlink to the newer
50747         fdl-1.3.texi.
50748
50749 2008-11-10  Bruno Haible  <bruno@clisp.org>
50750
50751         * tests/test-select-fd.c (main): Accept the result file name as fourth
50752         argument.
50753         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50754         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50755
50756 2008-11-10  Bruno Haible  <bruno@clisp.org>
50757
50758         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50759         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50760         as autoconf-substituted macros.
50761         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50762         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50763         gl_NETDB_H_DEFAULTS. Set these variables.
50764         * modules/netdb (Makefile.am): Substitute these variables.
50765
50766 2008-11-10  Eric Blake  <ebb9@byu.net>
50767
50768         standards.texi: include correct file for FDL 1.3
50769         * doc/standards.texi (GNU Free Documentation License): Change
50770         include file to pull in FDL 1.3, not 1.2.
50771
50772         fdl.texi: revert accidental change to license
50773         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50774
50775 2008-11-10  Bruno Haible  <bruno@clisp.org>
50776
50777         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50778         cross-compiling guesses also when the native compile gives no result.
50779
50780 2008-11-10  Bruno Haible  <bruno@clisp.org>
50781
50782         * lib/spawni.c (__spawni): Force variable into the stack.
50783
50784 2008-11-10  Bruno Haible  <bruno@clisp.org>
50785
50786         Add support for Haiku.
50787         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50788         glibc and BeOS, but also on Haiku.
50789         * lib/fpurge.c (fpurge): Likewise.
50790         * lib/freadable.c (freadable): Likewise.
50791         * lib/freadahead.c (freadahead): Likewise.
50792         * lib/freading.c (freading): Likewise.
50793         * lib/freadptr.c (freadptr): Likewise.
50794         * lib/freadseek.c (freadptrinc): Likewise.
50795         * lib/fseeko.c (rpl_fseeko): Likewise.
50796         * lib/fseterr.c (fseterr): Likewise.
50797         * lib/fwritable.c (fwritable): Likewise.
50798         * lib/fwriting.c (fwriting): Likewise.
50799         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50800
50801 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50802
50803         * lib/config.charset: Treat Haiku like BeOS.
50804
50805 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50806
50807         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50808         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50809
50810 2008-11-08  Bruno Haible  <bruno@clisp.org>
50811
50812         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50813         AC_CACHE_CHECK.
50814
50815 2008-11-08  Bruno Haible  <bruno@clisp.org>
50816
50817         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50818
50819 2008-11-08  Bruno Haible  <bruno@clisp.org>
50820
50821         * tests/test-select-fd.c: New file.
50822         * tests/test-select-in.sh: New file.
50823         * tests/test-select-out.sh: New file.
50824         * tests/test-select-stdin.c: New file.
50825         * modules/select-tests (Files): Add the new files.
50826         (Depends-on): Add gettimeofday.
50827         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50828         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50829         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50830
50831 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50832             Bruno Haible  <bruno@clisp.org>
50833
50834         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50835
50836 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50837
50838         * build-aux/pmccabe2html: Added support for C++ source files.
50839
50840 2008-11-05  Ben Pfaff  <blp@gnu.org>
50841
50842         Fix lib/close.c build on Windows.
50843         * modules/close (Files): Add lib/w32sock.h.
50844
50845 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50846
50847         Accept Bison's NEWS format.
50848         * build-aux/announce-gen (print_news_deltas): Tweak
50849         $re_prefix.
50850
50851 2008-11-04  Bruno Haible  <bruno@clisp.org>
50852
50853         * modules/random_r (Maintainer): Add glibc.
50854
50855 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50856
50857         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50858         by karl@freefriends.org (Karl Berry).
50859         * doc/alloca.texi: Likewise.
50860         * doc/c-ctype.texi: Likewise.
50861         * doc/c-strcase.texi: Likewise.
50862         * doc/c-strcaseeq.texi: Likewise.
50863         * doc/c-strcasestr.texi: Likewise.
50864         * doc/c-strstr.texi: Likewise.
50865         * doc/c-strtod.texi: Likewise.
50866         * doc/c-strtold.texi: Likewise.
50867         * doc/ctime.texi: Likewise.
50868         * doc/error.texi: Likewise.
50869         * doc/fdl.texi: Likewise.
50870         * doc/gcd.texi: Likewise.
50871         * doc/getdate.texi: Likewise.
50872         * doc/gnulib-intro.texi: Likewise.
50873         * doc/gnulib-tool.texi: Likewise.
50874         * doc/gnulib.texi: Likewise.
50875         * doc/inet_ntoa.texi: Likewise.
50876         * doc/maintain.texi: Likewise.
50877         * doc/make-stds.texi: Likewise.
50878         * doc/quote.texi: Likewise.
50879         * doc/regexprops-generic.texi: Likewise.
50880         * doc/standards.texi: Likewise.
50881         * doc/verify.texi: Likewise.
50882         * doc/visibility.texi: Likewise.
50883         * doc/gnulib.texi (GNU Free Documentation License): Include
50884         fdl-1.3.texi instead of fdl.texi.
50885
50886 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50887
50888         * doc/fdl-1.3.texi: New file, from
50889         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50890         * modules/fdl-1.3: Add.
50891         * MODULES.html.sh: Add fdl-1.3.
50892
50893 2008-11-03  Bruno Haible  <bruno@clisp.org>
50894
50895         Make determination of absolute name of header file work with AIX xlc.
50896         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50897         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50898         preprocessing.
50899         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50900         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50901
50902 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50903
50904         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50905         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50906         <ludo@gnu.org>.
50907
50908 2008-11-02  Bruno Haible  <bruno@clisp.org>
50909
50910         Mark 'strpbrk' obsolete.
50911         * modules/strpbrk (Status, Notice): New sections.
50912         * modules/strtok_r (Depends-on): Add strpbrk.
50913
50914 2008-11-02  Bruno Haible  <bruno@clisp.org>
50915
50916         Mark 'strdup' obsolete.
50917         * modules/strdup (Status, Notice): New sections.
50918         * modules/findprog (Depends-on): Add strdup.
50919         * modules/getaddrinfo (Depends-on): Likewise.
50920         * modules/localename (Depends-on): Likewise.
50921         * modules/relocatable-lib (Depends-on): Likewise.
50922         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50923         * modules/relocatable-prog (Depends-on): Likewise.
50924         * modules/trim (Depends-on): Likewise.
50925         * modules/unictype/gen-ctype (Depends-on): Likewise.
50926         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50927
50928 2008-11-02  Bruno Haible  <bruno@clisp.org>
50929
50930         Mark 'strcspn' obsolete.
50931         * modules/strcspn (Status, Notice): New sections.
50932
50933 2008-11-02  Bruno Haible  <bruno@clisp.org>
50934
50935         Mark 'rmdir' obsolete.
50936         * modules/rmdir (Status, Notice): New sections.
50937         * modules/clean-temp (Depends-on): Add rmdir.
50938         * modules/openat (Depends-on): Likewise.
50939
50940 2008-11-02  Bruno Haible  <bruno@clisp.org>
50941
50942         Mark 'raise' obsolete.
50943         * modules/raise (Status, Notice): New sections.
50944         (Include): Specify <signal.h>.
50945         * modules/stdio (Depends-on): Add raise.
50946         * modules/write (Depends-on): Likewise.
50947
50948 2008-11-02  Bruno Haible  <bruno@clisp.org>
50949
50950         Mark 'memset' obsolete.
50951         * modules/memset (Status, Notice): New sections.
50952
50953 2008-11-02  Bruno Haible  <bruno@clisp.org>
50954
50955         Mark 'memmove' obsolete.
50956         * modules/memmove (Status, Notice): New sections.
50957         * modules/argp (Depends-on): Add memmove.
50958         * modules/argz (Depends-on): Likewise.
50959         * modules/canonicalize (Depends-on): Likewise.
50960         * modules/canonicalize-lgpl (Depends-on): Likewise.
50961         * modules/fts (Depends-on): Likewise.
50962         * modules/getcwd (Depends-on): Likewise.
50963         * modules/human (Depends-on): Likewise.
50964         * modules/regex (Depends-on): Likewise.
50965         * modules/striconveh (Depends-on): Likewise.
50966         * modules/trim (Depends-on): Likewise.
50967         * modules/unistr/u8-move (Depends-on): Likewise.
50968         * modules/unistr/u16-move (Depends-on): Likewise.
50969         * modules/unistr/u32-move (Depends-on): Likewise.
50970
50971 2008-11-02  Bruno Haible  <bruno@clisp.org>
50972
50973         Mark 'memcpy' obsolete.
50974         * modules/memcpy (Status, Notice): New sections.
50975
50976 2008-11-02  Bruno Haible  <bruno@clisp.org>
50977
50978         Mark 'memcmp' obsolete.
50979         * modules/memcmp (Status, Notice): New sections.
50980         * modules/argmatch (Depends-on): Add memchr.
50981         * modules/backupfile (Depends-on): Likewise.
50982         * modules/c-strcasestr (Depends-on): Likewise.
50983         * modules/crypto/des (Depends-on): Likewise.
50984         * modules/csharpcomp (Depends-on): Likewise.
50985         * modules/fnmatch (Depends-on): Likewise.
50986         * modules/git-merge-changelog (Depends-on): Likewise.
50987         * modules/isnand (Depends-on): Likewise.
50988         * modules/isnand-nolibm (Depends-on): Likewise.
50989         * modules/isnanf (Depends-on): Likewise.
50990         * modules/isnanf-nolibm (Depends-on): Likewise.
50991         * modules/isnanl (Depends-on): Likewise.
50992         * modules/isnanl-nolibm (Depends-on): Likewise.
50993         * modules/mbchar (Depends-on): Likewise.
50994         * modules/memcoll (Depends-on): Likewise.
50995         * modules/quotearg (Depends-on): Likewise.
50996         * modules/regex (Depends-on): Likewise.
50997         * modules/relocatable-prog (Depends-on): Likewise.
50998         * modules/same (Depends-on): Likewise.
50999         * modules/signbit (Depends-on): Likewise.
51000         * modules/strcasestr-simple (Depends-on): Likewise.
51001         * modules/unictype/gen-ctype (Depends-on): Likewise.
51002         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51003         * modules/uniname/uniname (Depends-on): Likewise.
51004         * modules/unistr/u8-cmp (Depends-on): Likewise.
51005
51006 2008-11-02  Bruno Haible  <bruno@clisp.org>
51007
51008         Mark 'memchr' obsolete.
51009         * modules/memchr (Status, Notice): New sections.
51010         * modules/argp (Depends-on): Add memchr.
51011         * modules/base64 (Depends-on): Likewise.
51012         * modules/c-strcasestr (Depends-on): Likewise.
51013         * modules/chdir-long (Depends-on): Likewise.
51014         * modules/fnmatch (Depends-on): Likewise.
51015         * modules/getsubopt (Depends-on): Likewise.
51016         * modules/git-merge-changelog (Depends-on): Likewise.
51017         * modules/glob (Depends-on): Likewise.
51018         * modules/strcasestr-simple (Depends-on): Likewise.
51019         * modules/strnlen (Depends-on): Likewise.
51020
51021 2008-11-02  Bruno Haible  <bruno@clisp.org>
51022
51023         Mark 'atexit' obsolete.
51024         * modules/atexit (Status, Notice): New sections.
51025         * modules/chdir-long (Depends-on): Add atexit.
51026         * modules/wait-process (Depends-on): Likewise.
51027
51028 2008-11-02  Bruno Haible  <bruno@clisp.org>
51029
51030         * gnulib-tool: New option --with-obsolete.
51031         (func_usage): Document it.
51032         (func_modules_transitive_closure): Drop obsolete dependencies if
51033         incobsolete is not true.
51034         (func_import): Read and save the incobsolete variable to the cache.
51035
51036 2008-11-02  Bruno Haible  <bruno@clisp.org>
51037
51038         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51039         * gnulib-tool: New option --extract-status.
51040         (func_usage): Document it.
51041         (sed_extract_prog): Recognize it.
51042         (func_get_status): New function.
51043
51044 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51045
51046         * modules/sockets (License): Change from LGPL to LGPLv2+.
51047
51048 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51049
51050         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51051
51052 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51053
51054         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51055         Mention times and sys_times.
51056         * modules/sys_times, modules/sys_times-tests: New modules.
51057         * modules/times, modules/times-tests: Likewise
51058         * m4/sys_times_h.m4: New file.
51059         * lib/sys_times.in.h: Likewise
51060         * lib/times.c: Likewise.
51061         * tests/test-sys_times.c: Likewise.
51062         * tests/test-times.c: Likewise.
51063         * doc/posix-headers/sys_times.texi: Update.
51064         * doc/posix-functions/times.texi: Update.
51065
51066 2008-10-28  Jim Meyering  <meyering@redhat.com>
51067
51068         * modules/tempname (Depends-on): Add lstat.
51069
51070         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51071
51072 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51073
51074         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51075         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51076         using idiom used elsewhere in gnulib.
51077
51078 2008-10-27  Jim Meyering  <meyering@redhat.com>
51079
51080         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51081
51082 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51083
51084         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51085         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51086         programs.
51087         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51088
51089 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51090
51091         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51092
51093 2008-10-27  Bruno Haible  <bruno@clisp.org>
51094
51095         * tests/test-lstat.c: Include <stdio.h>.
51096
51097 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51098
51099         * modules/lstat-tests: New module.
51100         * tests/test-lstat.c: New file.
51101
51102 2008-10-26  Jim Meyering  <meyering@redhat.com>
51103
51104         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51105
51106 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51107             Bruno Haible  <bruno@clisp.org>
51108
51109         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51110         * modules/configmake (Include): Add a note that the include must come
51111         after all system headers.
51112         * lib/javaversion.c: Include configmake.h after all other includes.
51113
51114 2008-10-26  Bruno Haible  <bruno@clisp.org>
51115
51116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51117         HAVE_STRUCT_RANDOM_DATA to 1.
51118         (gl_STDLIB_H): Simplify.
51119
51120 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51121
51122         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51123         substitute HAVE_STRUCT_RANDOM_DATA.
51124         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51125         random_data.
51126         * modules/stdlib (Makefile.am): Substitute
51127         HAVE_STRUCT_RANDOM_DATA.
51128
51129 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51130
51131         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51132         * doc/gnulib-intro.texi (Copyright): Likewise.
51133
51134 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51135
51136         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51137         findings.
51138
51139 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51140             Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/unistd.in.h: Include <winsock2.h>.
51143         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51144         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51145         Provide dummy declarations.
51146         (gethostname): Override.
51147         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51148         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51149         gl_PREREQ_SYS_H_WINSOCK2.
51150         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51151         * doc/posix-functions/gethostname.texi: More details.
51152
51153 2008-10-25  Bruno Haible  <bruno@clisp.org>
51154
51155         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51156         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51157         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51158
51159         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51160         here ...
51161         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51162         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51163         gl_UNISTD_H_DEFAULTS.
51164
51165 2008-10-25  Eric Blake  <ebb9@byu.net>
51166
51167         signbit: avoid spurious compiler failure
51168         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51169         declarations inside function.
51170
51171 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51172             Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51175         * modules/random_r (Depends-on): Add stdint.
51176
51177 2008-10-24  Bruno Haible  <bruno@clisp.org>
51178
51179         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51180         Eggert.
51181         * modules/strerror (License): Likewise.
51182
51183 2008-10-24  Jim Meyering  <meyering@redhat.com>
51184
51185         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51186         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51187
51188 2008-10-24  Eric Blake  <ebb9@byu.net>
51189
51190         getgroups: fix compilation when getgroups is available
51191         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51192         but with <config.h> override of getgroups disabled.
51193
51194 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51195
51196         * doc/gnulib.texi (Header files): Add note about C++ problems.
51197         Explained by Bruno Haible <bruno@clisp.org>.
51198
51199 2008-10-23  Bruno Haible  <bruno@clisp.org>
51200
51201         Define a dummy SA_NODEFER macro on Interix.
51202         * lib/signal.in.h (SA_NODEFER): Define fallback.
51203         Reported by Aleksey Cheusov <cheusov@tut.by> via
51204         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51205
51206 2008-10-23  Bruno Haible  <bruno@clisp.org>
51207
51208         * modules/freadahead (License): Change to LGPLv2+.
51209         Suggested by Simon Josefsson.
51210
51211 2008-10-23  Jim Meyering  <meyering@redhat.com>
51212
51213         random_r: new module
51214         * modules/random_r: New file.
51215         * m4/random_r.m4: New file.
51216         * lib/random_r.c: New file, from glibc.
51217         * modules/random_r-tests: New file.
51218         * tests/test-random_r.c: New file.
51219         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51220          Declare.
51221         (RAND_MAX): Define.
51222         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51223         * modules/stdlib: Substitute them, too.
51224         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51225         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51226         * doc/glibc-functions/random_r.texi: Likewise.
51227         * doc/glibc-functions/setstate_r.texi: Likewise.
51228         * doc/glibc-functions/srandom_r.texi: Likewise.
51229         * config/srclist.txt: Mention it.
51230
51231 2008-10-23  David Lutterkort  <lutter@redhat.com>
51232
51233         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51234         link requirement
51235
51236 2008-10-23  Jim Meyering  <meyering@redhat.com>
51237
51238         selinux-h: mark parameters of stub functions as intentionally unused
51239         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51240         * lib/se-context.in.h: Likewise.
51241
51242 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51243
51244         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51245
51246 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51247
51248         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51249
51250 2008-10-22  Eric Blake  <ebb9@byu.net>
51251
51252         glthread/thread: avoid compiler warning
51253         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51254         Add unreachable abort to silence compiler.
51255
51256 2008-10-22  Eric Blake  <ebb9@byu.net>
51257
51258         netdb: also supply struct addrinfo for cygwin 1.5.x
51259         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51260         older cygwin.
51261         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51262         cygwin.
51263         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51264
51265 2008-10-22  Bruno Haible  <bruno@clisp.org>
51266
51267         * users.txt: Update entry about pspp.
51268
51269 2008-10-21  Bruno Haible  <bruno@clisp.org>
51270
51271         Simplification.
51272         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51273         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51274
51275         Simplification.
51276         * lib/ioctl.c (ioctl): Don't undefine.
51277         * lib/socket.c (socket): Don't undefine.
51278
51279         Remove unused module indicator macros.
51280         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51281         GNULIB_$1 as a C macro.
51282
51283         * doc/posix-functions/close.texi: Undo last change.
51284         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51285         Windows platforms.
51286
51287 2008-10-21  Bruno Haible  <bruno@clisp.org>
51288
51289         Add gethostname() declaration to <unistd.h>.
51290         * lib/unistd.in.h (gethostname): New declaration.
51291         * lib/gethostname.c: Include <unistd.h>.
51292         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51293         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51295         and HAVE_GETHOSTNAME.
51296         * modules/gethostname (Depends-on): Add unistd.
51297         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51298         (Include): Specify <unistd.h>.
51299         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51300         HAVE_GETHOSTNAME.
51301         * tests/test-gethostname.c: Include <unistd.h> first.
51302
51303 2008-10-21  Bruno Haible  <bruno@clisp.org>
51304
51305         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51306         * modules/select-tests (Depends-on): Likewise.
51307         Reported by Simon Josefsson.
51308
51309 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51310
51311         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51312         * lib/accept.c: New file, based on winsock.c.
51313         * lib/bind.c: New file, based on winsock.c.
51314         * lib/connect.c: New file, based on winsock.c.
51315         * lib/getpeername.c: New file, based on winsock.c.
51316         * lib/getsockname.c: New file, based on winsock.c.
51317         * lib/getsockopt.c: New file, based on winsock.c.
51318         * lib/ioctl.c: New file, based on winsock.c.
51319         * lib/listen.c: New file, based on winsock.c.
51320         * lib/recv.c: New file, based on winsock.c.
51321         * lib/recvfrom.c: New file, based on winsock.c.
51322         * lib/send.c: New file, based on winsock.c.
51323         * lib/sendto.c: New file, based on winsock.c.
51324         * lib/setsockopt.c: New file, based on winsock.c.
51325         * lib/shutdown.c: New file, based on winsock.c.
51326         * lib/socket.c: New file, based on winsock.c.
51327         * lib/w32sock.h: New file, based on winsock.c.
51328         * lib/winsock.c: Remove file.
51329         * modules/accept: Likewise.
51330         * modules/bind: Likewise.
51331         * modules/connect: Likewise.
51332         * modules/getpeername: Likewise.
51333         * modules/getsockname: Likewise.
51334         * modules/getsockopt: Likewise.
51335         * modules/ioctl: Likewise.
51336         * modules/listen: Likewise.
51337         * modules/recv: Likewise.
51338         * modules/recvfrom: Likewise.
51339         * modules/send: Likewise.
51340         * modules/sendto: Likewise.
51341         * modules/setsockopt: Likewise.
51342         * modules/shutdown: Likewise.
51343         * modules/socket: Use socket.c instead of winsock.c.
51344         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51345         * doc/posix-functions/accept.texi: Doc fix.
51346         * doc/posix-functions/bind.texi: Doc fix.
51347         * doc/posix-functions/close.texi: Doc fix.
51348         * doc/posix-functions/connect.texi: Doc fix.
51349         * doc/posix-functions/getpeername.texi: Doc fix.
51350         * doc/posix-functions/getsockname.texi: Doc fix.
51351         * doc/posix-functions/getsockopt.texi: Doc fix.
51352         * doc/posix-functions/ioctl.texi: Doc fix.
51353         * doc/posix-functions/listen.texi: Doc fix.
51354         * doc/posix-functions/recv.texi: Doc fix.
51355         * doc/posix-functions/recvfrom.texi: Doc fix.
51356         * doc/posix-functions/send.texi: Doc fix.
51357         * doc/posix-functions/sendto.texi: Doc fix.
51358         * doc/posix-functions/setsockopt.texi: Doc fix.
51359         * doc/posix-functions/shutdown.texi: Doc fix.
51360         * doc/posix-functions/socket.texi: Doc fix.
51361
51362 2008-10-20  Bruno Haible  <bruno@clisp.org>
51363
51364         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51365         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51366         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51367         as an alias for SIGABRT.
51368         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51369         (sigaction): Map it to SIGABRT.
51370         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51371
51372 2008-10-20  Bruno Haible  <bruno@clisp.org>
51373
51374         * lib/fts.c: Don't include lstat.h.
51375         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51376
51377         Move the lstat() declaration to <sys/stat.h>.
51378         * lib/lstat.h: Remove file.
51379         * lib/sys_stat.in.h: Add special invocation convention.
51380         (lstat): New declaration.
51381         * lib/lstat.c (orig_lstat): New function.
51382         (rpl_lstat): Use orig_lstat instead of lstat.
51383         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51384         AC_C_INLINE. Set REPLACE_LSTAT.
51385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51386         and REPLACE_LSTAT.
51387         * modules/lstat (Files): Remove lib/lstat.h.
51388         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51389         (Include): Specify <sys/stat.h> instead of lstat.h.
51390         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51391         REPLACE_LSTAT.
51392         * NEWS: Mention the change.
51393
51394 2008-10-20  Bruno Haible  <bruno@clisp.org>
51395
51396         * modules/posix_spawn-tests: New file.
51397         * tests/test-posix_spawn3.c: New file.
51398
51399 2008-10-20  Bruno Haible  <bruno@clisp.org>
51400
51401         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51402         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51403         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51404         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51405         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51406
51407 2008-10-20  Bruno Haible  <bruno@clisp.org>
51408
51409         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51410         of posix_spawn on AIX 5.3.
51411
51412 2008-10-20  Bruno Haible  <bruno@clisp.org>
51413
51414         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51415
51416 2008-10-20  Bruno Haible  <bruno@clisp.org>
51417
51418         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51419         of AC_LANG_PROGRAM.
51420
51421 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51422
51423         * lib/netdb.in.h: Don't define GNU specific constants until they
51424         are supported or needed.  Reported by Bruno Haible
51425         <bruno@clisp.org>.
51426
51427 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51428
51429         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51430
51431 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51432
51433         * lib/getaddrinfo.h: Remove file.
51434         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51435         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51436         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51437         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51438         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51439         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51440         * tests/test-getaddrinfo.c: Likewise.
51441         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51442         * NEWS: Mention change.
51443
51444 2008-10-19  Bruno Haible  <bruno@clisp.org>
51445
51446         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51447
51448 2008-10-19  Bruno Haible  <bruno@clisp.org>
51449
51450         * lib/wait-process.c: Include simply <sys/wait.h>.
51451         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51452         WIFSTOPPED): Remove fallback definitions.
51453         * modules/wait-process (Depends-on): Add sys_wait.
51454
51455         New module 'sys_wait'.
51456         * modules/sys_wait: New file.
51457         * lib/sys_wait.in.h: New file, partially copied from
51458         lib/wait-process.c.
51459         * m4/sys_wait_h.m4: New file.
51460         * doc/posix-headers/sys_wait.texi: Mention the new module.
51461
51462 2008-10-19  Bruno Haible  <bruno@clisp.org>
51463
51464         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51465
51466 2008-10-19  Bruno Haible  <bruno@clisp.org>
51467
51468         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51469         * lib/wait-process.c (WAIT_T): Remove type.
51470         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51471         (wait_subprocess): Update.
51472
51473 2008-10-19  Bruno Haible  <bruno@clisp.org>
51474
51475         New module 'atoll'.
51476         * modules/atoll: New file.
51477         * lib/stdlib.in.h (atoll): New declaration.
51478         * lib/atoll.c: New file, from glibc with modifications.
51479         * m4/atoll.m4: New file.
51480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51481         HAVE_ATOLL.
51482         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51483         * doc/posix-functions/atoll.texi: Mention the new module.
51484
51485 2008-10-19  Bruno Haible  <bruno@clisp.org>
51486
51487         Add strtoull() declaration to <stdlib.h>.
51488         * lib/stdlib.in.h (strtoull): New declaration.
51489         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51490         Set HAVE_STRTOULL.
51491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51492         HAVE_STRTOULL.
51493         * modules/strtoull (Depends-on): Add stdlib.
51494         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51495         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51496         HAVE_STRTOULL.
51497
51498 2008-10-19  Bruno Haible  <bruno@clisp.org>
51499
51500         Add strtoll() declaration to <stdlib.h>.
51501         * lib/stdlib.in.h (strtoll): New declaration.
51502         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51503         Set HAVE_STRTOLL.
51504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51505         HAVE_STRTOLL.
51506         * modules/strtoll (Depends-on): Add stdlib.
51507         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51508         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51509
51510 2008-10-19  Bruno Haible  <bruno@clisp.org>
51511
51512         * modules/bcopy (Depends-on): Add strings.
51513         (Include): Specify <strings.h>.
51514
51515 2008-10-19  Bruno Haible  <bruno@clisp.org>
51516
51517         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51518
51519 2008-10-19  Bruno Haible  <bruno@clisp.org>
51520
51521         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51522         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51523         mingw.
51524
51525 2008-10-19  Bruno Haible  <bruno@clisp.org>
51526
51527         * lib/atanl.c: Don't include isnanl.h.
51528         * lib/cosl.c: Likewise.
51529         * lib/ldexpl.c: Likewise.
51530         * lib/logl.c: Likewise.
51531         * lib/sinl.c: Likewise.
51532         * lib/sqrtl.c: Likewise.
51533         * lib/tanl.c: Likewise.
51534
51535         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51536         * lib/isnanf.h: Remove file.
51537         * lib/isnand.h: Remove file.
51538         * lib/isnanl.h: Remove file.
51539         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51540         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51541         macros.
51542         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51543         HAVE_ISNANF, don't define it as a C macro.
51544         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51545         HAVE_ISNAND, don't define it as a C macro.
51546         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51547         HAVE_ISNANL, don't define it as a C macro.
51548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51549         HAVE_ISNAN[FDL].
51550         * modules/isnanf (Files): Remove lib/isnanf.h.
51551         (Depends-on): Add math.
51552         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51553         (Include): Specify <math.h> instead of isnanf.h.
51554         * modules/isnand (Files): Remove lib/isnand.h.
51555         (Depends-on): Add math.
51556         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51557         (Include): Specify <math.h> instead of isnand.h.
51558         * modules/isnanl (Files): Remove lib/isnanl.h.
51559         (Depends-on): Add math.
51560         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51561         (Include): Specify <math.h> instead of isnanl.h.
51562         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51563         HAVE_ISNAN[FDL].
51564         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51565         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51566         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51567         * NEWS: Mention the change.
51568
51569 2008-10-18  Bruno Haible  <bruno@clisp.org>
51570
51571         Add getusershell(), setusershell(), endusershell() declarations to
51572         <unistd.h>.
51573         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51574         declarations.
51575         * lib/getusershell.c: Include unistd.h.
51576         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51577         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51578         HAVE_GETUSERSHELL.
51579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51580         and HAVE_GETUSERSHELL.
51581         * modules/getusershell (Depends-on): Add unistd, extensions.
51582         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51583         (Include): Specify <unistd.h>.
51584         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51585         HAVE_GETUSERSHELL.
51586
51587 2008-10-18  Bruno Haible  <bruno@clisp.org>
51588
51589         Add a getloadavg() declaration to <stdlib.h>.
51590         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51591         getloadavg declaration.
51592         (getloadavg): New declaration.
51593         * lib/getloadavg.c: Include <stdlib.h> first.
51594         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51595         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51596         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51598         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51599         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51600         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51601         (Include): Specify <stdlib.h>.
51602         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51603         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51604
51605 2008-10-18  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/dirchownmod.c: Don't include lchmod.h.
51608
51609         Move the lchmod() declaration to <sys/stat.h>.
51610         * lib/lchmod.h: Remove file.
51611         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51612         (lchmod): New declaration, moved here from lib/lchown.h.
51613         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51614         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51615         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51616         and HAVE_LCHMOD.
51617         * modules/lchmod (Files): Remove lib/lchmod.h.
51618         (Depends-on): Add sys_stat, extensions.
51619         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51620         (Include): Specify <sys/stat.h> instead of lchmod.h.
51621         * modules/sys_stat (Depends-on): Add link-warning.
51622         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51623         definition of GL_LINK_WARNING.
51624         * NEWS: Mention the change.
51625
51626 2008-10-18  Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/fchdir.c: Don't include dirfd.h.
51629         * lib/fts.c: Likewise.
51630         * lib/getcwd.c: Likewise.
51631         * lib/glob.c: Likewise.
51632
51633         Move the dirfd() declaration to <dirent.h>.
51634         * lib/dirfd.h: Remove file.
51635         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51636         (dirfd): New declaration.
51637         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51638         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51639         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51640         HAVE_DECL_DIRFD.
51641         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51642         HAVE_DECL_DIRFD.
51643         * modules/dirfd (Files): Remove lib/dirfd.h.
51644         (Depends-on): Add dirent, extensions.
51645         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51646         (Include): Specify <dirent.h> instead of dirfd.h.
51647         * modules/dirent (Depends-on): Add link-warning.
51648         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51649         definition of GL_LINK_WARNING.
51650         * NEWS: Mention the change.
51651
51652 2008-10-18  Bruno Haible  <bruno@clisp.org>
51653
51654         Move the euidaccess() declaration to <unistd.h>.
51655         * lib/euidaccess.h: Remove file.
51656         * lib/unistd.in.h (euidaccess): New declaration.
51657         * lib/euidaccess.c: Don't include euidaccess.h.
51658         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51659         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51661         and HAVE_EUIDACCESS.
51662         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51663         (Depends-on): Add unistd.
51664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51665         (Include): Specify <unistd.h> instead of euidaccess.h.
51666         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51667         HAVE_EUIDACCESS.
51668         * NEWS: Mention the change.
51669
51670 2008-10-18  Bruno Haible  <bruno@clisp.org>
51671
51672         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51673
51674         Move the getdomainname() declaration to <unistd.h>.
51675         * lib/getdomainname.h: Remove file.
51676         * lib/unistd.in.h (getdomainname): New declaration.
51677         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51678         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51679         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51680         HAVE_GETDOMAINNAME.
51681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51682         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51683         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51684         (Depends-on): Add unistd, extensions.
51685         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51686         (Includes): Specify <unistd.h> instead of getdomainname.h.
51687         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51688         HAVE_GETDOMAINNAME.
51689         * NEWS: Mention the change.
51690
51691 2008-10-18  Bruno Haible  <bruno@clisp.org>
51692
51693         * modules/dirent: New file.
51694         * m4/dirent_h.m4: New file.
51695         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51696         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51697         * modules/fchdir (Files): Remove lib/dirent.in.h.
51698         (Depends-on): Add dirent.
51699         (Makefile.am): Move rules to modules/dirent.
51700         * doc/posix-headers/dirent.texi: Mention the new module.
51701
51702 2008-10-18  Bruno Haible  <bruno@clisp.org>
51703
51704         Avoid -Wunused-parameter warnings in public gnulib header files.
51705         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51706         macro.
51707         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51708
51709 2008-10-18  Bruno Haible  <bruno@clisp.org>
51710
51711         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51712         * doc/glibc-functions/error.texi: Mention the module 'error'.
51713         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51714         * doc/glibc-functions/getdomainname.texi: Mention the module
51715         'getdomainname'.
51716         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51717         * doc/glibc-functions/getpagesize.texi: Mention the module
51718         'getpagesize'.
51719         * doc/glibc-functions/getusershell.texi: Mention the module
51720         'getusershell'.
51721         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51722         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51723         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51724         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51725         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51726         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51727         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51728         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51729         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51730         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51731         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51732         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51733         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51734         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51735
51736 2008-10-17  Bruno Haible  <bruno@clisp.org>
51737
51738         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51739         HP-UX and IRIX, use -0.0L.
51740         * tests/test-ceill.c (minus_zero): Likewise.
51741         * tests/test-floorl.c (minus_zero): Likewise.
51742         * tests/test-frexpl.c (minus_zero): Likewise.
51743         * tests/test-isnan.c (minus_zerol): Likewise.
51744         * tests/test-isnanl.h (minus_zero): Likewise.
51745         * tests/test-ldexpl.c (minus_zero): Likewise.
51746         * tests/test-roundl.c (minus_zero): Likewise.
51747         * tests/test-signbit.c (minus_zerol): Likewise.
51748         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51749         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51750         * tests/test-truncl.c (minus_zero): Likewise.
51751         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51752         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51753         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51754         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51755
51756 2008-10-17  Bruno Haible  <bruno@clisp.org>
51757
51758         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51759         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51760         that it gets activated only for gcc >= 3.0.
51761         * lib/dirent.in.h: Likewise.
51762         * lib/errno.in.h: Likewise.
51763         * lib/fcntl.in.h: Likewise.
51764         * lib/float.in.h: Likewise.
51765         * lib/iconv.in.h: Likewise.
51766         * lib/inttypes.in.h: Likewise.
51767         * lib/locale.in.h: Likewise.
51768         * lib/math.in.h: Likewise.
51769         * lib/netdb.in.h: Likewise.
51770         * lib/netinet_in.in.h: Likewise.
51771         * lib/search.in.h: Likewise.
51772         * lib/signal.in.h: Likewise.
51773         * lib/spawn.in.h: Likewise.
51774         * lib/stdarg.in.h: Likewise.
51775         * lib/stdint.in.h: Likewise.
51776         * lib/stdio.in.h: Likewise.
51777         * lib/stdlib.in.h: Likewise.
51778         * lib/string.in.h: Likewise.
51779         * lib/strings.in.h: Likewise.
51780         * lib/sys_file.in.h: Likewise.
51781         * lib/sys_ioctl.in.h: Likewise.
51782         * lib/sys_select.in.h: Likewise.
51783         * lib/sys_socket.in.h: Likewise.
51784         * lib/sys_stat.in.h: Likewise.
51785         * lib/sys_time.in.h: Likewise.
51786         * lib/sysexits.in.h: Likewise.
51787         * lib/time.in.h: Likewise.
51788         * lib/unistd.in.h: Likewise.
51789         * lib/wchar.in.h: Likewise.
51790         * lib/wctype.in.h: Likewise.
51791         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51792
51793 2008-10-17  Jim Meyering  <meyering@redhat.com>
51794
51795         ignore-value: don't depend on inline module
51796         * modules/ignore-value (Depends-on): Remove 'inline'.
51797         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51798         Suggestion from Bruno Haible.
51799
51800 2008-10-17  Bruno Haible  <bruno@clisp.org>
51801
51802         New implementation of condition variables for Win32.
51803         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51804         (gl_linked_waitqueue_t): New type.
51805         (gl_cond_t): Use it.
51806         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51807         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51808         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51809         (glthread_cond_init_func, glthread_cond_wait_func,
51810         glthread_cond_timedwait_func, glthread_cond_signal_func,
51811         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51812         Reimplemented on the basis of gl_linked_waitqueue_t.
51813         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51814         gl_waitqueue_t.
51815         (gl_rwlock_t): Update.
51816         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51817
51818 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51819
51820         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51821         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51822
51823 2008-10-17  Jim Meyering  <meyering@redhat.com>
51824
51825         ignore-value: new module
51826         * modules/ignore-value: New file.
51827         * lib/ignore-value.h: New file.
51828         * MODULES.html.sh (Compiler warning management): New section,
51829         just for this module.  More to come.
51830
51831 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51832
51833         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51834         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51835         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51836
51837 2008-10-16  Jim Meyering  <meyering@redhat.com>
51838
51839         openat-die.c: avoid 'no previous prototype' warning
51840         * lib/openat-die.c: Include "openat.h".
51841         Reported by Reuben Thomas <rrt@sc3d.org>.
51842
51843 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51844
51845         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51846         * lib/netdb.in.h: Fix typo.
51847         Reported by Bruno Haible  <bruno@clisp.org>
51848
51849         * lib/netdb.in.h: Include sys/socket.h for platforms without
51850         netdb.h, to get structures like hostent on MinGW.
51851         * modules/netdb (Depends-on): Add sys_socket.
51852
51853 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51854
51855         * modules/netdb, modules/netdb-tests: New file.
51856         * m4/netdb_h.m4: New file.
51857         * lib/netdb.in.h: Add, currently just an empty file pending
51858         definitions.
51859         * tests/test-netdb.c: New file.
51860         * doc/posix-headers/netdb.texi: Mention that we replace it if
51861         needed.
51862         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51863         netdb.
51864
51865 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51866
51867         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51868         with code.
51869
51870 2008-10-13  Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/glthread/cond.c (glthread_cond_wait_func,
51873         glthread_cond_timedwait_func): Add a comment.
51874
51875 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51876
51877         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51878         * tests/test-select.c: Likewise,
51879
51880 2008-10-13  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/glthread/cond.c (glthread_cond_wait_func,
51883         glthread_cond_timedwait_func): Fix variable name.
51884         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51885
51886 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51887
51888         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51889         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51890         struct sockaddr.sa_len.
51891         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51892
51893 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51894
51895         * build-aux/pmccabe2html: Add css and css_url parameters.
51896
51897 2008-10-12  Bruno Haible  <bruno@clisp.org>
51898
51899         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51900         calling aclx_get.
51901         Reported by Rainer Tammer <tammer@tammer.net>.
51902
51903 2008-10-12  Bruno Haible  <bruno@clisp.org>
51904
51905         Use msvcrt aware primitives for creation/termination of Win32 threads.
51906         * lib/glthread/thread.c: Include <process.h>.
51907         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51908         (wrapper_func): Update signature.
51909         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51910
51911 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51912             Bruno Haible  <bruno@clisp.org>
51913
51914         Provide a Win32 implementation of the 'cond' module.
51915         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51916         * lib/glthread/cond.c (glthread_cond_init_func,
51917         glthread_cond_wait_func, glthread_cond_timedwait_func,
51918         glthread_cond_signal_func, glthread_cond_broadcast_func,
51919         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51920         * modules/cond (Dependencies): Add gettimeofday.
51921
51922 2008-10-11  Bruno Haible  <bruno@clisp.org>
51923
51924         Make sleep work on older versions of mingw.
51925         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51926         only whether it exists.
51927         * doc/posix-functions/sleep.texi: Mention the problem with older
51928         versions of mingw.
51929
51930 2008-10-11  Bruno Haible  <bruno@clisp.org>
51931
51932         New module 'shutdown'.
51933         * modules/shutdown: New file.
51934         * lib/sys_socket.in.h (shutdown): New declaration.
51935         * lib/winsock.c (shutdown): New function.
51936         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51937         GNULIB_SHUTDOWN.
51938         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51939         * doc/posix-functions/shutdown.texi: Document the new module.
51940
51941 2008-10-11  Jim Meyering  <meyering@redhat.com>
51942
51943         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51944
51945 2008-10-11  Bruno Haible  <bruno@clisp.org>
51946
51947         New module 'fclose'.
51948         * modules/fclose: New file.
51949         * lib/stdio.in.h (fclose): New declaration.
51950         * lib/fclose.c: New file.
51951         * m4/fclose.m4: New file.
51952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51953         REPLACE_FCLOSE.
51954         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51955         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51956         REPLACE_FCLOSE.
51957         * modules/close (Depends-on): fclose.
51958         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51959
51960 2008-10-11  Bruno Haible  <bruno@clisp.org>
51961
51962         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51963         set errno and don't call _close.
51964
51965 2008-10-10  Bruno Haible  <bruno@clisp.org>
51966
51967         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51968         ACL, not afterwards. Fixes test failure on Cygwin.
51969
51970 2008-10-09  Ben Pfaff  <blp@gnu.org>
51971
51972         * build-aux/announce-gen: Fix gnulib version related part of usage
51973         message.  Die with a useful error message if no tarballs are
51974         found.
51975
51976 2008-10-10  Jim Meyering  <meyering@redhat.com>
51977
51978         bootstrap: use git's --depth=N option only if it's supported
51979         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51980         recognize the --depth option.  Reported by Pádraig Brady.
51981
51982 2008-10-09  Bruno Haible  <bruno@clisp.org>
51983
51984         New module 'ioctl'.
51985         * modules/ioctl: New file.
51986         * lib/sys_socket.in.h (ioctl): Remove declaration.
51987         * lib/winsock.c: Include <sys/ioctl.h>.
51988         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51989         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51990         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51991         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51992         * doc/posix-functions/ioctl.texi: Mention the new module.
51993
51994 2008-10-09  Bruno Haible  <bruno@clisp.org>
51995
51996         New module 'sys_ioctl'.
51997         * lib/sys_ioctl.in.h: New file.
51998         * m4/sys_ioctl_h.m4: New file.
51999         * modules/sys_ioctl: New file.
52000         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52001
52002 2008-10-09  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52005         * lib/winsock.c: Include <stdarg.h>.
52006         (rpl_ioctl): Change to second argument 'int' and then varargs.
52007
52008 2008-10-09  Bruno Haible  <bruno@clisp.org>
52009
52010         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52011         when the sys_socket module is present and the system has <winsock2.h>.
52012
52013 2008-10-09  Bruno Haible  <bruno@clisp.org>
52014
52015         * doc/posix-functions/close.texi: Mention module 'close' instead of
52016         module 'sys_socket'.
52017
52018 2008-10-09  Bruno Haible  <bruno@clisp.org>
52019
52020         * doc/glibc-headers/sys_ioctl.texi: New file.
52021         * doc/gnulib.texi: Include it.
52022
52023 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52024             Bruno Haible  <bruno@clisp.org>
52025
52026         Combine the two replacements of 'close'.
52027         * lib/sys_socket.in.h (close): Define to a reminder to include
52028         <unistd.h>.
52029         (_gl_close_fd_maybe_socket): New declaration.
52030         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52031         * lib/winsock.c (close): Remove undefinition.
52032         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52033         needed for the gnulib module 'close'.
52034         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52035         define to an error symbol or to a warning, if suitable.
52036         * lib/close.c: Include <sys/socket.h>.
52037         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52038         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52039         UNISTD_H_HAVE_WINSOCK2_H.
52040         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52042         UNISTD_H_HAVE_WINSOCK2_H.
52043         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52044         (configure.ac): Set a module indicator.
52045         (Makefile.am): Substitute GNULIB_CLOSE.
52046         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52047         * modules/poll-tests (Depends-on): Add close.
52048         * modules/select-tests (Depends-on): Likewise.
52049
52050 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52051             Bruno Haible  <bruno@clisp.org>
52052
52053         New module 'close'.
52054         * modules/close: New file.
52055         * lib/unistd.in.h (close): Move declaration out of the
52056         FCHDIR_REPLACEMENT scope.
52057         (_gl_unregister_fd): New declaration.
52058         * lib/close.c: New file.
52059         * lib/fchdir.c (rpl_close): Remove function.
52060         * m4/close.m4: New file.
52061         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52062         close.
52063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52064         REPLACE_CLOSE.
52065         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52066         REPLACE_CLOSE.
52067         * modules/fchdir (Depends-on): Add close.
52068
52069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52070             Bruno Haible  <bruno@clisp.org>
52071
52072         * lib/fcntl.in.h (open): Simplify conditionals.
52073         (_gl_register_fd): New declaration.
52074         * lib/fchdir.c (rpl_open): Remove function.
52075         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52076         also.
52077         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52079         open.
52080
52081 2008-10-09  Jim Meyering  <meyering@redhat.com>
52082
52083         GNUmakefile: use the more name-space-friendly "_version"
52084         * top/GNUmakefile (_dummy): Update.
52085         (_version): Rename from "version".
52086
52087 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52088             Bruno Haible  <bruno@clisp.org>
52089
52090         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52091         rpl_close.
52092         (_gl_register_fd): New function, extracted from rpl_open.
52093         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52094         (rpl_open, rpl_opendir): Use _gl_register_fd.
52095
52096 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52097
52098         Fix organization of 'open' replacement.
52099         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52100         (gl_FUNC_OPEN): Use it.
52101         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52102
52103 2008-10-08  Bruno Haible  <bruno@clisp.org>
52104
52105         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52106
52107 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52108
52109         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52110         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52111         listen).
52112
52113 2008-10-08  Eric Blake  <ebb9@byu.net>
52114
52115         GNUmakefile: add 'make version' target
52116         * top/GNUmakefile (_curr-ver): Split version update rules...
52117         (version): ...into a target.
52118
52119 2008-10-07  Bruno Haible  <bruno@clisp.org>
52120
52121         Use a more portable replacement expression for -0.0L.
52122         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52123         instead of -0.0L. Fix m4 quotation.
52124
52125         * tests/test-signbit.c: Include <float.h>.
52126         (minus_zero): New variable.
52127         (test_signbitl): Use minus_zero instead of -zero.
52128         * modules/signbit-tests (Depends-on): Add float.
52129
52130         * tests/test-ceill.c: Include <float.h>.
52131         (zero): Remove variable.
52132         (minus_zero): New variable.
52133         (main): Use minus_zero instead of -zero.
52134         * modules/ceill-tests (Depends-on): Add float.
52135
52136         * tests/test-floorl.c: Include <float.h>.
52137         (zero): Remove variable.
52138         (minus_zero): New variable.
52139         (main): Use minus_zero instead of -zero.
52140         * modules/floorl-tests (Depends-on): Add float.
52141
52142         * tests/test-roundl.c: Include <float.h>.
52143         (zero): Remove variable.
52144         (minus_zero): New variable.
52145         (main): Use minus_zero instead of -zero.
52146         * modules/roundl-tests (Depends-on): Add float.
52147
52148         * tests/test-truncl.c: Include <float.h>.
52149         (zero): Remove variable.
52150         (minus_zero): New variable.
52151         (main): Use minus_zero instead of -zero.
52152         * modules/truncl-tests (Depends-on): Add float.
52153
52154         * tests/test-frexpl.c (zero): Remove variable.
52155         (minus_zero): New variable.
52156         (main): Use minus_zero instead of -zero.
52157         * modules/frexpl-tests (Depends-on): Add float.
52158
52159         * tests/test-isnan.c (zerol): Remove variable.
52160         (minus_zerol): New variable.
52161         (test_long_double): Use minus_zerol instead of -zerol.
52162         * modules/isnan-tests (Depends-on): Add float.
52163
52164         * tests/test-isnanl.h (zero): Remove variable.
52165         (minus_zero): New variable.
52166         (main): Use minus_zero instead of -zero.
52167         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52168         * modules/isnanl-tests (Depends-on): Add float.
52169
52170         * tests/test-ldexpl.c (zero): Remove variable.
52171         (minus_zero): New variable.
52172         (main): Use minus_zero instead of -zero.
52173         * modules/ldexpl-tests (Depends-on): Add float.
52174
52175         * tests/test-snprintf-posix.h (zerol): Remove variable.
52176         (minus_zerol): New variable.
52177         (test_function): Use minus_zerol instead of -zerol.
52178         * modules/snprintf-posix-tests (Depends-on): Add float.
52179         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52180
52181         * tests/test-sprintf-posix.h (zerol): Remove variable.
52182         (minus_zerol): New variable.
52183         (test_function): Use minus_zerol instead of -zerol.
52184         * modules/sprintf-posix-tests (Depends-on): Add float.
52185         * modules/vsprintf-posix-tests (Depends-on): Add float.
52186
52187         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52188         (minus_zerol): New variable.
52189         (test_function): Use minus_zerol instead of -zerol.
52190         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52191
52192         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52193         (minus_zerol): New variable.
52194         (test_function): Use minus_zerol instead of -zerol.
52195         * modules/vasprintf-posix-tests (Depends-on): Add float.
52196
52197 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52198
52199         * MODULES.html.sh (Support for building documentation): Mention
52200         pmccabe2html.  Sort entries.
52201
52202         Add pmccabe2html module, from gnupdf.
52203         * build-aux/pmccabe.css: New file.
52204         * build-aux/pmccabe2html: New file.
52205         * m4/pmccabe2html.m4: New file.
52206         * modules/pmccabe2html: New file.
52207
52208 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52209
52210         flock: new module
52211         * MODULES.html.sh: Add to list of modules.
52212         * lib/flock.c: flock implementation for Windows and Unix systems
52213         which have fcntl.
52214         * doc/glibc-functions/flock.texi: Update documentation.
52215         * lib/sys_file.in.h: <sys/file.h> header file.
52216         * m4/flock.m4: M4 macros.
52217         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52218         * modules/flock: flock module.
52219         * modules/flock-tests: flock tests module.
52220         * modules/sys_file: sys/file.h module.
52221         * tests/test-flock.c: test suite for flock.
52222
52223 2008-10-06  Jim Meyering  <meyering@redhat.com>
52224
52225         bootstrap: check for LT_INIT more portably still ;-)
52226         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52227         Spotted by Bruno Haible.
52228
52229 2008-10-06  Eric Blake  <ebb9@byu.net>
52230
52231         test-signbit: avoid tripping Irix cc bug on -0.0L
52232         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52233         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52234         entire testsuite consistent and avoids an Irix 6.2 bug.
52235
52236 2008-10-05  Bruno Haible  <bruno@clisp.org>
52237             Jim Meyering  <jim@meyering.net>
52238
52239         Add an option for ignoring EPIPE during close_stdout.
52240         * lib/closeout.h: Include <stdbool.h>.
52241         (close_stdout_set_ignore_EPIPE): New declaration.
52242         * lib/closeout.c: Include <stdbool.h>.
52243         (ignore_EPIPE): New variable.
52244         (close_stdout_set_ignore_EPIPE): New function.
52245         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52246         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52247         failure.
52248         * modules/closeout (Depends-on): Add stdbool.
52249
52250 2008-10-05  Bruno Haible  <bruno@clisp.org>
52251
52252         * modules/accept: New file.
52253         * modules/bind: New file.
52254         * modules/connect: New file.
52255         * modules/getpeername: New file.
52256         * modules/getsockname: New file.
52257         * modules/getsockopt: New file.
52258         * modules/listen: New file.
52259         * modules/recv: New file.
52260         * modules/recvfrom: New file.
52261         * modules/send: New file.
52262         * modules/sendto: New file.
52263         * modules/setsockopt: New file.
52264         * modules/socket: New file.
52265         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52266         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52267         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52268         the particular module is requested. Add a link warning when the
52269         particular module is not requested.
52270         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52271         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52272         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52273         the particular module is requested.
52274         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52275         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52276         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52277         * modules/sys_socket (Depends-on): Add link-warning.
52278         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52279         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52280         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52281         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52282         GL_LINK_WARNING.
52283         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52284         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52285         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52286         * doc/posix-functions/getpeername.texi: Mention the new module
52287         'getpeername'.
52288         * doc/posix-functions/getsockname.texi: Mention the new module
52289         'getsockname'.
52290         * doc/posix-functions/getsockopt.texi: Mention the new module
52291         'getsockopt'.
52292         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52293         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52294         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52295         * doc/posix-functions/send.texi: Mention the new module 'send'.
52296         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52297         * doc/posix-functions/setsockopt.texi: Mention the new module
52298         'setsockopt'.
52299         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52300         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52301         listen, connect, accept.
52302         * modules/select-tests (Depends-on): Likewise.
52303
52304 2008-10-05  Bruno Haible  <bruno@clisp.org>
52305
52306         * lib/winsock.c (strerror): Remove unused #undef.
52307         (rpl_close): Remove unused local variable.
52308
52309         * modules/sys_socket (Depends-on); Add errno.
52310
52311 2008-10-05  Bruno Haible  <bruno@clisp.org>
52312
52313         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52314         (select): Add a link warning when the 'select' module is not used.
52315         * modules/sys_select (Depends-on): Add link-warning.
52316         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52317         Suggested by Paolo Bonzini.
52318
52319 2008-10-05  Jim Meyering  <meyering@redhat.com>
52320
52321         bootstrap: check for LT_INIT more portably
52322         * build-aux/bootstrap: Avoid using grep -E, since it's not
52323         portable enough.  Suggestion from Bruno Haible.
52324
52325 2008-10-05  Bruno Haible  <bruno@clisp.org>
52326
52327         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52328         as being fixed by gnulib.
52329
52330 2008-10-05  Bruno Haible  <bruno@clisp.org>
52331
52332         * modules/select-tests: New file, mostly copied from
52333         modules/sys_select-tests.
52334         * tests/test-select.c: New file, mostly copied from
52335         tests/test-sys_select.c.
52336         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52337         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52338         (Makefile.am): Remove test_sys_select_LDADD.
52339
52340         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52341         to an undefined symbol, for an error message.
52342         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52343         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52344         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52345         winsock-select.c here.
52346         * modules/sys_select (Files): Remove lib/winsock-select.c.
52347         (Depends-on): Remove alloca.
52348         (Makefile.am): Substitute GNULIB_SELECT.
52349         * modules/select: New file.
52350         * doc/posix-functions/select.texi: Update.
52351
52352 2008-10-05  Bruno Haible  <bruno@clisp.org>
52353
52354         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52355         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52356         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52357         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52358         getdtablesize.
52359         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52360         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52361
52362 2008-10-05  Bruno Haible  <bruno@clisp.org>
52363
52364         * modules/getdtablesize-tests: New file.
52365         * tests/test-getdtablesize.c: New file.
52366
52367         New module 'getdtablesize'.
52368         * lib/unistd.in.h (getdtablesize): New declaration.
52369         * lib/getdtablesize.c: New file.
52370         * m4/getdtablesize.m4: New file.
52371         * modules/getdtablesize: New file.
52372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52373         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52374         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52375         HAVE_GETDTABLESIZE.
52376         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52377
52378 2008-10-05  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/sched (Makefile.am): Fix typo.
52381         Reported by Simon Josefsson.
52382
52383 2008-10-05  Jim Meyering  <meyering@redhat.com>
52384
52385         bootstrap: check for LT_INIT, too
52386         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52387         are deprecated.  Suggestion from Ralf Wildenhues.
52388
52389 2008-10-05  Bruno Haible  <bruno@clisp.org>
52390
52391         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52392         overriding them by ours.
52393         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52394
52395 2008-10-05  Jim Meyering  <meyering@redhat.com>
52396
52397         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52398         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52399         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52400
52401 2008-10-04  Bruno Haible  <bruno@clisp.org>
52402
52403         * modules/dup2 (License): Change to LGPLv2+.
52404         * modules/sleep (License): Likewise.
52405         * modules/perror (License): Likewise.
52406         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52407         Blake.
52408         * modules/signal (License): Likewise.
52409         * modules/sigprocmask (License): Likewise.
52410         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52411         Meyering.
52412
52413 2008-10-04  Bruno Haible  <bruno@clisp.org>
52414
52415         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52416         Reported by Rainer Tammer <tammer@tammer.net>.
52417
52418 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52419             Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52422         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52423         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52424
52425 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52426
52427         filevercmp: new module
52428         * lib/filevercmp.h: New function filevercmp comparing version strings.
52429         * lib/filevercmp.c: Implementation of filevercmp function.
52430         * modules/filevercmp: Module metadata.
52431         * tests/test-filevercmp.c: Unit test for new module.
52432         * modules/filevercmp-tests: Unit test metadata.
52433         * MODULES.html.sh: Add filevercmp module.
52434
52435 2008-10-03  Bruno Haible  <bruno@clisp.org>
52436
52437         * lib/c-ctype.h: Add comment.
52438         Reported by Jim Meyering.
52439
52440 2008-10-02  Bruno Haible  <bruno@clisp.org>
52441
52442         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52443
52444 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52445
52446         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52447         name of bootstrap.conf accordingly.
52448
52449 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52450
52451         * build-aux/bootstrap: Install git-merge-changelog configuration
52452         items into .gitconfig if needed.
52453
52454 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52455
52456         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52457         git repository, and initialize/update it accordingly.
52458
52459 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52460
52461         * modules/fsync-tests: New file.
52462         * tests/test-fsync.c: New file.
52463
52464         New module 'fsync'.
52465         * lib/fsync.c: New file.
52466         * m4/fsync.m4: New file.
52467         * modules/fsync: New file.
52468         * lib/unistd.in.h (fsync): New declaration.
52469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52470         GNULIB_FSYNC and HAVE_FSYNC.
52471         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52472         * MODULES.html.sh (posix_functions): Add fsync.
52473         * doc/posix-functions/fsync.texi: Mention the new module.
52474
52475 2008-10-02  Jim Meyering  <meyering@redhat.com>
52476
52477         fts.c: sync with similar code from coreutils' remove.c
52478         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52479         Guard also with "#if defined __linux__", since for now at least,
52480         this code is Linux-kernel-specific.
52481
52482 2008-10-02  Jim Meyering  <meyering@redhat.com>
52483
52484         fts: bug fixes
52485         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52486         Include <sys/vfs.h>, not <sys/statfs.h>.
52487
52488         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52489         Include <sys/vfs.h>, not <sys/statfs.h>.
52490
52491 2008-10-01  Bruno Haible  <bruno@clisp.org>
52492
52493         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52494         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52495         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52496         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52497         * doc/posix-functions/posix_spawnp.texi: Likewise.
52498         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52499         whether posix_spawn actually works.
52500         * m4/pipe.m4 (gl_PIPE): Likewise.
52501         * modules/execute (Files): Add m4/posix_spawn.m4.
52502         * modules/pipe (Files): Add m4/posix_spawn.m4.
52503         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52504
52505 2008-10-01  Jim Meyering  <meyering@redhat.com>
52506
52507         remove trailing spaces
52508         * NEWS: Likewise.
52509         * lib/poll.c (poll): Likewise.
52510         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52511         * lib/winsock.c (rpl_close): Likewise.
52512         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52513         * modules/yield: Likewise.
52514         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52515         * tests/test-sys_select.c (connect_to_socket): Likewise.
52516
52517         fts.c: adjust a new interface to be more generally useful
52518         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52519         (fts_build): Adjust caller.
52520
52521 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52522
52523         * modules/cond-tests: New file.
52524         * tests/test-cond.c: New file.
52525
52526 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52527             Bruno Haible  <bruno@clisp.org>
52528
52529         * modules/cond (Dependencies): Add errno, time.
52530         * lib/glthread/cond.h: Include <time.h>.
52531         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52532         across platforms.
52533
52534 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52535             Bruno Haible  <bruno@clisp.org>
52536
52537         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52538
52539 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52540             Bruno Haible  <bruno@clisp.org>
52541
52542         * modules/tls-tests (Depends-on): Add thread, yield.
52543         (configure.ac): Remove all checks.
52544         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52545         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52546         gl_thread_self): Remove definitions. Include glthread/thread.h and
52547         glthread/yield.h instead.
52548         (test_tls): Pass an additional NULL argument to gl_thread_join.
52549
52550 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52551             Bruno Haible  <bruno@clisp.org>
52552
52553         * modules/lock-tests (Depends-on): Add thread, yield.
52554         (configure.ac): Remove all checks.
52555         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52556         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52557         gl_thread_self): Remove definitions. Include glthread/thread.h and
52558         glthread/yield.h instead.
52559         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52560         additional NULL argument to gl_thread_join.
52561
52562 2008-09-30  Bruno Haible  <bruno@clisp.org>
52563
52564         Fix the Win32 implementation of the 'thread' module.
52565         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52566         pointer type.
52567         (gl_thread_self): Invoke gl_thread_self_func.
52568         (gl_thread_self_func): New declaration.
52569         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52570         (do_init_self_key, init_self_key): New functions.
52571         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52572         Remove some fields.
52573         (running_threads, running_lock): Remove variables.
52574         (get_current_thread_handle): New function.
52575         (gl_thread_self_func, wrapper_func, glthread_create_func,
52576         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52577         simplified.
52578
52579 2008-09-30  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52582         files.
52583
52584 2008-09-30  Jim Meyering  <meyering@redhat.com>
52585
52586         fts.m4: correct the test for statfs.f_type
52587         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52588         when checking for statfs.f_type.
52589
52590 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52591
52592         tests: avoid some compiler warnings
52593         * tests/test-memchr.c (main): Pass NULL indirectly.
52594         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52595
52596 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52597
52598         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52599         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52600         exactly specified dayshifts.
52601         (dayshift): New rule.
52602         (rel): Add dayshift.
52603         (relative_time_table) [tomorrow, yesterday, today, now]:
52604         Use tDAY_SHIFT in place of tDAY_UNIT.
52605         * tests/test-getdate.c: Add tests for now-disallowed countable
52606         dayshifts, e.g., "4 yesterday ago".
52607
52608 2008-09-29  Bruno Haible  <bruno@clisp.org>
52609
52610         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52611         * tests/test-posix_spawn1.in.sh: Renamed from
52612         tests/test-posix_spawn.in.sh.
52613         * tests/test-posix_spawn2.c: New file.
52614         * tests/test-posix_spawn2.in.sh: New file.
52615         * modules/posix_spawnp-tests (Files): Update.
52616         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52617
52618 2008-09-29  Bruno Haible  <bruno@clisp.org>
52619
52620         Propagate effects of putenv/setenv/unsetenv to child processes.
52621         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52622         * lib/pipe.c (create_pipe): Likewise.
52623
52624 2008-09-29  Bruno Haible  <bruno@clisp.org>
52625
52626         Enable use of shell scripts as executables in mingw.
52627         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52628         run the program as a shell script.
52629         * lib/pipe.c (create_pipe): Likewise.
52630         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52631         resulting array.
52632
52633 2008-09-29  Eric Blake  <ebb9@byu.net>
52634
52635         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52636
52637 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52638
52639         * doc/posix-functions/accept.texi: Update mingw problems.
52640         * doc/posix-functions/bind.texi: Update mingw problems.
52641         * doc/posix-functions/close.texi: Update mingw problems.
52642         * doc/posix-functions/connect.texi: Update mingw problems.
52643         * doc/posix-functions/getpeername.texi: Update mingw problems.
52644         * doc/posix-functions/getsockname.texi: Update mingw problems.
52645         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52646         * doc/posix-functions/ioctl.texi: Update mingw problems.
52647         * doc/posix-functions/listen.texi: Update mingw problems.
52648         * doc/posix-functions/recv.texi: Update mingw problems.
52649         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52650         * doc/posix-functions/select.texi: Update mingw problems.
52651         * doc/posix-functions/send.texi: Update mingw problems.
52652         * doc/posix-functions/sendto.texi: Update mingw problems.
52653         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52654         * doc/posix-functions/socket.texi: Update mingw problems.
52655
52656 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52657             Bruno Haible  <bruno@clisp.org>
52658
52659         * lib/sys_select.in.h: Include sys/time.h.
52660         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52661         * modules/sys_select: Depend on sys_time.
52662         * tests/test-sys_select.c: Test that sys/select.h defines struct
52663         timeval fully.
52664
52665 2008-09-29  Bruno Haible  <bruno@clisp.org>
52666
52667         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52668         * lib/sys_select.in.h: Likewise.
52669
52670 2008-09-29  Bruno Haible  <bruno@clisp.org>
52671
52672         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52673
52674 2008-09-29  Bruno Haible  <bruno@clisp.org>
52675
52676         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52677         Set LIBSOCKET instead of augmenting LIBS.
52678         * modules/sockets (Link): New section.
52679         * modules/sockets-tests (test_sockets_LDADD): New variable.
52680         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52681         * modules/poll-tests (test_poll_LDADD): New variable.
52682         * NEWS: Document the change.
52683
52684 2008-09-29  Bruno Haible  <bruno@clisp.org>
52685
52686         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52687         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52688         ARPA_INET_H directly.
52689         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52690
52691 2008-09-28  Bruno Haible  <bruno@clisp.org>
52692
52693         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52694         from gl_HEADER_SYS_SOCKET.
52695         (gl_HEADER_SYS_SOCKET): Invoke it.
52696         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52697
52698 2008-09-28  Bruno Haible  <bruno@clisp.org>
52699
52700         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52701         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52702         Needed on OSF/1 4.0.
52703
52704 2008-09-28  Bruno Haible  <bruno@clisp.org>
52705
52706         Override open more carefully.
52707         * lib/open.c (orig_open): New function.
52708         (rpl_open): Use orig_open instead of open.
52709         * lib/fcntl.in.h: Add special invocation convention.
52710         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52711         (gl_FUNC_OPEN): Invoke it.
52712
52713         Override freopen more carefully.
52714         * lib/freopen.c (orig_freopen): New function.
52715         (rpl_freopen): Use orig_freopen instead of freopen.
52716         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52717         (gl_FUNC_FREOPEN): Invoke it.
52718
52719         Override fopen more carefully.
52720         * lib/fopen.c (orig_fopen): New function.
52721         (rpl_fopen): Use orig_fopen instead of fopen.
52722         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52723         (gl_FUNC_FOPEN): Invoke it.
52724         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52725
52726 2008-09-28  Bruno Haible  <bruno@clisp.org>
52727
52728         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52729         SIGPIPE.
52730
52731 2008-09-28  Bruno Haible  <bruno@clisp.org>
52732
52733         * tests/test-sigaction.c (handler, main): Disable the check whether
52734         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52735         glibc systems with LinuxThreads.
52736
52737 2008-09-28  Bruno Haible  <bruno@clisp.org>
52738
52739         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52740
52741         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52742         with AIX xlc.
52743         * lib/fcntl.in.h (open): Likewise.
52744         Reported by Rainer Tammer <tammer@tammer.net>.
52745
52746 2008-09-28  Bruno Haible  <bruno@clisp.org>
52747
52748         * modules/posix_spawnp-tests: New file.
52749         * tests/test-posix_spawn.c: New file.
52750         * tests/test-posix_spawn.in.sh: New file.
52751
52752         New module 'posix_spawnp'.
52753         * modules/posix_spawnp: New file.
52754         * lib/spawnp.c: New file, from GNU libc with modifications.
52755         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52756
52757         New module 'posix_spawn'.
52758         * modules/posix_spawn: New file.
52759         * lib/spawn.c: New file, from GNU libc with modifications.
52760         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52761
52762         New module 'posix_spawnattr_destroy'.
52763         * modules/posix_spawnattr_destroy: New file.
52764         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52765         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52766         module.
52767
52768         New module 'posix_spawnattr_setsigmask'.
52769         * modules/posix_spawnattr_setsigmask: New file.
52770         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52771         modifications.
52772         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52773         new module.
52774
52775         New module 'posix_spawnattr_getsigmask'.
52776         * modules/posix_spawnattr_getsigmask: New file.
52777         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52778         modifications.
52779         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52780         new module.
52781
52782         New module 'posix_spawnattr_setsigdefault'.
52783         * modules/posix_spawnattr_setsigdefault: New file.
52784         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52785         modifications.
52786         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52787         new module.
52788
52789         New module 'posix_spawnattr_getsigdefault'.
52790         * modules/posix_spawnattr_getsigdefault: New file.
52791         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52792         modifications.
52793         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52794         new module.
52795
52796         New module 'posix_spawnattr_setschedpolicy'.
52797         * modules/posix_spawnattr_setschedpolicy: New file.
52798         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52799         modifications.
52800         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52801         new module.
52802
52803         New module 'posix_spawnattr_getschedpolicy'.
52804         * modules/posix_spawnattr_getschedpolicy: New file.
52805         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52806         modifications.
52807         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52808         new module.
52809
52810         New module 'posix_spawnattr_setschedparam'.
52811         * modules/posix_spawnattr_setschedparam: New file.
52812         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52813         modifications.
52814         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52815         new module.
52816
52817         New module 'posix_spawnattr_getschedparam'.
52818         * modules/posix_spawnattr_getschedparam: New file.
52819         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52820         modifications.
52821         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52822         new module.
52823
52824         New module 'posix_spawnattr_setpgroup'.
52825         * modules/posix_spawnattr_setpgroup: New file.
52826         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52827         modifications.
52828         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52829         module.
52830
52831         New module 'posix_spawnattr_getpgroup'.
52832         * modules/posix_spawnattr_getpgroup: New file.
52833         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52834         modifications.
52835         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52836         module.
52837
52838         New module 'posix_spawnattr_setflags'.
52839         * modules/posix_spawnattr_setflags: New file.
52840         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52841         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52842         module.
52843
52844         New module 'posix_spawnattr_getflags'.
52845         * modules/posix_spawnattr_getflags: New file.
52846         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52847         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52848         module.
52849
52850         New module 'posix_spawnattr_init'.
52851         * modules/posix_spawnattr_init: New file.
52852         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52853         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52854         module.
52855
52856         New module 'posix_spawn_file_actions_destroy'.
52857         * modules/posix_spawn_file_actions_destroy: New file.
52858         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52859         modifications.
52860         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52861         the new module.
52862
52863         New module 'posix_spawn_file_actions_addopen'.
52864         * modules/posix_spawn_file_actions_addopen: New file.
52865         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52866         modifications.
52867         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52868         the new module.
52869
52870         New module 'posix_spawn_file_actions_adddup2'.
52871         * modules/posix_spawn_file_actions_adddup2: New file.
52872         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52873         modifications.
52874         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52875         the new module.
52876
52877         New module 'posix_spawn_file_actions_addclose'.
52878         * modules/posix_spawn_file_actions_addclose: New file.
52879         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52880         modifications.
52881         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52882         the new module.
52883
52884         New module 'posix_spawn_file_actions_init'.
52885         * modules/posix_spawn_file_actions_init: New file.
52886         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52887         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52888         new module.
52889
52890         New module 'posix_spawn-internal'.
52891         * modules/posix_spawn-internal: New file.
52892         * lib/spawn_int.h: New file, from GNU libc with modifications.
52893         * lib/spawni.c: New file, from GNU libc with modifications.
52894         * m4/posix_spawn.m4: New file.
52895
52896         New module 'spawn'.
52897         * modules/spawn: New file.
52898         * lib/spawn.in.h: New file, from GNU libc with modifications.
52899         * m4/spawn_h.m4: New file.
52900         * doc/posix-headers/spawn.texi: Mention the new module.
52901
52902 2008-09-28  Bruno Haible  <bruno@clisp.org>
52903
52904         * modules/sched-tests: New file.
52905         * tests/test-sched.c: New file.
52906
52907         New module 'sched'.
52908         * modules/sched: New file.
52909         * lib/sched.in.h: New file.
52910         * m4/sched_h.m4: New file.
52911         * doc/posix-headers/sched.texi: Mention the new module.
52912
52913 2008-09-27  Eric Blake  <ebb9@byu.net>
52914
52915         Fix previous patch, and tweak references to $0.
52916         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52917         (func_version, func_gnulib_dir): Don't call this program
52918         gnulib-tool.
52919         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52920         with using $0 in function.
52921         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52922         (func_fatal_error): Reuse the name the user invoked us with.
52923
52924 2008-09-27  Bruno Haible  <bruno@clisp.org>
52925
52926         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52927         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52928         (gl_ICONV_H): Not here.
52929         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52930         instead of assigning ICONV_H directly.
52931
52932         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52934         WCHAR_H directly.
52935
52936 2008-09-27  Bruno Haible  <bruno@clisp.org>
52937
52938         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52939         * modules/arpa_inet (Depends-on): Add link-warning.
52940         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52941         * modules/unistd (Makefile.am): Likewise.
52942
52943 2008-09-26  Bruno Haible  <bruno@clisp.org>
52944
52945         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52946         variables.
52947         (func_version): Essentially copied from gnulib-tool.
52948         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52949         func_readlink): Copied from gnulib-tool.
52950
52951 2008-09-26  Bruno Haible  <bruno@clisp.org>
52952
52953         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52954         invoking git-version-gen.
52955
52956 2008-09-26  Bruno Haible  <bruno@clisp.org>
52957
52958         * posix-modules: Update to directory names changed on 2008-01-19.
52959         Remove commas in output before splitting into words. No more need to
52960         avoid 'ftruncate' since 2007-02-19.
52961
52962 2008-09-26  Bruno Haible  <bruno@clisp.org>
52963
52964         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52965
52966 2008-09-26  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52969         * modules/fwriteerror (Depends-on): Add errno.
52970
52971 2008-09-26  Bruno Haible  <bruno@clisp.org>
52972
52973         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52974         * tests/test-vc-list-files-cvs.sh: Likewise.
52975
52976 2008-09-26  Bruno Haible  <bruno@clisp.org>
52977
52978         * doc/posix-headers/sys_resource.texi: Reorder items.
52979
52980 2008-09-26  Jim Meyering  <meyering@redhat.com>
52981
52982         fts: tweak inode comparison function
52983         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52984         inode numbers, as documented.
52985
52986         fts: sort dirent entries on inode number before traversing
52987         This avoids a quadratic, seek-related performance penalty when
52988         operating on a directory containing many entries (measurable at 10k;
52989         3.5 hours at 2 million entries with a cold cache) on certain types
52990         of file systems, including ext3 and ext4, but not tmpfs.
52991         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52992         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52993         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52994         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52995         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52996         (fts_build): Set the stat.st_ino member from D_INO.
52997         If it is likely to be useful, sort dirent entries on inode number.
52998
52999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53000         and the struct statfs.f_type member.
53001         * modules/fts (Depends-on): Add d-ino.
53002
53003 2008-09-26  Bruno Haible  <bruno@clisp.org>
53004
53005         * modules/sigpipe-die (Depends-on): Add sigpipe.
53006
53007         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53008         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53009         and GNULIB_STDIO_H_SIGPIPE are set.
53010         * lib/stdio-write.c: New file.
53011         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53012         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53013         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53014         REPLACE_STDIO_WRITE_FUNCS.
53015         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53016         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53017         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53018         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53019         * modules/stdio (Files): Add lib/stdio-write.c.
53020         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53021         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53022         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53023         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53024         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53025         REPLACE_FPRINTF_POSIX.
53026         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53027         REPLACE_PRINTF_POSIX.
53028         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53029         REPLACE_VFPRINTF_POSIX.
53030         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53031         REPLACE_VPRINTF_POSIX.
53032         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53033         SIGPIPE issue.
53034         * doc/posix-functions/fputc.texi: Likewise.
53035         * doc/posix-functions/fputs.texi: Likewise.
53036         * doc/posix-functions/fwrite.texi: Likewise.
53037         * doc/posix-functions/printf.texi: Likewise.
53038         * doc/posix-functions/putc.texi: Likewise.
53039         * doc/posix-functions/putchar.texi: Likewise.
53040         * doc/posix-functions/puts.texi: Likewise.
53041         * doc/posix-functions/vfprintf.texi: Likewise.
53042         * doc/posix-functions/vprintf.texi: Likewise.
53043
53044         * modules/safe-write (Depends-on): Add write.
53045
53046         * modules/sigpipe-tests: New file.
53047         * tests/test-sigpipe.c: New file.
53048         * tests/test-sigpipe.sh: New file.
53049
53050         * modules/write: New file.
53051         * lib/unistd.in.h: Include <sys/types.h>.
53052         (write): New declaration.
53053         * lib/write.c: New file.
53054         * m4/write.m4: New file.
53055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53056         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53057         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53058         GNULIB_WRITE, REPLACE_WRITE.
53059         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53060         and the SIGPIPE issue.
53061
53062         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53063         (raise): New declaration.
53064         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53065         (ext_signal): New function.
53066         (rpl_raise): New function.
53067         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53068         GNULIB_SIGNAL_H_SIGPIPE.
53069         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53070         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53071
53072         * modules/sigpipe: New file.
53073         * m4/sigpipe.m4: New file.
53074
53075 2008-09-25  Derek Price  <derek@ximbiot.com>
53076             Bruno Haible  <bruno@clisp.org>
53077
53078         * gnulib-tool (func_import): Report all license incompatibilities, not
53079         just the first one.
53080
53081 2008-09-25  Bruno Haible  <bruno@clisp.org>
53082
53083         * gnulib-tool (func_import): When computing the edits, consider not
53084         only the Makefile.ams that exist but also those that will be generated.
53085
53086 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53087
53088         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53089         fixes gnulib-tool --test warning about duplicate dependency.
53090
53091 2008-09-25  Bruno Haible  <bruno@clisp.org>
53092
53093         * gnulib-tool: Don't ask the user to perform edits in the generated
53094         Makefile.ams.
53095         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53096         apply to the Makefile.am being generated.
53097         (func_emit_tests_Makefile_am): Execute edits that apply to the
53098         Makefile.am being generated.
53099         (func_import): Setup list of Makefile.am edits before emitting the
53100         Makefile.ams, not at the end.
53101         (func_create_testdir): Update.
53102         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53103
53104 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53105
53106         * gnulib-tool (func_import): Store the --tests-base option in the
53107         comment in gnulib-cache.m4.
53108
53109 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53110
53111         * NEWS: Document increased portability that sys_select now provides.
53112
53113         * lib/sys_select.in.h: Install select wrapper.
53114         * lib/sys_socket.in.h: Use more descriptive name when there is no
53115         select wrapper.
53116         * lib/winsock-select.c: New.
53117         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53118         Require gl_HEADER_SYS_SOCKET.
53119         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53120         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53121         * tests/test-sys_select.c: Add functional tests.
53122
53123 2008-09-24  Eric Blake  <ebb9@byu.net>
53124
53125         open, fopen: close fd leak in last patch
53126         * lib/open.c (rpl_open): Close fd before returning error.
53127         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53128         * doc/posix-functions/open.texi (open): Document that Irix also
53129         has the bug.
53130         * doc/posix-functions/fopen.texi (fopen): Likewise.
53131         Reported by Paolo Bonzini.
53132
53133 2008-09-24  Bruno Haible  <bruno@clisp.org>
53134
53135         Ensure that a filename ending in a slash cannot be used to access a
53136         non-directory.
53137         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53138         to check whether it's really a directory.
53139         * lib/fopen.c: Include fcntl.h, unistd.h.
53140         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53141         and fdopen().
53142         * modules/fopen (Depends-on): Add unistd.
53143         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53144         * tests/test-fopen.c (main): Likewise.
53145         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53146         * doc/posix-functions/fopen.texi: Likewise.
53147         Reported by Eric Blake.
53148
53149 2008-09-23  Eric Blake  <ebb9@byu.net>
53150
53151         c-stack: avoid compiler optimizations when provoking overflow
53152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53153         recursion harder to optimize, to ensure a stack overflow occurs.
53154         * tests/test-c-stack.c (recurse): Likewise.
53155         Borrowed from libsigsegv.
53156
53157         c-stack: work around Irix sigaltstack bug
53158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53159         whether sigaltstack uses wrong end of stack_t (copied in part from
53160         libsigsegv).
53161         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53162         Irix bug, without requiring an over-allocation.
53163         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53164         bug.
53165
53166         fopen: document mingw bug on directories
53167         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53168         not allowing a stream visiting a directory, even though reading
53169         from such a stream is not portable.
53170
53171 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53172
53173         * lib/poll.c: Rewrite.
53174         * modules/poll: Depend on alloca.
53175
53176 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53177
53178         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53179         instead define prototypes for a full set of wrappers.  Ensure
53180         that Cygwin does not use the compatibility code, which is only
53181         for MinGW.
53182         * lib/winsock.c: New.
53183         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53184         * modules/sys_socket: Add lib/winsock.c.
53185
53186         * modules/poll-tests: Add errno and perror.
53187         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53188
53189 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53190
53191         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53192
53193 2008-09-23  Bruno Haible  <bruno@clisp.org>
53194
53195         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53196         * doc/glibc-functions/*: Likewise.
53197
53198 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53199
53200         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53201         success.
53202
53203 2008-09-22  Eric Blake  <ebb9@byu.net>
53204             Bruno Haible  <bruno@clisp.org>
53205
53206         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53207         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53208         supply %A but mishandle pseudo-NaN.
53209         Reported by Simon Josefsson.
53210
53211 2008-09-21  Bruno Haible  <bruno@clisp.org>
53212
53213         * tests/test-lock.c (main): Tweak skip message.
53214         * tests/test-tls.c (main): Likewise.
53215
53216 2008-09-21  Bruno Haible  <bruno@clisp.org>
53217
53218         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53219         whether 'struct sigaction' has sa_sigaction here...
53220         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53221         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53222
53223 2008-09-21  Bruno Haible  <bruno@clisp.org>
53224
53225         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53226         section.
53227         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53228         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53229         the new section.
53230         (Support for obsolete systems lacking POSIX:2001): New section.
53231         (String handling <string.h>): Move strdup to the new section.
53232         Suggested by Simon Josefsson and Paolo Bonzini.
53233
53234 2008-09-21  Bruno Haible  <bruno@clisp.org>
53235
53236         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53237         exponents in %e and %g results on 'long double'. Needed for mingw's
53238         improved *printf functions.
53239         * tests/test-vasprintf-posix.c (test_function): Likewise.
53240         * tests/test-snprintf-posix.h (test_function): Likewise.
53241         * tests/test-sprintf-posix.h (test_function): Likewise.
53242         Reported by Eric Blake.
53243
53244 2008-09-21  Bruno Haible  <bruno@clisp.org>
53245
53246         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53247         * tests/test-sprintf-posix.h (test_function): Likewise.
53248
53249 2008-09-21  Bruno Haible  <bruno@clisp.org>
53250
53251         * modules/getpass (Depends-on): Add strdup-posix.
53252
53253         New module 'strdup-posix'.
53254         * modules/strdup-posix: New file.
53255         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53256         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53258         REPLACE_STRDUP.
53259         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53260         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53262         strdup-posix.
53263
53264         * modules/strdup (Depends-on): Remove malloc-posix.
53265
53266 2008-09-20  Bruno Haible  <bruno@clisp.org>
53267
53268         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53269         Wildenhues.
53270
53271 2008-09-20  Bruno Haible  <bruno@clisp.org>
53272
53273         Ensure that wint_t gets defined on IRIX 5.3.
53274         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53275         * lib/wctype.in.h (wint_t): Likewise.
53276         (__wctype_wint_t): Remove type.
53277         (isw*): Use wint_t instead of __wctype_wint_t.
53278         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53279         * modules/wchar (Files): Add m4/wint_t.m4.
53280         (Makefile.am): Substitute HAVE_WINT_T.
53281         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53282         * tests/test-wctype.c: Check that wint_t is defined.
53283         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53284         * doc/posix-headers/wctype.texi: Likewise.
53285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53286
53287 2008-09-18  Bruno Haible  <bruno@clisp.org>
53288
53289         * gnulib-tool (func_exit): Update comment.
53290
53291 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53292
53293         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53294         assumes strdup exists and does not depend on strdup to return
53295         ENOMEM on out of memory conditions.
53296
53297 2008-09-18  Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
53300         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53301         digits for the exponent.
53302
53303 2008-09-18  Jim Meyering  <meyering@redhat.com>
53304             Bruno Haible  <bruno@clisp.org>
53305
53306         * lib/vasnprintf.c (decimal_point_char): Define also if
53307         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53308
53309 2008-09-16  Bruno Haible  <bruno@clisp.org>
53310         and Eric Blake  <ebb9@byu.net>
53311
53312         vasnprintf: support Irix 5.3
53313         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53314         that mishandle long double infinity.
53315         Reported by Tom G. Christensen.
53316
53317 2008-09-16  Bruno Haible  <bruno@clisp.org>
53318
53319         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53320         Solaris 9.
53321         * doc/glibc-functions/alphasort.texi: Likewise.
53322         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53323
53324 2008-09-16  Jim Meyering  <meyering@redhat.com>
53325
53326         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53327         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53328         a umask modification leak out of a subshell.  Otherwise, the
53329         opensolaris /bin/sh would be accepted and thus cause unwarranted
53330         failures in the coreutils test suite.
53331
53332 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53333
53334         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53335         to succeed.
53336
53337 2008-09-16  Jim Meyering  <meyering@redhat.com>
53338
53339         avoid spurious test failure when library is built without ACL support
53340         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53341         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53342         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53343         * tests/test-copy-acl.sh: Likewise.
53344
53345 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53346
53347         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53348         based on character occurrence counts.
53349
53350 2008-09-15  Eric Blake  <ebb9@byu.net>
53351
53352         tests: avoid some compiler warnings
53353         * tests/test-memchr.c (main): Pass NULL indirectly.
53354         * tests/test-closein.c (main): Avoid unused variable.
53355
53356 2008-09-15  Bruno Haible  <bruno@clisp.org>
53357
53358         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53359         are missing on OpenBSD 4.0 individually.
53360         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53361
53362 2008-09-15  Bruno Haible  <bruno@clisp.org>
53363
53364         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53365         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53366         * doc/posix-functions/perror.texi: Likewise.
53367         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53368         is missing.
53369         Reported by Eric Blake.
53370
53371         * lib/errno.in.h: Use replacement values >= 2000.
53372         Reported by Eric Blake.
53373
53374 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53375
53376         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53377         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53378         limit.
53379         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53380         compareseq was aborted.
53381
53382 2008-09-14  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53385         yvec_edit_count.
53386         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53387         (fstrcmp_bounded): Simplify result computation accordingly.
53388
53389 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53390
53391         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53392         (fstrcmp): Define in terms of fstrcmp_bounded.
53393         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53394         lower_bound argument.
53395         Return quickly if the result is certainly < lower_bound.
53396         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53397
53398 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53399
53400         * lib/diffseq.h (EARLY_ABORT): New macro.
53401         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53402         evaluates to true.
53403
53404 2008-09-14  Bruno Haible  <bruno@clisp.org>
53405
53406         * modules/perror-tests: New file.
53407         * tests/test-perror.sh: New file.
53408         * tests/test-perror.c: New file.
53409
53410         New module 'perror'.
53411         * lib/stdio.in.h (perror): New declaration.
53412         * lib/perror.c: New file.
53413         * m4/perror.m4: New file.
53414         * modules/perror: New file.
53415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53416         * doc/posix-functions/perror.texi: Mention the perror module.
53417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53418         REPLACE_PERROR.
53419         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53420         REPLACE_PERROR.
53421
53422 2008-09-14  Bruno Haible  <bruno@clisp.org>
53423
53424         * modules/stdio (Makefile.am): Reorder to match the order in
53425         lib/stdio.in.h.
53426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53427
53428 2008-09-13  Bruno Haible  <bruno@clisp.org>
53429
53430         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53431
53432 2008-09-13  Bruno Haible  <bruno@clisp.org>
53433
53434         Extend strerror to cover the added errno values.
53435         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53436         (rpl_strerror): Provide error messages for the added errno values and
53437         for the WSA* values.
53438         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53439         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53440         strerror.
53441         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53442         * modules/strerror (Depends-on): Add errno.
53443         * doc/posix-functions/strerror.texi: Document the change.
53444         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53445         and EOVERFLOW.
53446
53447 2008-09-13  Bruno Haible  <bruno@clisp.org>
53448
53449         * modules/EOVERFLOW: Remove file.
53450         * m4/eoverflow.m4: Remove file.
53451         * modules/EOVERFLOW-tests: Remove file.
53452         * tests/test-EOVERFLOW.c: Remove file.
53453         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53454         * modules/ftell (Depends-on): Likewise.
53455         * modules/getdelim (Depends-on): Likewise.
53456         * modules/getugroups (Depends-on): Likewise.
53457         * modules/poll (Depends-on): Likewise.
53458         * modules/snprintf (Depends-on): Likewise.
53459         * modules/sprintf-posix (Depends-on): Likewise.
53460         * modules/vasnprintf (Depends-on): Likewise.
53461         * modules/vasprintf (Depends-on): Likewise.
53462         * modules/vfprintf-posix (Depends-on): Likewise.
53463         * modules/vsnprintf (Depends-on): Likewise.
53464         * modules/vsprintf-posix (Depends-on): Likewise.
53465         * modules/xvasprintf (Depends-on): Likewise.
53466         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53467         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53468         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53469         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53470         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53471         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53472         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53473         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53474         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53475         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53476         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53477         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53478         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53479         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53480         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53481         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53482         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53483         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53484         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53485         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53486         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53487         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53488         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53489         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53490         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53492         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53493         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53494         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53495         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53496         * MODULES.html.sh: Remove EOVERFLOW.
53497         * NEWS: Mention the change.
53498
53499 2008-09-13  Bruno Haible  <bruno@clisp.org>
53500
53501         * modules/errno-tests: New file.
53502         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53503
53504         * lib/errno.in.h: New file.
53505         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53506         * modules/errno: New file.
53507         * doc/posix-headers/errno.texi: Update documentation.
53508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53509
53510 2008-09-13  Bruno Haible  <bruno@clisp.org>
53511
53512         * tests/test-poll.c: Use #if for native Windows, rather than testing
53513         __MSVCRT__.
53514
53515 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53516             Bruno Haible  <bruno@clisp.org>
53517
53518         * lib/glob.c: Don't include <pwd.h> on native Windows.
53519         (WINDOWS32): New macro.
53520         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53521
53522 2008-09-13  Bruno Haible  <bruno@clisp.org>
53523
53524         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53525         (ETIMEDOUT): Remove macro.
53526         (glthread_cond_timedwait_multithreaded): New declaration.
53527         (glthread_cond_timedwait): Use it.
53528         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53529         (glthread_cond_timedwait_multithreaded): New function.
53530
53531 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53532
53533         * modules/poll-tests: Do not check for io.h.
53534         * tests/test-poll.c: Check for __MSVCRT__ instead.
53535
53536 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53537
53538         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53539         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53540         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53541
53542 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53543
53544         * modules/poll-tests: New.
53545         * tests/test-poll.c: New.
53546
53547 2008-09-12  Eric Blake  <ebb9@byu.net>
53548
53549         frexp: test for NetBSD failure on -0.0
53550         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53551         not all, bugs from NetBSD 3.0 have been fixed.
53552         * doc/posix-functions/frexp.texi (frexp): Document bug.
53553         Reported by Thomas Klausner.
53554
53555         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53556         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53557         literal -0.0.
53558         Reported by Jonathan C. Patschke <jp@centtech.com>.
53559
53560 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53561
53562         * lib/glthread/cond.h: Use dummy implementation also if
53563         USE_WIN32_THREADS.
53564
53565 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53566
53567         * modules/fnmatch-posix (License): Change to LGPLv2+.
53568         * modules/fnmatch-gnu (License): Likewise.
53569
53570 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53571
53572         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53573
53574 2008-09-11  Jim Meyering  <meyering@redhat.com>
53575
53576         * users.txt: Add gtk-vnc.
53577
53578 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53579
53580         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53581         rotate amounts.
53582
53583         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53584         required for 16-bit and 8-bit rotates.
53585         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53586         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53587         UINT8_MAX instead of hard-coded constants.
53588         Suggested by Paul Eggert.
53589
53590 2008-09-07  Bruno Haible  <bruno@clisp.org>
53591
53592         * tests/test-striconveh.c (main): Check behaviour when converting from
53593         UTF-7.
53594
53595         Make striconveh work better with stateful encodings.
53596         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53597         that iconv does not increment the inptr when returning -1/EINVAL.
53598
53599 2008-09-07  Bruno Haible  <bruno@clisp.org>
53600
53601         * build-aux/config.rpath: Update according to libtool-2.2.6.
53602         * build-aux/config.libpath: Likewise.
53603
53604 2008-09-06  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53607         * lib/freadptr.c (freadptr): Likewise.
53608         * lib/freadseek.c (freadptrinc): Likewise.
53609         Reported by Simon Josefsson.
53610
53611 2008-09-06  Bruno Haible  <bruno@clisp.org>
53612
53613         * modules/freadptr (License): Change to LGPLv2+.
53614         * modules/freadseek (License): Likewise.
53615         Suggested by Eric Blake.
53616
53617         * modules/memchr2 (License): Change to LGPLv2+.
53618         Approved by Eric Blake.
53619
53620 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53621             Bruno Haible  <bruno@clisp.org>
53622
53623         Make gnulib-tool work with native 'sed' on AIX.
53624         * gnulib-tool (sed_noop): New variable.
53625         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53626         func_add_or_update, func_create_testdir): Use it to initialize sed
53627         script variables.
53628         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53629
53630 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53631             Bruno Haible  <bruno@clisp.org>
53632
53633         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53634         also works after #include directives.
53635
53636 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53637
53638         getdate.y: reject an out-of-range timezone value
53639         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53640         the range [-24...+24].  When specified with only one or two digits,
53641         * tests/test-getdate.c: Tests for the fix.
53642         * doc/getdate.texi: Document this change.
53643
53644 2008-09-03  Bruno Haible  <bruno@clisp.org>
53645
53646         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53647
53648 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53649
53650         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53651         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53652         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53653         Blake <ebb9@byu.net>.
53654
53655         * tests/test-bitrotate.c: Add more test vectors.
53656
53657 2008-09-02  Eric Blake  <ebb9@byu.net>
53658
53659         vasnprintf-posix: handle large precision via %.*d
53660         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53661         when handling it ourselves.
53662         * tests/test-vasnprintf-posix.c (test_function): Add test.
53663         * tests/test-snprintf-posix.h (test_function): Likewise.
53664         * tests/test-sprintf-posix.h (test_function): Likewise.
53665         * tests/test-vasprintf-posix.c (test_function): Likewise.
53666         Reported by Alain Guibert.
53667
53668 2008-09-01  Eric Blake  <ebb9@byu.net>
53669
53670         c-stack: make configure-time check more robust
53671         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53672         successful sigaction call.
53673         Reported by Tom G. Christensen.
53674
53675 2008-09-01  Bruno Haible  <bruno@clisp.org>
53676
53677         New module 'findprog-lgpl'.
53678         * modules/findprog-lgpl: New file.
53679         * lib/findprog-lgpl.c: New file.
53680         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53681         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53682         to decide whether to use strdup or xstrdup, concatenated_filename or
53683         xconcatenated_filename.
53684
53685 2008-09-01  Bruno Haible  <bruno@clisp.org>
53686
53687         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53688         'xconcat-filename' (GPL).
53689         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53690         (License): Change to LGPLv2+.
53691         * modules/xconcat-filename: New file.
53692         * lib/concat-filename.h (concatenated_filename): Change specification.
53693         (xconcatenated_filename): New declaration.
53694         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53695         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53696         memory situations.
53697         * lib/xconcat-filename.c: New file.
53698         * NEWS: Mention the change.
53699         * lib/findprog.c: Include concat-filename.h, not filename.h.
53700         (find_in_path): Use xconcatenated_filename instead of
53701         concatenated_filename.
53702         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53703         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53704         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53705         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53706         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53707         instead of concatenated_filename.
53708         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53709         (execute_java_class): Use xconcatenated_filename instead of
53710         concatenated_filename.
53711         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53712         * modules/javacomp (Depends-on): Likewise.
53713         * modules/javaexec (Depends-on): Likewise.
53714
53715 2008-09-01  Bruno Haible  <bruno@clisp.org>
53716
53717         Split module 'filename' into 'filename' and 'concat-filename'.
53718         * modules/filename: Keep only lib/filename.h.
53719         (License): Change to LGPLv2+.
53720         * modules/concat-filename: New file, extracted from modules/filename.
53721         * lib/filename.h (concatenated_filename): Remove declaration.
53722         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53723         * lib/concat-filename.c: Include concat-filename.h.
53724         * NEWS: Mention the change.
53725
53726 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53727
53728         * lib/bitrotate.h (rotl8, rotr8): Add.
53729
53730         * modules/bitrotate (configure.ac): Need
53731         AC_REQUIRE([AC_C_INLINE]).
53732         (Description): Mention stdint.h.  Reported by Bruno Haible
53733         <bruno@clisp.org>.
53734
53735         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53736         Paolo Bonzini <bonzini@gnu.org>.
53737
53738 2008-08-31  Bruno Haible  <bruno@clisp.org>
53739
53740         Assume Solaris specific bi-arch conventions on Solaris systems.
53741         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53742         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53743         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53744         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53745         like acl_libdirstem.
53746         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53747         acl_libdirstem.
53748         * NEWS: Mention the change.
53749         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53750
53751 2008-08-31  Jim Meyering  <meyering@redhat.com>
53752
53753         * lib/strftime.h: Add comments describing the two added arguments.
53754
53755         remove duplicate #include directives
53756         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53757         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53758
53759 2008-08-31  Bruno Haible  <bruno@clisp.org>
53760
53761         New module 'sigpipe-die'.
53762         * modules/sigpipe-die: New file.
53763         * lib/sigpipe-die.h: New file.
53764         * lib/sigpipe-die.c: New file.
53765         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53766
53767 2008-08-31  Bruno Haible  <bruno@clisp.org>
53768
53769         Don't override previously installed signal handlers.
53770         * lib/fatal-signal.c (saved_sigactions): New variable.
53771         (uninstall_handlers): Reset the signal to the saved handler, not
53772         to SIG_DFL (except when ignored).
53773         (install_handlers): Save the previous handlers.
53774
53775 2008-08-30  Bruno Haible  <bruno@clisp.org>
53776
53777         * gnulib-tool (func_reset_sigpipe): New function.
53778         (func_get_automake_snippet, func_modules_transitive_closure,
53779         func_import): Invoke it before a join command that reads from stdin,
53780         to avoid "echo: write error: Broken pipe" error messages on stderr.
53781         Reported by Sam Steingold <sds@gnu.org>.
53782
53783 2008-08-30  Bruno Haible  <bruno@clisp.org>
53784
53785         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53786         Code copied from m4/open.m4.
53787         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53788         access and the filename ends in a slash. Code copied from lib/open.c.
53789         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53790         * tests/test-fopen.c (main): Check against bug with trailing slash.
53791
53792 2008-08-29  Bruno Haible  <bruno@clisp.org>
53793
53794         Avoid some "gcc -pedantic" warnings.
53795         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53796         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53797         * lib/dirent.in.h: Likewise.
53798         * lib/fcntl.in.h: Likewise.
53799         * lib/float.in.h: Likewise.
53800         * lib/iconv.in.h: Likewise.
53801         * lib/inttypes.in.h: Likewise.
53802         * lib/locale.in.h: Likewise.
53803         * lib/math.in.h: Likewise.
53804         * lib/netinet_in.in.h: Likewise.
53805         * lib/search.in.h: Likewise.
53806         * lib/signal.in.h: Likewise.
53807         * lib/stdarg.in.h: Likewise.
53808         * lib/stdint.in.h: Likewise.
53809         * lib/stdio.in.h: Likewise.
53810         * lib/stdlib.in.h: Likewise.
53811         * lib/string.in.h: Likewise.
53812         * lib/strings.in.h: Likewise.
53813         * lib/sys_select.in.h: Likewise.
53814         * lib/sys_socket.in.h: Likewise.
53815         * lib/sys_stat.in.h: Likewise.
53816         * lib/sys_time.in.h: Likewise.
53817         * lib/sysexits.in.h: Likewise.
53818         * lib/time.in.h: Likewise.
53819         * lib/unistd.in.h: Likewise.
53820         * lib/wchar.in.h: Likewise.
53821         * lib/wctype.in.h: Likewise.
53822         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53823         * modules/fchdir (Makefile.am): Likewise.
53824         * modules/fcntl (Makefile.am): Likewise.
53825         * modules/float (Makefile.am): Likewise.
53826         * modules/iconv_open (Makefile.am): Likewise.
53827         * modules/inttypes (Makefile.am): Likewise.
53828         * modules/locale (Makefile.am): Likewise.
53829         * modules/math (Makefile.am): Likewise.
53830         * modules/netinet_in (Makefile.am): Likewise.
53831         * modules/search (Makefile.am): Likewise.
53832         * modules/signal (Makefile.am): Likewise.
53833         * modules/stdarg (Makefile.am): Likewise.
53834         * modules/stdint (Makefile.am): Likewise.
53835         * modules/stdio (Makefile.am): Likewise.
53836         * modules/stdlib (Makefile.am): Likewise.
53837         * modules/string (Makefile.am): Likewise.
53838         * modules/strings (Makefile.am): Likewise.
53839         * modules/sys_select (Makefile.am): Likewise.
53840         * modules/sys_socket (Makefile.am): Likewise.
53841         * modules/sys_stat (Makefile.am): Likewise.
53842         * modules/sys_time (Makefile.am): Likewise.
53843         * modules/sysexits (Makefile.am): Likewise.
53844         * modules/time (Makefile.am): Likewise.
53845         * modules/unistd (Makefile.am): Likewise.
53846         * modules/wchar (Makefile.am): Likewise.
53847         * modules/wctype (Makefile.am): Likewise.
53848         Reported by Reuben Thomas <rrt@sc3d.org>.
53849
53850 2008-08-29  Bruno Haible  <bruno@clisp.org>
53851
53852         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53853         any more.
53854
53855 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53856
53857         * MODULES.html.sh (Misc): Add bitrotate.
53858
53859         * modules/bitrotate: New file.
53860
53861         * lib/bitrotate.h: New file.
53862
53863         * modules/bitrotate-tests: New file.
53864
53865         * tests/test-bitrotate.c: New file.
53866
53867         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53868         on the bitrotate module.
53869
53870         * lib/arctwo.c: Use new bitrotate module.
53871
53872 2008-08-29  Jim Meyering  <meyering@redhat.com>
53873
53874         bootstrap: merge changes from coreutils
53875         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53876         of copied files.  Remove a kludge, now that this is fixed.
53877         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53878         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53879         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53880
53881 2008-08-29  Bruno Haible  <bruno@clisp.org>
53882
53883         * MODULES.html.sh: Remove --cvs-urls option.
53884
53885 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53886
53887         maint.mk: adjust to file name change
53888         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53889
53890 2008-08-28  Jim Meyering  <meyering@redhat.com>
53891
53892         * modules/getndelim2 (License): Relicense to LGPLv2+.
53893         Approved by Richard Stallman for the version of 1995, and by
53894         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53895
53896 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53897
53898         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53899         dummy if one is not available.  Do not touch them if
53900         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53901         (getc_maybe_unlocked): New.
53902         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53903
53904 2008-08-26  Eric Blake  <ebb9@byu.net>
53905
53906         doc/INSTALL: resync from autoconf
53907         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53908         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53909         moving...
53910         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53911         * INSTALL: Regenerate.
53912         * INSTALL.ISO: New file.
53913         * INSTALL.UTF-8: Likewise.
53914
53915 2008-08-26  Jim Meyering  <meyering@redhat.com>
53916
53917         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53918         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53919         these definitions conditional, so that they may be overridden, too.
53920
53921 2008-08-26  Bruno Haible  <bruno@clisp.org>
53922
53923         Generate INSTALL file variants with prettier quotes.
53924         * doc/Makefile (INSTALL_PRELUDE): New macro.
53925         (INSTALL): Use it.
53926         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53927
53928 2008-08-26  Bruno Haible  <bruno@clisp.org>
53929
53930         Run makeinfo in an English locale.
53931         * doc/Makefile (MAKEINFO): New variable.
53932
53933 2008-08-26  Bruno Haible  <bruno@clisp.org>
53934
53935         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53936         Suggested by Eric Blake.
53937
53938 2008-08-25  Bruno Haible  <bruno@clisp.org>
53939
53940         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53941
53942 2008-08-25  Eric Blake  <ebb9@byu.net>
53943
53944         c-stack: test that stack overflow can be caught
53945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53946         that platform allows handling stack overflow; at least OS/2 EMX
53947         has sigaltstack, but crashes before transferring control to
53948         handler on stack overflow.
53949         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53950         check for HAVE_STACK_OVERFLOW_HANDLING.
53951         Reported by Elbert Pol.
53952
53953 2008-08-25  Bruno Haible  <bruno@clisp.org>
53954
53955         * doc/posix-functions/strftime.texi: Fix description of strftime
53956         module.
53957
53958 2008-08-24  Bruno Haible  <bruno@clisp.org>
53959
53960         * tests/uniwidth/test-uc_width2.c: New file.
53961         * tests/uniwidth/test-uc_width2.sh: New file.
53962         * modules/uniwidth/width-tests (Files): Add the new files.
53963         (TESTS): Add uniwidth/test-uc_width2.sh.
53964         (TESTS_ENVIRONMENT): New variable.
53965         (check_PROGRAMS): Add test-uc_width2.
53966         (test_uc_width2_SOURCES): New variable.
53967
53968         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53969         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53970         not 0x00AB.
53971         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53972
53973 2008-08-22  Eric Blake  <ebb9@byu.net>
53974
53975         test-lock, test-tls: mention why a test is skipped
53976         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53977         skipped.
53978         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53979
53980         count-one-bits: relax license
53981         * modules/count-one-bits (License): Relicense to LGPLv2+.
53982         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53983
53984 2008-08-22  Andreas Schwab  <schwab@suse.de>
53985
53986         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53987         Remove spurious space in assignment.
53988
53989 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53990
53991         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53992         Paul Eggert <eggert@CS.UCLA.EDU>.
53993
53994 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53995
53996         * modules/gettext: Add m4/threadlib.m4.
53997
53998 2008-08-19  Eric Blake  <ebb9@byu.net>
53999
54000         test-c-stack: fix compilation failure on FreeBSD 5.0
54001         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54002         headers before <sys/resource.h>.
54003         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54004         the bug.
54005         Reported by Nelson H. F. Beebe.
54006
54007         strverscmp: migrate from "strverscmp.h" to <string.h>
54008         * modules/string (Makefile.am): Add new hooks.
54009         * modules/strverscmp (Files): Remove strverscmp.h.
54010         (Depends-on): Add string.
54011         (configure.ac): Add indicator.
54012         (Include): Mention new header.
54013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54014         defaults.
54015         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54016         results.
54017         * lib/strverscmp.h: Delete.
54018         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54019         * tests/test-strverscmp.c (includes): Adjust client.
54020         * lib/check-version.c (includes): Likewise.
54021         * NEWS: Document the change.
54022
54023         strverscmp: add unit test
54024         * modules/strverscmp-tests: New file.
54025         * tests/test-strverscmp.c: Likewise.
54026
54027 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54028
54029         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54030         regarding Windows crypto stuff, from Mono.
54031
54032 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54033
54034         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54035         if present, for intel RND.  Return error on failures.
54036
54037 2008-08-18  Ben Pfaff  <blp@gnu.org>
54038
54039         gitlog-to-changelog: give better diagnostic for failed pipe-open
54040         * build-aux/gitlog-to-changelog: Improve error message: suggest
54041         that the version of Git may be too old.
54042
54043 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54044
54045         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54046         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54047
54048 2008-08-18  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54051         pthread_in_use().
54052
54053 2008-08-18  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/glthread/threadlib.c: Include <pthread.h>.
54056
54057 2008-08-18  Bruno Haible  <bruno@clisp.org>
54058
54059         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54060         glthread_recursive_lock_* macros.
54061         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54062         Fix syntax error.
54063
54064 2008-08-18  Bruno Haible  <bruno@clisp.org>
54065
54066         * lib/glthread/thread.c: Avoid forcing a context switch right after
54067         thread creation.
54068
54069 2008-08-17  Bruno Haible  <bruno@clisp.org>
54070
54071         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54072         * lib/glthread/thread.h: Provide Win32 specific implementation.
54073         * modules/thread (Files): Add lib/glthread/thread.c.
54074         (Depends-on): Add lock.
54075         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54076
54077 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54078
54079         New module 'yield'.
54080         * modules/yield: New file.
54081         * lib/glthread/yield.h: New file.
54082         * m4/yield.m4: New file.
54083         * MODULES.html.sh (Multithreading): Add yield.
54084
54085 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54086
54087         New module 'thread'.
54088         * modules/thread: New file.
54089         * lib/glthread/thread.h: New file.
54090         * m4/thread.m4: New file.
54091         * MODULES.html.sh (Multithreading): Add thread.
54092
54093 2008-08-17  Bruno Haible  <bruno@clisp.org>
54094
54095         * lib/glthread/lock.h: Include <stdlib.h> always.
54096         * lib/glthread/tls.h: Likewise.
54097         * lib/glthread/cond.h: Likewise.
54098
54099 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54100
54101         New module 'cond'.
54102         * modules/cond: New file.
54103         * lib/glthread/cond.h: New file.
54104         * lib/glthread/cond.c: New file.
54105         * m4/cond.m4: New file.
54106         * MODULES.html.sh (Multithreading): Add cond.
54107
54108 2008-08-16  Eric Blake  <ebb9@byu.net>
54109
54110         c-stack: fix regression on Irix 5.3 from 2008-06-21
54111         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54112         sa_sigaction...
54113         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54114         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54115         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54116         * modules/signal (Makefile.am): Use the value.
54117         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54118         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54119         * doc/posix-headers/signal.texi (signal.h): Document this
54120         portability issue.
54121         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54122         Reported by Tom G. Christensen.
54123
54124 2008-08-17  Bruno Haible  <bruno@clisp.org>
54125
54126         New module 'threadlib'.
54127         * modules/threadlib: New file.
54128         * lib/glthread/threadlib.c: New file, extracted from
54129         lib/glthread/lock.c.
54130         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54131         functions.
54132         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54133         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54134         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54135         macros.
54136         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54137         (gl_DISABLE_THREADS): Remove macro.
54138         * modules/lock (Files): Remove build-aux/config.rpath.
54139         (Depends-on): Remove havelib. Add threadlib.
54140         (configure.ac-early): Remove section.
54141         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54142         * modules/tls (Depends-on): Remove lock. Add threadlib.
54143         (Link): New section, copied from threadlib.
54144         * MODULES.html.sh (Multithreading): Add threadlib.
54145
54146 2008-08-14  Bruno Haible  <bruno@clisp.org>
54147
54148         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54149         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54150         glthread_rwlock_unlock, glthread_rwlock_destroy,
54151         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54152         glthread_recursive_lock_destroy): Define as macros always.
54153         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54154         glthread_lock_lock.
54155         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54156         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54157         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54158         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54159         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54160         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54161         (glthread_recursive_lock_lock_func): Renamed from
54162         glthread_recursive_lock_lock.
54163         (glthread_recursive_lock_unlock_func): Renamed from
54164         glthread_recursive_lock_unlock.
54165         (glthread_recursive_lock_destroy_func): Renamed from
54166         glthread_recursive_lock_destroy.
54167
54168 2008-08-14  Bruno Haible  <bruno@clisp.org>
54169
54170         * lib/glthread/lock.h: Renamed from lib/lock.h.
54171         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54172         * lib/glthread/tls.h: Renamed from lib/tls.h.
54173         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54174         * lib/fstrcmp.c: Update includes.
54175         * lib/strsignal.c: Update includes.
54176         * modules/lock (Files, Makefile.am): Update.
54177         (Include): Change to "glthread/lock.h".
54178         * modules/tls (Files, Makefile.am): Update.
54179         (Include): Change to "glthread/tls.h".
54180         * tests/test-lock.c: Update includes.
54181         * tests/test-tls.c: Update includes.
54182         * NEWS: Mention the renamed header files.
54183
54184 2008-08-11  Jim Meyering  <meyering@redhat.com>
54185
54186         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54187
54188 2008-08-11  Eric Blake  <ebb9@byu.net>
54189
54190         test-c-stack: avoid C99-ism
54191         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54192         before statement.
54193         Reported by Alain Guibert.
54194
54195 2008-08-10  Jim Meyering  <meyering@redhat.com>
54196
54197         ensure that return value of uinttostr et al are not ignored
54198         * lib/inttostr.h (__GNUC_PREREQ): Define.
54199         (__attribute_warn_unused_result__): Define.
54200         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54201
54202 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54203
54204         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54205         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54206
54207 2008-08-07  Jim Meyering  <meyering@redhat.com>
54208
54209         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54210
54211         * modules/mkstemp (License): Relicense under LGPLv2+.
54212         * modules/tempname (License): Likewise.
54213
54214 2008-08-06  Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/poll.c (poll): Further micro-optimization.
54217
54218 2008-08-06  Jim Meyering  <meyering@redhat.com>
54219
54220         inet_pton.c: use locale-independent tolower
54221         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54222         (inet_pton6): Use c_tolower rather than tolower.
54223         * modules/inet_pton (Depends-on): Add c-ctype.
54224
54225 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54226
54227         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54228         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54229
54230 2008-08-06  Jim Meyering  <meyering@redhat.com>
54231
54232         * modules/inet_pton (License): Relicense under LGPLv2+.
54233
54234 2008-08-03  Bruno Haible  <bruno@clisp.org>
54235
54236         Additional non-aborting API for lock and tls.
54237         * lib/lock.h: Include <errno.h>.
54238         (glthread_lock_init): New macro/function.
54239         (gl_lock_init): Define as wrapper around glthread_lock_init.
54240         (glthread_lock_lock): New macro/function.
54241         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54242         (glthread_lock_unlock): New macro/function.
54243         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54244         (glthread_lock_destroy): New macro/function.
54245         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54246         (glthread_rwlock_init): New macro/function.
54247         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54248         (glthread_rwlock_rdlock): New macro/function.
54249         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54250         (glthread_rwlock_wrlock): New macro/function.
54251         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54252         (glthread_rwlock_unlock): New macro/function.
54253         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54254         (glthread_rwlock_destroy): New macro/function.
54255         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54256         (glthread_recursive_lock_init): New macro/function.
54257         (gl_recursive_lock_init): Define as wrapper around
54258         glthread_recursive_lock_init.
54259         (glthread_recursive_lock_lock): New macro/function.
54260         (gl_recursive_lock_lock): Define as wrapper around
54261         glthread_recursive_lock_lock.
54262         (glthread_recursive_lock_unlock): New macro/function.
54263         (gl_recursive_lock_unlock): Define as wrapper around
54264         glthread_recursive_lock_unlock.
54265         (glthread_recursive_lock_destroy): New macro/function.
54266         (gl_recursive_lock_destroy): Define as wrapper around
54267         glthread_recursive_lock_destroy.
54268         (glthread_once): New macro/function.
54269         (gl_once): Define as wrapper around glthread_once.
54270         Update function declarations.
54271         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54272         glthread_rwlock_init. Return error code.
54273         (glthread_rwlock_rdlock_multithreaded): Renamed from
54274         glthread_rwlock_rdlock. Return error code.
54275         (glthread_rwlock_wrlock_multithreaded): Renamed from
54276         glthread_rwlock_wrlock. Return error code.
54277         (glthread_rwlock_unlock_multithreaded): Renamed from
54278         glthread_rwlock_unlock. Return error code.
54279         (glthread_rwlock_destroy_multithreaded): Renamed from
54280         glthread_rwlock_destroy. Return error code.
54281         (glthread_recursive_lock_init_multithreaded): Renamed from
54282         glthread_recursive_lock_init. Return error code.
54283         (glthread_recursive_lock_lock_multithreaded): Renamed from
54284         glthread_recursive_lock_lock. Return error code.
54285         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54286         glthread_recursive_lock_unlock. Return error code.
54287         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54288         glthread_recursive_lock_destroy. Return error code.
54289         (glthread_once_call): Make static.
54290         (glthread_once_multithreaded): Renamed from glthread_once.
54291         * lib/tls.h: Include <errno.h>.
54292         (glthread_tls_key_init): New macro/function.
54293         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54294         (glthread_tls_set): New macro/function.
54295         (gl_tls_set): Define as wrapper around glthread_tls_set.
54296         (glthread_tls_key_destroy): New macro/function.
54297         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54298         Update function declarations.
54299         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54300         glthread_tls_get.
54301         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54302
54303 2008-08-04  Eric Blake  <ebb9@byu.net>
54304
54305         gnumakefile: use space, not TAB, outside of targets
54306         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54307
54308 2008-08-02  Jim Meyering  <meyering@redhat.com>
54309
54310         getdate.y: avoid locale-dependent date parsing failure
54311         In Turkish locales, getdate would fail to recognize keywords
54312         containing a lowercase "i".  The solution is not to rely on
54313         locale-sensitive case-conversion.
54314         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54315         (lookup_word): Use c_toupper in place of toupper.
54316         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54317         Reported by Vefa Bicakci <bicave@superonline.com> in
54318         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54319         * modules/getdate (Depends-on): Add c-ctype.
54320
54321 2008-08-02  Bruno Haible  <bruno@clisp.org>
54322
54323         * gnulib-tool (func_import): When updating or creating a .gitignore
54324         file, prepend each added line with a slash, and ignore leading slashes
54325         from the existing lines.
54326         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54327
54328 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54329
54330         Portability fix for GNU make 3.79.1.
54331         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54332         versions do not understand.
54333
54334 2008-08-01  Bruno Haible  <bruno@clisp.org>
54335
54336         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54337         * tests/test-isnanf.h (zero): New variable.
54338         (main): Avoid literal -0.0f.
54339         * tests/test-isnand.h (zero): New variable.
54340         (main): Avoid literal -0.0.
54341         * tests/test-isnanl.h (zero): New variable.
54342         (main): Avoid literal -0.0L.
54343         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54344         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54345         -0.0, -0.0L.
54346         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54347         (test_signbitd): Avoid literal -0.0.
54348         (test_signbitl): Avoid literal -0.0L.
54349         * tests/test-ceilf1.c (zero): New variable.
54350         (main): Avoid literal -0.0f.
54351         * tests/test-ceill.c (zero): New variable.
54352         (main): Avoid literal -0.0L.
54353         * tests/test-floorf1.c (zero): New variable.
54354         (main): Avoid literal -0.0f.
54355         * tests/test-floorl.c (zero): New variable.
54356         (main): Avoid literal -0.0L.
54357         * tests/test-roundf1.c (zero): New variable.
54358         (main): Avoid literal -0.0f.
54359         * tests/test-round1.c (zero): New variable.
54360         (main): Avoid literal -0.0.
54361         * tests/test-roundl.c (zero): New variable.
54362         (main): Avoid literal -0.0L.
54363         * tests/test-truncf1.c (zero): New variable.
54364         (main): Avoid literal -0.0f.
54365         * tests/test-trunc1.c (zero): New variable.
54366         (main): Avoid literal -0.0.
54367         * tests/test-truncl.c (zero): New variable.
54368         (main): Avoid literal -0.0L.
54369         * tests/test-frexp.c (zero): New variable.
54370         (main): Avoid literal -0.0.
54371         * tests/test-frexpl.c (zero): New variable.
54372         (main): Avoid literal -0.0L.
54373         * tests/test-ldexpl.c (zero): New variable.
54374         (main): Avoid literal -0.0L.
54375         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54376         (zerod, zerol): New variables.
54377         (test_function): Avoid literals -0.0, -0.0L.
54378         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54379         (zerod, zerol): New variables.
54380         (test_function): Avoid literals -0.0, -0.0L.
54381         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54382         (zerod, zerol): New variables.
54383         (test_function): Avoid literals -0.0, -0.0L.
54384         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54385         (zerod, zerol): New variables.
54386         (test_function): Avoid literals -0.0, -0.0L.
54387         * tests/test-strtod.c (zero): New variable.
54388         (main): Avoid literal -0.0.
54389         Reported by Jonathan C. Patschke <jp@centtech.com>.
54390
54391 2008-07-31  Jim Meyering  <meyering@redhat.com>
54392
54393         sha256.h: correct definition of SHA224_DIGEST_SIZE
54394         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54395         Reported by Paulie Pena IV <paulie4@gmail.com>.
54396         Define as 224 / 8, rather than as a literal.
54397         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54398         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54399         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54400
54401 2008-07-31  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54404         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54405         Reported by Jonathan Patschke <jp@centtech.com>.
54406
54407 2008-07-31  Bruno Haible  <bruno@clisp.org>
54408
54409         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54410         Reported by Paolo Bonzini <bonzini@gnu.org>.
54411
54412 2008-07-30  Eric Blake  <ebb9@byu.net>
54413
54414         test-strtod: allow compilation without -lm
54415         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54416         Reported by Dennis Clarke <blastwave@gmail.com>.
54417
54418 2008-07-28  Jim Meyering  <meyering@redhat.com>
54419
54420         bootstrap: work also when there are no .po files in po/
54421         * build-aux/bootstrap (update_po_files): Complete the change
54422         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54423
54424 2008-07-27  Jim Meyering  <meyering@redhat.com>
54425
54426         * users.txt: Add zile.
54427
54428 2008-07-26  Ben Pfaff  <blp@gnu.org>
54429
54430         Add missing dependencies on new m4/exponent[fdl].m4 files.
54431         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54432         * modules/isnand-nolibm: Add m4/exponentd.m4.
54433         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54434         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54435         m4/isnan[fdl].m4, because the macros actually used moved.
54436         Reported by Jim Meyering.
54437
54438 2008-07-14  Ben Pfaff  <blp@gnu.org>
54439
54440         Add isinf module.
54441         * lib/isinf.c: New file.
54442         * lib/math.in.h: Define isinf macro if we have decided to replace
54443         it.
54444         * m4/isinf.m4: New file.
54445         * m4/math_h.m4: Initialize and substitute variables for isinf
54446         module.
54447         * modules/isinf: New file.
54448         * modules/isinf-tests: New file.
54449         * modules/math: Add substitutions for new module.
54450         * tests/test-isinf.c: New file.
54451         * doc/posix-functions/isinf.texi: Mention new module.
54452         * MODULES.html.sh: Mention new module.
54453
54454 2008-07-14  Ben Pfaff  <blp@gnu.org>
54455
54456         Factor out some macros for use by additional modules.
54457         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54458         exponentf.m4.
54459         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54460         exponentd.m4.
54461         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54462         file exponentl.m4.
54463         * m4/exponentf.m4: New file.
54464         * m4/exponentd.m4: New file.
54465         * m4/exponentl.m4: New file.
54466         * modules/isnanf: Use new file m4/exponentf.m4.
54467         * modules/isnand: Use new file m4/exponentd.m4.
54468         * modules/isnanl: Use new file m4/exponentl.m4.
54469
54470 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54471
54472         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54473         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54474         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54475         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54476
54477         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54478         readlink on platforms without PATH_MAX.
54479
54480 2008-07-21  Eric Blake  <ebb9@byu.net>
54481
54482         Warn, not fail, on stale version.
54483         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54484
54485         Don't allow installation with stale devel version number.
54486         * top/GNUmakefile (_is-install-target): New macro.
54487         (_curr-ver): Forbid installation with stale version number.
54488
54489 2008-07-20  Bruno Haible  <bruno@clisp.org>
54490
54491         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54492         TESTS_ENVIRONMENT.
54493         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54494
54495 2008-07-20  Bruno Haible  <bruno@clisp.org>
54496
54497         * lib/c-stack.h (c_stack_action): Add documentation.
54498         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54499
54500 2008-07-20  Bruno Haible  <bruno@clisp.org>
54501
54502         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54503         * modules/readlink (License): Likewise.
54504
54505 2008-07-17  Eric Blake  <ebb9@byu.net>
54506
54507         * modules/c-stack (Link): Fix typo.
54508
54509         Make c-stack use libsigsegv, when available.
54510         * modules/c-stack (Depends-on): Add libsigsegv.
54511         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54512         needed.
54513         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54514         (segv_handler, overflow_handler, c_stack_action)
54515         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54516         implementation when libsigsegv is available, but only when using
54517         the library is necessary.
54518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54519         comment, explaining why XSI check fails on Linux.
54520         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54521         * tests/test-c-stack2.sh: Tweak skip message.
54522         * NEWS: Document new link-time requirements.
54523
54524 2008-07-16  Eric Blake  <ebb9@byu.net>
54525
54526         c-stack: Expose false positives when not using libsigsegv.
54527         * modules/c-stack-tests (Files): Expand test.
54528         * tests/test-c-stack.c (main): Add means to conditionally trigger
54529         non-overflow SIGSEGV.
54530         * tests/test-c-stack2.sh: New file.
54531
54532 2008-07-14  Bruno Haible  <bruno@clisp.org>
54533
54534         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54535         Reported by Eric Blake.
54536
54537 2008-07-14  Sam Steingold  <sds@gnu.org>
54538             Bruno Haible  <bruno@clisp.org>
54539
54540         New module libsigsegv.
54541         * modules/libsigsegv: New file.
54542         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54543         modifications.
54544         * MODULES.html.sh (Signal handling): New section.
54545
54546 2008-07-14  Bruno Haible  <bruno@clisp.org>
54547
54548         * modules/unictype/ctype-* (Description): Add the word "function".
54549         Improves the resulting doc in MODULES.html.
54550
54551 2008-07-12  Ben Pfaff  <blp@gnu.org>
54552
54553         Add longlong module.
54554         * modules/longlong: New file.
54555
54556 2008-07-12  Bruno Haible  <bruno@clisp.org>
54557
54558         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54559         to empty.
54560
54561 2008-07-10  Ben Pfaff  <blp@gnu.org>
54562
54563         Add isnan module.
54564         * doc/posix-functions/isnan.texi: Mention new module.
54565         * lib/math.in.h: Define isnan macro if we have decided to replace
54566         it.
54567         * m4/isnan.m4: New file.
54568         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54569         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54570         also.
54571         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54572         redundancy.
54573         * m4/math_h.m4: Initialize and substitute variables for isnan
54574         module.
54575         * modules/isnan: New file.
54576         * modules/isnan-tests: New file.
54577         * modules/math: Add substitutions for new module.
54578         * tests/test-isnan.c: New file.
54579         * MODULES.html.sh: Mention new module.
54580
54581 2008-07-10  Ben Pfaff  <blp@gnu.org>
54582
54583         Add isnanf module.
54584         * lib/isnanf.m4: New file.
54585         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54586         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54587         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54588         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54589         * modules/isnanf: New file.
54590         * modules/isnanf-tests: New file.
54591         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54592         files.
54593         * tests/test-isnanf-nolibm.c: factored most of its contents into
54594         new file tests/test-isnanf.h.
54595         * tests/test-isnanf.h: New file.
54596         * tests/test-isnanf.c: New file.
54597         * MODULES.html.sh: Mention new module.
54598         * doc/glibc-functions/isnanf.texi: Mention new module.
54599
54600 2008-07-10  Ben Pfaff  <blp@gnu.org>
54601
54602         Add isnand module.
54603         * lib/isnand.h: New file.
54604         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54605         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54606         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54607         functionality also.
54608         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54609         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54610         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54611         * modules/isnand: New file.
54612         * modules/isnand-tests: New file.
54613         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54614         files.
54615         * tests/test-isnand-nolibm.c: factored most of its contents into
54616         new file tests/test-isnand.h.
54617         * tests/test-isnand.h: New file.
54618         * tests/test-isnand.c: New file.
54619         * MODULES.html.sh: Mention new module.
54620
54621 2008-07-10  Ben Pfaff  <blp@gnu.org>
54622
54623         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54624         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54625         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54626         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54627         * modules/isnanf-nolibm: Update references to renamed files.
54628         * modules/isnand-nolibm: Likewise.
54629         * modules/isnanf-nolibm-tests: Likewise.
54630         * modules/isnand-nolibm-tests: Likewise.
54631         * lib/frexp.c: Likewise.
54632         * lib/isfinite.c: Likewise.
54633         * lib/signbitd.c: Likewise.
54634         * lib/signbitf.c: Likewise.
54635         * lib/vasnprintf.c: Likewise.
54636         * tests/test-ceilf1.c: Likewise.
54637         * tests/test-ceilf2.c: Likewise.
54638         * tests/test-floorf1.c: Likewise.
54639         * tests/test-floorf2.c: Likewise.
54640         * tests/test-frexp.c: Likewise.
54641         * tests/test-round1.c: Likewise.
54642         * tests/test-round2.c: Likewise.
54643         * tests/test-roundf1.c: Likewise.
54644         * tests/test-strtod.c: Likewise.
54645         * tests/test-trunc1.c: Likewise.
54646         * tests/test-trunc2.c: Likewise.
54647         * tests/test-truncf1.c: Likewise.
54648         * tests/test-truncf2.c: Likewise.
54649         * NEWS: Mention the renamed header files.
54650
54651 2008-07-11  Jim Meyering  <meyering@redhat.com>
54652
54653         vc-list-files: make the last-resort awk code more portable
54654         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54655         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54656         does not support it.
54657
54658 2008-07-10  Eric Blake  <ebb9@byu.net>
54659
54660         Work with tar's bootstrap.
54661         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54662         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54663         an m4 comment.
54664
54665 2008-07-09  Jim Meyering  <meyering@redhat.com>
54666
54667         posix-shell.m4: fix typo that made this test malfunction
54668         * m4/posix-shell.m4: Remove capitalization in variable name.
54669
54670 2008-07-08  Bruno Haible  <bruno@clisp.org>
54671
54672         * m4/onceonly.m4: Update comments.
54673         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54674
54675 2008-07-04  Jim Meyering  <meyering@redhat.com>
54676
54677         * users.txt: Add vc-dwim.
54678         (bison, coreutils): Use the gitweb URL.
54679
54680 2008-07-03  Jim Meyering  <meyering@redhat.com>
54681
54682         * users.txt: Add libffcall.  From Sam Steingold.
54683
54684 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54685
54686         getdate.y: do not ignore TZ with relative day, month or year offset
54687         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54688         relative-date-handling, since otherwise, the latter would clobber the
54689         sole output (an updated Start value) of the tz-handling block.
54690         * tests/test-getdate.c: Tests for the fix
54691
54692 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54693
54694         Recognize 'foo_LIBRARIES += libgnu.a'.
54695         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54696         makefile snippet has already specified an installation location,
54697         also using '+='.
54698
54699 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54700
54701         getdate.y: factor out common actions
54702         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54703         Use them in place of open-coded actions.
54704
54705 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54706
54707         Add self-test for getdate module.
54708         * modules/getdate-tests: New file.
54709         * tests/test-getdate.c: New file.
54710
54711 2008-06-29  Bruno Haible  <bruno@clisp.org>
54712
54713         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54714         .gitignore.
54715         Reported by Sylvain Beucler <beuc@beuc.net>.
54716
54717 2008-06-29  Bruno Haible  <bruno@clisp.org>
54718
54719         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54720         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54721
54722 2008-06-29  Bruno Haible  <bruno@clisp.org>
54723
54724         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54725         EXTRA_DIST.
54726         Reported by Sylvain Beucler <beuc@beuc.net>.
54727
54728 2008-06-26  Jim Meyering  <meyering@redhat.com>
54729
54730         make several modules depend on the "open" module
54731         This provides slightly increased consistency when opening-for-write
54732         the name of a non-directory spelled with a trailing slash.
54733         * modules/chdir-safer: Likewise.
54734         * modules/chown: Likewise.
54735         * modules/clean-temp: Likewise.
54736         * modules/copy-file: Likewise.
54737         * modules/fchdir: Likewise.
54738         * modules/fcntl-safer: Likewise.
54739         * modules/pipe: Likewise.
54740         * modules/utime: Likewise.
54741         Prompted by Eric Blake and Bruno Haible.
54742
54743 2008-06-24  Andreas Schwab  <schwab@suse.de>
54744
54745         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54746         literals can be used as initializers for global variables.
54747
54748 2008-06-23  Eric Blake  <ebb9@byu.net>
54749
54750         Make gnulib-cache.m4 easier to diff.
54751         * gnulib-tool (func_import): Allow newlines when reading cached
54752         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54753
54754 2008-06-23  Bruno Haible  <bruno@clisp.org>
54755
54756         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54757         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54758         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54759         m4/signalblocking.m4.
54760         (gl_PREREQ_SIGACTION): Don't invoke it.
54761         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54762         gl_PREREQ_SIG_HANDLER_H.
54763         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54764         Don't check for sigaction here.
54765
54766 2008-06-23  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54769         (install_handlers): Don't set the SA_RESETHAND flag.
54770
54771 2008-06-23  Bruno Haible  <bruno@clisp.org>
54772
54773         * m4/sigaction.m4: Comment fixes.
54774         * lib/signal.in.h: Likewise.
54775
54776 2008-06-23  Eric Blake  <ebb9@byu.net>
54777
54778         Fix typo.
54779         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54780
54781         Avoid SA_ namespace.
54782         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54783         Reported by Ralf Wildenhues.
54784
54785         Avoid test failure due to SA_RESTORER.
54786         * tests/test-sigaction.c (SA_MASK): New macro.
54787         (main): Avoid failing due to extension flags being set.
54788         Reported by Jim Meyering.
54789
54790         Revert use of sig-handler.h in sigprocmask.c.
54791         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54792         it requires the existence of struct sigaction.
54793         * lib/sigprocmask.c (handler_t): Restore typedef.
54794         (rpl_signal, old_handlers): Use local type.
54795
54796 2008-06-22  Bruno Haible  <bruno@clisp.org>
54797
54798         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54799         conditionally.
54800         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54801
54802 2008-06-22  Bruno Haible  <bruno@clisp.org>
54803
54804         * doc/posix-functions/siginterrupt.texi: Move note.
54805
54806         * lib/signal.in.h (SA_RESTART): New macro.
54807         * lib/sigaction.c: Update comment.
54808
54809         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54810
54811         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54812         (gl_PREREQ_SIGPROCMASK): Invoke it.
54813         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54814
54815         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54816
54817         * lib/sigprocmask.c: Update a comment.
54818
54819 2008-06-21  Eric Blake  <ebb9@byu.net>
54820
54821         Use sigaction module rather than signal().
54822         * modules/c-stack (Depends-on): Add sigaction.
54823         * modules/fatal-signal (Depends-on): Likewise.
54824         * modules/nanosleep (Depends-on): Likewise.
54825         * modules/sigprocmask (Files): Add sig-handler.h.
54826         * modules/sigaction (Files): Likewise.
54827         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54828         Eggert.
54829         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54830         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54831         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54832         (init_fatal_signals): Likewise.
54833         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54834         (siginterrupt): Delete fallback.
54835         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54836         instead.
54837         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54838         siginterrupt.
54839
54840         New module sigaction, for mingw.
54841         * modules/sigaction: New module...
54842         * modules/sigaction-tests: ...and its test.
54843         * m4/sigaction.m4: New file.
54844         * lib/sigaction.c: Likewise.
54845         * tests/test-sigaction.c: Likewise.
54846         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54847         * modules/signal (Makefile.am): Likewise.
54848         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54849         needed.
54850         * doc/posix-headers/signal.texi (signal.h): Mention provided
54851         types.
54852         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54853         that sigaction is preferable.
54854         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54855         module.
54856         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54857         sigaction.
54858
54859         Improve robustness of sigprocmask by overriding signal.
54860         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54861         is in use.
54862         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54863         (SIGKILL, SIGSTOP): Provide fallbacks.
54864         (rpl_signal): Implement.
54865         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54866         signal can be called inside handlers.
54867
54868         Fix nanosleep module on mingw.
54869         * modules/nanosleep (Depends-on): Add sys_select.
54870         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54871
54872         Fix licensing of sigprocmask.
54873         * modules/raise (License): Relicense as LGPL.
54874
54875 2008-06-21  Bruno Haible  <bruno@clisp.org>
54876
54877         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54878         result if it contains question marks.
54879         Reported by Michael Geng <linux@michaelgeng.de>.
54880
54881 2008-06-19  Bruno Haible  <bruno@clisp.org>
54882
54883         Fix CVS-ism.
54884         * doc/gnulib.texi: Include updated-stamp.texi.
54885         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54886         (updated-stamp.texi): New rule.
54887         (gnulib.info): Depend on it.
54888         * doc/.gitignore: Add updated-stamp.texi.
54889         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54890
54891 2008-06-19  Bruno Haible  <bruno@clisp.org>
54892
54893         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54894         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54895
54896 2008-06-19  Eric Blake  <ebb9@byu.net>
54897
54898         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54899         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54900         Reported by Stepan Kasal.
54901
54902 2008-06-18  Bruno Haible  <bruno@clisp.org>
54903
54904         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54905         Reported by Eric Blake.
54906
54907 2008-06-18  Eric Blake  <ebb9@byu.net>
54908
54909         Work around cygwin 1.5.25 strsignal bug.
54910         * tests/test-strsignal.c: Allow for const char *.
54911         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54912
54913 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54914
54915         * users.txt: Update URL to article and add author/date
54916         information.
54917
54918 2008-06-17  Bruno Haible  <bruno@clisp.org>
54919
54920         New macro gl_DISABLE_THREADS.
54921         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54922         if the user did not pass --enable-threads or --disable-threads option.
54923         (gl_DISABLE_THREADS): New macro.
54924         Reported by Eric Blake <ebb9@byu.net>.
54925
54926 2008-06-17  Bruno Haible  <bruno@clisp.org>
54927
54928         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54929         when the macro ignores it.
54930         Based on a patch by Eric Blake <ebb9@byu.net>.
54931
54932 2008-06-17  Bruno Haible  <bruno@clisp.org>
54933
54934         * modules/tls (License): Change to LGPLv2+.
54935         Reported by Eric Blake.
54936
54937 2008-06-17  Eric Blake  <ebb9@byu.net>
54938
54939         Simplify c-stack prerequisites.
54940         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54942         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54943         check.
54944         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54945         <sys/resource.h>.
54946
54947         Move c-stack test into testsuite.
54948         * modules/c-stack-tests: New file.
54949         * lib/c-stack.c [DEBUG]: Move test program...
54950         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54951         fail test if sigaltstack is lacking.
54952         * tests/test-c-stack.sh: New driver file.
54953
54954 2008-06-16  Eric Blake  <ebb9@byu.net>
54955
54956         Use raise module consistently.
54957         * modules/fatal-signal (Depends-on): Add raise.
54958         * modules/sigprocmask (Depends-on): Likewise.
54959         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54960         * lib/sigprocmask.c (sigprocmask): Likewise.
54961         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54962         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54963
54964         Fix compliance bug in sigpending.
54965         * lib/sigprocmask.c (sigpending): Return pending array via
54966         parameter, not return value.
54967
54968 2008-06-14  Eric Blake  <ebb9@byu.net>
54969
54970         Improve obstack-printf test code.
54971         * tests/test-obstack-printf.c (test_function): Fix comment, and
54972         simplify usage of obstack_* in macros.  Add a test for coverage.
54973         Reported by Bruno Haible.
54974
54975 2008-06-14  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54978         array size as a constant, not as a const variable.
54979         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54980         AC_USE_SYSTEM_EXTENSIONS.
54981         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54982         Test whether the obstack_printf function actually exists.
54983         * modules/obstack-printf (Depends-on): Add extensions.
54984         (Include): Remove obstack.h.
54985         * modules/obstack-printf-posix (Depends-on): Add extensions.
54986         (Include): Remove obstack.h.
54987
54988 2008-06-13  Eric Blake  <ebb9@byu.net>
54989
54990         Add obstack-printf and obstack-printf-posix modules.
54991         * modules/obstack-printf: New file.
54992         * modules/obstack-printf-posix: Likewise.
54993         * MODULES.html.sh (Misc): Mention them.
54994         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54995         Likewise.
54996         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54997         Likewise.
54998         * modules/stdio (Makefile.am): Accomodate new modules.
54999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55000         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55001         Declare.
55002         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55003         functions.
55004         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55005         (gl_REPLACE_OBSTACK_PRINTF): New macros
55006         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55007         * tests/test-obstack-printf.c: New file.
55008         * modules/obstack-printf-tests: Likewise.
55009         * modules/obstack-printf-posix-tests: Likewise.
55010
55011 2008-06-11  Bruno Haible  <bruno@clisp.org>
55012
55013         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55014         * lib/open.c: Include errno.h.
55015         (open): Fail when attempting to write to a file that has a trailing
55016         slash.
55017         * tests/test-open.c (main): Test against trailing slash bug.
55018         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55019
55020 2008-06-10  Bruno Haible  <bruno@clisp.org>
55021
55022         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55023         for $? to work inside the trap command, with various /bin/sh-s.
55024         * tests/test-vc-list-files-cvs.sh: Likewise.
55025
55026 2008-06-10  Bruno Haible  <bruno@clisp.org>
55027
55028         * lib/acl-internal.h: Don't include gettext.h here.
55029         * lib/set-mode-acl.c: Include gettext.h here.
55030         * lib/copy-acl.c: Likewise.
55031
55032 2008-06-10  Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55035         * lib/wait-process.c (wait_subprocess): Likewise.
55036         * lib/execute.h (execute): Add termsigp argument.
55037         * lib/execute.c (execute): Likewise.
55038         * lib/csharpcomp.c (compile_csharp_using_pnet,
55039         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55040         * lib/csharpexec.c (execute_csharp_using_pnet,
55041         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55042         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55043         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55044         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55045         is_jikes_present): Update.
55046         * lib/javaexec.c (execute_java_class): Update.
55047         * lib/javaversion.c (execute_and_read_line): Update.
55048         * NEWS: Document the changes.
55049         Reported by Eric Blake.
55050
55051 2008-06-10  Eric Blake  <ebb9@byu.net>
55052
55053         Add missing include.
55054         * tests/test-strstr.c (includes): Add <signal.h>.
55055         * tests/test-strcasestr.c (includes): Likewise.
55056         * tests/test-memmem.c (includes): Likewise.
55057
55058 2008-06-10  Bruno Haible  <bruno@clisp.org>
55059
55060         * lib/wait-process.c (wait_subprocess): Add an assertion.
55061
55062 2008-06-10  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55065
55066 2008-06-10  Bruno Haible  <bruno@clisp.org>
55067
55068         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55069         using alarm().
55070         * tests/test-strcasestr.c (main): Likewise.
55071         * tests/test-strstr.c (main): Likewise.
55072
55073 2008-06-09  Bruno Haible  <bruno@clisp.org>
55074
55075         Work around the Solaris 10 ACE ACLs ABI change.
55076         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55077         declare if ACL_NO_TRIVIAL is present.
55078         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55079         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55080         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55081         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55082         define if ACL_NO_TRIVIAL is present.
55083         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55084         and use the current ABI.
55085         (file_has_acl): Use same #if condition as elsewhere.
55086         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55087         in use, and use the current ABI.
55088         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55089         Reported by Jim Meyering.
55090
55091 2008-06-09  Eric Blake  <ebb9@byu.net>
55092
55093         Work around environments that (stupidly) ignore SIGALRM.
55094         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55095         before using alarm().
55096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55098         Reported by Ian Beckwith <ianb@erislabs.net>.
55099
55100         Produce autobuild blurb earlier in log.
55101         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55102
55103 2008-06-09  Jim Meyering  <meyering@redhat.com>
55104         and OndÅ™ej Vašík  <ovasik@redhat.com>
55105
55106         utimens.c: correct kernel bug work-around
55107         OndÅ™ej Vašík found that the invalid return value of 280 indicates
55108         failure, not success, and the kernel bug we're trying to work
55109         around affects not just the utimensat call, but also the fallback
55110         futimens call.
55111         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55112         not success.
55113         [HAVE_FUTIMENS]: Use the same work-around, here.
55114
55115 2008-06-09  Jim Meyering  <meyering@redhat.com>
55116
55117         add more guards around definition of ACE_-related code
55118         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55119         ALLOW and ACE_OWNER are also defined.
55120
55121 2008-06-08  Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/acl-internal.h: Add me as co-author.
55124         * lib/file-has-acl.c: Likewise.
55125         * lib/set-mode-acl.c: Likewise.
55126         * lib/copy-acl.c: Likewise.
55127
55128 2008-06-08  Bruno Haible  <bruno@clisp.org>
55129
55130         Add support for AIX ACLs.
55131         * lib/acl-internal.h (acl_nontrivial): New declaration.
55132         * lib/file-has-acl.c (acl_nontrivial): New function.
55133         (file_has_acl): Add implementation using AIX 4 ACL API.
55134         * lib/set-mode-acl.c (qset_acl): Likewise.
55135         * lib/copy-acl.c (qcopy_acl): Likewise.
55136
55137 2008-06-08  Bruno Haible  <bruno@clisp.org>
55138
55139         Add support for HP-UX ACLs.
55140         * lib/acl-internal.h (acl_nontrivial): New declaration.
55141         * lib/file-has-acl.c (acl_nontrivial): New function.
55142         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55143         * lib/set-mode-acl.c (qset_acl): Likewise.
55144         * lib/copy-acl.c (qcopy_acl): Likewise.
55145
55146 2008-06-08  Bruno Haible  <bruno@clisp.org>
55147
55148         Add support for Cygwin ACLs.
55149         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55150         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55151         the chmod_or_fchmod call.
55152         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55153
55154 2008-06-08  Bruno Haible  <bruno@clisp.org>
55155
55156         Fix bug with setuid modes in Solaris 10+ code.
55157         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55158         succeeded, when the mode contains some special bits.
55159
55160 2008-06-08  Bruno Haible  <bruno@clisp.org>
55161
55162         Add support for Solaris 7..10 ACLs.
55163         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55164         declarations.
55165         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55166         functions.
55167         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55168         * lib/set-mode-acl.c (qset_acl): Likewise.
55169         * lib/copy-acl.c (qcopy_acl): Likewise.
55170
55171 2008-06-08  Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55174         declaration.
55175         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55176         (acl_access_nontrivial): Remove MacOS X case.
55177         (file_has_acl): Use acl_extended_nontrivial.
55178         * lib/copy-acl.c (qcopy_acl): Likewise.
55179
55180 2008-06-08  Bruno Haible  <bruno@clisp.org>
55181
55182         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55183
55184 2008-06-08  Jim Meyering  <meyering@redhat.com>
55185
55186         * modules/acl (Maintainer): Add Bruno Haible.
55187
55188 2008-06-07  Bruno Haible  <bruno@clisp.org>
55189
55190         Improve support for Tru64 ACLs.
55191         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55192         ACL on OSF/1.
55193
55194 2008-06-07  Bruno Haible  <bruno@clisp.org>
55195
55196         Add support for MacOS X ACLs.
55197         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55198         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55199         * lib/set-mode-acl.c (qset_acl): Likewise.
55200         * lib/copy-acl.c (qcopy_acl): Likewise.
55201
55202 2008-06-07  Bruno Haible  <bruno@clisp.org>
55203
55204         Fix memory leak introduced on 2008-05-22.
55205         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55206         use.
55207
55208 2008-06-07  Bruno Haible  <bruno@clisp.org>
55209
55210         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55211         to construct an empty ACL.
55212
55213 2008-06-07  Bruno Haible  <bruno@clisp.org>
55214
55215         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55216         precisely.
55217         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55218
55219 2008-06-07  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55222         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55223
55224 2008-06-07  Bruno Haible  <bruno@clisp.org>
55225
55226         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55227         regardless of POSIX.
55228         * doc/posix-functions/_longjmp.texi: Likewise.
55229         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55230         SystemV platform in this case.
55231
55232 2008-06-06  Eric Blake  <ebb9@byu.net>
55233
55234         Document abort() bugs.
55235         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55236
55237         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55238         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55239         sigsetjmp.
55240         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55241         siglongjmp, but only as a macro.
55242         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55243         is obsolete.
55244         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55245
55246         Tweak documentation to cover cygwin argz bugs.
55247         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55248         argz bug fix; no code change needed since no cygwin releases
55249         occurred between the last fix and the bug being tested.
55250         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55251         module and recently fixed cygwin bugs.
55252         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55253         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55254         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55255         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55256         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55257         Likewise.
55258         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55259         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55260         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55261         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55262         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55263         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55264         Likewise.
55265
55266         Avoid gcc warning on cygwin.
55267         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55268         !ACL_NO_TRIVIAL]: Avoid unused variable.
55269
55270 2008-06-05  Eric Blake  <ebb9@byu.net>
55271
55272         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55273         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55274         git-version-gen fails to come up with a version.
55275         Reported by Simon Josefsson.
55276
55277 2008-06-05  Jim Meyering  <meyering@redhat.com>
55278             Paul Eggert  <eggert@cs.ucla.edu>
55279
55280         utimens.c: work around a probable Linux kernel bug
55281         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55282         appears to be a kernel bug that causes utimensat to return 280
55283         instead of 0, indicating success.
55284
55285 2008-06-04  Bruno Haible  <bruno@clisp.org>
55286
55287         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55288         2008-06-01 commit.
55289
55290 2008-06-04  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55293         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55294         (file_has_acl): Use it. Save errno afterwards.
55295         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55296
55297 2008-06-03  Bruno Haible  <bruno@clisp.org>
55298
55299         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55300         draft code. Simplify #ifs.
55301         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55302         Put Solaris code after POSIX-draft code. Fix comments regarding
55303         Solaris 10, HP-UX. Mention Cygwin.
55304         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55305
55306 2008-06-03  Eric Blake  <ebb9@byu.net>
55307
55308         Provide fallback for older kernels.
55309         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55310         Provide runtime fallback if kernel lacks support.
55311         Reported by Mike Frysinger.
55312
55313 2008-06-02  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55316         it exists.
55317
55318 2008-06-02  Bruno Haible  <bruno@clisp.org>
55319
55320         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55321         * lib/copy-acl.c (qcopy_acl): Update comment.
55322
55323 2008-06-02  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55326         like ACL APIs.
55327
55328 2008-06-02  Bruno Haible  <bruno@clisp.org>
55329
55330         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55331         * tests/test-set-mode-acl.sh: Likewise.
55332         * tests/test-copy-acl.sh: Likewise.
55333         * tests/test-copy-file.sh: Likewise.
55334
55335 2008-06-02  Bruno Haible  <bruno@clisp.org>
55336
55337         * tests/test-file-has-acl.sh: Remove unused code.
55338
55339 2008-06-01  Bruno Haible  <bruno@clisp.org>
55340
55341         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55342         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55343         messages.
55344         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55345
55346 2008-06-01  Bruno Haible  <bruno@clisp.org>
55347
55348         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55349         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55350         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55351         APIs.
55352         * modules/acl-tests (configure.ac): Remove tests now contained in
55353         m4/acl.m4.
55354
55355 2008-06-02  Jim Meyering  <meyering@redhat.com>
55356
55357         announce-gen: use a better key-server host name
55358         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55359         it may be more consistently reliable.  Suggested by Werner Koch
55360         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55361
55362 2008-06-01  Bruno Haible  <bruno@clisp.org>
55363
55364         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55365         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55366
55367 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55368
55369         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55370
55371 2008-06-01  Bruno Haible  <bruno@clisp.org>
55372
55373         New ACL tests.
55374         * tests/test-file-has-acl.sh: New file.
55375         * tests/test-file-has-acl.c: New file.
55376         * tests/test-set-mode-acl.sh: New file.
55377         * tests/test-set-mode-acl.c: New file.
55378         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55379         * tests/test-copy-acl.c: New file.
55380         * modules/acl-tests: New file, based on modules/copy-file-tests.
55381         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55382         (Depends-on): Add acl-tests.
55383         (configure.ac): Remove checks.
55384         (Makefile.am): Don't create test-sameacls program here any more.
55385
55386 2008-06-01  Bruno Haible  <bruno@clisp.org>
55387
55388         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55389         * tests/test-sameacls.c: Include progname.h.
55390         (main): Invoke set_program_name. Portability fixes for MacOS X,
55391         Solaris, HP-UX.
55392
55393 2008-06-01  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55396         function.
55397         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55398
55399 2008-06-01  Bruno Haible  <bruno@clisp.org>
55400
55401         * modules/rpmatch (Depends-on): Add strdup.
55402
55403 2008-06-01  Bruno Haible  <bruno@clisp.org>
55404
55405         * lib/pipe.c: Include unistd-safer.h.
55406         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55407         * modules/pipe (Depends-on): Add unistd-safer.
55408
55409 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55410
55411         * modules/autobuild (configure.ac): Call AB_INIT.
55412
55413 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55414
55415         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55416         Suggested by Bruno Haible <bruno@clisp.org>.
55417
55418 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55419
55420         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55421         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55422         <bruno@clisp.org>.
55423
55424 2008-05-29  Eric Blake  <ebb9@byu.net>
55425
55426         Prefer new POSIX 200x interfaces over futimesat.
55427         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55428         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55429         when available.
55430         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55431
55432 2008-05-28  Bruno Haible  <bruno@clisp.org>
55433
55434         * modules/stpcpy (License): Change to LGPLv2+.
55435         Requested by David Lutterkort <dlutter@redhat.com>.
55436
55437 2008-05-27  Bruno Haible  <bruno@clisp.org>
55438
55439         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55440         current mingw.
55441         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55442
55443 2008-05-27  Bruno Haible  <bruno@clisp.org>
55444
55445         * modules/iconv_open (Link): New section, from module 'iconv'.
55446         * modules/striconv (Link): Likewise.
55447         * modules/striconveh (Link): Likewise.
55448         * modules/xstriconv (Link): Likewise.
55449         * modules/unicodeio (Link): Likewise.
55450         * modules/propername (Link): Likewise.
55451         Reported by Jim Meyering.
55452
55453 2008-05-26  Jim Meyering  <meyering@redhat.com>
55454
55455         sha256: do not artificially restrict buffer length to be < 2^32
55456         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55457         uint32_t to size_t.
55458         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55459         to match.
55460
55461         avoid unaligned access errors, e.g., on sparc
55462         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55463         direct access through a possibly-unaligned uint64* pointer.
55464         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55465         direct access through a possibly-unaligned uint32* pointer.
55466         Prompted by this patch from Tom "spot" Callaway:
55467         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55468
55469         sha512.c: fix typo in comment
55470         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55471
55472 2008-05-25  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55475         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55476         (Makefile.am): Update lib_SOURCES.
55477
55478 2008-05-25  Bruno Haible  <bruno@clisp.org>
55479
55480         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55481
55482 2008-05-25  Jim Meyering  <meyering@redhat.com>
55483
55484         useless-if-before-free: freed expr may have white-space differences
55485         * build-aux/useless-if-before-free: Recognize cases in which the
55486         freed expression differs from the tested one in embedded white
55487         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55488         $1 was used, so we can't make any regexp shy.  Improved tests now
55489         detect this.
55490
55491         useless-if-before-free: accept white space in the expression.
55492         * build-aux/useless-if-before-free: For now, any white space
55493         in the expression must be identical in the free argument.
55494
55495         useless-if-before-free: efficiency tweak
55496         * build-aux/useless-if-before-free: Make the expression-matching
55497         regexp "shy".
55498         Make the *outer* regexp shy, not the expr-matching one.
55499
55500         update code-in-comment to accept cast of free arg
55501         * build-aux/useless-if-before-free: Update regexp.
55502
55503 2008-05-25  Bruno Haible  <bruno@clisp.org>
55504
55505         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55506         * modules/copy-file-tests (Files, Makefile.am): Update.
55507         * tests/test-copy-file.c (func_test_copy): Update.
55508
55509 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55510
55511         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55512
55513 2008-05-23  Bruno Haible  <bruno@clisp.org>
55514
55515         Improve support for ACLs on OSF/1.
55516         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55517         Remove fallback for unknown flavors of ACLs.
55518
55519 2008-05-22  Bruno Haible  <bruno@clisp.org>
55520
55521         Add support for ACLs on OSF/1.
55522         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55523         replacements.
55524         (acl_free_text): New macro fallback.
55525         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55526         acl_free.
55527         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55528         acl_free_text function. Require AC_C_INLINE.
55529
55530 2008-05-22  Bruno Haible  <bruno@clisp.org>
55531
55532         Make copy_acl work on MacOS X 10.5.
55533         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55534         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55535         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55536         If MODE_INSIDE_ACL, don't assume that every system has the same text
55537         representation for ACLs as FreeBSD.
55538         * lib/copy-acl.c (copy_acl): Add support for platforms with
55539         !MODE_INSIDE_ACL.
55540         * lib/file-has-acl.c (file_has_acl): Likewise.
55541         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55542         FreeBSD, MacOS X, or IRIX, respectively.
55543
55544 2008-05-22  Bruno Haible  <bruno@clisp.org>
55545
55546         * lib/acl.h: Don't include <sys/acl.h>.
55547         (GETACLCNT): Move fallback to lib/acl-internal.h.
55548         * lib/acl-internal.h: Include <sys/acl.h> here.
55549         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55550
55551 2008-05-22  Bruno Haible  <bruno@clisp.org>
55552
55553         Split off copy_acl function to separate file.
55554         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55555         * lib/acl.c (copy_acl): Moved function to separate file.
55556         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55557         * modules/acl (Files): Add lib/copy-acl.c.
55558         (Makefiles.am): Augment lib_SOURCES.
55559
55560 2008-05-22  Bruno Haible  <bruno@clisp.org>
55561
55562         * modules/copy-file-tests: New file.
55563         * tests/test-copy-file.sh: New file.
55564         * tests/test-copy-file.c: New file.
55565         * tests/test-copy-file-sameacls.c: New file.
55566
55567 2008-05-22  Eric Blake  <ebb9@byu.net>
55568
55569         Avoid gcc warning.
55570         * tests/test-memcmp.c (main): Pass NULL indirectly.
55571
55572 2008-05-21  Bruno Haible  <bruno@clisp.org>
55573
55574         Add reference doc about ACLs.
55575         * doc/acl-resources.txt: New file.
55576         * doc/acl-cygwin.txt: New file.
55577
55578 2008-05-21  Bruno Haible  <bruno@clisp.org>
55579
55580         Avoid one more warning from gcc.
55581         * lib/vasnprintf.c (IF_LINT): Update comments.
55582         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55583
55584 2008-05-21  Jim Meyering  <meyering@redhat.com>
55585
55586         avoid a warning from gcc
55587         * lib/vasnprintf.c (IF_LINT): Define.
55588         (scale10_round_decimal_long_double):
55589         Use it to avoid a "may be used uninitialized" warning.
55590         (scale10_round_decimal_double): Likewise.
55591
55592 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55593
55594         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55595         declared.
55596
55597 2008-05-20  Bruno Haible  <bruno@clisp.org>
55598
55599         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55600         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55601
55602 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55603
55604         * modules/memcmp-tests: New file.
55605         * tests/test-memcmp.c: New file.
55606
55607 2008-05-19  Bruno Haible  <bruno@clisp.org>
55608
55609         * modules/propername (Notice, configure.ac): Put quoted "..." into
55610         --keyword option.
55611         * lib/propername.h: Update comments accordingly.
55612         Reported by Eric Blake.
55613
55614 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55615
55616         * modules/getpass-gnu (Depends-on): Add fseeko.
55617
55618 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55619
55620         * modules/base64-tests: New file.
55621
55622 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55623
55624         * lib/base64.c (base64_decode_ctx): If a decode context structure
55625         was passed in use it to ignore newlines.  If a context structure
55626         was _not_ passed in, continue to treat newlines as garbage (this
55627         is the historical behavior).  Formerly base64_decode.
55628         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55629         takes a decode context structure.
55630         * lib/base64.h (base64_decode): Macro for four-argument calls.
55631         (base64_decode_alloc): Likewise.
55632         * lib/base64.c (base64_decode_ctx): If a decode context structure
55633         was passed in use it to ignore newlines.  If a context structure
55634         was _not_ passed in, continue to treat newlines as garbage (this
55635         is the historical behavior).  Formerly base64_decode.
55636         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55637         takes a decode context structure.
55638         * lib/base64.h (base64_decode): Macro for four-argument calls.
55639         (base64_decode_alloc): Likewise.
55640
55641 2008-05-19  Jim Meyering  <meyering@redhat.com>
55642
55643         avoid a warning from gcc
55644         * lib/trim.c (IF_LINT): Define.
55645         (trim2): Use it to avoid a "may be used uninitialized" warning.
55646
55647         Fix doc typo.
55648         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55649
55650 2008-05-19  Bruno Haible  <bruno@clisp.org>
55651
55652         * doc/glibc-functions/getpass.texi: Document limits of other
55653         implementations.
55654
55655 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55656             Bruno Haible <bruno@clisp.org>
55657
55658         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55659
55660 2008-05-18  Bruno Haible  <bruno@clisp.org>
55661
55662         * modules/propername: New file, from GNU gettext.
55663         * lib/propername.h: New file, from GNU gettext.
55664         * lib/propername.c: New file, from GNU gettext.
55665         * MODULES.html.sh (Internationalization functions): Add propername.
55666
55667 2008-05-16  Jim Meyering  <meyering@redhat.com>
55668             Bruno Haible  <bruno@clisp.org>
55669
55670         Avoid some warnings from "gcc -Wshadow".
55671         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55672
55673 2008-05-15  Eric Blake  <ebb9@byu.net>
55674
55675         Extend previous patch to cygwin 1.7.0.
55676         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55677         fast implementation in cygwin >= 1.7.0.
55678         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55680
55681 2008-05-15  Bruno Haible  <bruno@clisp.org>
55682
55683         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55684         implementation in glibc >= 2.9.
55685         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55686         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55687
55688 2008-05-15  Bruno Haible  <bruno@clisp.org>
55689
55690         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55691         (Unicode string functions): Add unilbrk/*.
55692         Reported by Karl Berry.
55693
55694 2008-05-15  Eric Blake  <ebb9@byu.net>
55695
55696         Fix violation of <stdbool.h> replacement in regex.
55697         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55698         * lib/regexec.c (re_search_internal): Likewise.
55699         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55700
55701 2008-05-15  Jim Meyering  <meyering@redhat.com>
55702
55703         avoid distracting test output when git or cvs is not found
55704         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55705         * tests/test-vc-list-files-git.sh: Likewise.
55706
55707 2008-05-15  Eric Blake  <ebb9@byu.net>
55708
55709         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55710         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55711         glibc version.
55712         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55713         * doc/posix-functions/strstr.texi (strstr): Likewise.
55714         * lib/str-two-way.h (MAX): Sychronize with glibc.
55715
55716 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55717
55718         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55719         opr.ctx_type.
55720         (calc_first): Initialize constraint field.
55721         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55722         Fix grammar.
55723         (duplicate_node): Merge constraint field for all node types.
55724         (calc_eclosure_iter): Look at constraint field for all node types.
55725         * lib/regex_internal.c (create_cd_newstate): Don't look at
55726         opr.ctx_type.
55727
55728 2008-05-14  Bruno Haible  <bruno@clisp.org>
55729
55730         Help GCC to do better code generation.
55731         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55732         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55733         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55734         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55735         Declare with attribute 'malloc' if supported.
55736
55737 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55738
55739         use "echo STR|wc -c" rather than unportable "expr length STR"
55740         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55741         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55742
55743 2008-05-14  Jim Meyering  <meyering@redhat.com>
55744
55745         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55746         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55747         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55748         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55749         via Collin Lasse.
55750
55751 2008-05-14  Eric Blake  <ebb9@byu.net>
55752
55753         Avoid quadratic growth in gl_LIBSOURCES.
55754         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55755         Suggested by Bruno Haible.
55756
55757         Test xmemdup0.
55758         * modules/xmemdup0-tests: New file.
55759         * tests/test-xmemdup0.c: Likewise.
55760
55761 2008-05-13  Eric Blake  <ebb9@byu.net>
55762
55763         Split xmemdup0 into its own module.
55764         * modules/xmemdup0: New file.
55765         * lib/xmemdup0.h: Likewise.
55766         * lib/xmemdup0.c: Likewise.
55767         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55768         * lib/xalloc.h (xmemdup0): Remove.
55769         * lib/xmalloc.c (xmemdup0): Likewise.
55770
55771 2008-05-13  Eric Blake  <ebb9@byu.net>
55772             Bruno Haible  <bruno@clisp.org>
55773
55774         Reduce number of forks required during autoconf.
55775         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55776         and gl_LIBSOURCES_DIR.
55777         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55778         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55779         m4_syscmd per file.
55780         <m4_foreach_w>: Move...
55781         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55782
55783 2008-05-13  Eric Blake  <ebb9@byu.net>
55784
55785         * gnulib-tool: Fix various comment typos.
55786
55787 2008-05-12  Bruno Haible  <bruno@clisp.org>
55788
55789         Tailor the linebreaking algorithm.
55790         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55791
55792 2008-05-12  Bruno Haible  <bruno@clisp.org>
55793
55794         Update to Unicode 5.0.0.
55795         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55796         LBP_JV, LBP_JT. Redistribute values.
55797         (unilbrk_table): Change size.
55798         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55799         Unicode TR#14 rev. 22.
55800         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55801         LBP_JV, LBP_JT. Redistribute values.
55802         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55803         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55804         Update.
55805         * lib/unilbrk/lbrkprop1.h: Regenerated.
55806         * lib/unilbrk/lbrkprop2.h: Regenerated.
55807         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55808         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55809         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55810         Likewise.
55811         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55812         Likewise.
55813         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55814         result.
55815         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55816         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55817         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55818         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55819         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55820         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55821
55822 2008-05-11  Bruno Haible  <bruno@clisp.org>
55823
55824         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55825
55826 2008-05-11  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55829         * modules/unilbrk/gen-lbrk: New file.
55830
55831 2008-05-11  Bruno Haible  <bruno@clisp.org>
55832
55833         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55834         * m4/sha512.m4 (gl_SHA512): Likewise.
55835
55836 2008-05-11  Jim Meyering  <meyering@redhat.com>
55837
55838         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55839         * modules/crypto/sha256: New file.
55840         * modules/crypto/sha512: Likewise.
55841         * lib/sha256.c: Likewise.
55842         * lib/sha256.h: Likewise.
55843         * lib/sha512.c: Likewise.
55844         * lib/sha512.h: Likewise.
55845         * lib/u64.h: Likewise.
55846         * m4/sha256.m4: Likewise.
55847         * m4/sha512.m4: Likewise.
55848         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55849
55850 2008-05-10  Bruno Haible  <bruno@clisp.org>
55851
55852         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55853         (Input/Output <stdio.h>): Add xprintf.
55854         (Signal handling <signal.h>): Add strsignal.
55855         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55856         (Core language properties): Add func.
55857         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55858         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55859         strings.
55860         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55861         (Input/output): New section.
55862         (File system functions): Add openat-die, stat-macros.
55863         (Networking functions): Add sockets.
55864         (Unicode string functions): Add unictype/*.
55865         (Support for building libraries and executables): Add gperf.
55866         (Support for building documentation): Add agpl-3.0.
55867         (Misc): Add nocrash.
55868
55869 2008-05-10  Bruno Haible  <bruno@clisp.org>
55870
55871         * modules/unictype/gen-ctype: New file.
55872
55873 2008-05-10  Jim Meyering  <meyering@redhat.com>
55874
55875         Make chdir-safer.c more efficient on a system with no symlinks.
55876         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55877         also if ELOOP is zero.  Suggested by Bruno Haible.
55878
55879         Make chdir-safer.c slightly safer.
55880         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55881         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55882
55883         Avoid compile failure on systems without ELOOP (like mingw).
55884         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55885         Reported by Bruno Haible.
55886
55887 2008-05-10  Bruno Haible  <bruno@clisp.org>
55888
55889         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55890         (is_utf8_encoding): Use a case-insensitive comparison.
55891         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55892         streq.
55893
55894 2008-05-10  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55897         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55898         * lib/unilbrk/ulc-common.h (iconv_string_length,
55899         iconv_string_keeping_offsets): Remove declarations.
55900         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55901         Don't include <iconv.h>, streq.h, xsize.h.
55902         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55903         conversion.
55904         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55905         <iconv.h>, streq.h, xsize.h.
55906         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55907         conversion.
55908         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55909         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55910         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55911         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55912
55913 2008-05-10  Bruno Haible  <bruno@clisp.org>
55914
55915         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55916         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55917
55918         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55919         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55920
55921         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55922         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55923
55924         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55925         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55926
55927         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55928         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55929
55930         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55931         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55932
55933         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55934         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55935
55936         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55937         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55938
55939 2008-05-10  Bruno Haible  <bruno@clisp.org>
55940
55941         Split up 'linebreak' module.
55942         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55943         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55944         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55945         modifications.
55946         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55947         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55948         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55949         lib/linebreak.c.
55950         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55951         lib/linebreak.c.
55952         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55953         lib/linebreak.c.
55954         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55955         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55956         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55957         lib/linebreak.c.
55958         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55959         lib/linebreak.c.
55960         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55961         lib/linebreak.c.
55962         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55963         lib/linebreak.c.
55964         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55965         lib/linebreak.c.
55966         * modules/unilbrk/base: New file.
55967         * modules/unilbrk/tables: New file.
55968         * modules/unilbrk/u8-possible-linebreaks: New file.
55969         * modules/unilbrk/u16-possible-linebreaks: New file.
55970         * modules/unilbrk/u32-possible-linebreaks: New file.
55971         * modules/unilbrk/ulc-common: New file.
55972         * modules/unilbrk/ulc-possible-linebreaks: New file.
55973         * modules/unilbrk/u8-width-linebreaks: New file.
55974         * modules/unilbrk/u16-width-linebreaks: New file.
55975         * modules/unilbrk/u32-width-linebreaks: New file.
55976         * modules/unilbrk/ulc-width-linebreaks: New file.
55977         * lib/linebreak.h: Remove file.
55978         * lib/linebreak.c: Remove file.
55979         * m4/linebreak.m4: Remove file.
55980         * modules/linebreak: Remove file.
55981         * NEWS: Mention the changes.
55982
55983 2008-05-09  Eric Blake  <ebb9@byu.net>
55984
55985         Add xmemdup0.
55986         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55987         implementation.
55988         * lib/xmalloc.c (xmemdup0): New C implementation.
55989
55990 2008-05-08  Bruno Haible  <bruno@clisp.org>
55991
55992         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55993
55994 2008-05-07  Eric Blake  <ebb9@byu.net>
55995
55996         Support cross-compilation of <wctype.h>.
55997         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55998         AC_CACHE_CHECK.
55999
56000 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56001
56002         * build-aux/vc-list-files: Add support for bzr.
56003
56004 2008-05-03  Jim Meyering  <meyering@redhat.com>
56005
56006         avoid failed assertion with tight malloc
56007         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56008
56009 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56010
56011         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56012         are needed from arpa/inet.h.
56013         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56014         Reported by Bruno Haible.
56015
56016 2008-05-02  Jim Meyering  <meyering@redhat.com>
56017
56018         avoid compilation error on FreeBSD 6
56019         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56020
56021 2008-05-01  Jim Meyering  <meyering@redhat.com>
56022
56023         useless-if-before-free: correct --help's exit status description
56024         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56025         for one or more matches, etc.  Reported by Bruno Haible.
56026
56027         vc-list-files: make the stand-alone gnulib test work
56028         * modules/vc-list-files-tests (configure.ac):
56029         Define and AC_SUBST abs_aux_dir.
56030         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56031         $(abs_top_srcdir) to each script and having each of them
56032         duplicate the work of setting PATH, set PATH here, using
56033         the new variable, abs_aux_dir instead.
56034         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56035         * tests/test-vc-list-files-git.sh: Likewise.
56036         Reported by Bruno Haible.
56037
56038 2008-05-01  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56041         reallocation. Rename 'done' to 'found_delimiter'.
56042
56043 2008-05-01  Jim Meyering  <meyering@redhat.com>
56044
56045         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56046         * build-aux/vc-list-files: Use `...`, not $(...).
56047
56048 2008-04-30  Jim Meyering  <meyering@redhat.com>
56049
56050         add tests for vc-list-files
56051         * modules/vc-list-files-tests: New module.
56052         * tests/test-vc-list-files-cvs.sh: New file.
56053         * tests/test-vc-list-files-git.sh: New file.
56054
56055         avoid a warning from gcc
56056         * lib/getndelim2.c (IF_LINT): Define.
56057         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56058
56059         vc-list-files: work properly with build-aux/cvsu, too
56060         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56061         to all cvs-based clauses.
56062
56063         vc-list-files: work properly in the CVS+awk case, too
56064         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56065
56066         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56067         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56068         take more than one file argument, so .  Add quotes, just in case $dir
56069         ever contains a shell meta-character.  Prompted by Soren Hansen in
56070         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56071
56072 2008-04-29  Eric Blake  <ebb9@byu.net>
56073
56074         Optimize getndelim2 to use block operations when possible.
56075         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56076         freadseek, and memchr2.
56077         * lib/getndelim2.c (getndelim2): Use them for block reads.
56078
56079 2008-04-29  Bruno Haible  <bruno@clisp.org>
56080
56081         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56082         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56083         * modules/inet_ntop (Depends-on): Add extensions.
56084         * modules/inet_pton (Depends-on): Likewise.
56085         Reported by Simon Josefsson.
56086
56087 2008-04-29  Jim Meyering  <meyering@redhat.com>
56088
56089         When the is more than one match in a block, match all of them.
56090         * build-aux/useless-if-before-free: Iterate through each block
56091         until there are no more matches.
56092
56093         Fix broken useless-if-before-free script.
56094         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56095         the expression to match cast of argument to free-like function.
56096
56097 2008-04-29  Eric Blake  <ebb9@byu.net>
56098
56099         Use new header.
56100         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56101
56102 2008-04-29  Jim Meyering  <meyering@redhat.com>
56103
56104         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56105         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56106         by gnulib to exist and to declare e.g., inet_ntop.
56107         Don't include "inet_ntop.h", now removed.
56108
56109         * m4/arpa_inet_h.m4: Remove trailing blanks.
56110
56111 2008-04-29  Eric Blake  <ebb9@byu.net>
56112
56113         Silence valgrind on safe reads beyond potential array bounds.
56114         * lib/rawmemchr.valgrind: New file.
56115         * lib/strchrnul.valgrind: Likewise.
56116         * modules/rawmemchr (Files): Distribute new file.
56117         * modules/strchrnul (Files): Likewise.
56118         Suggested by Bruno Haible.
56119
56120 2008-04-29  Bruno Haible  <bruno@clisp.org>
56121
56122         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56123         (inet_ntop, inet_pton): Change portability warning's wording.
56124         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56125         Invoke gl_CHECK_NEXT_HEADERS.
56126         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56127         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56128         set ARPA_INET_H.
56129         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56130         * modules/arpa_inet (Description): No longer only for systems that
56131         lack it.
56132         (Depends-on): Add include_next.
56133         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56134         HAVE_ARPA_INET_H.
56135
56136 2008-04-29  Jim Meyering  <meyering@redhat.com>
56137
56138         * modules/mkdir (License): Re-license as LGPLv2+.
56139
56140 2008-04-29  Bruno Haible  <bruno@clisp.org>
56141
56142         * modules/rawmemchr (Maintainer): Set to Eric.
56143         * modules/strchrnul (Maintainer): Likewise.
56144
56145 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56146
56147         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56148         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56149
56150         * modules/arpa_inet (arpa/inet.h): Use them.
56151
56152 2008-04-28  Eric Blake  <ebb9@byu.net>
56153
56154         Test getndelim2.
56155         * modules/getndelim2-tests: New file.
56156         * tests/test-getndelim2.c: Likewise.
56157         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56158         stream.
56159         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56160
56161         * MODULES.html.sh: Document new module.
56162
56163 2008-04-20  Bruno Haible  <bruno@clisp.org>
56164
56165         * lib/c-stack.c (die): Use raise.
56166         * modules/c-stack (Depends-on): Add raise.
56167
56168 2008-04-28  Bruno Haible  <bruno@clisp.org>
56169
56170         Expect rpmatch to be declared.
56171         * lib/yesno.c (rpmatch): Remove declaration.
56172
56173         Declare rpmatch.
56174         * lib/stdlib.in.h (rpmatch): New declaration.
56175         * lib/rpmatch.c: Include <stdlib.h> first.
56176         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56177         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56179         HAVE_RPMATCH.
56180         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56181         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56182         (Include): Set to <stdlib.h>.
56183         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56184         HAVE_RPMATCH.
56185         * NEWS: Document the change.
56186
56187 2008-04-28  Bruno Haible  <bruno@clisp.org>
56188
56189         Change rpmatch to use nl_langinfo when appropriate.
56190         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56191         (N_): New macro.
56192         (localized_pattern): New function/macro.
56193         (try): Remove match, nomatch arguments. Copy the pattern into safe
56194         memory before caching it.
56195         (rpmatch): Use localized_pattern. Add translator comments.
56196         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56197         Suggested by Eric Blake.
56198         * modules/rpmatch (Depends-on): Add stdbool.
56199
56200 2008-04-28  Eric Blake  <ebb9@byu.net>
56201
56202         Add rawmemchr module, matching glibc.
56203         * modules/string (Makefile.am): New indicator.
56204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56205         * lib/string.in.h (rawmemchr): Declare when appropriate.
56206         * modules/rawmemchr: New file.
56207         * m4/rawmemchr.m4: Likewise.
56208         * lib/rawmemchr.c: Likewise.
56209         * modules/rawmemchr-tests: Likewise.
56210         * tests/test-rawmemchr.c: Likewise.
56211         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56212         module.
56213         * modules/strchrnul (Depends-on): Add rawmemchr.
56214         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56215
56216         Whitespace cleanup.
56217         * tests/test-strchrnul.c: Reindent.
56218         * lib/strchrnul.c: Likewise.
56219
56220         Optimize and test strchrnul.
56221         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56222         * modules/strchrnul-tests: New file.
56223         * tests/test-strchrnul.c: Likewise.
56224
56225         Remove intprops dependency.
56226         * modules/memchr (Depends-on): Remove intprops.
56227         * modules/memrchr (Depends-on): Likewise.
56228         * modules/memchr2 (Depends-on): Likewise.
56229         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56230         * lib/memrchr.c (__memrchr): Likewise.
56231         * lib/memrchr2.c (memchr2): Likewise.
56232         Reported by Simon Josefsson.
56233
56234 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56235
56236         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56237         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56238
56239 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56240
56241         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56242
56243         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56244
56245         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56246
56247         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56248         declarations.
56249         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56250
56251         * m4/inet_pton.m4: Don't check for header files.
56252
56253         * m4/inet_ntop.m4: Don't check for header files.
56254
56255 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56256
56257         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56258         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56259         trigger for cygwin).
56260         Reported by Bruno Haible  <bruno@clisp.org>.
56261
56262 2008-04-28  Bruno Haible  <bruno@clisp.org>
56263
56264         * doc/posix-functions/strdup.texi: Mention mingw problem.
56265
56266 2008-04-27  Bruno Haible  <bruno@clisp.org>
56267
56268         * modules/stat-time-tests (Depends-on): Add sleep.
56269         * tests/test-stat-time.c (force_unlink): New function.
56270         (cleanup): Use it.
56271         (test_mtime): Remove the ctime related tests.
56272         (test_ctime): New function, containing the ctime related tests.
56273         (main): Call test_ctime, except on native Windows platforms.
56274
56275 2008-04-27  Bruno Haible  <bruno@clisp.org>
56276
56277         * lib/rpmatch.c (rpmatch): Add some comments.
56278         Reported by James Youngman <jay@gnu.org>.
56279
56280 2008-04-27  Bruno Haible  <bruno@clisp.org>
56281
56282         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56283         quiet NaNs.
56284
56285 2008-04-27  Bruno Haible  <bruno@clisp.org>
56286
56287         Make test-yesno.sh work on mingw.
56288         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56289         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56290         (main): Set stdin to binary mode.
56291         * modules/yesno-tests (Depends-on): Add binary-io.
56292
56293 2008-04-27  Bruno Haible  <bruno@clisp.org>
56294
56295         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56296         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56297         argument that lie outside the IEEE 854 domain.
56298         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56299         (gl_ISFINITE): Use it.
56300         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56301
56302 2008-04-27  Bruno Haible  <bruno@clisp.org>
56303
56304         Allow local renaming in config.h.
56305         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56306
56307 2008-04-27  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/memchr.c (__memchr): Change type of 'i'.
56310         * lib/memchr2.c (memchr2): Likewise.
56311
56312 2008-04-26  Eric Blake  <ebb9@byu.net>
56313         and Bruno Haible  <bruno@clisp.org>
56314
56315         Optimize and test memrchr.
56316         * modules/memrchr (Depends-on): Add intprops.
56317         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56318         * modules/memrchr-tests: New file.
56319         * tests/test-memrchr.c: New file.
56320
56321 2008-04-26  Bruno Haible  <bruno@clisp.org>
56322
56323         Add tentative support for DragonFly BSD.
56324         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56325         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56326         fp.
56327         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56328         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56329         * lib/fpurge.c (fpurge): Likewise.
56330         * lib/freadable.c (freaadable): Likewise.
56331         * lib/freadahead.c (freadahead): Likewise.
56332         * lib/freading.c (freading): Likewise.
56333         * lib/freadptr.c (freadptr): Likewise.
56334         * lib/freadseek.c (freadptrinc): Likewise.
56335         * lib/fseeko.c (fseeko): Likewise.
56336         * lib/fseterr.c (fseterr): Likewise.
56337         * lib/fwritable.c (fwritable): Likewise.
56338         * lib/fwriting.c (fwriting): Likewise.
56339
56340 2008-04-26  Bruno Haible  <bruno@clisp.org>
56341
56342         * lib/stdio-impl.h: New file.
56343         * lib/fbufmode.c: Include stdio-impl.h.
56344         (fbufmode): Use fp_, remove redundant #defines.
56345         * lib/fflush.c: Include stdio-impl.h.
56346         (clear_ungetc_buffer): Remove redundant #defines.
56347         * lib/fpurge.c: Include stdio-impl.h.
56348         (fpurge): Remove redundant #defines.
56349         * lib/freadable.c: Include stdio-impl.h.
56350         (freadable): Remove redundant #defines.
56351         * lib/freadahead.c: Include stdio-impl.h.
56352         (freadahead): Remove redundant #defines.
56353         * lib/freading.c: Include stdio-impl.h.
56354         (freading): Remove redundant #defines.
56355         * lib/freadptr.c: Include stdio-impl.h.
56356         (freadptr): Remove redundant #defines.
56357         * lib/freadseek.c: Include stdio-impl.h.
56358         (freadptrinc): Remove redundant #defines.
56359         * lib/fseeko.c: Include stdio-impl.h.
56360         (rpl_fseeko): Remove redundant #defines.
56361         * lib/fseterr.c: Include stdio-impl.h.
56362         (fseterr): Remove redundant #defines.
56363         * lib/fwritable.c: Include stdio-impl.h.
56364         (fwritable: Remove redundant #defines.
56365         * lib/fwriting.c: Include stdio-impl.h.
56366         (fwriting): Remove redundant #defines.
56367         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56368         * modules/fflush (Files): Likewise.
56369         * modules/fpurge (Files): Likewise.
56370         * modules/freadable (Files): Likewise.
56371         * modules/freadahead (Files): Likewise.
56372         * modules/freading (Files): Likewise.
56373         * modules/freadptr (Files): Likewise.
56374         * modules/freadseek (Files): Likewise.
56375         * modules/fseeko (Files): Likewise.
56376         * modules/fseterr (Files): Likewise.
56377         * modules/fwritable (Files): Likewise.
56378         * modules/fwriting (Files): Likewise.
56379
56380 2008-04-26  Bruno Haible  <bruno@clisp.org>
56381
56382         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56383         restore_seek_optimization, update_fpos_cache): New functions, extracted
56384         from rpl_fflush.
56385         (rpl_fflush): Use them.
56386         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56387         (gl_REPLACE_FFLUSH): Use it.
56388
56389 2008-04-26  Bruno Haible  <bruno@clisp.org>
56390
56391         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56392         on Solaris.
56393         * tests/test-xstrtoimax.sh: Likewise.
56394         * tests/test-xstrtoumax.sh: Likewise.
56395         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56396
56397 2008-04-26  Bruno Haible  <bruno@clisp.org>
56398
56399         * modules/memchr-tests: New file.
56400         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56401
56402 2008-04-26  Eric Blake  <ebb9@byu.net>
56403             Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/memchr.c: Include intprops.h.
56406         (__memchr): Optimize parallel detection of matching bytes. Rename local
56407         variables. Add explanatory comments.
56408
56409 2008-04-26  Bruno Haible  <bruno@clisp.org>
56410
56411         Fix module 'memchr', broken since 2000-10-28.
56412         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56413
56414 2008-04-26  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56417         comments.
56418
56419 2008-04-25  Eric Blake  <ebb9@byu.net>
56420
56421         Use native fstatat on cygwin 1.7.0.
56422         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56423         first.
56424
56425 2008-04-23  Eric Blake  <ebb9@byu.net>
56426
56427         Improve memchr2 performance.
56428         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56429         NUL bytes.
56430         * modules/memchr2 (Depends-on): Use intprops.h.
56431
56432 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56433
56434         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56435         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56436         <blp@cs.stanford.edu>.
56437
56438 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56439
56440         * lib/arpa_inet.in.h: New file.
56441
56442         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56443         (Makefile.am): Sed in substitute header file.
56444
56445         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56446         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56447
56448         * modules/inet_ntop (configure.ac): Use
56449         gl_ARPA_INET_MODULE_INDICATOR.
56450
56451         * modules/inet_pton (configure.ac): Use
56452         gl_ARPA_INET_MODULE_INDICATOR.
56453
56454 2008-04-22  Jim Meyering  <meyering@redhat.com>
56455
56456         * modules/verify (License): Re-license as LGPLv2+.
56457
56458 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56459
56460         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56461         parameter to void* as per POSIX standard (MinGW uses char*).
56462
56463 2008-04-21  Bruno Haible  <bruno@clisp.org>
56464
56465         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56466         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56467         Define to replacements if REPLACE_ISWCNTRL is 1.
56468         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56469         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56470         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56471         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56472         what it fixes.
56473         * doc/posix-functions/iswalpha.texi: Likewise.
56474         * doc/posix-functions/iswblank.texi: Likewise.
56475         * doc/posix-functions/iswcntrl.texi: Likewise.
56476         * doc/posix-functions/iswdigit.texi: Likewise.
56477         * doc/posix-functions/iswgraph.texi: Likewise.
56478         * doc/posix-functions/iswlower.texi: Likewise.
56479         * doc/posix-functions/iswprint.texi: Likewise.
56480         * doc/posix-functions/iswpunct.texi: Likewise.
56481         * doc/posix-functions/iswspace.texi: Likewise.
56482         * doc/posix-functions/iswupper.texi: Likewise.
56483         * doc/posix-functions/iswxdigit.texi: Likewise.
56484         Reported by Alain Guibert.
56485
56486 2008-04-21  Bruno Haible  <bruno@clisp.org>
56487
56488         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56489         Patch by Alain Guibert.
56490
56491 2008-04-21  Bruno Haible  <bruno@clisp.org>
56492
56493         Fix test failures on mingw.
56494         * tests/test-xstrtol.c (print_no_progname): New function.
56495         (main): Install it in error_print_progname hook.
56496         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56497         * tests/test-xstrtoimax.sh: Likewise.
56498         * tests/test-xstrtoumax.sh: Likewise.
56499
56500 2008-04-21  Bruno Haible  <bruno@clisp.org>
56501
56502         Fix test failure on mingw.
56503         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56504
56505 2008-04-21  Bruno Haible  <bruno@clisp.org>
56506
56507         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56508         Actually assign a value.
56509
56510 2008-04-20  Bruno Haible  <bruno@clisp.org>
56511
56512         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56513         take 2.
56514         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56515         'canonicalize-lgpl' module is also used.
56516         * lib/canonicalize-lgpl.c: Undo last change.
56517         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56518
56519 2008-04-20  Bruno Haible  <bruno@clisp.org>
56520
56521         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56522         config.h. Provide _mkdir based fallback for mingw.
56523         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56524         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56525         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56526         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56527         rather than defining mkdir in config.h.
56528         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56529         (gl_SYS_STAT_H_DEFAULTS): New macro.
56530         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56531         HAVE_IO_H any more.
56532         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56533         HAVE_DECL_MKDIR and HAVE_IO_H.
56534
56535 2008-04-20  Bruno Haible  <bruno@clisp.org>
56536
56537         * lib/isapipe.c: Port to native Windows platforms.
56538
56539 2008-04-20  Bruno Haible  <bruno@clisp.org>
56540
56541         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56542
56543 2008-04-21  Eric Blake  <ebb9@byu.net>
56544
56545         Work around preprocessors that don't handle UINTMAX_MAX.
56546         * lib/memchr2.c (memchr2): Avoid embedded #if.
56547         Reported by Alain Guibert, fix suggested by Bruno Haible.
56548
56549 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56550
56551         * doc/posix-functions/strftime.texi (strftime): Explain better
56552         Windows incompatibility.  Suggested by Micah Cowan
56553         <micah@cowan.name>.
56554
56555 2008-04-20  Bruno Haible  <bruno@clisp.org>
56556
56557         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56558         unistr/u8-mblen.
56559
56560 2008-04-20  Bruno Haible  <bruno@clisp.org>
56561
56562         Fix test failure on platforms with non-GNU iconv.
56563         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56564         (U_TO_U8): Use it, rather than u16_to_u8.
56565         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56566         units at the end of the input string.
56567         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56568
56569 2008-04-20  Bruno Haible  <bruno@clisp.org>
56570
56571         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56572         when the resulting length is 0.
56573         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56574
56575 2008-04-20  Bruno Haible  <bruno@clisp.org>
56576
56577         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56578         works.
56579         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56580
56581 2008-04-20  Bruno Haible  <bruno@clisp.org>
56582
56583         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56584         * modules/tsearch-tests (configure.ac): Test for initstate function.
56585
56586 2008-04-20  Bruno Haible  <bruno@clisp.org>
56587
56588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56589         for nlink_t if missing.
56590         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56591
56592 2008-04-19  Bruno Haible  <bruno@clisp.org>
56593
56594         Work around snprintf bug on Linux libc5.
56595         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56597         gl_SNPRINTF_SIZE1.
56598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56599         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56600         that test failed.
56601         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56602         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56603         * modules/snprintf (Files): Add m4/printf.m4.
56604         * modules/vsnprintf (Files): Likewise.
56605         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56606         * doc/posix-functions/vsnprintf.texi: Likewise.
56607
56608 2008-04-19  Bruno Haible  <bruno@clisp.org>
56609
56610         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56611         from 0.0058 to less than 10^-7.
56612
56613 2008-04-19  Bruno Haible  <bruno@clisp.org>
56614
56615         Fix rounding when a precision is given.
56616         * lib/vasnprintf.c (is_borderline): New function.
56617         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56618         9...9x.
56619         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56620         %e, %g.
56621         * tests/test-vasprintf-posix.c (test_function): Likewise.
56622         * tests/test-snprintf-posix.h (test_function): Likewise.
56623         * tests/test-sprintf-posix.h (test_function): Likewise.
56624         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56625         * tests/test-printf-posix.h (test_function): Likewise.
56626         * tests/test-printf-posix.output: Update.
56627         Reported by John Darrington <john@darrington.wattle.id.au> via
56628         Ben Pfaff <blp@cs.stanford.edu>.
56629
56630 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56631
56632         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56633         Suggested by Bruno Haible <bruno@clisp.org>.
56634
56635 2008-04-17  Bruno Haible  <bruno@clisp.org>
56636
56637         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56638         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56639         implementation.
56640         Patch by Bruce Merry <bmerry@gmail.com>.
56641
56642 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56643
56644         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56645         doesn't work under Windows.
56646
56647 2008-04-16  Bruno Haible  <bruno@clisp.org>
56648
56649         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56650         New macros.
56651         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56652         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56653         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56654         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56655         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56656         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56657         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56658         macros.
56659         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56660         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56661         Northern Sotho, Uighur.
56662
56663 2008-04-16  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56666         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56667         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56668         Reported by Daniel Bergström <daniel@octocode.com>.
56669
56670 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56671             Bruno Haible  <bruno@clisp.org>
56672
56673         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56674         function.
56675         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56676         New functions, mostly extracted from gl_locale_name_default.
56677         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56678
56679 2008-04-16  Eric Blake  <ebb9@byu.net>
56680
56681         Adjust strtod detection to catch glibc 2.7 bug.
56682         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56683         Reported by John Gatewood Ham.
56684
56685 2008-04-16  Bruno Haible  <bruno@clisp.org>
56686
56687         Add tentative support for Linux libc5.
56688         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56689         * lib/fpurge.c (fpurge): Likewise.
56690         * lib/freadable.c (freadable): Likewise.
56691         * lib/freadahead.c (freadahead): Likewise.
56692         * lib/freading.c (freading): Likewise.
56693         * lib/freadptr.c (freadptr): Likewise.
56694         * lib/freadseek.c (freadptrinc): Likewise.
56695         * lib/fseeko.c (rpl_fseeko): Likewise.
56696         * lib/fseterr.c (fseterr): Likewise.
56697         * lib/fwritable.c (fwritable): Likewise.
56698         * lib/fwriting.c (fwriting): Likewise.
56699         Reported by Alain Guibert <alguibert+bts@free.fr>.
56700
56701 2008-04-15  Bruno Haible  <bruno@clisp.org>
56702
56703         * modules/mathl (configure.ac): Define module indicator.
56704
56705 2008-04-15  Bruno Haible  <bruno@clisp.org>
56706
56707         * lib/logl.c (logl): Remove unused variables.
56708
56709 2008-04-15  Bruno Haible  <bruno@clisp.org>
56710
56711         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56712         fails.
56713
56714 2008-04-15  Bruno Haible  <bruno@clisp.org>
56715
56716         * lib/trim.c (trim2): Fix argument of isspace() macro.
56717
56718 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56719
56720         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56721         to 0.
56722         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56723
56724 2008-04-14  Bruno Haible  <bruno@clisp.org>
56725
56726         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56727         AC_LANG_PROGRAM argument.
56728         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56729         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56731         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56732         * m4/math_h.m4 (gl_MATH_H): Likewise.
56733         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56734         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56735         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56736         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56737         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56738         * m4/regex.m4 (gl_REGEX): Likewise.
56739         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56740         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56742         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56743         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56744         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56745         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56746         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56747
56748 2008-04-14  Jim Meyering  <meyering@redhat.com>
56749
56750         test-strtod: fix typos: s/abs/fabs/
56751         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56752
56753 2008-04-13  Bruno Haible  <bruno@clisp.org>
56754
56755         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56756         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56757         module is also used and while not building the reloc-wrapper.
56758
56759 2008-04-13  Bruno Haible  <bruno@clisp.org>
56760
56761         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56762
56763 2008-04-13  Bruno Haible  <bruno@clisp.org>
56764
56765         Fix AIX compilation failure introduced on 2008-04-02.
56766         * tests/test-frexp.c (exp): Undefine before redefining.
56767         * tests/test-frexpl.c (exp): Likewise.
56768
56769 2008-04-13  Bruno Haible  <bruno@clisp.org>
56770
56771         Work around a HP-UX stdio bug.
56772         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56773         * tests/test-ftello.c (main): Likewise.
56774         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56775         * doc/posix-functions/ftello.texi: Likewise.
56776
56777 2008-04-13  Bruno Haible  <bruno@clisp.org>
56778
56779         Make test-signbit pass on HP-UX/hppa.
56780         * tests/test-signbit.c (minus_zerol): New variable.
56781         (test_signbitl): Use it.
56782
56783 2008-04-13  Bruno Haible  <bruno@clisp.org>
56784
56785         Make truncl work on OSF/1 4.0.
56786         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56787         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56788         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56790         HAVE_DECL_TRUNCL.
56791         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56792         HAVE_DECL_TRUNCL.
56793         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56794
56795 2008-04-13  Bruno Haible  <bruno@clisp.org>
56796
56797         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56798
56799 2008-04-13  Bruno Haible  <bruno@clisp.org>
56800
56801         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56802         expression, so as to avoid HP-UX 11 cc compiler bug.
56803
56804 2008-04-13  Bruno Haible  <bruno@clisp.org>
56805
56806         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56807
56808 2008-04-13  Bruno Haible  <bruno@clisp.org>
56809
56810         * lib/git-merge-changelog.c: Remove empty declaration outside of
56811         functions.
56812
56813 2008-04-13  Bruno Haible  <bruno@clisp.org>
56814
56815         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56816
56817 2008-04-13  Bruno Haible  <bruno@clisp.org>
56818
56819         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56820         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56821         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56822         also if it exists but lacks definitions of the SHUT_* macros.
56823         * modules/sys_socket (Description): Update.
56824         Reported by Elbert Pol <e.pol@chello.nl>.
56825
56826 2008-04-13  Bruno Haible  <bruno@clisp.org>
56827
56828         * lib/localcharset.c (OS2): Don't redefine if already defined.
56829         Reported by Elbert Pol <e.pol@chello.nl>.
56830
56831 2008-04-13  Bruno Haible  <bruno@clisp.org>
56832
56833         * lib/binary-io.h [__EMX__]: Include <io.h>.
56834         Reported by Elbert Pol <e.pol@chello.nl>.
56835
56836 2008-04-12  Bruno Haible  <bruno@clisp.org>
56837
56838         * lib/fpucw.h: Enable the definitions also for x86_64.
56839         Needed for NetBSD/x86_64.
56840         Reported by Thomas Klausner <tk@giga.or.at>.
56841
56842 2008-04-12  Bruno Haible  <bruno@clisp.org>
56843
56844         * tests/test-strtod.c: Include isnand.h.
56845         (main): Use isnand instead of isnan.
56846         Reported by Jim Meyering.
56847
56848 2008-04-12  Bruno Haible  <bruno@clisp.org>
56849
56850         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56851         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56852
56853 2008-04-12  Jim Meyering  <meyering@redhat.com>
56854
56855         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56856
56857 2008-04-12  Bruno Haible  <bruno@clisp.org>
56858
56859         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56860         Reported by Elbert Pol <e.pol@chello.nl>.
56861
56862 2008-04-12  Eric Blake  <ebb9@byu.net>
56863
56864         Work around Solaris 10 math.h bug.
56865         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56866         (gl_MATH_H_DEFAULTS): Set up default.
56867         * modules/math (Makefile.am): Replace new indicators.
56868         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56869         * tests/test-math.c (main): Test this.
56870         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56871         * doc/posix-headers/math.texi (math.h): Mention bug.
56872         Reported by Nelson H. F. Beebe and Jim Meyering.
56873
56874 2008-04-11  Bruno Haible  <bruno@clisp.org>
56875
56876         Adapt to future versions of Apple GCC.
56877         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56878         Reported by Peter O'Gorman <peter@pogma.com>.
56879
56880 2008-04-11  Bruno Haible  <bruno@clisp.org>
56881
56882         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56883
56884 2008-04-11  Bruno Haible  <bruno@clisp.org>
56885
56886         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56887
56888         * modules/getaddrinfo-tests (Makefile.am): Define
56889         test_getaddrinfo_LDADD.
56890
56891 2008-04-11  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56894         (init): Fix syntax error.
56895         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56896         is declared.
56897
56898 2008-04-11  Bruno Haible  <bruno@clisp.org>
56899
56900         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56901         * modules/glob (Depends-on): Add stdbool.
56902
56903 2008-04-11  Bruno Haible  <bruno@clisp.org>
56904
56905         * lib/trim.c: Include <string.h>.
56906
56907 2008-04-11  Eric Blake  <ebb9@byu.net>
56908
56909         Avoid compile failure on OS/2.
56910         * lib/regex_internal.h (internal_function): Disable optimization
56911         on OS/2 (__EMX__), where it caused compiler error.
56912         Reported by Elbert Pol.
56913
56914 2008-04-11  Bruno Haible  <bruno@clisp.org>
56915
56916         Flush the standard error stream before aborting. Needed on mingw.
56917         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56918         * tests/test-array_list.c (ASSERT): Likewise.
56919         * tests/test-array_oset.c (ASSERT): Likewise.
56920         * tests/test-avltree_list.c (ASSERT): Likewise.
56921         * tests/test-avltree_oset.c (ASSERT): Likewise.
56922         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56923         * tests/test-binary-io.c (ASSERT): Likewise.
56924         * tests/test-byteswap.c (ASSERT): Likewise.
56925         * tests/test-c-ctype.c (ASSERT): Likewise.
56926         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56927         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56928         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56929         * tests/test-c-strstr.c (ASSERT): Likewise.
56930         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56931         * tests/test-canonicalize.c (ASSERT): Likewise.
56932         * tests/test-carray_list.c (ASSERT): Likewise.
56933         * tests/test-ceilf1.c (ASSERT): Likewise.
56934         * tests/test-ceilf2.c (ASSERT): Likewise.
56935         * tests/test-ceill.c (ASSERT): Likewise.
56936         * tests/test-count-one-bits.c (ASSERT): Likewise.
56937         * tests/test-fbufmode.c (ASSERT): Likewise.
56938         * tests/test-fflush2.c (ASSERT): Likewise.
56939         * tests/test-floorf1.c (ASSERT): Likewise.
56940         * tests/test-floorf2.c (ASSERT): Likewise.
56941         * tests/test-floorl.c (ASSERT): Likewise.
56942         * tests/test-fopen.c (ASSERT): Likewise.
56943         * tests/test-fpending.c (ASSERT): Likewise.
56944         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56945         * tests/test-fpurge.c (ASSERT): Likewise.
56946         * tests/test-freadable.c (ASSERT): Likewise.
56947         * tests/test-freadahead.c (ASSERT): Likewise.
56948         * tests/test-freading.c (ASSERT): Likewise.
56949         * tests/test-freadptr.c (ASSERT): Likewise.
56950         * tests/test-freadptr2.c (ASSERT): Likewise.
56951         * tests/test-freadseek.c (ASSERT): Likewise.
56952         * tests/test-freopen.c (ASSERT): Likewise.
56953         * tests/test-frexp.c (ASSERT): Likewise.
56954         * tests/test-frexpl.c (ASSERT): Likewise.
56955         * tests/test-fseek.c (ASSERT): Likewise.
56956         * tests/test-fseeko.c (ASSERT): Likewise.
56957         * tests/test-fstrcmp.c (ASSERT): Likewise.
56958         * tests/test-ftell.c (ASSERT): Likewise.
56959         * tests/test-ftello.c (ASSERT): Likewise.
56960         * tests/test-func.c (ASSERT): Likewise.
56961         * tests/test-fwritable.c (ASSERT): Likewise.
56962         * tests/test-fwriting.c (ASSERT): Likewise.
56963         * tests/test-getdelim.c (ASSERT): Likewise.
56964         * tests/test-getline.c (ASSERT): Likewise.
56965         * tests/test-i-ring.c (ASSERT): Likewise.
56966         * tests/test-iconv-utf.c (ASSERT): Likewise.
56967         * tests/test-iconv.c (ASSERT): Likewise.
56968         * tests/test-isfinite.c (ASSERT): Likewise.
56969         * tests/test-isnand.c (ASSERT): Likewise.
56970         * tests/test-isnanf.c (ASSERT): Likewise.
56971         * tests/test-isnanl.h (ASSERT): Likewise.
56972         * tests/test-ldexpl.c (ASSERT): Likewise.
56973         * tests/test-linked_list.c (ASSERT): Likewise.
56974         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56975         * tests/test-localename.c (ASSERT): Likewise.
56976         * tests/test-lseek.c (ASSERT): Likewise.
56977         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56978         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56979         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56980         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56981         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56982         * tests/test-mbschr.c (ASSERT): Likewise.
56983         * tests/test-mbscspn.c (ASSERT): Likewise.
56984         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56985         * tests/test-mbspbrk.c (ASSERT): Likewise.
56986         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56987         * tests/test-mbsrchr.c (ASSERT): Likewise.
56988         * tests/test-mbsspn.c (ASSERT): Likewise.
56989         * tests/test-mbsstr1.c (ASSERT): Likewise.
56990         * tests/test-mbsstr2.c (ASSERT): Likewise.
56991         * tests/test-mbsstr3.c (ASSERT): Likewise.
56992         * tests/test-memchr2.c (ASSERT): Likewise.
56993         * tests/test-memmem.c (ASSERT): Likewise.
56994         * tests/test-open.c (ASSERT): Likewise.
56995         * tests/test-printf-frexp.c (ASSERT): Likewise.
56996         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56997         * tests/test-printf-posix.c (ASSERT): Likewise.
56998         * tests/test-quotearg.c (ASSERT): Likewise.
56999         * tests/test-rbtree_list.c (ASSERT): Likewise.
57000         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57001         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57002         * tests/test-round1.c (ASSERT): Likewise.
57003         * tests/test-roundf1.c (ASSERT): Likewise.
57004         * tests/test-roundl.c (ASSERT): Likewise.
57005         * tests/test-signbit.c (ASSERT): Likewise.
57006         * tests/test-sleep.c (ASSERT): Likewise.
57007         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57008         * tests/test-snprintf.c (ASSERT): Likewise.
57009         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57010         * tests/test-stat-time.c (ASSERT): Likewise.
57011         * tests/test-strcasestr.c (ASSERT): Likewise.
57012         * tests/test-strerror.c (ASSERT): Likewise.
57013         * tests/test-striconv.c (ASSERT): Likewise.
57014         * tests/test-striconveh.c (ASSERT): Likewise.
57015         * tests/test-striconveha.c (ASSERT): Likewise.
57016         * tests/test-strsignal.c (ASSERT): Likewise.
57017         * tests/test-strstr.c (ASSERT): Likewise.
57018         * tests/test-strtod.c (ASSERT): Likewise.
57019         * tests/test-trunc1.c (ASSERT): Likewise.
57020         * tests/test-trunc2.c (ASSERT): Likewise.
57021         * tests/test-truncf1.c (ASSERT): Likewise.
57022         * tests/test-truncf2.c (ASSERT): Likewise.
57023         * tests/test-truncl.c (ASSERT): Likewise.
57024         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57025         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57026         * tests/test-vasnprintf.c (ASSERT): Likewise.
57027         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57028         * tests/test-vasprintf.c (ASSERT): Likewise.
57029         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57030         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57031         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57032         * tests/test-vsnprintf.c (ASSERT): Likewise.
57033         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57034         * tests/test-wcwidth.c (ASSERT): Likewise.
57035         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57036         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57037         * tests/test-xvasprintf.c (ASSERT): Likewise.
57038         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57039         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57040         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57041         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57042         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57043         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57044         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57045         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57046         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57047         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57048         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57049         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57050         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57051         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57052         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57053         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57054         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57055         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57056         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57057         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57058         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57059         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57060         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57061         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57062         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57063         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57064         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57065         * tests/unictype/test-combining.c (ASSERT): Likewise.
57066         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57067         * tests/unictype/test-digit.c (ASSERT): Likewise.
57068         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57069         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57070         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57071         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57072         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57073         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57074         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57075         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57076         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57077         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57078         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57079         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57080         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57081         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57082         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57083         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57084         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57085         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57086         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57087         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57088         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57089         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57090         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57091         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57092         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57093         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57094         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57095         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57096         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57097         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57098         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57099         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57100         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57101         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57102         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57103         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57104         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57105         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57106         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57107         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57108         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57109         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57110         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57111         Reported by Eric Blake.
57112
57113 2008-04-11  Bruno Haible  <bruno@clisp.org>
57114
57115         * lib/wchar.in.h: Tweak comment.
57116
57117 2008-04-11  Bruno Haible  <bruno@clisp.org>
57118
57119         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57120         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57121         gl_COMMON.
57122         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57123
57124 2008-04-11  Bruno Haible  <bruno@clisp.org>
57125
57126         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57127
57128 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57129
57130         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57131         of attempting to use non-existing /dev/*random.  Based on patch
57132         from Adam Strzelecki <ono@java.pl> in
57133         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57134
57135 2008-04-08  Bruno Haible  <bruno@clisp.org>
57136
57137         Add tentative support for emx+gcc.
57138         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57139         * lib/fpurge.c (fpurge): Likewise.
57140         * lib/freadable.c (freadable): Likewise.
57141         * lib/freadahead.c (freadahead): Likewise.
57142         * lib/freading.c (freading): Likewise.
57143         * lib/freadptr.c (freadptr): Likewise.
57144         * lib/freadseek.c (freadptrinc): Likewise.
57145         * lib/fseeko.c (rpl_fseeko): Likewise.
57146         * lib/fseterr.c (fseterr): Likewise.
57147         * lib/fwritable.c (fwritable): Likewise.
57148         * lib/fwriting.c (fwriting): Likewise.
57149         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57150
57151 2008-04-09  Eric Blake  <ebb9@byu.net>
57152
57153         Avoid some autoconf warnings.
57154         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57155         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57156         * m4/afs.m4 (gl_AFS): Likewise.
57157         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57158         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57159         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57160         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57161         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57162         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57163         (AC_CHECK_DECLS_ONCE): Likewise.
57164         Rename file...
57165         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57166         gnulib-tool requires autoconf 2.59 or better.
57167         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57168
57169 2008-04-08  Eric Blake  <ebb9@byu.net>
57170
57171         Use 'git describe --match' if present (added in git 1.5.5).
57172         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57173         if possible.
57174
57175 2008-04-08  Bruno Haible  <bruno@clisp.org>
57176
57177         Add tentative support for OpenServer.
57178         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57179         _ptr, _cnt.
57180         * lib/fpurge.c (fpurge): Likewise.
57181         * lib/freadable.c (freadable): Likewise.
57182         * lib/freadahead.c (freadahead): Likewise.
57183         * lib/freading.c (freading): Likewise.
57184         * lib/freadptr.c (freadptr): Likewise.
57185         * lib/freadseek.c (freadptrinc): Likewise.
57186         * lib/fseeko.c (rpl_fseeko): Likewise.
57187         * lib/fseterr.c (fseterr): Likewise.
57188         * lib/fwritable.c (fwritable): Likewise.
57189         * lib/fwriting.c (fwriting): Likewise.
57190         Reported by Roger Cornelius <rac@tenzing.org> and
57191         Brian K. White <brian@aljex.com>.
57192
57193 2008-04-06  Jim Meyering  <meyering@redhat.com>
57194
57195         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57196
57197 2008-04-06  Bruno Haible  <bruno@clisp.org>
57198
57199         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57200         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57201         * tests/test-printf-posix.sh: Likewise.
57202         * tests/test-vfprintf-posix.sh: Likewise.
57203         * tests/test-vprintf-posix.sh: Likewise.
57204         * tests/test-xprintf-posix.sh: Likewise.
57205
57206 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57207
57208         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57209         hide error from 'ls', needed on OS/2.
57210         Report by Elbert Pol <elbert.pol@gmail.com>.
57211
57212 2008-04-04  Eric Blake  <ebb9@byu.net>
57213
57214         Make test-fseeko.c failures meaningful.
57215         * tests/test-fseeko.c: Print line number on failure.
57216         * tests/test-fseek.c: Likewise.
57217         Reported by Nelson H. F. Beebe.
57218
57219         Improve strtod bug detection check.
57220         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57221         required for Solaris 10.
57222         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57223
57224 2008-04-04  Bruno Haible  <bruno@clisp.org>
57225
57226         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57227         by m4/setenv.m4.
57228
57229 2008-04-03  Eric Blake  <ebb9@byu.net>
57230
57231         Ensure sane .version contents.
57232         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57233         version string.
57234         * build-aux/git-version-gen: Improve documentation.
57235
57236         Make GNU make output nicer.
57237         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57238         MAKECMDGOALS to enforce message for all command line targets.  Set
57239         srcdir for use in maint.mk.
57240
57241         Another maintainer tweak.
57242         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57243         a target that regenerates version.
57244
57245 2008-04-03  Jim Meyering  <meyering@redhat.com>
57246
57247         vc-list-files: don't cause coreutils "make po-check" failure
57248         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57249
57250 2008-04-03  Eric Blake  <ebb9@byu.net>
57251
57252         Allow VPATH usage of vc-list-files.
57253         * build-aux/vc-list-files (scriptversion): Add timestamp.
57254         (options): Add --help, --version, -C.
57255         (CVS): Support installed cvsu.
57256
57257 2008-04-02  Bruno Haible  <bruno@clisp.org>
57258
57259         Avoid some "statement with no effect" warnings from gcc.
57260         * tests/test-wctype.c (main): Explicitly ignore unused values.
57261         Reported by Jim Meyering.
57262
57263 2008-04-02  Jim Meyering  <meyering@redhat.com>
57264
57265         Avoid some warnings from "gcc -Wshadow".
57266         * tests/test-frexp.c (exp): Define to a different identifier.
57267         * tests/test-frexpl.c (exp): Likewise.
57268
57269 2008-04-03  Jim Meyering  <meyering@redhat.com>
57270
57271         bootstrap: remove dangling *.[ch] symlinks from lib
57272         * build-aux/bootstrap [dangling symlink removal]: Move find's
57273         -depth option to precede all others, to avoid a warning.
57274         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57275
57276 2008-04-02  Bruno Haible  <bruno@clisp.org>
57277
57278         Avoid some warnings from "gcc -Wshadow".
57279         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57280         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57281         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57282         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57283         Reported by Jim Meyering.
57284
57285 2008-04-01  Bruno Haible  <bruno@clisp.org>
57286
57287         Fix test to work on IRIX 6.5 with cc.
57288         * tests/test-math.c (numeric_equal): New function.
57289         (main): Use it.
57290
57291 2008-04-01  Bruno Haible  <bruno@clisp.org>
57292
57293         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57294
57295 2008-04-01  Bruno Haible  <bruno@clisp.org>
57296
57297         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57298         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57299         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57300         (Depends-on): Remove math.
57301
57302         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57303         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57304         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57305         (Depends-on): Remove math.
57306
57307         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57308         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57309         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57310         (Depends-on): Remove math.
57311         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57312         (Depends-on): Remove math.
57313
57314         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57315         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57316         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57317         (Depends-on): Remove math.
57318         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57319         (Depends-on): Remove math.
57320
57321         * tests/test-round1.c: Include nan.h.
57322         (main): Use NaNd instead of NAN.
57323         * modules/round-tests (Files): Add tests/nan.h.
57324
57325         * tests/test-trunc1.c: Include nan.h.
57326         (main): Use NaNd instead of NAN.
57327         * modules/trunc-tests (Files): Add tests/nan.h.
57328
57329         * tests/test-roundf1.c: Include nan.h.
57330         (main): Use NaNf instead of NAN.
57331         * modules/roundf-tests (Files): Add tests/nan.h.
57332
57333         * tests/test-truncf1.c: Include nan.h.
57334         (main): Use NaNf instead of NAN.
57335         * modules/truncf-tests (Files): Add tests/nan.h.
57336
57337         * tests/test-ceilf1.c: Include nan.h.
57338         (main): Use NaNf instead of NAN.
57339         * modules/ceilf-tests (Files): Add tests/nan.h.
57340
57341         * tests/test-floorf1.c: Include nan.h.
57342         (main): Use NaNf instead of NAN.
57343         * modules/floorf-tests (Files): Add tests/nan.h.
57344
57345         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57346         (main): Use NaNf instead of NAN.
57347         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57348
57349         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57350         (main): Use NaNd instead of NAN.
57351         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57352
57353         * tests/test-frexp.c: Include nan.h.
57354         (main): Use NaNd instead of NAN.
57355         * modules/frexp-tests (Files): Add tests/nan.h.
57356
57357         * lib/isnan.c: Don't include <math.h>.
57358         (FUNC): Don't use NAN macro.
57359         * modules/isnand-nolibm (Depends-on): Remove math.
57360         * modules/isnanf-nolibm (Depends-on): Remove math.
57361         * modules/isnanl (Depends-on): Remove math.
57362         * modules/isnanl-nolibm (Depends-on): Remove math.
57363
57364         * tests/nan.h: New file.
57365
57366 2008-04-01  Eric Blake  <ebb9@byu.net>
57367
57368         Fix typos.
57369         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57370         values to be the right type.
57371
57372         For now, cater to gnulib strtod inaccuracies.
57373         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57374         fractional results.  While not as nice from a QoI perspective, it
57375         is a quicker patch than correctly implementing decimal to binary
57376         rounding.
57377
57378 2008-03-31  Eric Blake  <ebb9@byu.net>
57379
57380         Guarantee a definition of NAN.
57381         * lib/math.in.h (NAN): Define if missing.
57382         * tests/test-math.c (main): Test it.
57383         * doc/posix-headers/math.texi (math.h): Document this.
57384         * lib/isnan.c (rpl_isnand): Use it.
57385         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57386         * tests/test-floorf1.c (NaN): Likewise.
57387         * tests/test-frexp.c (NaN): Likewise.
57388         * tests/test-isnand.c (NaN): Likewise.
57389         * tests/test-isnanf.c (NaN): Likewise.
57390         * tests/test-round1.c (NaN): Likewise.
57391         * tests/test-roundf1.c (NaN): Likewise.
57392         * tests/test-snprintf-posix.h (NaN): Likewise.
57393         * tests/test-sprintf-posix.h (NaN): Likewise.
57394         * tests/test-trunc1.c (NaN): Likewise.
57395         * tests/test-truncf1.c (NaN): Likewise.
57396         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57397         * tests/test-vasprintf-posix.c (NaN): Likewise.
57398         * modules/isnand-nolibm (Depends-on): Add math.
57399         * modules/isnanf-nolibm (Depends-on): Likewise.
57400         * modules/isnanl (Depends-on): Likewise.
57401         * modules/isnanl-nolibm (Depends-on): Likewise.
57402         * modules/snprintf-posix-tests (Depends-on): Likewise.
57403         * modules/sprintf-posix-tests (Depends-on): Likewise.
57404         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57405         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57406         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57407         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57408
57409 2008-03-31  Bruno Haible  <bruno@clisp.org>
57410
57411         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57412         * doc/posix-functions/strtod.texi: Likewise.
57413
57414 2008-03-31  Bruno Haible  <bruno@clisp.org>
57415
57416         * tests/test-strtod.c (main): Don't use C99 syntax.
57417
57418 2008-03-31  Bruno Haible  <bruno@clisp.org>
57419
57420         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57421         Reported by Eric Blake.
57422
57423 2008-03-31  Jim Meyering  <meyering@redhat.com>
57424
57425         Don't compare actual signbit return values.
57426         * tests/test-strtod.c (main): Rather, compare only their
57427         zero/non-zero nature.
57428
57429 2008-03-31  Eric Blake  <ebb9@byu.net>
57430
57431         More strtod documentation.
57432         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57433         failures as distinct bugs.
57434
57435 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57436
57437         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57438         Problem reported by Erik Benada in
57439         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57440
57441 2008-03-30  Bruno Haible  <bruno@clisp.org>
57442
57443         * tests/test-strtod.c: Add comments about which assertion fails on which
57444         platform.
57445         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57446
57447 2008-03-30  Eric Blake  <ebb9@byu.net>
57448
57449         Test signbit behavior on zeros.
57450         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57451         (test_signbitd, test_signbitl): Likewise.
57452
57453         More strtod touchups.
57454         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57455         sign of negative underflow, for now.  Use .5, not .1.
57456         * doc/posix-functions/strtod.texi (strtod): Mention these
57457         limitations.
57458         Reported by Jim Meyering.
57459
57460 2008-03-30  Bruno Haible  <bruno@clisp.org>
57461
57462         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57463         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57464
57465 2008-03-30  Bruno Haible  <bruno@clisp.org>
57466
57467         Avoid failure when attempting to return empty iconv results on some
57468         platforms.
57469         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57470         allocation, don't report ENOMEM when the resulting string is empty.
57471
57472 2008-03-30  Bruno Haible  <bruno@clisp.org>
57473
57474         Fix buffer overrun.
57475         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57476         Don't consider the width for tmp_length. Check count against tmp_length
57477         before doing the padding. Ensure enough allocation during padding.
57478
57479 2008-03-30  Eric Blake  <ebb9@byu.net>
57480
57481         strtod touchups.
57482         * lib/strtod.c (strtod): Avoid compiler warnings.
57483         Reported by Jim Meyering.
57484
57485 2008-03-30  Bruno Haible  <bruno@clisp.org>
57486
57487         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57488         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57489         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57490         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57491         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57492         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57493         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57494         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57495
57496         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57497         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57498         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57499         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57500         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57501         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57502         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57503         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57504
57505         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57506         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57507         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57508         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57509         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57510         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57511         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57512         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57513
57514         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57515         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57516
57517         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57518         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57519
57520         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57521         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57522
57523         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57525         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57526
57527         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57529         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57530
57531         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57532         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57533         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57534
57535         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57537         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57538
57539         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57540         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57541         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57542         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57543         (Depends-on): Add EOVERFLOW.
57544         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57545         (Depends-on): Add EOVERFLOW.
57546         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57547         (Depends-on): Add EOVERFLOW.
57548         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57549         (Depends-on): Add EOVERFLOW.
57550         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57551         (Depends-on): Add EOVERFLOW.
57552         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57553         (Depends-on): Add EOVERFLOW.
57554         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57555         (Depends-on): Add EOVERFLOW.
57556         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57557         (Depends-on): Add EOVERFLOW.
57558
57559         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57561         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57562
57563         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57565         * modules/snprintf (Depends-on): Add EOVERFLOW.
57566
57567         * lib/poll.c (EOVERFLOW): Remove fallback.
57568         * modules/poll (Depends-on): Add EOVERFLOW.
57569
57570         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57571         * modules/getugroups (Depends-on): Add EOVERFLOW.
57572
57573         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57574         * modules/getdelim (Depends-on): Add EOVERFLOW.
57575
57576         * lib/ftell.c (EOVERFLOW): Remove fallback.
57577         * modules/ftell (Depends-on): Add EOVERFLOW.
57578
57579         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57581         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57582
57583         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57584
57585         * modules/EOVERFLOW-tests: New file.
57586         * tests/test-EOVERFLOW.c: New file.
57587
57588         * modules/EOVERFLOW: New file.
57589         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57590
57591 2008-03-30  Bruno Haible  <bruno@clisp.org>
57592
57593         Fix bug introduced on 2007-06-10.
57594         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57595         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57596
57597 2008-03-30  Bruno Haible  <bruno@clisp.org>
57598
57599         Improve freadseek's efficiency after ungetc.
57600         * lib/freadseek.c: Include freadahead.h.
57601         (freadptrinc): New function, extracted from freadseek.
57602         (freadseek): Use it in a loop. Use freadahead to determine the number
57603         of loop iterations.
57604         * modules/freadseek (Depends-on): Add freadahead.
57605         (configure.ac): Require AC_C_INLINE.
57606
57607 2008-03-30  Bruno Haible  <bruno@clisp.org>
57608
57609         * lib/freadseek.c (freadseek): Don't ignore the return value of
57610         freadptr.
57611
57612 2008-03-29  Eric Blake  <ebb9@byu.net>
57613
57614         Add hex float support.
57615         * modules/strtod (Depends-on): Add c-ctype.
57616         (Link): Mention POW_LIB.
57617         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57618         whitespace between 'e' and exponent.
57619         * tests/test-strtod.c (main): Enable hex float tests.
57620         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57621         now provides.
57622
57623         Document various strtod bugs, with some fixes.
57624         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57625         "-0x", "inf", "nan", and hex constants.
57626         * doc/posix-functions/atof.texi (atof): Likewise.
57627         * modules/stdlib (Makefile.am): Support strtod.
57628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57629         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57630         detect additional strtod bugs.
57631         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57632         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57633         bool where appropriate.  Parse 'inf' and 'nan'.
57634         * tests/test-strtod.c: New file.
57635         * modules/strtod (Depends-on): Add stdbool, stdlib.
57636         (configure.ac): Turn on module indicator.
57637         * modules/strtod-tests: New module.
57638
57639 2008-03-29  Eric Blake  <ebb9@byu.net>
57640
57641         Fix ftell on mingw.
57642         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57643         * modules/ftell-tests (Depends-on): Add binary-io.
57644         * modules/ftello-tests (Depends-on): Likewise.
57645         * tests/test-ftell.c (main): Enhance test to cover behavior after
57646         ungetc.  Enforce binary mode.
57647         * tests/test-ftello.c (main): Likewise.
57648
57649         Pass test-freadseek on cygwin.
57650         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57651         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57652         ungetc buffer.
57653
57654         * tests/test-fflush2.c (main): Fix typo.
57655
57656 2008-03-29  Bruno Haible  <bruno@clisp.org>
57657
57658         * tests/test-fflush2.c (main): Temporarily disable the contents of
57659         this test.
57660         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57661         Reported by Eric Blake.
57662
57663 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57664
57665         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57666         (GC_SHA224_DIGEST_SIZE): Add.
57667
57668         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57669         (gc_hash_digest_length): Likewise.
57670         (gc_hash_buffer): Likewise.
57671
57672 2008-03-25  Bruno Haible  <bruno@clisp.org>
57673
57674         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57675         detail which gettext release to use.
57676         Reported by Simon Josefsson.
57677
57678 2008-03-26  Jim Meyering  <meyering@redhat.com>
57679
57680         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57681         * modules/gnumakefile (clean-GNUmakefile): Also, use
57682         test ... && ... || : syntax rather than if-then ... fi.
57683
57684         gnumakefile: Don't double-quote-expand $(VPATH) value.
57685         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57686
57687 2008-03-24  Eric Blake  <ebb9@byu.net>
57688
57689         Alter GNUmakefile to install into top directory.
57690         * modules/maintainer-makefile: Split, and add dependency...
57691         * modules/gnumakefile: to this new module.
57692         * build-aux/GNUmakefile: Move...
57693         * top/GNUmakefile: ...here.
57694         * build-aux/maint.mk: Move...
57695         * top/maint.mk: ...here.
57696         * MODULES.html.sh (Support for maintaining...): Document new
57697         module.
57698
57699 2008-03-23  Bruno Haible  <bruno@clisp.org>
57700
57701         * gnulib-tool: New options --vc-files, --no-vc-files.
57702         (func_usage): Document them.
57703         (vc_files): New variable.
57704         (func_import): Consider vc_files.
57705         (func_create_testdir): Set vc_files to empty.
57706         Suggested by Jim Meyering and Karl Berry.
57707
57708 2008-03-23  Bruno Haible  <bruno@clisp.org>
57709
57710         Fix regex compilation error on HP-UX 11.
57711         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57712         * modules/regex (Files): Add m4/mbstate_t.m4.
57713         Reported by Ton Voon <ton.voon@altinity.com>.
57714
57715 2008-03-23  Bruno Haible  <bruno@clisp.org>
57716
57717         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57718
57719 2008-03-23  Eric Blake  <ebb9@byu.net>
57720             Bruno Haible  <bruno@clisp.org>
57721
57722         Install files from top/ in the destination directory.
57723         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57724         augmentation also for the files from top/.
57725         (func_import, func_create_testdir): Rewrite file names:
57726         top/filename -> filename.
57727
57728 2008-03-23  Bruno Haible  <bruno@clisp.org>
57729
57730         Tweak "gnulib --version" output.
57731         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57732
57733 2008-03-23  Bruno Haible  <bruno@clisp.org>
57734
57735         Tweak "gnulib --version" output.
57736         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57737         rather than contents of ChangeLog, when possible.
57738
57739 2008-03-21  Eric Blake  <ebb9@byu.net>
57740
57741         More --version tweaks.
57742         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57743         date of last ChangeLog entry.
57744
57745 2008-03-21  Jim Meyering  <meyering@redhat.com>
57746
57747         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57748
57749 2008-03-20  Eric Blake  <ebb9@byu.net>
57750
57751         VPATH fix.
57752         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57753
57754 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57755
57756         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57757         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57758
57759 2008-03-20  Eric Blake  <ebb9@byu.net>
57760
57761         Sync GNUmakefile with coreutils.
57762         * build-aux/GNUmakefile (have-Makefile): Rename...
57763         (_have-Makefile): ...to this, for namespace consideration.
57764         (GNUmakefile.cfg): Include, if present.
57765         (_autoreconf): Define a default.
57766         (_is-dist-target): New rule for rebuilds to pick up intra-release
57767         version.
57768         (maint-cfg.mk): Rename...
57769         (cfg.mk): ...to this.
57770
57771 2008-03-18  Jim Meyering  <meyering@redhat.com>
57772
57773         New script and module: mktempd
57774         * MODULES.html.sh (maint+release support): Add mktempd.
57775         * build-aux/mktempd: New file.
57776         * modules/mktempd: New file.
57777
57778 2008-03-15  Jim Meyering  <meyering@redhat.com>
57779
57780         Undo last change.
57781         * lib/sha1.c, lib/md5.c: 63 != ~63.
57782         Reported by Andreas Schwab.
57783
57784         sha1.c, md5.c: Hoist a redundant expression.
57785         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57786         "ctx->buflen" only once, before calling *_process_block.
57787         * lib/md5.c (md5_process_bytes): Likewise.
57788
57789 2008-03-14  Eric Blake  <ebb9@byu.net>
57790
57791         Bump copyright year in files generated by gnulib-tool.
57792         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57793         gnulib-tool, rather than hard-coding it.
57794
57795         Fix 'gnulib-tool --version' output to work with git.
57796         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57797         (startup): ...here.
57798         (func_version): Use it to invoke git-version-gen, rather than
57799         relying on CVS keyword expansion.  Modernize wording.
57800         (cvsdatestamp, last_checkin_date, version): Kill unused
57801         variables.
57802
57803 2008-03-12  Jim Meyering  <meyering@redhat.com>
57804
57805         Recognize optional cast of the argument to free.
57806         * build-aux/useless-if-before-free: Update regexps.
57807
57808         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57809
57810 2008-03-11  Bruno Haible  <bruno@clisp.org>
57811
57812         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57813         by a single package.
57814         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57815         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57816         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57817         Reported by Sam Steingold <sds@gnu.org>.
57818
57819 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57820
57821         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57822         repositories.
57823
57824 2008-03-11  Bruno Haible  <bruno@clisp.org>
57825
57826         Avoid conflicts between local macro definitions.
57827         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57828         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57829
57830 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57831             Bruno Haible  <bruno@clisp.org>
57832
57833         Make va_copy work with some version of xlc on AIX 5.1.
57834         * lib/stdarg.in.h: New file.
57835         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57836         On AIX, use a <stdarg.h> file substitute.
57837         * modules/stdarg (Files): Add lib/stdarg.in.h.
57838         (Depends-on): Add include_next.
57839         (Makefile.am): Build a stdarg.h substitute if requested.
57840         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57841
57842 2008-03-10  Bruno Haible  <bruno@clisp.org>
57843
57844         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57845         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57846         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57847
57848 2008-03-10  Bruno Haible  <bruno@clisp.org>
57849
57850         * modules/stdlib (Depends-on): Add include_next, remove
57851         absolute-header.
57852
57853 2008-03-09  Bruno Haible  <bruno@clisp.org>
57854
57855         * lib/freadahead.h (freadahead): Document more precisely.
57856         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57857         the sum of both buffer sizes.
57858         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57859         * NEWS: Document the change.
57860
57861 2008-03-09  Bruno Haible  <bruno@clisp.org>
57862
57863         Extend freadptr to return also the buffer size.
57864         * lib/freadptr.h (freadptr): Add sizep argument.
57865         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57866         (freadptr): Add sizep argument. Determine buffer size like freadahead
57867         does.
57868         * tests/test-freadptr.c: Don't include freadahead.h.
57869         (main): Adapt for new calling convention of freadptr.
57870         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57871         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57872         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57873         tests/test-freadptr2.sh.
57874         (Depends): Remove freadahead.
57875         (TESTS): Add test-freadptr2.sh.
57876         (check_PROGRAMS): Add test-freadptr2.
57877
57878 2008-03-09  Bruno Haible  <bruno@clisp.org>
57879
57880         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57881         Report and solution by Simon Josefsson.
57882
57883 2008-03-06  Bruno Haible  <bruno@clisp.org>
57884
57885         Make fflush after ungetc work on BSD platforms.
57886         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57887         * tests/test-fflush2.c: New file.
57888         * tests/test-fflush2.sh: New file.
57889         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57890         tests/test-fflush2.c.
57891         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57892         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57893
57894 2008-03-06  Eric Blake  <ebb9@byu.net>
57895
57896         Likewise for ftello.
57897         * modules/ftello (Dependencies): Add extensions.
57898         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57899
57900 2008-03-06  Bruno Haible  <bruno@clisp.org>
57901
57902         * modules/fseeko (Dependencies): Add extensions.
57903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57904         Needed on glibc systems.
57905
57906 2008-03-06  Bruno Haible  <bruno@clisp.org>
57907
57908         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57909         email address.
57910         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57911
57912 2008-03-06  Bruno Haible  <bruno@clisp.org>
57913
57914         * users.txt: Add libgnupdf.
57915
57916 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57917
57918         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57919         (Header File Substitutes, Function Substitutes,
57920         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57921         (Build robot for gnulib): Fix typo.
57922
57923 2008-03-06  Bruno Haible  <bruno@clisp.org>
57924
57925         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57926         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57927
57928 2008-03-06  Bruno Haible  <bruno@clisp.org>
57929
57930         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57931         * doc/gnulib.texi: Include it.
57932
57933 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57934
57935         * modules/func (License): Change license to unlimited; there was
57936         no LGPL parts in the module anyway.
57937
57938 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57939
57940         * modules/__func__: Renamed to modules/func.
57941         * modules/__func__-tests: Renamed to modules/func-tests.
57942         * tests/test-__func__.c: Renamed to tests/test-func.c.
57943         * m4/__func__.m4: Renamed to m4/func.m4.
57944         * doc/gnulib.texi (__func__): Section renamed to func.
57945         Suggested by Eric Blake <ebb9@byu.net>.
57946
57947 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57948
57949         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57950         about __func__.  Make example self-contained.  Suggested by Eric
57951         Blake <ebb9@byu.net>.
57952
57953         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57954         Suggested by Eric Blake <ebb9@byu.net>.
57955
57956 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57957
57958         * modules/__func__: New file.
57959         * modules/__func__-tests: New file.
57960         * tests/test-__func__.c: New file.
57961         * m4/__func__.m4: New file.
57962         * doc/gnulib.texi (__func__): Document __func__ module.
57963
57964 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57965
57966         * modules/byteswap (License): Re-license as LGPLv2+.
57967
57968 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57969
57970         * doc/Makefile: Add pdf target.
57971
57972 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57973
57974         * modules/inline (License): Use 'unlimited', since there are only
57975         *.m4 files in this module.
57976
57977 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57978             Bruno Haible  <bruno@clisp.org>
57979
57980         Add support for HP C 7.1 on OpenVMS 8.3.
57981         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57982
57983 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57984
57985         Update VMS specifics.
57986         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57987
57988 2008-03-02  Jim Meyering  <meyering@redhat.com>
57989
57990         Remove the last dependency on the "free" module.
57991         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57992         Reported by Bob Proulx.
57993
57994         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57995
57996         Remove useless "if" tests before free.  Deprecate "free" module.
57997         * doc/posix-functions/free.texi: Mention that this
57998         module is no longer useful.
57999         * modules/free (Notice): Say this module is obsolete.
58000         * modules/readutmp (Depends-on): Remove free.
58001         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58002         * lib/putenv.c (putenv): Likewise.
58003         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58004         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58005         * tests/test-c-strcasestr.c (main): Likewise.
58006         * tests/test-c-strstr.c (main): Likewise.
58007         * tests/test-mbscasestr1.c (main): Likewise.
58008         * tests/test-mbscasestr2.c (main): Likewise.
58009         * tests/test-mbsstr1.c (main): Likewise.
58010         * tests/test-mbsstr2.c (main): Likewise.
58011         * tests/test-memmem.c (main): Likewise.
58012         * tests/test-strcasestr.c (main): Likewise.
58013         * tests/test-striconv.c (main): Likewise.
58014         * tests/test-striconveh.c (main): Likewise.
58015         * tests/test-striconveha.c (main): Likewise.
58016         * tests/test-strstr.c (main): Likewise.
58017
58018         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58019
58020         bootstrap: sync from coreutils again
58021         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58022
58023 2008-03-01  Jim Meyering  <meyering@redhat.com>
58024
58025         bootstrap: sync from coreutils
58026         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58027         also when the target doesn't exist.
58028
58029 2008-03-01  Eric Blake  <ebb9@byu.net>
58030
58031         Fix bugs in last patch.
58032         * lib/memchr2.c (memchr2): Fix typo.
58033         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58034         extension.
58035         Reported by Bruce Korb.
58036
58037         New module 'memchr2'.
58038         * modules/memchr2: New file.
58039         * modules/memchr2-tests: Likewise.
58040         * lib/memchr2.h: Likewise.
58041         * lib/memchr2.c: Likewise, based on memchr.c.
58042         * tests/test-memchr2.c: New test.
58043         * MODULES.html.sh (String handling): Add memchr2.
58044
58045 2008-02-29  Bruno Haible  <bruno@clisp.org>
58046
58047         * modules/freadseek-tests: New file.
58048         * tests/test-freadseek.sh: New file.
58049         * tests/test-freadseek.c: New file.
58050
58051         New module 'freadseek'.
58052         * modules/freadseek: New file.
58053         * lib/freadseek.h: New file.
58054         * lib/freadseek.c: New file.
58055         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58056
58057 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58058
58059         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58060         wydawca.
58061
58062         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58063         program_invocation_name and program_invocation_short_name are
58064         present.
58065
58066 2008-02-28  Bruno Haible  <bruno@clisp.org>
58067
58068         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58069         * tests/test-freadptr.sh: Also test non-seekable stdin.
58070
58071 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58072
58073         * build-aux/bootstrap (source_base, m4_base)
58074         (doc_base, tests_base): New variables.
58075         (gnulib_tool_options): Do not hardcode base directories, use
58076         the above variables instead.
58077
58078 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58079
58080         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58081
58082 2008-02-28  Bruno Haible  <bruno@clisp.org>
58083
58084         * modules/freadptr-tests: New file.
58085         * tests/test-freadptr.sh: New file.
58086         * tests/test-freadptr.c: New file.
58087
58088         New module 'freadptr'.
58089         * modules/freadptr: New file.
58090         * lib/freadptr.h: New file.
58091         * lib/freadptr.c: New file.
58092         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58093
58094 2008-02-26  Karl Berry  <karl@freefriends.org>
58095
58096         Sync from Libtool:
58097         * libltdl/argz.c (argz_add, argz_count): New functions.
58098         * libltdl/argz.in.h: Declare them.
58099         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58100
58101 2008-02-22  Bruno Haible  <bruno@clisp.org>
58102
58103         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58104         is a pointer type.  Needed for HP-UX 10.
58105         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58106         * doc/posix-functions/gmtime_r.texi: Likewise.
58107         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58108
58109 2008-02-24  Bruno Haible  <bruno@clisp.org>
58110
58111         * modules/environ-tests: New file.
58112         * tests/test-environ.c: New file.
58113
58114         New module 'environ'.
58115         * modules/environ: New file.
58116         * lib/unistd.in.h (environ): New declaration.
58117         * m4/environ.m4: New file.
58118         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58119         after use.
58120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58121         HAVE_DECL_ENVIRON.
58122         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58123         HAVE_DECL_ENVIRON.
58124         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58125         wrong claim that 'environ' is missing on some systems.
58126         * modules/execute (Depends-on): Add environ.
58127         * lib/execute.c (environ): Remove fallback declaration.
58128         * modules/pipe (Depends-on): Add environ.
58129         * lib/pipe.c (environ): Remove fallback declaration.
58130         * modules/setenv (Depends-on): Add environ.
58131         * lib/setenv.c (environ): Remove fallback declaration.
58132         * modules/unsetenv (Depends-on): Add environ.
58133         * lib/unsetenv.c (environ): Remove fallback declaration.
58134         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58135         m4/environ.m4.
58136         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58137         (gl_PREREQ_UNSETENV): Likewise.
58138
58139 2008-02-24  Bruno Haible  <bruno@clisp.org>
58140
58141         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58142
58143 2008-02-20  Bob Proulx  <bob@proulx.com>
58144
58145         Enable use of older two part flavor 'git describe'.
58146         * build-aux/git-version-gen: If using the older two part flavor of
58147         git version then recreate the third part now present in the
58148         newer three part flavor of git describe.
58149
58150 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58151
58152         * lib/fts.c (fts_build): Typo correction to comment.
58153
58154 2008-02-17  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58157         generating no-op conflicts.
58158
58159 2008-02-17  Bruno Haible  <bruno@clisp.org>
58160
58161         Speed up by 10%.
58162         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58163         result_entries, rather than an index-based loop.
58164
58165 2008-02-17  Bruno Haible  <bruno@clisp.org>
58166
58167         Speed up by 25%.
58168         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58169         'hashcode_cached'.
58170         (entry_create): New function.
58171         (entry_hashcode): Use the cached hashcode if possible.
58172         (read_changelog_file, try_split_merged_entry): Use entry_create.
58173
58174 2008-02-17  Bruno Haible  <bruno@clisp.org>
58175
58176         Speed up from O(n^2) to O(n) for long ChangeLog files.
58177         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58178         (read_changelog_file): Change implementation of entries_reversed list
58179         to rbtreehash.
58180         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58181
58182 2008-02-17  Bruno Haible  <bruno@clisp.org>
58183
58184         New option --split-merged-entry.
58185         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58186         (find_paragraph_end, try_split_merged_entry): New functions.
58187         (long_options): Add option --split-merged-entry.
58188         (usage): Document option --split-merged-entry.
58189         (main): Implement option --split-merged-entry.
58190         Reported by Eric Blake.
58191
58192 2008-02-17  Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/git-merge-changelog.c: Include c-strstr.h.
58195         (main): Support the "git pull --rebase" situation.
58196         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58197         Reported by Eric Blake.
58198
58199 2008-02-16  Eric Blake  <ebb9@byu.net>
58200
58201         Avoid doubling \ in common case of "c-maybe" quoting style.
58202         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58203         eliding outer quotes.
58204         * lib/quotearg.h: Document this.
58205         * tests/test-quotearg.c (result_strings, inputs, results_g)
58206         (flag_results, locale_results): Test it by adding a new string to
58207         each test group.
58208         (compare_strings): Test new string.
58209
58210 2008-02-13  Eric Blake  <ebb9@byu.net>
58211
58212         Avoid trigraph quoting in default output.
58213         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58214         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58215         unless explicitly requested.
58216         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58217
58218 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58219
58220         Don't rely on signed integer overflowing to negative value.
58221         * lib/getugroups.c (getugroups): Include <limits.h>.
58222         Instead, compare against INT_MAX, and increment only if the test passes.
58223
58224 2008-02-13  Jim Meyering  <meyering@redhat.com>
58225         and Eric Blake  <ebb9@byu.net>
58226
58227         Avoid shadowing warning and compile errors on Linux.
58228         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58229         forwarding macros on Linux.
58230         (dcgettext): Define a stub, for Linux.
58231         (results_g, main): Avoid warnings.
58232
58233 2008-02-12  Eric Blake  <ebb9@byu.net>
58234
58235         Silence warning in last patch.
58236         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58237
58238         Quotearg part 4: add tests, fix c-maybe colon quoting.
58239         * lib/quotearg.h: Improve documentation.
58240         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58241         escapes when adding outer quotes.  When quoting trigraphs, use
58242         valid C notation.  When quoting NUL, omit extra characters if next
58243         character is not digit.  Alter prototype.
58244         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58245         callers.
58246         * modules/quotearg-tests: New module.
58247         * tests/test-quotearg.c: New test.
58248
58249 2008-02-07  Eric Blake  <ebb9@byu.net>
58250
58251         Quotearg part 3: add flag to control outer quote elision.
58252         * lib/quotearg.h (c_maybe_quoting_style): New style.
58253         (enum quoting_flags): Better documentation of flags.
58254         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58255         c-maybe style.
58256         (quotearg_buffer_restyled): Handle new flag to elide outer
58257         quotes.
58258
58259         Quotearg part 2: add flag that can control NUL elision.
58260         * lib/quotearg.h (set_quoting_flags): New prototype.
58261         * lib/quotearg.c (struct quoting_options): Add flag field.
58262         (set_quoting_flags): New function.
58263         (quotearg_buffer_restyled): Add flags parameter.
58264         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58265         (quotearg_n_options): Set the flag, since length cannot be
58266         returned.
58267         (quoting_options_from_style): Default flags correctly.
58268
58269         Quotearg part 1: more wrappers, restore quotearg_char state.
58270         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58271         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58272         (quotearg_colon_mem): New wrappers.
58273         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58274         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58275         functions.
58276         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58277         (quotearg_colon_mem): New functions.
58278
58279 2008-02-11  Bruno Haible  <bruno@clisp.org>
58280
58281         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58282         library in the current directory: it does not work with parallel make.
58283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58284
58285 2008-02-11  Bruno Haible  <bruno@clisp.org>
58286
58287         * .gitattributes: New file.
58288
58289 2008-02-11  Jim Meyering  <meyering@redhat.com>
58290
58291         useless-if-before-free: Fix reversed exit values.
58292         * build-aux/useless-if-before-free: Use correct values
58293         for EXIT_MATCH and EXIT_NO_MATCH.
58294
58295         * build-aux/useless-if-before-free: Close stdout carefully.
58296
58297 2008-02-10  Bruno Haible  <bruno@clisp.org>
58298
58299         New module 'git-merge-changelog'.
58300         * modules/git-merge-changelog: New file.
58301         * lib/git-merge-changelog.c: New file.
58302
58303 2008-02-10  Jim Meyering  <meyering@redhat.com>
58304
58305         useless-if-before-free: New option: --list (-l).
58306
58307         useless-if-before-free: Don't exit immediately upon open failure.
58308         * build-aux/useless-if-before-free: Exit 2 for errors.
58309         Upon failure to open a file, don't exit immediately.
58310         Rather, just warn and continue with any remaining files.
58311
58312 2008-02-10  Bruno Haible  <bruno@clisp.org>
58313
58314         New abstract list operation 'node_set_value'.
58315         * lib/gl_list.h (gl_list_node_set_value): New function.
58316         (struct gl_list_implementation): New field node_set_value.
58317         * lib/gl_list.c (gl_list_node_set_value): New function.
58318         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58319         (gl_array_list_implementation): Update.
58320         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58321         (gl_carray_list_implementation): Update.
58322         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58323         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58324         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58325         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58326         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58327         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58328         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58329         Update.
58330         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58331         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58332         (gl_sublist_list_implementation): Update.
58333
58334 2008-02-10  Bruno Haible  <bruno@clisp.org>
58335
58336         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58337         Needed when ELEMENT is #defined to 'some_type *'.
58338
58339 2008-02-10  Jim Meyering  <meyering@redhat.com>
58340
58341         New script and module: useless-if-before-free
58342         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58343         * build-aux/useless-if-before-free: New file.
58344         * modules/useless-if-before-free: New file.
58345
58346         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58347
58348         xstrtol_error: Fix typo.
58349         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58350         s/exit_failure/exit_status/.
58351
58352 2008-02-09  Jim Meyering  <meyering@redhat.com>
58353
58354         New script and module: gitlog-to-changelog
58355         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58356         * modules/gitlog-to-changelog: New file.
58357         * build-aux/gitlog-to-changelog: New file.
58358
58359 2008-02-08  Jim Meyering  <meyering@redhat.com>
58360
58361         Avoid two "parameter unused" warnings.
58362         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58363         Mark "st" as used.
58364
58365         Use "git COMMAND", not "git-COMMAND".
58366         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58367         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58368         * build-aux/git-version-gen: Use "git status", not "git-status".
58369
58370 2008-02-07  Bruno Haible  <bruno@clisp.org>
58371
58372         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58373         Avoids a crash on Windows Vista.
58374         Reported by Adam Strzelecki <ono@java.pl> via
58375         Simon Josefsson <simon@josefsson.org>.
58376
58377 2008-02-06  Bruno Haible  <bruno@clisp.org>
58378
58379         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58380         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58381         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58383         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58384         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58385         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58386         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58388         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58391         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58394         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58395         left-adjust flag.
58396         * tests/test-snprintf-posix.h (test_function): Likewise.
58397         * tests/test-sprintf-posix.h (test_function): Likewise.
58398         * tests/test-vasprintf-posix.c (test_function): Likewise.
58399         * doc/posix-functions/fprintf.texi: Update.
58400         * doc/posix-functions/printf.texi: Update.
58401         * doc/posix-functions/snprintf.texi: Update.
58402         * doc/posix-functions/sprintf.texi: Update.
58403         * doc/posix-functions/vfprintf.texi: Update.
58404         * doc/posix-functions/vprintf.texi: Update.
58405         * doc/posix-functions/vsnprintf.texi: Update.
58406         * doc/posix-functions/vsprintf.texi: Update.
58407         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58408
58409 2008-02-06  Bruno Haible  <bruno@clisp.org>
58410
58411         Fix bug introduced on 2008-01-26.
58412         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58413
58414 2008-02-06  Bruno Haible  <bruno@clisp.org>
58415
58416         Fix bug introduced on 2007-06-10.
58417         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58418         !NEED_PRINTF_FLAG_ZERO.
58419
58420 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58421
58422         getloadavg: use libperfstat on AIX5
58423         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58424
58425 2008-02-03  Bruno Haible  <bruno@clisp.org>
58426
58427         * lib/diffseq.h: Add comments about required #includes.
58428         Reported by Michael Biggs <gnulib@doubleplum.net>.
58429
58430 2008-02-01  Bruno Haible  <bruno@clisp.org>
58431
58432         * users.txt: Add gnuit.
58433
58434 2008-01-31  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/md4.c (set_uint32): Mark as inline.
58437         * lib/md5.c (set_uint32): Likewise.
58438         * lib/sha1.c (set_uint32): Likewise.
58439         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58440         * m4/md5.m4 (gl_MD5): Likewise.
58441         * m4/sha1.m4 (gl_SHA1): Likewise.
58442
58443 2008-01-31  Jim Meyering  <meyering@redhat.com>
58444
58445         Use "sizeof VAR", rather than a literal "4".
58446         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58447         * lib/md4.c (md4_read_ctx): Likewise.
58448         * lib/sha1.c (sha1_read_ctx): Likewise.
58449
58450 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58451
58452         * tests/test-sha1.c: New file, based on test-md5.c.
58453
58454         * modules/crypto/sha1-tests: New file.
58455
58456 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58457
58458         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58459
58460 2008-01-31  Jim Meyering  <meyering@redhat.com>
58461
58462         Prefer "sizeof v" over the equivalent "4".
58463         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58464         * lib/md5.c (set_uint32): Likewise.
58465         * lib/sha1.c (set_uint32): Likewise.
58466
58467 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58468
58469         * lib/sha1.c (set_uint32): Mark function as static.
58470
58471 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58472
58473         md2: clarify comments to say that alignment is not required.
58474         * lib/md2.h: Remove warning about alignment in comment.
58475         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58476         never been required.
58477
58478 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58479
58480         md4: adapt alignment constraint fix from sha1.
58481         * lib/md4.c (set_uint32): New function, from sha1.c
58482         (md4_read_ctx): Use it.
58483         (md4_finish_ctx): Doc fix.
58484         * lib/md4.h: Doc fix.
58485
58486 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58487
58488         md5: adapt alignment constraint fix from sha1.
58489         * lib/md5.c (set_uint32): New function, from sha1.c
58490         (md5_read_ctx): Use it.
58491         (md5_finish_ctx): Doc fix.
58492         * lib/md5.h: Doc fix.
58493
58494 2008-01-30  Peter Palfrader  <weasel@debian.org>
58495
58496         sha1: remove the result buffer alignment constraint
58497         * lib/sha1.c (set_uint32): New function.
58498         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58499         constraint.
58500         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58501         * lib/sha1.h: Likewise.
58502
58503 2008-01-30  Andreas Schwab  <schwab@suse.de>
58504             Bruno Haible  <bruno@clisp.org>
58505
58506         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58507         correct definition of LDBL_MIN_EXP.
58508
58509 2008-01-30  Karl Berry  <karl@gnu.org>
58510
58511         * config/srclist-update: try to preserve x bit on updates.
58512         * config/srclistvars.sh: update for karl.
58513
58514 2008-01-29  Jim Meyering  <meyering@redhat.com>
58515
58516         vasnprintf.c: Avoid warning about unused label
58517         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58518         "overflow" label definition and associated code with the
58519         same cpp condition that guards the sole use of that label.
58520
58521 2008-01-26  Bruno Haible  <bruno@clisp.org>
58522
58523         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58524         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58525         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58526         * lib/isnanl-nolibm.h (isnanl): Likewise.
58527         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58528
58529 2008-01-26  Bruno Haible  <bruno@clisp.org>
58530
58531         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58532         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58533
58534 2008-01-26  Bruno Haible  <bruno@clisp.org>
58535
58536         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58537         GCC >= 4.0 built-in.
58538         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58539
58540 2008-01-26  Bruno Haible  <bruno@clisp.org>
58541
58542         Rename isnan, applicable to 'double' only, to isnand.
58543         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58544         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58545         (configure.ac): Update.
58546         (Include): Replace "isnan.h" with "isnand.h".
58547         * m4/isnand.m4: Renamed from m4/isnan.m4.
58548         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58549         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58550         instead of isnan.c.
58551         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58552         instead of HAVE_ISNAN_IN_LIBC.
58553         (isnand): Renamed from isnan.
58554         * lib/isnand.c: New file.
58555         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58556         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58557         (Makefile.am): Update.
58558         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58559         Include isnand.h instead of isnan.h.
58560         (main): Test isnand instead of isnan.
58561         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58562         isnan-nolibm.
58563         * modules/frexp (Depends-on): Likewise.
58564         * modules/frexp-tests (Depends-on): Likewise.
58565         * modules/frexp-nolibm (Depends-on): Likewise.
58566         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58567         * modules/isfinite (Depends-on): Likewise.
58568         * modules/round-tests (Depends-on): Likewise.
58569         * modules/signbit (Depends-on): Likewise.
58570         * modules/signbit-tests (Depends-on): Likewise.
58571         * modules/snprintf-posix (Depends-on): Likewise.
58572         * modules/sprintf-posix (Depends-on): Likewise.
58573         * modules/trunc-tests (Depends-on): Likewise.
58574         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58575         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58576         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58577         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58578         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58579         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58580         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58581         * modules/vasnprintf-posix (Depends-on): Likewise.
58582         * modules/vasprintf-posix (Depends-on): Likewise.
58583         * modules/vfprintf-posix (Depends-on): Likewise.
58584         * modules/vsnprintf-posix (Depends-on): Likewise.
58585         * modules/vsprintf-posix (Depends-on): Likewise.
58586         * lib/frexp.c: Include isnand.h instead of isnan.h.
58587         (ISNAN): Set to isnand instead of isnan.
58588         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58589         (gl_isfinited): Use isnand instead of isnan.
58590         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58591         (gl_signbitd): Use isnand instead of isnan.
58592         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58593         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58594         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58595         (main): Use isnand instead of isnan.
58596         * tests/test-round1.c: Include isnand.h.
58597         (main): Use isnand instead of isnan.
58598         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58599         (ISNAN): Set to isnand instead of isnan.
58600         * tests/test-trunc1.c: Include isnand.h.
58601         (main): Use isnand instead of isnan.
58602         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58603         (equal): Use isnand instead of isnan.
58604         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58605         isnand-nolibm.
58606         * NEWS: Mention the change.
58607
58608 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58609             Bruno Haible  <bruno@clisp.org>
58610
58611         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58612         the GCC builtins for signbits are present and set
58613         REPLACE_SIGNBIT_USING_GCC if so.
58614         * lib/math.in.h (signbit): Define using GCC builtins if
58615         REPLACE_SIGNBIT_USING_GCC is set.
58616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58617         REPLACE_SIGNBIT_USING_GCC.
58618         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58619
58620 2008-01-25  Jim Meyering  <meyering@redhat.com>
58621
58622         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58623         * lib/poll.c: Include <config.h>, not "config.h".
58624         * tests/test-getaddrinfo.c: Likewise.
58625
58626 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58627
58628         * modules/sockets-tests: New file.
58629
58630 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58631
58632         * modules/sockets: New module, can be used to call WSA_Startup and
58633         WSA_Cleanup when needed.
58634
58635         * lib/sockets.h, lib/sockets.c: New files.
58636
58637         * m4/sockets.m4: New file.
58638
58639         * tests/test-sockets.c: New file.
58640
58641 2008-01-19  Bruno Haible  <bruno@clisp.org>
58642
58643         * doc/posix-headers: Renamed from doc/headers.
58644         * doc/posix-functions: Renamed from doc/functions.
58645         * doc/gnulib.texi: Update.
58646
58647 2008-01-19  Bruno Haible  <bruno@clisp.org>
58648
58649         * doc/glibc-functions/strcasestr.texi: Include contents of
58650         doc/functions/strcasestr.texi, fixing the list of platforms.
58651         * doc/functions/strcasestr.texi: Remove file.
58652
58653 2008-01-19  Bruno Haible  <bruno@clisp.org>
58654
58655         * doc/glibc-functions/memmem.texi: Include contents of
58656         doc/functions/memmem.texi.
58657         * doc/functions/memmem.texi: Remove file.
58658
58659 2008-01-18  Bruno Haible  <bruno@clisp.org>
58660
58661         * doc/glibc-functions/*.texi: New files.
58662         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58663         to use the new files.
58664
58665 2008-01-17  Bruno Haible  <bruno@clisp.org>
58666
58667         * tests/test-gethostname.c (main): Fix printf statement.
58668
58669 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58670
58671         * modules/gethostname-tests: New file.
58672
58673         * tests/test-gethostname.c: New file.
58674
58675 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58676
58677         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58678         used by the UNAME case.  Reported by Bruno Haible
58679         <bruno@clisp.org>.
58680
58681 2008-01-17  Eric Blake  <ebb9@byu.net>
58682
58683         Convert c-strcasestr to be more efficient.
58684         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58685         (Depends-on): Add c-strcase, remove malloca, strnlen.
58686         * tests/test-c-strcasestr.c (main): Enhance test.
58687         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58688
58689 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58690
58691         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58692         Use it in creating po/Makevars.
58693
58694 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58695
58696         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58697         Applications that requires it should initialize libgcrypt
58698         manually.
58699
58700 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58701
58702         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58703
58704 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58705
58706         Fix problem with getdate on mingw32 reported by Simon Josefsson
58707         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58708         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58709         tzname", when deciding whether to declare tzname.
58710         * lib/strftime.c (tzname): Likewise.
58711
58712 2008-01-15  Bruno Haible  <bruno@clisp.org>
58713
58714         Work around a MacOS X 10.5 bug in frexpl().
58715         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58716         * doc/functions/frexpl.texi: Document the bug.
58717         Reported by Elias Pipping <pipping@gentoo.org>.
58718
58719 2008-01-14  Eric Blake  <ebb9@byu.net>
58720
58721         Touch up previous patch.
58722         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58723         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58724
58725         Convert strcasestr module to use Two-Way algorithm.
58726         * modules/strcasestr-simple: New module, based on the old
58727         strcasestr, but with Two-Way rather than KMP.
58728         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58729         * lib/string.in.h (rpl_strcasestr): Declare.
58730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58731         performance.
58732         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58733         * modules/string (Makefile.am): Support strcasestr.
58734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58735         * modules/strcasestr-tests (Depends-on): Check for alarm.
58736         * tests/test-strcasestr.c: Augment test.
58737         * lib/str-two-way.h: Clean up stray macro.
58738         * NEWS: Document new module.
58739         * MODULES.html.sh (string handling): Likewise.
58740         * doc/functions/strcasestr.texi: New file.
58741         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58742         here, since it is not a POSIX function.
58743
58744 2008-01-14  Colin Watson  <cjwatson@debian.org>
58745             Bruno Haible  <bruno@clisp.org>
58746
58747         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58748         works fine; if not, set REPLACE_STRSIGNAL.
58749         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58751         REPLACE_STRSIGNAL.
58752         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58753         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58754         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58755
58756 2008-01-14  Bruno Haible  <bruno@clisp.org>
58757
58758         * modules/strsignal (Include): Change to <string.h>.
58759
58760 2008-01-14  Colin Watson  <cjwatson@debian.org>
58761
58762         * modules/argp (Notice): Add a notice recommending to change
58763         XGETTEXT_OPTIONS.
58764         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58765
58766 2008-01-13  Colin Watson  <cjwatson@debian.org>
58767
58768         * modules/strsignal-tests: New file.
58769         * tests/test-strsignal.c: New file.
58770
58771         * lib/strsignal.c: New file, from glibc with modifications.
58772         * lib/siglist.h: New file, from glibc with modifications.
58773         * lib/string.in.h (strsignal): New declaration.
58774         * m4/strsignal.m4: New file.
58775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58776         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58777         * modules/strsignal: New file.
58778         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58779         HAVE_DECL_STRSIGNAL.
58780
58781 2008-01-13  Bruno Haible  <bruno@clisp.org>
58782
58783         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58784         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58785         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58786         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58787
58788 2008-01-13  Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58791         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58792         * lib/argp.h (__attribute__): Likewise.
58793         * lib/c-stack.c (__attribute__): Likewise.
58794         * lib/error.h (__attribute__): Likewise.
58795         * lib/fts.c (__attribute__): Likewise.
58796         * lib/openat.h (__attribute__): Likewise.
58797         * lib/stdio.in.h (__attribute__): Likewise.
58798         * lib/string.in.h (__attribute__): Likewise.
58799         * lib/utimens.c (__attribute__): Likewise.
58800         * lib/vasnprintf.h (__attribute__): Likewise.
58801         * lib/xalloc.h (__attribute__): Likewise.
58802         * lib/xprintf.h (__attribute__): Likewise.
58803         * lib/xstrtol.h (__attribute__): Likewise.
58804         * lib/xvasprintf.h (__attribute__): Likewise.
58805
58806 2008-01-12  Bruno Haible  <bruno@clisp.org>
58807
58808         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58809         * doc/glibc-headers/a.out.texi: New file.
58810         * doc/glibc-headers/aliases.texi: New file.
58811         * doc/glibc-headers/alloca.texi: New file.
58812         * doc/glibc-headers/ar.texi: New file.
58813         * doc/glibc-headers/argp.texi: New file.
58814         * doc/glibc-headers/argz.texi: New file.
58815         * doc/glibc-headers/byteswap.texi: New file.
58816         * doc/glibc-headers/crypt.texi: New file.
58817         * doc/glibc-headers/endian.texi: New file.
58818         * doc/glibc-headers/envz.texi: New file.
58819         * doc/glibc-headers/err.texi: New file.
58820         * doc/glibc-headers/error.texi: New file.
58821         * doc/glibc-headers/execinfo.texi: New file.
58822         * doc/glibc-headers/fpu_control.texi: New file.
58823         * doc/glibc-headers/fstab.texi: New file.
58824         * doc/glibc-headers/fts.texi: New file.
58825         * doc/glibc-headers/getopt.texi: New file.
58826         * doc/glibc-headers/ieee754.texi: New file.
58827         * doc/glibc-headers/ifaddrs.texi: New file.
58828         * doc/glibc-headers/libintl.texi: New file.
58829         * doc/glibc-headers/mcheck.texi: New file.
58830         * doc/glibc-headers/mntent.texi: New file.
58831         * doc/glibc-headers/obstack.texi: New file.
58832         * doc/glibc-headers/paths.texi: New file.
58833         * doc/glibc-headers/printf.texi: New file.
58834         * doc/glibc-headers/pty.texi: New file.
58835         * doc/glibc-headers/resolv.texi: New file.
58836         * doc/glibc-headers/shadow.texi: New file.
58837         * doc/glibc-headers/sysexits.texi: New file.
58838         * doc/glibc-headers/ttyent.texi: New file.
58839
58840 2008-01-12  Jim Meyering  <meyering@redhat.com>
58841
58842         announce-gen: emit Gnulib's git-based version string.
58843         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58844         New option --gnulib-version=V, where V is expected to be
58845         the output of running git describe in the gnulib directory.
58846         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58847         not useful, and plan to stop publishing an xdelta file with each
58848         coreutils release.
58849
58850         * build-aux/announce-gen: Also check for lzma-compressed files.
58851
58852 2008-01-11  Bruno Haible  <bruno@clisp.org>
58853
58854         * tests/test-memmem.c (main): Increase maximum allowed time.
58855         * tests/test-strstr.c (main): Likewise.
58856
58857 2008-01-11  Bruno Haible  <bruno@clisp.org>
58858
58859         * doc/functions/memmem.texi: Add more precisions about platforms.
58860         * doc/functions/strstr.texi: Likewise.
58861
58862 2008-01-10  Eric Blake  <ebb9@byu.net>
58863
58864         * m4/strstr.m4: Delete cruft from copy-n-paste.
58865         Reported by Bruno Haible.
58866
58867 2008-01-10  Bruno Haible  <bruno@clisp.org>
58868
58869         Make c-strstr rely on strstr.
58870         * lib/c-strstr.c: Don't include str-kmp.h.
58871         (c_strstr): Define in terms of strstr.
58872         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58873         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58874
58875 2008-01-10  Bruno Haible  <bruno@clisp.org>
58876
58877         * doc/gnulib.texi (String Functions in C Locale): New section.
58878         * doc/c-ctype.texi: New file.
58879         * doc/c-strcase.texi: New file.
58880         * doc/c-strcaseeq.texi: New file.
58881         * doc/c-strcasestr.texi: New file.
58882         * doc/c-strstr.texi: New file.
58883         * doc/c-strtod.texi: New file.
58884         * doc/c-strtold.texi: New file.
58885
58886 2008-01-10  Eric Blake  <ebb9@byu.net>
58887
58888         * lib/relocatable.h: Fix a comment.
58889
58890 2008-01-10  Eric Blake  <ebb9@byu.net>
58891
58892         Share two-way algorithm.
58893         * lib/str-two-way.h: New file, merged from...
58894         * lib/memmem.c: ...here...
58895         * lib/strstr.c: ...and here.
58896         * modules/memmem (Files): Use it.
58897         * modules/strstr (Files): Likewise.
58898
58899         Avoid quadratic strstr implementations.
58900         * lib/strstr.c: New file.
58901         * m4/strstr.m4: Likewise.
58902         * modules/strstr: Likewise.
58903         * modules/strstr-tests: Likewise.
58904         * tests/test-strstr.c: Likewise.
58905         * lib/string.in.h (rpl_strstr): Declare.
58906         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58908         * modules/string (Makefile.am): Likewise.
58909         * MODULES.html.sh (string handling): Mention new module.
58910         * doc/functions/strstr.texi (strstr): Document the bug.
58911
58912 2008-01-10  Bruno Haible  <bruno@clisp.org>
58913
58914         * lib/relocatable.h (relocate): State whether result is freshly
58915         allocated or not.
58916         * lib/relocatable.c (relocate): Return a freshly allocated string
58917         instead of a pointer to a privately held string.
58918         Reported by Sylvain Beucler <beuc@gnu.org>.
58919
58920 2008-01-10  Colin Watson  <cjwatson@debian.org>
58921
58922         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58923         s/S_ISNLK/S_ISLNK/.
58924
58925 2008-01-09  Bruno Haible  <bruno@clisp.org>
58926
58927         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58928         and other files.
58929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58930         if it's only a guess.
58931         * modules/memmem: Simplify by depending on memmem-simple.
58932
58933 2008-01-09  Bruno Haible  <bruno@clisp.org>
58934
58935         Work around OpenBSD 4.0 tdelete() bug.
58936         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58937         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58938         macros and don't redefine the enum values.
58939         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58940         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58941         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58942
58943 2008-01-09  Bruno Haible  <bruno@clisp.org>
58944
58945         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58946         (main): Don't perform the tests if setlocale did not install a UTF-8
58947         locale. Needed on OpenBSD 4.0.
58948         * modules/wcwidth-tests (Depends-on): Add localcharset.
58949
58950 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58951
58952         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58953         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58954         * NEWS: announce this.
58955         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58956
58957 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58958         and Eric Blake  <ebb9@byu.net>
58959
58960         Add memmem-simple module.
58961         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58962         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58963         * modules/memmem-simple: New file.
58964         * modules/memmem (Description): Tweak.
58965         * MODULES.html.sh (string handling): Mention new module.
58966         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58967         addressed by memmem-simple.
58968         * NEWS: Document the difference.
58969
58970 2008-01-09  Eric Blake  <ebb9@byu.net>
58971
58972         Give gcc some memmem optimization hints.
58973         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58974         (strcasestr): Declare as pure.
58975         * modules/memmem (Maintainer): Claim my implementation.
58976
58977 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58978
58979         Support AIX 6.1 and higher.
58980         * build-aux/config.libpath: Likewise.
58981         * build-aux/config.rpath: Likewise.
58982
58983 2008-01-08  Jim Meyering  <meyering@redhat.com>
58984             Bruno Haible  <bruno@clisp.org>
58985
58986         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58987         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58988         Reported by Peter Fales in
58989         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58990
58991 2008-01-08  Bruno Haible  <bruno@clisp.org>
58992
58993         * modules/unictype/category-of (Depends-on): Add
58994         unictype/category-none.
58995         * modules/unictype/category-and-tests (Depends-on): Add
58996         unictype/category-{L,N,Lu,Nd}.
58997         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58998         * modules/unictype/category-or-tests (Depends-on): Add
58999         unictype/category-{L,N}.
59000         * modules/unictype/category-name-tests (Depends-on): Add
59001         unictype/category-{Z,Nl}.
59002         Reported by Simon Josefsson.
59003
59004 2008-01-08  Bruno Haible  <bruno@clisp.org>
59005
59006         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59007         convention better.
59008         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59009         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59010         Reported by Peter Miller <millerp@canb.auug.org.au>.
59011
59012 2008-01-08  Eric Blake  <ebb9@byu.net>
59013
59014         Rewrite memmem to guarantee linear complexity without malloc.
59015         * lib/memmem.c (memmem): Use Two-Way rather than
59016         Knuth-Morris-Pratt, to allow O(1) space usage.
59017         (critical_factorization, two_way_short_needle)
59018         (two_way_long_needle): New functions.
59019         (knuth_morris_pratt): Delete.
59020         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59021         Add stdint.
59022         * tests/test-memmem.c (main): Add tests for periodic needle and
59023         sublinear performance.
59024         * doc/functions/memmem.texi (memmem): Document other deficiencies
59025         in cygwin and older glibc.
59026
59027 2008-01-08  Bruno Haible  <bruno@clisp.org>
59028
59029         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59030         augmentation.
59031
59032 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59033
59034         Add a configure time option: --disable-acl.
59035         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59036         AC_ARG_ENABLE(acl).
59037
59038 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59039
59040         * tests/test-localename.c: Don't include obsolete "setenv.h".
59041
59042         * modules/localename-tests (Depends-on): Need unsetenv.
59043
59044 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59045
59046         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59047
59048 2008-01-06  Colin Watson  <cjwatson@debian.org>
59049
59050         * users.txt: Add man-db.
59051
59052 2008-01-07  Bruno Haible  <bruno@clisp.org>
59053
59054         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59055         previous section name.
59056
59057 2008-01-07  Bruno Haible  <bruno@clisp.org>
59058
59059         * lib/progname.c (set_program_name): Don't strip off a leading
59060         "lt-" prefix outside a .libs directory.
59061         Suggested by Paul Eggert.
59062
59063 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59064             Bruno Haible  <bruno@clisp.org>
59065
59066         Improve memory cleanup in 'relocatable' module.
59067         * lib/relocatable.h (compute_curr_prefix): Change return type to
59068         'char *'.
59069         * lib/relocatable.c (compute_curr_prefix): Change return type to
59070         'char *'. Free curr_installdir after use.
59071         (relocate): Free curr_prefix_better after use.
59072         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59073
59074 2008-01-01  Bruno Haible  <bruno@clisp.org>
59075
59076         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59077         failure on older glibc systems.
59078         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59079
59080 2008-01-05  Eric Blake  <ebb9@byu.net>
59081
59082         Avoid quadratic system memmem.
59083         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59084         Reported by Ralf Wildenhues.
59085
59086         Fix memmem test for mingw.
59087         * modules/memmem-tests (configure.ac): Check for alarm.
59088         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59089         it.
59090         * doc/functions/memmem.texi: New file.
59091         * doc/gnulib.texi (Function Substitutes): Add memmem.
59092         Reported by Bruno Haible.
59093
59094 2008-01-04  Bruno Haible  <bruno@clisp.org>
59095
59096         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59097         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59098         gl_HEADER_STRING_H_DEFAULTS.
59099
59100 2008-01-04  Eric Blake  <ebb9@byu.net>
59101
59102         Shorten duration of memmem test.
59103         * tests/test-memmem.c (main): Use alarm to declare failure if test
59104         is taking too long.
59105         Reported by Ralf Wildenhues.
59106
59107 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59108
59109         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59110         string, needed by strerror.
59111
59112 2008-01-03  Colin Watson  <cjwatson@debian.org>
59113             Bruno Haible  <bruno@clisp.org>
59114
59115         * doc/gnulib-tool.texi (Localization): New section.
59116
59117 2008-01-02  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59120         variables to 'unsigned char *' type.
59121         Reported by Paul Eggert.
59122
59123 2008-01-02  Jim Meyering  <jim@meyering.net>
59124
59125         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59126
59127 2007-12-31  Jim Meyering  <jim@meyering.net>
59128
59129         Avoid use of private FTS type name.
59130         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59131
59132 2007-12-30  Karl Berry  <karl@gnu.org>
59133
59134         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59135         work around defect in Texinfo and/or the standalone Info browser.
59136
59137 2007-12-30  Bruno Haible  <bruno@clisp.org>
59138
59139         Unify 5 copies of the KMP code.
59140         * lib/str-kmp.h: New file.
59141         * lib/c-strcasestr.c: Include str-kmp.h.
59142         (knuth_morris_pratt): Remove function.
59143         (c_strcasestr): Update.
59144         * lib/c-strstr.c: Include str-kmp.h.
59145         (knuth_morris_pratt): Remove function.
59146         (c_strcasestr): Update.
59147         * lib/mbscasestr.c: Include str-kmp.h.
59148         (knuth_morris_pratt_unibyte): Remove function.
59149         * lib/mbsstr.c: Include str-kmp.h.
59150         (knuth_morris_pratt_unibyte): Remove function.
59151         * lib/strcasestr.c: Include str-kmp.h.
59152         (knuth_morris_pratt): Remove function.
59153         (strcasestr): Update.
59154         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59155         * modules/c-strstr (Files): Likewise.
59156         * modules/mbscasestr (Files): Likewise.
59157         * modules/mbsstr (Files): Likewise.
59158         * modules/strcasestr (Files): Likewise.
59159         Suggested by Paul Eggert.
59160
59161 2007-12-30  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59164         defined.
59165
59166 2007-12-30  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/xmalloca.h: Include xalloc.h.
59169         (xnmalloca): New macro.
59170
59171 2007-12-30  Bruno Haible  <bruno@clisp.org>
59172
59173         * lib/malloca.h (nmalloca): New macro.
59174         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59175         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59176         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59177         knuth_morris_pratt_multibyte): Likewise.
59178         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59179         knuth_morris_pratt_multibyte): Likewise.
59180         * lib/memmem.c (knuth_morris_pratt): Likewise.
59181         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59182
59183 2007-12-25  Bruno Haible  <bruno@clisp.org>
59184
59185         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59186         * lib/glob.c: Don't include openat.h.
59187         (link_exists2_p): Add back the code that deals with the
59188         !GLOB_ALTDIRFUNC case.
59189         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59190         let it do the filename concatenation.
59191         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59192         * modules/glob (Depends-on): Remove openat.
59193
59194 2007-12-31  Bruno Haible  <bruno@clisp.org>
59195
59196         * modules/dirfd (License): Change to LGPLv2+.
59197         Approved by Jim Meyering.
59198
59199 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59200
59201         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59202         when multiplying M by sizeof (size_t).
59203
59204 2007-12-10  Martin Lambers  <marlam@marlam.de>
59205
59206         Override getpagesize on mingw.
59207         * lib/getpagesize.c: New file.
59208         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59209         * modules/getpagesize (Files): Add lib/getpagesize.c.
59210         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59212         REPLACE_GETPAGESIZE.
59213         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59214
59215 2007-12-25  Bruno Haible  <bruno@clisp.org>
59216
59217         * modules/localcharset (Notice): New field.
59218         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59219         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59220
59221 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59222             Bruno Haible  <bruno@clisp.org>
59223
59224         Avoid using the syntax symbol() in formatted documentation.
59225         * MODULES.html.sh (func_module): When replacing symbol() with a
59226         hyperlink, remove the parentheses. Show an error if some remain.
59227         Recognize and render the '...' syntax.
59228         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59229         Rework. Add paragraph about GCC's inlining.
59230         * doc/alloca.texi: Likewise.
59231         * doc/error.texi: Remove parentheses from symbol reference.
59232         * doc/gnulib-intro.texi: Likewise.
59233         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59234         * modules/fnmatch (Description): Reword to say "the ... function".
59235         * modules/full-read (Description): Likewise.
59236         * modules/full-write (Description): Likewise.
59237         * modules/safe-read (Description): Likewise.
59238         * modules/safe-write (Description): Likewise.
59239         * modules/strchrnul (Description): Likewise.
59240         * modules/trim (Description): Likewise.
59241         * modules/error (Description): Remove parentheses from symbol
59242         references.
59243         * modules/verror (Description): Likewise.
59244         Reported by Karl Berry.
59245
59246 2007-12-25  Bruno Haible  <bruno@clisp.org>
59247
59248         Fixup after 2007-10-16 commit.
59249         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59250
59251 2007-12-24  Bruno Haible  <bruno@clisp.org>
59252
59253         Make --enable-relocatable work with DESTDIR.
59254         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59255         to compute installdir from destprog.
59256         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59257         also set the RELOC_DESTDIR variable.
59258         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59259
59260 2007-12-24  Bruno Haible  <bruno@clisp.org>
59261
59262         Fix link error due to xalloc_die().
59263         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59264         of xreadlink.
59265         * lib/relocwrapper.c: Update comments.
59266         * build-aux/install-reloc: Remove xreadlink.c from file list.
59267         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59268         xreadlink.c.
59269         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59270
59271 2007-12-24  Bruno Haible  <bruno@clisp.org>
59272
59273         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59274         * lib/setenv.h: Remove file.
59275         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59276         lib/setenv.h.
59277         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59278         (Depends-on): Add stdlib.
59279         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59280         gl_FUNC_UNSETENV.
59281         (Include): Replace setenv.h with <stdlib.h>.
59282         * modules/unsetenv: New file.
59283         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59284         * lib/unsetenv.c: Include <stdlib.h> first.
59285         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59286         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59287         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59288         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59289         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59290         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59292         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59293         * doc/functions/unsetenv.texi: Update.
59294         * modules/xsetenv (Depends-on): Add unsetenv.
59295         * modules/getdate (Depends-on): Likewise.
59296         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59297         * lib/xsetenv.c: Don't include setenv.h.
59298         * lib/getdate.y: Likewise.
59299         * lib/relocwrapper.c: Likewise.
59300         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59301         (Depends-on): Add stdlib.
59302         * NEWS: Mention the changes.
59303         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59304
59305 2007-12-23  Bruno Haible  <bruno@clisp.org>
59306
59307         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59308         indentation.
59309
59310 2007-12-23  Bruno Haible  <bruno@clisp.org>
59311
59312         * lib/c-strcasestr.c: Add more comments.
59313         * lib/c-strstr.c: Likewise.
59314         * lib/mbscasestr.c: Likewise.
59315         * lib/mbsstr.c: Likewise.
59316         * lib/strcasestr.c: Likewise.
59317         * lib/memmem.c: Likewise.
59318
59319 2007-12-23  Bruno Haible  <bruno@clisp.org>
59320
59321         * tests/test-memmem.c: Include <string.h> first.
59322
59323 2007-12-22  Bruno Haible  <bruno@clisp.org>
59324
59325         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59326         the contents of $testsbase.
59327         Reported by Ralf Wildenhues.
59328
59329 2007-12-22  Bruno Haible  <bruno@clisp.org>
59330
59331         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59332         two variables local_ldadd_before, local_ldadd_last.
59333
59334 2007-12-20  Eric Blake  <ebb9@byu.net>
59335
59336         Work around circular library issue when cross-compiling.
59337         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59338         that progname.o does not need to pull in rpl_memcmp.
59339
59340 2007-12-19  Eric Blake  <ebb9@byu.net>
59341
59342         Fix memmem to avoid O(n^2) worst-case complexity.
59343         * lib/memmem.c (knuth_morris_pratt): New function.
59344         (memmem): Use it if first few naive iterations fail.
59345         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59346         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59347         * modules/memchr (License): Likewise.
59348         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59349         malloca.
59350         * tests/test-memmem.c: Rewrite, borrowing ideas from
59351         test-mbsstr1.c; the old version wouldn't even compile!
59352         * modules/memmem-tests: New file.
59353         * lib/string.in.h (rpl_memmem): Add declaration.
59354         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59356         REPLACE_MEMMEM.
59357
59358 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59359
59360         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59361         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59362         before any system include files, and undef after them all.  This
59363         should fix a problem on VMS reported by John E. Malmberg in
59364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59365
59366 2007-12-17  Eric Blake  <ebb9@byu.net>
59367
59368         Revert addition of verify, for BSD/OS.
59369         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59370         can't handle large files, for the sake of obsolete platforms.
59371         * modules/fseeko (Depends-on): Remove verify.
59372         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59373         * doc/functions/ftello.texi (ftello): Likewise.
59374         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59375         Reported by Larry Jones.
59376
59377 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59378
59379         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59380         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59381
59382 2007-12-17  Jim Meyering  <meyering@redhat.com>
59383
59384         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59385         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59386         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59387         * modules/getcwd (Depends-on): Add openat.
59388         Reported by Petr Salinger.
59389
59390 2007-12-17  Bruno Haible  <bruno@clisp.org>
59391
59392         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59393         avoid a segmentation fault of the configure test on x86_64 systems.
59394
59395 2007-12-15  Jim Meyering  <meyering@redhat.com>
59396
59397         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59398
59399 2007-12-13  Eric Blake  <ebb9@byu.net>
59400
59401         Another fseek test.
59402         * tests/test-fseek.c (main): Also test ungetc handling.
59403         * tests/test-fseeko.c (main): Likewise.
59404         * modules/fseeko (Depends-on): Add verify.
59405         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59406         large.
59407         Reported by Larry Jones.
59408
59409         Fix fseeko on mingw.
59410         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59411         seek.
59412
59413         Beef up fseek tests.
59414         * tests/test-fseek.c (main): Also test eof handling.
59415         * tests/test-fseeko.c (main): Likewise.
59416         Reported by Larry Jones.
59417
59418 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59419
59420         Fix fseeko on BSD-based platforms.
59421         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59422         successful seek.
59423
59424 2007-12-12  Eric Blake  <ebb9@byu.net>
59425
59426         Allow circular dependency of separate libtests.a
59427         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59428         when use_libtests.
59429
59430 2007-12-11  Eric Blake  <ebb9@byu.net>
59431
59432         Fix bug with -0.0L in previous patch.
59433         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59434         * tests/test-isnan.c (main): Also test on zeroes.
59435         * tests/test-isnanf.c (main): Likewise.
59436         * tests/test-isnanl.h (main): Likewise.
59437
59438         Detect pseudo-denormals on x86 even when cross-compiling.
59439         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59440         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59441         invalid bit patterns that happen to satisfy ==.
59442
59443         Avoid link failures with separate libtests.a.
59444         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59445         last, to satisfy circular dependencies.
59446
59447 2007-12-11  Eric Blake  <ebb9@byu.net>
59448         and Bruno Haible  <bruno@clisp.org>
59449
59450         Fix OpenBSD 4.0 <float.h> handling of long double.
59451         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59452         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59453         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59454
59455 2007-12-11  Jim Meyering  <meyering@redhat.com>
59456
59457         * users.txt: Add libvirt.
59458
59459         Support versions of autoconf prior to 2.59c.
59460         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59461         if it is not already defined.
59462
59463 2007-12-09  Bruno Haible  <bruno@clisp.org>
59464
59465         Let 'gnulib-tool --import' collect sources needed for the tests in
59466         tests/ rather than in lib/.
59467         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59468         argument. If true, add rules to generate libtests.a, and put libtests.a
59469         into $(LDADD). Consider source files in subdirectories and set
59470         uses_subdirs.
59471         (func_emit_initmacro_start, func_emit_initmacro_end,
59472         func_emit_initmacro_done): Pass all arguments explicitly.
59473         (func_import): Determine two module lists main_modules,
59474         testsrelated_modules. Determine use_libtests. Determine two variables
59475         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59476         instead of just sed_transform_lib_file. Determine two variables
59477         main_files and testsrelated_files. Compute 'files' as the union of
59478         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59479         func_add_or_update. In the generated gnulib-comp.m4, collect the
59480         object files for tests/ in different variables than those for lib/.
59481         Substitute LIBTESTS_LIBDEPS.
59482         (func_create_testdir): Combine the uses_subdirs results from
59483         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59484
59485 2007-12-09  Bruno Haible  <bruno@clisp.org>
59486
59487         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59488         the build-aux directory.
59489
59490 2007-12-09  Bruno Haible  <bruno@clisp.org>
59491
59492         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59493         introduced on 2006-09-09.
59494
59495 2007-12-07  Jim Meyering  <meyering@redhat.com>
59496
59497         Let these macros work also with autoconf-2.59.
59498         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59499         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59500         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59501
59502 2007-12-06  Jim Meyering  <meyering@redhat.com>
59503
59504         Avoid a configure-time syntax error in gl_FUNC_ACL.
59505         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59506         function in each branch, before testing the cache variable.
59507
59508 2007-12-04  Eric Blake  <ebb9@byu.net>
59509
59510         Make scripts executable.
59511         * build-aux/config.guess: Add execute permissions.
59512         * build-aux/config.sub: Likewise.
59513         * build-aux/gendocs.sh: Likewise.
59514
59515         Fix frexp on mingw.
59516         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59517         cross-compiling.
59518         * doc/functions/frexp.texi (frexp): Document the bug.
59519
59520         Make cygwin fseeko check more reliable.
59521         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59522         version numbers, rather than unrelated feature check.
59523         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59524         * doc/functions/ftello.texi (ftello): Likewise.
59525         Reported by Bruno Haible.
59526
59527         * m4/strerror.m4: Bump version number.
59528
59529 2007-12-03  Bruno Haible  <bruno@clisp.org>
59530
59531         * doc/functions/mprotect.texi: Mention the mingw problem.
59532
59533 2007-12-03  Eric Blake  <ebb9@byu.net>
59534
59535         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59536         REPLACE_STRERROR is initialized before this macro.
59537
59538 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59539
59540         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59541         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59542         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59543         put -lsec in even for programs other than 'ls'.  This fixes a problem
59544         for gettext reported by Bruno Haible in
59545         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59546         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59547         Add support for Solaris 10.  This isn't efficient, but should get the
59548         job done for now.
59549
59550 2007-12-03  James Youngman  <jay@gnu.org>
59551
59552         * doc/regexprops-generic.texi: change "an close-group" to "a
59553         close-group" and "illegal" to "not allowed".
59554
59555 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59556
59557         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59558         pr_byname.h. Needed for the rare case when the maintainer has done
59559         "make maintainer-clean" in the source directory and then attempts a
59560         build outside the source directory.
59561         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59562         scripts_byname.h.
59563
59564 2007-12-02  Martin Lambers <marlam@marlam.de>
59565             Bruno Haible  <bruno@clisp.org>
59566
59567         * lib/getpagesize.h: Remove file.
59568         * lib/unistd.in.h: Include declaration of getpagesize here.
59569         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59570         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59571         HAVE_SYS_PARAM_H.
59572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59573         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59574         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59575         (Depends-on): Add unistd.
59576         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59577         (Include): Use <unistd.h> instead of getpagesize.h.
59578         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59579         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59580         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59581         gl_GETPAGESIZE invocation, already handled by module dependency.
59582         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59583
59584 2007-12-02  Bruno Haible  <bruno@clisp.org>
59585
59586         * modules/strings-tests: New file.
59587         * tests/test-strings.c: New file.
59588
59589         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59590         * lib/strings.in.h: New file.
59591         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59592         * m4/strings_h.m4: New file.
59593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59594         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59595         * modules/strings: New file.
59596         * modules/string (Makefile.am): Update.
59597         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59598         Reported by Karl Berry.
59599
59600 2007-12-01  Eric Blake  <ebb9@byu.net>
59601
59602         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59603         accommodate fix in cygwin 1.5.25.
59604
59605 2007-12-01  Jim Meyering  <meyering@redhat.com>
59606
59607         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59608         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59609         that would inhibit utf8-optimization of a regexp containing line-
59610         or buffer-anchors, e.g., `^', `$'.
59611
59612 2007-11-30  Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59615         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59616         glthread_recursive_lock_init.
59617         * lib/lock.c (glthread_recursive_lock_init)
59618         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59619         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59620
59621 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         New function qset_acl, like set_acl but with syscall semantics.
59624         * lib/acl.h (qset_acl): New decl.
59625         * lib/acl.c (qset_acl): New function.
59626         (set_acl): Use new function.  Use more-consistent diagnostics.
59627
59628 2007-11-28  Jim Meyering  <meyering@redhat.com>
59629
59630         * modules/physmem (License): Change from GPL to LGPLv2+.
59631
59632 2007-11-26  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59635         'long double' type has excess precision.
59636         Reported by Jim Meyering in
59637         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59638
59639 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59640
59641         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59642         Sync from <http://gnu.org/licenses>.
59643         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59644         with license text from same location.
59645         * doc/maintain.texi, doc/standards.texi:  Sync from
59646         <http://savannah.gnu.org/projects/gnustandards>.
59647
59648 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59649         and Jim Meyering  <meyering@redhat.com>
59650
59651         Adjust getdate' grammar to accept a slightly more regular language.
59652         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59653         Before, the former was rejected.
59654         * lib/getdate.y (digits_to_date_time): New function, factored
59655         out of ...
59656         (number): ...here.  Just call digits_to_date_time.
59657         (hybrid): New non-terminal to handle an <unsigned number,
59658         signed relative offset> sequence consistently.
59659
59660 2007-11-18  Jim Meyering  <meyering@redhat.com>
59661
59662         Pull my changes from coreutils:
59663         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59664         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59665         use of $gnulib_tool_option_extras, so that it's separated from the
59666         preceding argument.
59667
59668         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59669         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59670         parent destination directories before copying a file into place.
59671
59672 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59673
59674         bootstrap: work also with 4-argument variant of AC_INIT
59675         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59676
59677 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59678
59679         Port test-getaddrinfo to Solaris.
59680         Problem reported by Bruno Haible in
59681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59682         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59683         explanation of setting 'hints'.
59684         Don't reject an implementation merely because it returns EAI_SERVICE.
59685         (EAI_SERVICE): Define to 0 if not defined.
59686
59687 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59688
59689         The license of gnu-make and posix-shell is now "GPLed build tool".
59690         * modules/gnu-make (License): Likewise.
59691         * modules/posix-shell (License): Likewise.
59692
59693         New module posix-shell, for determining a POSIX shell
59694         or perhaps something that is close enough to a POSIX shell.
59695         * m4/posix-shell.m4: New file.
59696         * modules/posix-shell: New file.
59697
59698         * MODULES.html.sh: Mention new module.
59699
59700         New module gnu-make, for determining whether we're using GNU Make.
59701         * m4/gnu-make.m4: New file.
59702         * modules/gnu-make: New file.
59703         * MODULES.html.sh: Mention new module.
59704
59705 2007-11-14  Jim Meyering  <meyering@redhat.com>
59706
59707         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59708         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59709         use this macro to create a function _definition_.
59710         Remove useless "#undef ARGMATCH_DIE".
59711
59712 2007-11-14  Bruno Haible  <bruno@clisp.org>
59713
59714         * lib/config.charset: Update for OpenBSD 4.1.
59715         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59716
59717 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59718
59719         Document 64-bit #if problems in stdint.texi.
59720         * doc/headers/stdint.texi (stdint.h): Mention problems with
59721         64-bit-#if, and how to work around them.
59722
59723         Don't insist on 'long long int' support in the preprocessor.  It
59724         breaks too many things.  For example, PRIdMAX still uses a 'long
59725         long int' format with the latest Sun compiler, even though
59726         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59727         preprocessor problem.  This causes the latest coreutils to dump
59728         core on Solaris 10 sparc with the Sun C compiler.
59729         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59730         the troublesome expressions at configure-time, not at #if-time.
59731         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59732         preprocessor.
59733         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59734         compile-time C checks, done at 'configure'-time.
59735         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59736         * modules/inttypes (Makefile): Substitute the new symbols that
59737         gl_INTTYPES_H now generates.
59738         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59739
59740 2007-11-12  Bruno Haible  <bruno@clisp.org>
59741
59742         Tests for Unicode character classification functions.
59743
59744         * modules/unictype/bidicategory-byname-tests: New file.
59745         * modules/unictype/bidicategory-name-tests: New file.
59746         * modules/unictype/bidicategory-of-tests: New file.
59747         * modules/unictype/bidicategory-test-tests: New file.
59748         * modules/unictype/block-list-tests: New file.
59749         * modules/unictype/block-of-tests: New file.
59750         * modules/unictype/block-test-tests: New file.
59751         * modules/unictype/category-C-tests: New file.
59752         * modules/unictype/category-Cc-tests: New file.
59753         * modules/unictype/category-Cf-tests: New file.
59754         * modules/unictype/category-Cn-tests: New file.
59755         * modules/unictype/category-Co-tests: New file.
59756         * modules/unictype/category-Cs-tests: New file.
59757         * modules/unictype/category-L-tests: New file.
59758         * modules/unictype/category-Ll-tests: New file.
59759         * modules/unictype/category-Lm-tests: New file.
59760         * modules/unictype/category-Lo-tests: New file.
59761         * modules/unictype/category-Lt-tests: New file.
59762         * modules/unictype/category-Lu-tests: New file.
59763         * modules/unictype/category-M-tests: New file.
59764         * modules/unictype/category-Mc-tests: New file.
59765         * modules/unictype/category-Me-tests: New file.
59766         * modules/unictype/category-Mn-tests: New file.
59767         * modules/unictype/category-N-tests: New file.
59768         * modules/unictype/category-Nd-tests: New file.
59769         * modules/unictype/category-Nl-tests: New file.
59770         * modules/unictype/category-No-tests: New file.
59771         * modules/unictype/category-P-tests: New file.
59772         * modules/unictype/category-Pc-tests: New file.
59773         * modules/unictype/category-Pd-tests: New file.
59774         * modules/unictype/category-Pe-tests: New file.
59775         * modules/unictype/category-Pf-tests: New file.
59776         * modules/unictype/category-Pi-tests: New file.
59777         * modules/unictype/category-Po-tests: New file.
59778         * modules/unictype/category-Ps-tests: New file.
59779         * modules/unictype/category-S-tests: New file.
59780         * modules/unictype/category-Sc-tests: New file.
59781         * modules/unictype/category-Sk-tests: New file.
59782         * modules/unictype/category-Sm-tests: New file.
59783         * modules/unictype/category-So-tests: New file.
59784         * modules/unictype/category-Z-tests: New file.
59785         * modules/unictype/category-Zl-tests: New file.
59786         * modules/unictype/category-Zp-tests: New file.
59787         * modules/unictype/category-Zs-tests: New file.
59788         * modules/unictype/category-and-not-tests: New file.
59789         * modules/unictype/category-and-tests: New file.
59790         * modules/unictype/category-byname-tests: New file.
59791         * modules/unictype/category-name-tests: New file.
59792         * modules/unictype/category-none-tests: New file.
59793         * modules/unictype/category-of-tests: New file.
59794         * modules/unictype/category-or-tests: New file.
59795         * modules/unictype/category-test-withtable-tests: New file.
59796         * modules/unictype/combining-class-tests: New file.
59797         * modules/unictype/ctype-alnum-tests: New file.
59798         * modules/unictype/ctype-alpha-tests: New file.
59799         * modules/unictype/ctype-blank-tests: New file.
59800         * modules/unictype/ctype-cntrl-tests: New file.
59801         * modules/unictype/ctype-digit-tests: New file.
59802         * modules/unictype/ctype-graph-tests: New file.
59803         * modules/unictype/ctype-lower-tests: New file.
59804         * modules/unictype/ctype-print-tests: New file.
59805         * modules/unictype/ctype-punct-tests: New file.
59806         * modules/unictype/ctype-space-tests: New file.
59807         * modules/unictype/ctype-upper-tests: New file.
59808         * modules/unictype/ctype-xdigit-tests: New file.
59809         * modules/unictype/decimal-digit-tests: New file.
59810         * modules/unictype/digit-tests: New file.
59811         * modules/unictype/mirror-tests: New file.
59812         * modules/unictype/numeric-tests: New file.
59813         * modules/unictype/property-alphabetic-tests: New file.
59814         * modules/unictype/property-ascii-hex-digit-tests: New file.
59815         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59816         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59817         * modules/unictype/property-bidi-block-separator-tests: New file.
59818         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59819         * modules/unictype/property-bidi-common-separator-tests: New file.
59820         * modules/unictype/property-bidi-control-tests: New file.
59821         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59822         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59823         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59824         * modules/unictype/property-bidi-european-digit-tests: New file.
59825         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59826         * modules/unictype/property-bidi-left-to-right-tests: New file.
59827         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59828         * modules/unictype/property-bidi-other-neutral-tests: New file.
59829         * modules/unictype/property-bidi-pdf-tests: New file.
59830         * modules/unictype/property-bidi-segment-separator-tests: New file.
59831         * modules/unictype/property-bidi-whitespace-tests: New file.
59832         * modules/unictype/property-byname-tests: New file.
59833         * modules/unictype/property-combining-tests: New file.
59834         * modules/unictype/property-composite-tests: New file.
59835         * modules/unictype/property-currency-symbol-tests: New file.
59836         * modules/unictype/property-dash-tests: New file.
59837         * modules/unictype/property-decimal-digit-tests: New file.
59838         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59839         * modules/unictype/property-deprecated-tests: New file.
59840         * modules/unictype/property-diacritic-tests: New file.
59841         * modules/unictype/property-extender-tests: New file.
59842         * modules/unictype/property-format-control-tests: New file.
59843         * modules/unictype/property-grapheme-base-tests: New file.
59844         * modules/unictype/property-grapheme-extend-tests: New file.
59845         * modules/unictype/property-grapheme-link-tests: New file.
59846         * modules/unictype/property-hex-digit-tests: New file.
59847         * modules/unictype/property-hyphen-tests: New file.
59848         * modules/unictype/property-id-continue-tests: New file.
59849         * modules/unictype/property-id-start-tests: New file.
59850         * modules/unictype/property-ideographic-tests: New file.
59851         * modules/unictype/property-ids-binary-operator-tests: New file.
59852         * modules/unictype/property-ids-trinary-operator-tests: New file.
59853         * modules/unictype/property-ignorable-control-tests: New file.
59854         * modules/unictype/property-iso-control-tests: New file.
59855         * modules/unictype/property-join-control-tests: New file.
59856         * modules/unictype/property-left-of-pair-tests: New file.
59857         * modules/unictype/property-line-separator-tests: New file.
59858         * modules/unictype/property-logical-order-exception-tests: New file.
59859         * modules/unictype/property-lowercase-tests: New file.
59860         * modules/unictype/property-math-tests: New file.
59861         * modules/unictype/property-non-break-tests: New file.
59862         * modules/unictype/property-not-a-character-tests: New file.
59863         * modules/unictype/property-numeric-tests: New file.
59864         * modules/unictype/property-other-alphabetic-tests: New file.
59865         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59866         * modules/unictype/property-other-grapheme-extend-tests: New file.
59867         * modules/unictype/property-other-id-continue-tests: New file.
59868         * modules/unictype/property-other-id-start-tests: New file.
59869         * modules/unictype/property-other-lowercase-tests: New file.
59870         * modules/unictype/property-other-math-tests: New file.
59871         * modules/unictype/property-other-uppercase-tests: New file.
59872         * modules/unictype/property-paired-punctuation-tests: New file.
59873         * modules/unictype/property-paragraph-separator-tests: New file.
59874         * modules/unictype/property-pattern-syntax-tests: New file.
59875         * modules/unictype/property-pattern-white-space-tests: New file.
59876         * modules/unictype/property-private-use-tests: New file.
59877         * modules/unictype/property-punctuation-tests: New file.
59878         * modules/unictype/property-quotation-mark-tests: New file.
59879         * modules/unictype/property-radical-tests: New file.
59880         * modules/unictype/property-sentence-terminal-tests: New file.
59881         * modules/unictype/property-soft-dotted-tests: New file.
59882         * modules/unictype/property-space-tests: New file.
59883         * modules/unictype/property-terminal-punctuation-tests: New file.
59884         * modules/unictype/property-test-tests: New file.
59885         * modules/unictype/property-titlecase-tests: New file.
59886         * modules/unictype/property-unassigned-code-value-tests: New file.
59887         * modules/unictype/property-unified-ideograph-tests: New file.
59888         * modules/unictype/property-uppercase-tests: New file.
59889         * modules/unictype/property-variation-selector-tests: New file.
59890         * modules/unictype/property-white-space-tests: New file.
59891         * modules/unictype/property-xid-continue-tests: New file.
59892         * modules/unictype/property-xid-start-tests: New file.
59893         * modules/unictype/property-zero-width-tests: New file.
59894         * modules/unictype/scripts-tests: New file.
59895         * modules/unictype/syntax-c-ident-tests: New file.
59896         * modules/unictype/syntax-c-whitespace-tests: New file.
59897         * modules/unictype/syntax-java-ident-tests: New file.
59898         * modules/unictype/syntax-java-whitespace-tests: New file.
59899         * tests/unictype/test-bidi_byname.c: New file.
59900         * tests/unictype/test-bidi_name.c: New file.
59901         * tests/unictype/test-bidi_of.c: New file.
59902         * tests/unictype/test-bidi_test.c: New file.
59903         * tests/unictype/test-block_list.c: New file.
59904         * tests/unictype/test-block_of.c: New file.
59905         * tests/unictype/test-block_test.c: New file.
59906         * tests/unictype/test-categ_and.c: New file.
59907         * tests/unictype/test-categ_and_not.c: New file.
59908         * tests/unictype/test-categ_byname.c: New file.
59909         * tests/unictype/test-categ_name.c: New file.
59910         * tests/unictype/test-categ_none.c: New file.
59911         * tests/unictype/test-categ_of.c: New file.
59912         * tests/unictype/test-categ_or.c: New file.
59913         * tests/unictype/test-categ_test_withtable.c: New file.
59914         * tests/unictype/test-combining.c: New file.
59915         * tests/unictype/test-decdigit.c: New file.
59916         * tests/unictype/test-digit.c: New file.
59917         * tests/unictype/test-mirror.c: New file.
59918         * tests/unictype/test-numeric.c: New file.
59919         * tests/unictype/test-pr_byname.c: New file.
59920         * tests/unictype/test-pr_test.c: New file.
59921         * tests/unictype/test-predicate-part1.h: New file.
59922         * tests/unictype/test-predicate-part2.h: New file.
59923         * tests/unictype/test-scripts.c: New file.
59924         * tests/unictype/test-sy_c_ident.c: New file.
59925         * tests/unictype/test-sy_java_ident.c: New file.
59926
59927         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59928         for Unicode 5.0.0.
59929         * tests/unictype/test-categ_Cc.c: Likewise.
59930         * tests/unictype/test-categ_Cf.c: Likewise.
59931         * tests/unictype/test-categ_Cn.c: Likewise.
59932         * tests/unictype/test-categ_Co.c: Likewise.
59933         * tests/unictype/test-categ_Cs.c: Likewise.
59934         * tests/unictype/test-categ_L.c: Likewise.
59935         * tests/unictype/test-categ_Ll.c: Likewise.
59936         * tests/unictype/test-categ_Lm.c: Likewise.
59937         * tests/unictype/test-categ_Lo.c: Likewise.
59938         * tests/unictype/test-categ_Lt.c: Likewise.
59939         * tests/unictype/test-categ_Lu.c: Likewise.
59940         * tests/unictype/test-categ_M.c: Likewise.
59941         * tests/unictype/test-categ_Mc.c: Likewise.
59942         * tests/unictype/test-categ_Me.c: Likewise.
59943         * tests/unictype/test-categ_Mn.c: Likewise.
59944         * tests/unictype/test-categ_N.c: Likewise.
59945         * tests/unictype/test-categ_Nd.c: Likewise.
59946         * tests/unictype/test-categ_Nl.c: Likewise.
59947         * tests/unictype/test-categ_No.c: Likewise.
59948         * tests/unictype/test-categ_P.c: Likewise.
59949         * tests/unictype/test-categ_Pc.c: Likewise.
59950         * tests/unictype/test-categ_Pd.c: Likewise.
59951         * tests/unictype/test-categ_Pe.c: Likewise.
59952         * tests/unictype/test-categ_Pf.c: Likewise.
59953         * tests/unictype/test-categ_Pi.c: Likewise.
59954         * tests/unictype/test-categ_Po.c: Likewise.
59955         * tests/unictype/test-categ_Ps.c: Likewise.
59956         * tests/unictype/test-categ_S.c: Likewise.
59957         * tests/unictype/test-categ_Sc.c: Likewise.
59958         * tests/unictype/test-categ_Sk.c: Likewise.
59959         * tests/unictype/test-categ_Sm.c: Likewise.
59960         * tests/unictype/test-categ_So.c: Likewise.
59961         * tests/unictype/test-categ_Z.c: Likewise.
59962         * tests/unictype/test-categ_Zl.c: Likewise.
59963         * tests/unictype/test-categ_Zp.c: Likewise.
59964         * tests/unictype/test-categ_Zs.c: Likewise.
59965         * tests/unictype/test-ctype_alnum.c: Likewise.
59966         * tests/unictype/test-ctype_alpha.c: Likewise.
59967         * tests/unictype/test-ctype_blank.c: Likewise.
59968         * tests/unictype/test-ctype_cntrl.c: Likewise.
59969         * tests/unictype/test-ctype_digit.c: Likewise.
59970         * tests/unictype/test-ctype_graph.c: Likewise.
59971         * tests/unictype/test-ctype_lower.c: Likewise.
59972         * tests/unictype/test-ctype_print.c: Likewise.
59973         * tests/unictype/test-ctype_punct.c: Likewise.
59974         * tests/unictype/test-ctype_space.c: Likewise.
59975         * tests/unictype/test-ctype_upper.c: Likewise.
59976         * tests/unictype/test-ctype_xdigit.c: Likewise.
59977         * tests/unictype/test-decdigit.h: Likewise.
59978         * tests/unictype/test-digit.h: Likewise.
59979         * tests/unictype/test-numeric.h: Likewise.
59980         * tests/unictype/test-pr_alphabetic.c: Likewise.
59981         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59982         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59983         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59984         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59985         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59986         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59987         * tests/unictype/test-pr_bidi_control.c: Likewise.
59988         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59989         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59990         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59991         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59992         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59993         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59994         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59995         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59996         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59997         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59998         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59999         * tests/unictype/test-pr_combining.c: Likewise.
60000         * tests/unictype/test-pr_composite.c: Likewise.
60001         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60002         * tests/unictype/test-pr_dash.c: Likewise.
60003         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60004         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60005         * tests/unictype/test-pr_deprecated.c: Likewise.
60006         * tests/unictype/test-pr_diacritic.c: Likewise.
60007         * tests/unictype/test-pr_extender.c: Likewise.
60008         * tests/unictype/test-pr_format_control.c: Likewise.
60009         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60010         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60011         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60012         * tests/unictype/test-pr_hex_digit.c: Likewise.
60013         * tests/unictype/test-pr_hyphen.c: Likewise.
60014         * tests/unictype/test-pr_id_continue.c: Likewise.
60015         * tests/unictype/test-pr_id_start.c: Likewise.
60016         * tests/unictype/test-pr_ideographic.c: Likewise.
60017         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60018         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60019         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60020         * tests/unictype/test-pr_iso_control.c: Likewise.
60021         * tests/unictype/test-pr_join_control.c: Likewise.
60022         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60023         * tests/unictype/test-pr_line_separator.c: Likewise.
60024         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60025         * tests/unictype/test-pr_lowercase.c: Likewise.
60026         * tests/unictype/test-pr_math.c: Likewise.
60027         * tests/unictype/test-pr_non_break.c: Likewise.
60028         * tests/unictype/test-pr_not_a_character.c: Likewise.
60029         * tests/unictype/test-pr_numeric.c: Likewise.
60030         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60031         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60032         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60033         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60034         * tests/unictype/test-pr_other_id_start.c: Likewise.
60035         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60036         * tests/unictype/test-pr_other_math.c: Likewise.
60037         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60038         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60039         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60040         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60041         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60042         * tests/unictype/test-pr_private_use.c: Likewise.
60043         * tests/unictype/test-pr_punctuation.c: Likewise.
60044         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60045         * tests/unictype/test-pr_radical.c: Likewise.
60046         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60047         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60048         * tests/unictype/test-pr_space.c: Likewise.
60049         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60050         * tests/unictype/test-pr_titlecase.c: Likewise.
60051         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60052         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60053         * tests/unictype/test-pr_uppercase.c: Likewise.
60054         * tests/unictype/test-pr_variation_selector.c: Likewise.
60055         * tests/unictype/test-pr_white_space.c: Likewise.
60056         * tests/unictype/test-pr_xid_continue.c: Likewise.
60057         * tests/unictype/test-pr_xid_start.c: Likewise.
60058         * tests/unictype/test-pr_zero_width.c: Likewise.
60059         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60060         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60061
60062 2007-11-12  Bruno Haible  <bruno@clisp.org>
60063
60064         Unicode character classification functions.
60065         * lib/unictype.h: New file.
60066         * modules/unictype/base: New file.
60067         * modules/unictype/category-L: New file.
60068         * modules/unictype/category-Lu: New file.
60069         * modules/unictype/category-Ll: New file.
60070         * modules/unictype/category-Lt: New file.
60071         * modules/unictype/category-Lm: New file.
60072         * modules/unictype/category-Lo: New file.
60073         * modules/unictype/category-M: New file.
60074         * modules/unictype/category-Mn: New file.
60075         * modules/unictype/category-Mc: New file.
60076         * modules/unictype/category-Me: New file.
60077         * modules/unictype/category-N: New file.
60078         * modules/unictype/category-Nd: New file.
60079         * modules/unictype/category-Nl: New file.
60080         * modules/unictype/category-No: New file.
60081         * modules/unictype/category-P: New file.
60082         * modules/unictype/category-Pc: New file.
60083         * modules/unictype/category-Pd: New file.
60084         * modules/unictype/category-Ps: New file.
60085         * modules/unictype/category-Pe: New file.
60086         * modules/unictype/category-Pi: New file.
60087         * modules/unictype/category-Pf: New file.
60088         * modules/unictype/category-Po: New file.
60089         * modules/unictype/category-S: New file.
60090         * modules/unictype/category-Sm: New file.
60091         * modules/unictype/category-Sc: New file.
60092         * modules/unictype/category-Sk: New file.
60093         * modules/unictype/category-So: New file.
60094         * modules/unictype/category-Z: New file.
60095         * modules/unictype/category-Zs: New file.
60096         * modules/unictype/category-Zl: New file.
60097         * modules/unictype/category-Zp: New file.
60098         * modules/unictype/category-C: New file.
60099         * modules/unictype/category-Cc: New file.
60100         * modules/unictype/category-Cf: New file.
60101         * modules/unictype/category-Cs: New file.
60102         * modules/unictype/category-Co: New file.
60103         * modules/unictype/category-Cn: New file.
60104         * modules/unictype/category-or: New file.
60105         * modules/unictype/category-of: New file.
60106         * modules/unictype/category-test: New file.
60107         * modules/unictype/category-test-withtable: New file.
60108         * modules/unictype/category-byname: New file.
60109         * modules/unictype/category-none: New file.
60110         * modules/unictype/category-and: New file.
60111         * modules/unictype/category-and-not: New file.
60112         * modules/unictype/category-name: New file.
60113         * modules/unictype/combining-class: New file.
60114         * modules/unictype/category-all: New file.
60115         * modules/unictype/bidicategory-all: New file.
60116         * modules/unictype/bidicategory-byname: New file.
60117         * modules/unictype/bidicategory-name: New file.
60118         * modules/unictype/bidicategory-of: New file.
60119         * modules/unictype/bidicategory-test: New file.
60120         * modules/unictype/decimal-digit: New file.
60121         * modules/unictype/digit: New file.
60122         * modules/unictype/numeric: New file.
60123         * modules/unictype/mirror: New file.
60124         * modules/unictype/property-white-space: New file.
60125         * modules/unictype/property-alphabetic: New file.
60126         * modules/unictype/property-other-alphabetic: New file.
60127         * modules/unictype/property-not-a-character: New file.
60128         * modules/unictype/property-default-ignorable-code-point: New file.
60129         * modules/unictype/property-other-default-ignorable-code-point: New
60130         file.
60131         * modules/unictype/property-deprecated: New file.
60132         * modules/unictype/property-logical-order-exception: New file.
60133         * modules/unictype/property-variation-selector: New file.
60134         * modules/unictype/property-private-use: New file.
60135         * modules/unictype/property-unassigned-code-value: New file.
60136         * modules/unictype/property-uppercase: New file.
60137         * modules/unictype/property-other-uppercase: New file.
60138         * modules/unictype/property-lowercase: New file.
60139         * modules/unictype/property-other-lowercase: New file.
60140         * modules/unictype/property-titlecase: New file.
60141         * modules/unictype/property-soft-dotted: New file.
60142         * modules/unictype/property-id-start: New file.
60143         * modules/unictype/property-other-id-start: New file.
60144         * modules/unictype/property-id-continue: New file.
60145         * modules/unictype/property-other-id-continue: New file.
60146         * modules/unictype/property-xid-start: New file.
60147         * modules/unictype/property-xid-continue: New file.
60148         * modules/unictype/property-pattern-white-space: New file.
60149         * modules/unictype/property-pattern-syntax: New file.
60150         * modules/unictype/property-join-control: New file.
60151         * modules/unictype/property-grapheme-base: New file.
60152         * modules/unictype/property-grapheme-extend: New file.
60153         * modules/unictype/property-other-grapheme-extend: New file.
60154         * modules/unictype/property-grapheme-link: New file.
60155         * modules/unictype/property-bidi-control: New file.
60156         * modules/unictype/property-bidi-left-to-right: New file.
60157         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60158         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60159         * modules/unictype/property-bidi-european-digit: New file.
60160         * modules/unictype/property-bidi-eur-num-separator: New file.
60161         * modules/unictype/property-bidi-eur-num-terminator: New file.
60162         * modules/unictype/property-bidi-arabic-digit: New file.
60163         * modules/unictype/property-bidi-common-separator: New file.
60164         * modules/unictype/property-bidi-block-separator: New file.
60165         * modules/unictype/property-bidi-segment-separator: New file.
60166         * modules/unictype/property-bidi-whitespace: New file.
60167         * modules/unictype/property-bidi-non-spacing-mark: New file.
60168         * modules/unictype/property-bidi-boundary-neutral: New file.
60169         * modules/unictype/property-bidi-pdf: New file.
60170         * modules/unictype/property-bidi-embedding-or-override: New file.
60171         * modules/unictype/property-bidi-other-neutral: New file.
60172         * modules/unictype/property-hex-digit: New file.
60173         * modules/unictype/property-ascii-hex-digit: New file.
60174         * modules/unictype/property-ideographic: New file.
60175         * modules/unictype/property-unified-ideograph: New file.
60176         * modules/unictype/property-radical: New file.
60177         * modules/unictype/property-ids-binary-operator: New file.
60178         * modules/unictype/property-ids-trinary-operator: New file.
60179         * modules/unictype/property-zero-width: New file.
60180         * modules/unictype/property-space: New file.
60181         * modules/unictype/property-non-break: New file.
60182         * modules/unictype/property-iso-control: New file.
60183         * modules/unictype/property-format-control: New file.
60184         * modules/unictype/property-dash: New file.
60185         * modules/unictype/property-hyphen: New file.
60186         * modules/unictype/property-punctuation: New file.
60187         * modules/unictype/property-line-separator: New file.
60188         * modules/unictype/property-paragraph-separator: New file.
60189         * modules/unictype/property-quotation-mark: New file.
60190         * modules/unictype/property-sentence-terminal: New file.
60191         * modules/unictype/property-terminal-punctuation: New file.
60192         * modules/unictype/property-currency-symbol: New file.
60193         * modules/unictype/property-math: New file.
60194         * modules/unictype/property-other-math: New file.
60195         * modules/unictype/property-paired-punctuation: New file.
60196         * modules/unictype/property-left-of-pair: New file.
60197         * modules/unictype/property-combining: New file.
60198         * modules/unictype/property-composite: New file.
60199         * modules/unictype/property-decimal-digit: New file.
60200         * modules/unictype/property-numeric: New file.
60201         * modules/unictype/property-diacritic: New file.
60202         * modules/unictype/property-extender: New file.
60203         * modules/unictype/property-ignorable-control: New file.
60204         * modules/unictype/property-test: New file.
60205         * modules/unictype/property-byname: New file.
60206         * modules/unictype/property-all: New file.
60207         * modules/unictype/scripts: New file.
60208         * modules/unictype/scripts-all: New file.
60209         * modules/unictype/block-of: New file.
60210         * modules/unictype/block-test: New file.
60211         * modules/unictype/block-list: New file.
60212         * modules/unictype/block-all: New file.
60213         * modules/unictype/syntax-c-whitespace: New file.
60214         * modules/unictype/syntax-java-whitespace: New file.
60215         * modules/unictype/syntax-c-ident: New file.
60216         * modules/unictype/syntax-java-ident: New file.
60217         * modules/unictype/ctype-alnum: New file.
60218         * modules/unictype/ctype-alpha: New file.
60219         * modules/unictype/ctype-cntrl: New file.
60220         * modules/unictype/ctype-digit: New file.
60221         * modules/unictype/ctype-graph: New file.
60222         * modules/unictype/ctype-lower: New file.
60223         * modules/unictype/ctype-print: New file.
60224         * modules/unictype/ctype-punct: New file.
60225         * modules/unictype/ctype-space: New file.
60226         * modules/unictype/ctype-upper: New file.
60227         * modules/unictype/ctype-xdigit: New file.
60228         * modules/unictype/ctype-blank: New file.
60229         * lib/unictype/bidi_byname.c: New file.
60230         * lib/unictype/bidi_name.c: New file.
60231         * lib/unictype/bidi_of.c: New file.
60232         * lib/unictype/bidi_test.c: New file.
60233         * lib/unictype/bitmap.h: New file.
60234         * lib/unictype/block_test.c: New file.
60235         * lib/unictype/blocks.c: New file.
60236         * lib/unictype/categ_C.c: New file.
60237         * lib/unictype/categ_Cc.c: New file.
60238         * lib/unictype/categ_Cf.c: New file.
60239         * lib/unictype/categ_Cn.c: New file.
60240         * lib/unictype/categ_Co.c: New file.
60241         * lib/unictype/categ_Cs.c: New file.
60242         * lib/unictype/categ_L.c: New file.
60243         * lib/unictype/categ_Ll.c: New file.
60244         * lib/unictype/categ_Lm.c: New file.
60245         * lib/unictype/categ_Lo.c: New file.
60246         * lib/unictype/categ_Lt.c: New file.
60247         * lib/unictype/categ_Lu.c: New file.
60248         * lib/unictype/categ_M.c: New file.
60249         * lib/unictype/categ_Mc.c: New file.
60250         * lib/unictype/categ_Me.c: New file.
60251         * lib/unictype/categ_Mn.c: New file.
60252         * lib/unictype/categ_N.c: New file.
60253         * lib/unictype/categ_Nd.c: New file.
60254         * lib/unictype/categ_Nl.c: New file.
60255         * lib/unictype/categ_No.c: New file.
60256         * lib/unictype/categ_P.c: New file.
60257         * lib/unictype/categ_Pc.c: New file.
60258         * lib/unictype/categ_Pd.c: New file.
60259         * lib/unictype/categ_Pe.c: New file.
60260         * lib/unictype/categ_Pf.c: New file.
60261         * lib/unictype/categ_Pi.c: New file.
60262         * lib/unictype/categ_Po.c: New file.
60263         * lib/unictype/categ_Ps.c: New file.
60264         * lib/unictype/categ_S.c: New file.
60265         * lib/unictype/categ_Sc.c: New file.
60266         * lib/unictype/categ_Sk.c: New file.
60267         * lib/unictype/categ_Sm.c: New file.
60268         * lib/unictype/categ_So.c: New file.
60269         * lib/unictype/categ_Z.c: New file.
60270         * lib/unictype/categ_Zl.c: New file.
60271         * lib/unictype/categ_Zp.c: New file.
60272         * lib/unictype/categ_Zs.c: New file.
60273         * lib/unictype/categ_and.c: New file.
60274         * lib/unictype/categ_and_not.c: New file.
60275         * lib/unictype/categ_byname.c: New file.
60276         * lib/unictype/categ_name.c: New file.
60277         * lib/unictype/categ_none.c: New file.
60278         * lib/unictype/categ_of.c: New file.
60279         * lib/unictype/categ_or.c: New file.
60280         * lib/unictype/categ_test.c: New file.
60281         * lib/unictype/combining.c: New file.
60282         * lib/unictype/ctype_alnum.c: New file.
60283         * lib/unictype/ctype_alpha.c: New file.
60284         * lib/unictype/ctype_blank.c: New file.
60285         * lib/unictype/ctype_cntrl.c: New file.
60286         * lib/unictype/ctype_digit.c: New file.
60287         * lib/unictype/ctype_graph.c: New file.
60288         * lib/unictype/ctype_lower.c: New file.
60289         * lib/unictype/ctype_print.c: New file.
60290         * lib/unictype/ctype_punct.c: New file.
60291         * lib/unictype/ctype_space.c: New file.
60292         * lib/unictype/ctype_upper.c: New file.
60293         * lib/unictype/ctype_xdigit.c: New file.
60294         * lib/unictype/decdigit.c: New file.
60295         * lib/unictype/digit.c: New file.
60296         * lib/unictype/identsyntaxmap.h: New file.
60297         * lib/unictype/mirror.c: New file.
60298         * lib/unictype/numeric.c: New file.
60299         * lib/unictype/pr_alphabetic.c: New file.
60300         * lib/unictype/pr_ascii_hex_digit.c: New file.
60301         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60302         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60303         * lib/unictype/pr_bidi_block_separator.c: New file.
60304         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60305         * lib/unictype/pr_bidi_common_separator.c: New file.
60306         * lib/unictype/pr_bidi_control.c: New file.
60307         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60308         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60309         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60310         * lib/unictype/pr_bidi_european_digit.c: New file.
60311         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60312         * lib/unictype/pr_bidi_left_to_right.c: New file.
60313         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60314         * lib/unictype/pr_bidi_other_neutral.c: New file.
60315         * lib/unictype/pr_bidi_pdf.c: New file.
60316         * lib/unictype/pr_bidi_segment_separator.c: New file.
60317         * lib/unictype/pr_bidi_whitespace.c: New file.
60318         * lib/unictype/pr_byname.c: New file.
60319         * lib/unictype/pr_byname.gperf: New file.
60320         * lib/unictype/pr_combining.c: New file.
60321         * lib/unictype/pr_composite.c: New file.
60322         * lib/unictype/pr_currency_symbol.c: New file.
60323         * lib/unictype/pr_dash.c: New file.
60324         * lib/unictype/pr_decimal_digit.c: New file.
60325         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60326         * lib/unictype/pr_deprecated.c: New file.
60327         * lib/unictype/pr_diacritic.c: New file.
60328         * lib/unictype/pr_extender.c: New file.
60329         * lib/unictype/pr_format_control.c: New file.
60330         * lib/unictype/pr_grapheme_base.c: New file.
60331         * lib/unictype/pr_grapheme_extend.c: New file.
60332         * lib/unictype/pr_grapheme_link.c: New file.
60333         * lib/unictype/pr_hex_digit.c: New file.
60334         * lib/unictype/pr_hyphen.c: New file.
60335         * lib/unictype/pr_id_continue.c: New file.
60336         * lib/unictype/pr_id_start.c: New file.
60337         * lib/unictype/pr_ideographic.c: New file.
60338         * lib/unictype/pr_ids_binary_operator.c: New file.
60339         * lib/unictype/pr_ids_trinary_operator.c: New file.
60340         * lib/unictype/pr_ignorable_control.c: New file.
60341         * lib/unictype/pr_iso_control.c: New file.
60342         * lib/unictype/pr_join_control.c: New file.
60343         * lib/unictype/pr_left_of_pair.c: New file.
60344         * lib/unictype/pr_line_separator.c: New file.
60345         * lib/unictype/pr_logical_order_exception.c: New file.
60346         * lib/unictype/pr_lowercase.c: New file.
60347         * lib/unictype/pr_math.c: New file.
60348         * lib/unictype/pr_non_break.c: New file.
60349         * lib/unictype/pr_not_a_character.c: New file.
60350         * lib/unictype/pr_numeric.c: New file.
60351         * lib/unictype/pr_other_alphabetic.c: New file.
60352         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60353         * lib/unictype/pr_other_grapheme_extend.c: New file.
60354         * lib/unictype/pr_other_id_continue.c: New file.
60355         * lib/unictype/pr_other_id_start.c: New file.
60356         * lib/unictype/pr_other_lowercase.c: New file.
60357         * lib/unictype/pr_other_math.c: New file.
60358         * lib/unictype/pr_other_uppercase.c: New file.
60359         * lib/unictype/pr_paired_punctuation.c: New file.
60360         * lib/unictype/pr_paragraph_separator.c: New file.
60361         * lib/unictype/pr_pattern_syntax.c: New file.
60362         * lib/unictype/pr_pattern_white_space.c: New file.
60363         * lib/unictype/pr_private_use.c: New file.
60364         * lib/unictype/pr_punctuation.c: New file.
60365         * lib/unictype/pr_quotation_mark.c: New file.
60366         * lib/unictype/pr_radical.c: New file.
60367         * lib/unictype/pr_sentence_terminal.c: New file.
60368         * lib/unictype/pr_soft_dotted.c: New file.
60369         * lib/unictype/pr_space.c: New file.
60370         * lib/unictype/pr_terminal_punctuation.c: New file.
60371         * lib/unictype/pr_test.c: New file.
60372         * lib/unictype/pr_titlecase.c: New file.
60373         * lib/unictype/pr_unassigned_code_value.c: New file.
60374         * lib/unictype/pr_unified_ideograph.c: New file.
60375         * lib/unictype/pr_uppercase.c: New file.
60376         * lib/unictype/pr_variation_selector.c: New file.
60377         * lib/unictype/pr_white_space.c: New file.
60378         * lib/unictype/pr_xid_continue.c: New file.
60379         * lib/unictype/pr_xid_start.c: New file.
60380         * lib/unictype/pr_zero_width.c: New file.
60381         * lib/unictype/scripts.c: New file.
60382         * lib/unictype/sy_c_ident.c: New file.
60383         * lib/unictype/sy_c_whitespace.c: New file.
60384         * lib/unictype/sy_java_ident.c: New file.
60385         * lib/unictype/sy_java_whitespace.c: New file.
60386
60387         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60388         Unicode 5.0.0.
60389         * lib/unictype/blocks.h: Likewise.
60390         * lib/unictype/categ_C.h: Likewise.
60391         * lib/unictype/categ_Cc.h: Likewise.
60392         * lib/unictype/categ_Cf.h: Likewise.
60393         * lib/unictype/categ_Cn.h: Likewise.
60394         * lib/unictype/categ_Co.h: Likewise.
60395         * lib/unictype/categ_Cs.h: Likewise.
60396         * lib/unictype/categ_L.h: Likewise.
60397         * lib/unictype/categ_Ll.h: Likewise.
60398         * lib/unictype/categ_Lm.h: Likewise.
60399         * lib/unictype/categ_Lo.h: Likewise.
60400         * lib/unictype/categ_Lt.h: Likewise.
60401         * lib/unictype/categ_Lu.h: Likewise.
60402         * lib/unictype/categ_M.h: Likewise.
60403         * lib/unictype/categ_Mc.h: Likewise.
60404         * lib/unictype/categ_Me.h: Likewise.
60405         * lib/unictype/categ_Mn.h: Likewise.
60406         * lib/unictype/categ_N.h: Likewise.
60407         * lib/unictype/categ_Nd.h: Likewise.
60408         * lib/unictype/categ_Nl.h: Likewise.
60409         * lib/unictype/categ_No.h: Likewise.
60410         * lib/unictype/categ_P.h: Likewise.
60411         * lib/unictype/categ_Pc.h: Likewise.
60412         * lib/unictype/categ_Pd.h: Likewise.
60413         * lib/unictype/categ_Pe.h: Likewise.
60414         * lib/unictype/categ_Pf.h: Likewise.
60415         * lib/unictype/categ_Pi.h: Likewise.
60416         * lib/unictype/categ_Po.h: Likewise.
60417         * lib/unictype/categ_Ps.h: Likewise.
60418         * lib/unictype/categ_S.h: Likewise.
60419         * lib/unictype/categ_Sc.h: Likewise.
60420         * lib/unictype/categ_Sk.h: Likewise.
60421         * lib/unictype/categ_Sm.h: Likewise.
60422         * lib/unictype/categ_So.h: Likewise.
60423         * lib/unictype/categ_Z.h: Likewise.
60424         * lib/unictype/categ_Zl.h: Likewise.
60425         * lib/unictype/categ_Zp.h: Likewise.
60426         * lib/unictype/categ_Zs.h: Likewise.
60427         * lib/unictype/categ_of.h: Likewise.
60428         * lib/unictype/combining.h: Likewise.
60429         * lib/unictype/ctype_alnum.h: Likewise.
60430         * lib/unictype/ctype_alpha.h: Likewise.
60431         * lib/unictype/ctype_blank.h: Likewise.
60432         * lib/unictype/ctype_cntrl.h: Likewise.
60433         * lib/unictype/ctype_digit.h: Likewise.
60434         * lib/unictype/ctype_graph.h: Likewise.
60435         * lib/unictype/ctype_lower.h: Likewise.
60436         * lib/unictype/ctype_print.h: Likewise.
60437         * lib/unictype/ctype_punct.h: Likewise.
60438         * lib/unictype/ctype_space.h: Likewise.
60439         * lib/unictype/ctype_upper.h: Likewise.
60440         * lib/unictype/ctype_xdigit.h: Likewise.
60441         * lib/unictype/decdigit.h: Likewise.
60442         * lib/unictype/digit.h: Likewise.
60443         * lib/unictype/mirror.h: Likewise.
60444         * lib/unictype/numeric.h: Likewise.
60445         * lib/unictype/pr_alphabetic.h: Likewise.
60446         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60447         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60448         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60449         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60450         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60451         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60452         * lib/unictype/pr_bidi_control.h: Likewise.
60453         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60454         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60455         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60456         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60457         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60458         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60459         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60460         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60461         * lib/unictype/pr_bidi_pdf.h: Likewise.
60462         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60463         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60464         * lib/unictype/pr_combining.h: Likewise.
60465         * lib/unictype/pr_composite.h: Likewise.
60466         * lib/unictype/pr_currency_symbol.h: Likewise.
60467         * lib/unictype/pr_dash.h: Likewise.
60468         * lib/unictype/pr_decimal_digit.h: Likewise.
60469         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60470         * lib/unictype/pr_deprecated.h: Likewise.
60471         * lib/unictype/pr_diacritic.h: Likewise.
60472         * lib/unictype/pr_extender.h: Likewise.
60473         * lib/unictype/pr_format_control.h: Likewise.
60474         * lib/unictype/pr_grapheme_base.h: Likewise.
60475         * lib/unictype/pr_grapheme_extend.h: Likewise.
60476         * lib/unictype/pr_grapheme_link.h: Likewise.
60477         * lib/unictype/pr_hex_digit.h: Likewise.
60478         * lib/unictype/pr_hyphen.h: Likewise.
60479         * lib/unictype/pr_id_continue.h: Likewise.
60480         * lib/unictype/pr_id_start.h: Likewise.
60481         * lib/unictype/pr_ideographic.h: Likewise.
60482         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60483         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60484         * lib/unictype/pr_ignorable_control.h: Likewise.
60485         * lib/unictype/pr_iso_control.h: Likewise.
60486         * lib/unictype/pr_join_control.h: Likewise.
60487         * lib/unictype/pr_left_of_pair.h: Likewise.
60488         * lib/unictype/pr_line_separator.h: Likewise.
60489         * lib/unictype/pr_logical_order_exception.h: Likewise.
60490         * lib/unictype/pr_lowercase.h: Likewise.
60491         * lib/unictype/pr_math.h: Likewise.
60492         * lib/unictype/pr_non_break.h: Likewise.
60493         * lib/unictype/pr_not_a_character.h: Likewise.
60494         * lib/unictype/pr_numeric.h: Likewise.
60495         * lib/unictype/pr_other_alphabetic.h: Likewise.
60496         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60497         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60498         * lib/unictype/pr_other_id_continue.h: Likewise.
60499         * lib/unictype/pr_other_id_start.h: Likewise.
60500         * lib/unictype/pr_other_lowercase.h: Likewise.
60501         * lib/unictype/pr_other_math.h: Likewise.
60502         * lib/unictype/pr_other_uppercase.h: Likewise.
60503         * lib/unictype/pr_paired_punctuation.h: Likewise.
60504         * lib/unictype/pr_paragraph_separator.h: Likewise.
60505         * lib/unictype/pr_pattern_syntax.h: Likewise.
60506         * lib/unictype/pr_pattern_white_space.h: Likewise.
60507         * lib/unictype/pr_private_use.h: Likewise.
60508         * lib/unictype/pr_punctuation.h: Likewise.
60509         * lib/unictype/pr_quotation_mark.h: Likewise.
60510         * lib/unictype/pr_radical.h: Likewise.
60511         * lib/unictype/pr_sentence_terminal.h: Likewise.
60512         * lib/unictype/pr_soft_dotted.h: Likewise.
60513         * lib/unictype/pr_space.h: Likewise.
60514         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60515         * lib/unictype/pr_titlecase.h: Likewise.
60516         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60517         * lib/unictype/pr_unified_ideograph.h: Likewise.
60518         * lib/unictype/pr_uppercase.h: Likewise.
60519         * lib/unictype/pr_variation_selector.h: Likewise.
60520         * lib/unictype/pr_white_space.h: Likewise.
60521         * lib/unictype/pr_xid_continue.h: Likewise.
60522         * lib/unictype/pr_xid_start.h: Likewise.
60523         * lib/unictype/pr_zero_width.h: Likewise.
60524         * lib/unictype/scripts.h: Likewise.
60525         * lib/unictype/scripts_byname.gperf: Likewise.
60526         * lib/unictype/sy_c_ident.h: Likewise.
60527         * lib/unictype/sy_c_whitespace.h: Likewise.
60528         * lib/unictype/sy_java_ident.h: Likewise.
60529         * lib/unictype/sy_java_whitespace.h: Likewise.
60530
60531         * lib/unictype/Makefile: New file.
60532         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60533         glibc.
60534         * lib/unictype/3level.h: New file, copied from glibc.
60535         * lib/unictype/3levelbit.h: New file.
60536
60537 2007-11-11  Bruno Haible  <bruno@clisp.org>
60538
60539         * modules/gperf: New file.
60540         * modules/iconv_open (Depends-on): Add it.
60541         (Makefile.am): Remove the GPERF definition.
60542
60543 2007-11-11  Bruno Haible  <bruno@clisp.org>
60544
60545         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60546         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60547
60548 2007-11-11  Bruno Haible  <bruno@clisp.org>
60549
60550         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60551         (usage): Remove function.
60552
60553 2007-11-11  Bruno Haible  <bruno@clisp.org>
60554
60555         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60556         gl_FUNC_CEILF_LIBS.
60557         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60558         gl_FUNC_CEIL_LIBS.
60559         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60560         gl_FUNC_CEILL_LIBS.
60561         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60562         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60563         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60564
60565 2007-11-11  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60568         roundf were declared but do not exist on functions.
60569         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60570         roundl were declared but do not exist on functions.
60571         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60572         HAVE_FLOORL_AND_CEILL, respectively.
60573         Needed for Sun C on Solaris 10.
60574
60575 2007-11-11  Bruno Haible  <bruno@clisp.org>
60576
60577         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60578         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60579         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60580         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60581         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60582         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60583         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60584         HAVE_DECL_ROUNDF.
60585         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60586         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60588         of HAVE_DECL_ROUND*.
60589         * modules/math (Makefile.am): Update.
60590
60591 2007-11-10  Bruno Haible  <bruno@clisp.org>
60592
60593         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60594         ptrdiff_t as m4/intl.m4.
60595
60596 2007-11-10  Jim Meyering  <meyering@redhat.com>
60597
60598         Avoid link failure for the argmatch test.
60599         * tests/test-argmatch.c (usage): Define function to avoid a link
60600         failure: argmatch_die requires a usage function.
60601
60602 2007-11-09  Bruno Haible  <bruno@clisp.org>
60603
60604         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60605         * doc/functions/vsnprintf.texi: Likewise.
60606         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60607         with a size argument < 2.
60608
60609 2007-11-09  Bruno Haible  <bruno@clisp.org>
60610
60611         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60612         buffer. Fixes an inefficiency introduced on 2007-11-03.
60613
60614 2007-11-09  Bruno Haible  <bruno@clisp.org>
60615
60616         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60617         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60618
60619 2007-11-08  Jim Meyering  <meyering@redhat.com>
60620
60621         Change cache variable name prefix "jm_" to "gl_" everywhere.
60622         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60623         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60624         * m4/uptime.m4: s/gl_/jm_/
60625
60626 2007-11-07  Bruno Haible  <bruno@clisp.org>
60627
60628         Update to GNU gettext 0.17.
60629         * m4/intl.m4: Update to GNU gettext 0.17.
60630         * m4/po.m4: Likewise.
60631         * modules/gettext (Files): Remove m4/ulonglong.m4.
60632         (configure.ac): Require gettext infrastructure from version 0.17.
60633
60634 2007-11-06  Bruno Haible  <bruno@clisp.org>
60635
60636         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60637         symbolic values are not defined in a public header.
60638         * lib/freadable.c (freadable) [QNX]: Likewise.
60639         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60640         * lib/freading.c (freading) [QNX]: Likewise.
60641         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60642         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60643         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60644         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60645         Reported by Alain Magloire.
60646
60647         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60648
60649 2007-11-05  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60652         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60653         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60654         Reported by Eric Blake.
60655
60656 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60657             Bruno Haible  <bruno@clisp.org>
60658
60659         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60660         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60661         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60662         (malloc): Undefine also before including <stdlib.h>.
60663         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60664         Needed on OSF/1 4.0.
60665
60666 2007-11-05  Jim Meyering  <meyering@redhat.com>
60667
60668         git-version-gen: sync from coreutils.
60669         * build-aux/git-version-gen: Add comments.
60670         Change the first '-' to '.' in the snapshot version string,
60671         e.g., 6.9-377-08144 -> 6.9.377-08144
60672         Remove first parameter.
60673         Don't declare a version "-dirty" merely because a time
60674         stamp has changed.
60675
60676 2007-11-04  Bruno Haible  <bruno@clisp.org>
60677
60678         * lib/lock.h: Protect all macro definitions containing an 'if'
60679         statement through a "do { ... } while (0)".
60680         * lib/tls.h: Likewise.
60681
60682 2007-11-04  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60685
60686 2007-11-04  Bruno Haible  <bruno@clisp.org>
60687
60688         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60689         * modules/fprintf-posix (Depends-on): Add nocrash.
60690         * modules/snprintf-posix (Depends-on): Likewise.
60691         * modules/sprintf-posix (Depends-on): Likewise.
60692         * modules/vasnprintf-posix (Depends-on): Likewise.
60693         * modules/vasprintf-posix (Depends-on): Likewise.
60694         * modules/vfprintf-posix (Depends-on): Likewise.
60695         * modules/vsnprintf-posix (Depends-on): Likewise.
60696         * modules/vsprintf-posix (Depends-on): Likewise.
60697         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60698         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60699         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60700         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60701         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60702         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60703         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60704
60705 2007-11-04  Bruno Haible  <bruno@clisp.org>
60706
60707         * modules/nocrash: New file.
60708         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60709         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60710
60711 2007-11-04  Bruno Haible  <bruno@clisp.org>
60712
60713         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60714         precision handling.
60715         * tests/test-vasprintf-posix.c (test_function): Likewise.
60716         * tests/test-snprintf-posix.h (test_function): Likewise.
60717         * tests/test-sprintf-posix.h (test_function): Likewise.
60718
60719         Fix *printf behaviour for large precisions on mingw and BeOS.
60720         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60721         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60723         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60724         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60725         gl_PRINTF_PRECISION and test its result. Invoke
60726         gl_PREREQ_VASNPRINTF_PRECISION.
60727         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60728         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60729         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60730         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60731         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60732         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60733         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60734         * doc/functions/fprintf.texi: Update.
60735         * doc/functions/printf.texi: Update.
60736         * doc/functions/snprintf.texi: Update.
60737         * doc/functions/sprintf.texi: Update.
60738         * doc/functions/vfprintf.texi: Update.
60739         * doc/functions/vprintf.texi: Update.
60740         * doc/functions/vsnprintf.texi: Update.
60741         * doc/functions/vsprintf.texi: Update.
60742
60743 2007-11-04  Bruno Haible  <bruno@clisp.org>
60744
60745         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60746
60747 2007-11-04  Bruno Haible  <bruno@clisp.org>
60748
60749         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60750         Reported by Sylvain Beucler <beuc@gnu.org>.
60751
60752 2007-11-03  Bruno Haible  <bruno@clisp.org>
60753
60754         * tests/test-fprintf-posix2.sh: New file.
60755         * tests/test-fprintf-posix2.c: New file.
60756         * modules/fprintf-posix-tests (Files): Add them.
60757         (TESTS): Add test-fprintf-posix2.sh.
60758         (configure.ac): Check for getrlimit and setrlimit.
60759         (check_PROGRAMS): Add test-fprintf-posix2.
60760
60761         * tests/test-printf-posix2.sh: New file.
60762         * tests/test-printf-posix2.c: New file.
60763         * modules/printf-posix-tests (Files): Add them.
60764         (TESTS): Add test-printf-posix2.sh.
60765         (configure.ac): Check for getrlimit and setrlimit.
60766         (check_PROGRAMS): Add test-printf-posix2.
60767
60768         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60769         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60770         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60771         (decode_double): New function, copied from decode_long_double.
60772         (scale10_round_decimal_decoded): New function, extracted from
60773         scale10_round_decimal_long_double.
60774         (scale10_round_decimal_long_double): Use it.
60775         (scale10_round_decimal_double): New function.
60776         (floorlog10): New function.
60777         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60779         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60780         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60781         gl_PRINTF_ENOMEM and test its result. Invoke
60782         gl_PREREQ_VASNPRINTF_ENOMEM.
60783         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60784         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60785         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60786         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60787         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60790         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60791         * modules/snprintf-posix (Depends-on): Likewise.
60792         * modules/sprintf-posix (Depends-on): Likewise.
60793         * modules/vasnprintf-posix (Depends-on): Likewise.
60794         * modules/vasprintf-posix (Depends-on): Likewise.
60795         * modules/vfprintf-posix (Depends-on): Likewise.
60796         * modules/vsnprintf-posix (Depends-on): Likewise.
60797         * modules/vsprintf-posix (Depends-on): Likewise.
60798         * doc/functions/fprintf.texi: Update.
60799         * doc/functions/printf.texi: Update.
60800         * doc/functions/snprintf.texi: Update.
60801         * doc/functions/sprintf.texi: Update.
60802         * doc/functions/vfprintf.texi: Update.
60803         * doc/functions/vprintf.texi: Update.
60804         * doc/functions/vsnprintf.texi: Update.
60805         * doc/functions/vsprintf.texi: Update.
60806
60807 2007-11-03  Bruno Haible  <bruno@clisp.org>
60808
60809         * modules/frexp-nolibm-tests: New file.
60810
60811         * modules/frexp-nolibm: New file.
60812         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60813
60814 2007-11-03  Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60817         value is C99 compliant.
60818         Needed for OSF/1 5.1.
60819
60820 2007-11-03  Bruno Haible  <bruno@clisp.org>
60821
60822         Fix out-of-memory handling of vasnprintf.
60823         * lib/printf-parse.c: Include <errno.h>.
60824         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60825         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60826         is already set.
60827
60828 2007-11-02  Eric Blake  <ebb9@byu.net>
60829
60830         Fix tests on cygwin.
60831         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60832
60833 2007-11-01  Bruno Haible  <bruno@clisp.org>
60834
60835         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60836         warning.
60837         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60838         needed for POSIX compatibility.
60839
60840 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60841
60842         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60843         for compatibility with GNU.
60844
60845 2007-11-01  Bruno Haible  <bruno@clisp.org>
60846
60847         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60848         (putenv): Renamed from rpl_putenv. Change argument type from
60849         'const char *' to 'char *'.
60850         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60851         of defining putenv in config.h, just set REPLACE_PUTENV.
60852         * modules/putenv (Depends-on): Add stdlib.
60853         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60854         (Include): Use <stdlib.h>.
60855         * lib/stdlib.in.h (putenv): New declaration.
60856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60857         REPLACE_PUTENV.
60858         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60859         REPLACE_PUTENV.
60860         Needed for MacOS X 10.5.0.
60861         Reported by Peter O'Gorman <peter@pogma.com>.
60862
60863 2007-11-01  Jim Meyering  <meyering@redhat.com>
60864
60865         Treat an empty date string exactly like "0".
60866         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60867         if the remaining date string (to be parsed) is empty, use "0".
60868         Reported by Mischa Molhoek and discussed in this thread:
60869         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60870
60871 2007-10-31  Bruno Haible  <bruno@clisp.org>
60872
60873         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60874         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60875         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60876         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60877         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60878         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60879
60880 2007-10-31  Bruno Haible  <bruno@clisp.org>
60881
60882         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60883         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60884         (AC_TYPE_LONG_LONG_INT): Use it.
60885         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60886         it as well.
60887         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60888         to m4/longlong.m4.
60889         * modules/stdint (Files): Remove m4/ulonglong.m4.
60890         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60891         m4/ulonglong.m4.
60892         * modules/strtoumax (Files): Likewise.
60893
60894 2007-10-30  Bruno Haible  <bruno@clisp.org>
60895
60896         * modules/xvasprintf-posix: New file.
60897         Suggested by Eric Blake.
60898
60899 2007-10-30  Bruno Haible  <bruno@clisp.org>
60900
60901         * modules/xprintf-posix-tests: New file.
60902         * tests/test-xprintf-posix.sh: New file.
60903         * tests/test-xprintf-posix.c: New file.
60904         * tests/test-xfprintf-posix.c: New file.
60905
60906         * modules/xprintf-posix: New file.
60907
60908 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60909
60910         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60911         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60912         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60913
60914 2007-10-29  Bruno Haible  <bruno@clisp.org>
60915
60916         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60917         contain the special marker '_cv_'.
60918         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60919         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60920         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60921         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60922         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60923         Reported by Ralf Wildenhues.
60924
60925 2007-10-29  Bruno Haible  <bruno@clisp.org>
60926
60927         * gnulib-tool (func_import): When --lgpl is not specified, set
60928         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60929         GPLv3.
60930         Reported by Simon Josefsson.
60931
60932 2007-10-28  Bruno Haible  <bruno@clisp.org>
60933
60934         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60935         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60936         HAVE_DECL_ISFINITE.
60937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60938         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60939         HAVE_DECL_ISFINITE.
60940
60941 2007-10-28  Bruno Haible  <bruno@clisp.org>
60942
60943         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60944         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60945
60946 2007-10-28  Bruno Haible  <bruno@clisp.org>
60947
60948         Fix link errors with Sun C 5.0 on Solaris 10.
60949         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60950         function is declared but not present in the compiler's libm.
60951         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60952         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60953         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60954         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60955         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60956         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60957         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60959         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60960         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60961         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60962         HAVE_DECL_FLOORL.
60963
60964 2007-10-28  Bruno Haible  <bruno@clisp.org>
60965
60966         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60967         gl_FUNC_FLOORL. Cache the result.
60968         (gl_FUNC_FLOORL): Use it.
60969         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60970         gl_FUNC_CEILL. Cache the result.
60971         (gl_FUNC_CEILL): Use it.
60972
60973         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60974         gl_FUNC_FLOOR. Cache the result.
60975         (gl_FUNC_FLOOR): Use it.
60976         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60977         gl_FUNC_CEIL. Cache the result.
60978         (gl_FUNC_CEIL): Use it.
60979
60980         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60981         gl_FUNC_FLOORF. Cache the result.
60982         (gl_FUNC_FLOORF): Use it.
60983         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60984         gl_FUNC_CEILF. Cache the result.
60985         (gl_FUNC_CEILF): Use it.
60986
60987 2007-10-28  Bruno Haible  <bruno@clisp.org>
60988
60989         * gnulib-tool: Allow specifying the LGPL version number through
60990         --lgpl=2 or --lgpl=3.
60991         (func_usage): Document --lgpl with argument.
60992         Handle --lgpl=... arguments.
60993         (func_import): Recognize also gl_LGPL calls with an argument. When
60994         --lgpl=2 is used and the module's license is just LGPL, report an
60995         error. Set sed_transform_lib_file according to the lgpl variable. In
60996         the generated files, use --lgpl or gl_LGPL invocations with argument,
60997         if necessary.
60998         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60999         an LGPv2+ license.
61000         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61001         gl_LGPL macro.
61002
61003 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61004             Bruno Haible  <bruno@clisp.org>
61005
61006         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61007         (u16_uctomb_aux): Likewise.
61008         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61009         !HAVE_INLINE.
61010         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61011
61012 2007-10-28  Bruno Haible  <bruno@clisp.org>
61013
61014         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61015         Invoke AM_GETTEXT_OPTION if it exists.
61016         * modules/vasprintf: Likewise.
61017         * modules/verror: Likewise.
61018         * modules/xprintf: Likewise.
61019         * modules/xvasprintf: Likewise.
61020
61021 2007-10-27  Ben Pfaff  <blp@gnu.org>
61022
61023         * lib/math.in.h: Define isfinite macro and prototypes for
61024         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61025         implementations.
61026         * m4/math_h.m4: New substitutions for isfinite module.
61027         * lib/isfinite.c: New file.
61028         * m4/isfinite.m4: New file.
61029         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61030         * modules/isfinite: New file.
61031         * modules/isfinite-tests: New file.
61032         * tests/tests-isfinite.c: New file.
61033         * doc/functions/isfinite.texi: Mention isfinite module.
61034         * MODULES.html.sh: Mention new module.
61035
61036 2007-10-27  Ben Pfaff  <blp@gnu.org>
61037
61038         Ralf Wildenhues reported that Tru64 4.0D declares the round
61039         functions but does not have definitions.
61040         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61041         cannot be found in any library, set the output variable to
61042         "missing" instead of "".
61043         * m4/round.m4: Also use our substitute if we cannot find round in
61044         any library, even if it is declared.
61045         * m4/roundf.m4: Likewise for roundf.
61046         * m4/roundl.m4: Likewise for roundl.
61047         * lib/math.in.h: Undefine roundf, round, roundl before defining
61048         their replacements, to allow for hypothetical systems where these
61049         may be defined as macros but not available in libraries.
61050
61051 2007-10-27  Bruno Haible  <bruno@clisp.org>
61052
61053         * doc/gnulib.texi: Invoke @firstparagraphindent.
61054         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61055         changes in gnulib.
61056         (Source changes): New section.
61057
61058 2007-10-26  Bruno Haible  <bruno@clisp.org>
61059
61060         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61061         borrowed from autoconf.
61062
61063 2007-10-26  Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61066         strerror returned the empty string. Needed on HP-UX 11.00.
61067
61068 2007-10-24  Micah Cowan  <micah@cowan.name>
61069
61070         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61071         * build-aux/bootstrap: Remove support for now-unnecessary option,
61072         --cvs-user, and envvars CVS_USER, CVS_RSH.
61073
61074 2007-10-24  Jim Meyering  <meyering@redhat.com>
61075
61076         Avoid diagnostics from sha1sum when there is no cached checksum.
61077         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61078         if the po.s1 file hasn't been created yet.
61079
61080         * build-aux/bootstrap: Sync from coreutils:
61081         2007-10-24  Jim Meyering  <meyering@redhat.com>
61082         Get gnulib from the git repository, not from an obsolete cvs one.
61083         * build-aux/bootstrap: Suggestion from Micah Cowan.
61084         2007-10-04  Jim Meyering  <jim@meyering.net>
61085         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61086         (update_po_files): Work also when there are no .po files in po/.
61087
61088 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61089
61090         * README: Append ".git" to git and cg examples.
61091         Problem reported by Benoit Sigoure.
61092
61093 2007-10-23  Micah Cowan  <micah@cowan.name>
61094
61095         * users.txt: Add wget.
61096
61097 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61098
61099         Fix linking of some unistdio tests on FreeBSD.
61100         * modules/unistdio/u16-vsnprintf-tests
61101         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61102         * modules/unistdio/u16-vsprintf-tests
61103         (test_u16_vsnprintf1_LDADD): Likewise.
61104         * modules/unistdio/u32-vsnprintf-tests
61105         (test_u32_vsnprintf1_LDADD): Likewise.
61106         * modules/unistdio/u32-vsprintf-tests
61107         (test_u32_vsprintf1_LDADD): Likewise.
61108         * modules/unistdio/u8-vsnprintf-tests
61109         (test_u8_vsnprintf1_LDADD): Likewise.
61110         * modules/unistdio/u8-vsprintf-tests
61111         (test_u8_vsprintf1_LDADD): Likewise.
61112         * modules/unistdio/ulc-vsnprintf-tests
61113         (test_ulc_vsnprintf1_LDADD): Likewise.
61114         * modules/unistdio/ulc-vsprintf-tests
61115         (test_ulc_vsprintf1_LDADD): Likewise.
61116
61117         Fix linking of some uniconv tests on FreeBSD.
61118         * modules/uniconv/u16-conv-from-enc-tests
61119         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61120         * modules/uniconv/u16-conv-to-enc-tests
61121         (test_u16_conv_to_enc_LDADD): Likewise.
61122         * modules/uniconv/u16-strconv-from-enc-tests
61123         (test_u16_strconv_from_enc_LDADD): Likewise.
61124         * modules/uniconv/u16-strconv-to-enc-tests
61125         (test_u16_strconv_to_enc_LDADD): Likewise.
61126         * modules/uniconv/u32-conv-from-enc-tests
61127         (test_u32_conv_from_enc_LDADD): Likewise.
61128         * modules/uniconv/u32-conv-to-enc-tests
61129         (test_u32_conv_to_enc_LDADD): Likewise.
61130         * modules/uniconv/u32-strconv-from-enc-tests
61131         (test_u32_strconv_from_enc_LDADD): Likewise.
61132         * modules/uniconv/u32-strconv-to-enc-tests
61133         (test_u32_strconv_to_enc_LDADD): Likewise.
61134         * modules/uniconv/u8-conv-from-enc-tests
61135         (test_u8_conv_from_enc_LDADD): Likewise.
61136         * modules/uniconv/u8-conv-to-enc-tests
61137         (test_u8_conv_to_enc_LDADD): Likewise.
61138         * modules/uniconv/u8-strconv-from-enc-tests
61139         (test_u8_strconv_from_enc_LDADD): Likewise.
61140         * modules/uniconv/u8-strconv-to-enc-tests
61141         (test_u8_strconv_to_enc_LDADD): Likewise.
61142
61143 2007-10-22  Bruno Haible  <bruno@clisp.org>
61144
61145         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61146         size.
61147
61148 2007-10-22  Eric Blake  <ebb9@byu.net>
61149
61150         Tweak x*printf documentation.
61151         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61152         variable name and comments.
61153         Suggested by Bruno Haible.
61154
61155 2007-10-22  Bruno Haible  <bruno@clisp.org>
61156
61157         * lib/acl.c (copy_acl): Fix file name in comment.
61158
61159 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61160
61161         Fix Tru64 problem with stdbool.h.
61162         * lib/stdbool.in.h (false, true):
61163         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61164         Don't declare as an enum in this situation; it runs afoul of Tru64.
61165         Problem reported by Steven M. Schweda in
61166         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61167
61168 2007-10-22  Eric Blake  <ebb9@byu.net>
61169
61170         Also wrap vf?printf.
61171         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61172         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61173         (xvprintf, xvfprintf): New functions.
61174
61175 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61176
61177         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61178         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61179
61180         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61181         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61182
61183 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61184
61185         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61186         by Bruno Haible.
61187
61188 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61189
61190         * lib/getloadavg.c
61191         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61192         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61193
61194         * tests/test-i-ring.c: Work for C89.
61195
61196 2007-10-22  Bruno Haible  <bruno@clisp.org>
61197
61198         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61199         -1u, in preprocessor expression, so that we don't test for the bug
61200         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61201         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61202
61203 2007-10-22  Eric Blake  <ebb9@byu.net>
61204
61205         * tests/test-yesno.sh: Silence stderr during test.
61206
61207 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61208
61209         * modules/crypto/gc-camellia: New file.
61210
61211         * m4/gc-camellia.m4: New file.
61212
61213         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61214
61215         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61216
61217 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61218
61219         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61220         --help to stdout.  Reported by sms@antinode.org (Steven
61221         M. Schweda).
61222
61223 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61224
61225         * users.txt: Fix link to libksba.
61226
61227 2007-10-21  Ben Pfaff  <blp@gnu.org>
61228
61229         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61230         round.c roundf implementation that depends on floorf and ceilf to
61231         be tested unconditionally.
61232
61233 2007-10-21  Ben Pfaff  <blp@gnu.org>
61234
61235         * m4/check-libm-func.m4: Removed.
61236         * m4/check-math-lib.m4: New file.
61237         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61238         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61239         definition and lack of AC_LIBOBJ([roundf]).
61240         * m4/roundl.m4: Ditto, and similarly for roundl.
61241         * modules/round: Reference new m4 file.
61242         * modules/roundf: Ditto.
61243         * modules/roundl: Ditto.
61244         * tests/test-round2.c (main): Use ROUND instead of round.
61245         Bug report from Bruno Haible.
61246
61247 2007-10-21  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61250         context.
61251
61252 2007-10-21  Bruno Haible  <bruno@clisp.org>
61253
61254         * tests/test-wcwidth.c (main): Allow negative result for some control
61255         characters.
61256
61257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61258         Needed on OSF/1 5.1.
61259
61260 2007-10-21  Bruno Haible  <bruno@clisp.org>
61261
61262         * tests/test-floorf1.c: Include isnanf.h.
61263         (main): Use isnanf() instead of isnan().
61264         * tests/test-ceilf1.c: Include isnanf.h.
61265         (main): Use isnanf() instead of isnan().
61266         * tests/test-truncf1.c: Include isnanf.h.
61267         (main): Use isnanf() instead of isnan().
61268         * tests/test-roundf1.c: Include isnanf.h.
61269         (main): Use isnanf() instead of isnan().
61270
61271 2007-10-21  Eric Blake  <ebb9@byu.net>
61272
61273         * users.txt: Update URL for m4.
61274
61275 2007-10-21  Bruno Haible  <bruno@clisp.org>
61276
61277         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61278
61279 2007-10-21  Bruno Haible  <bruno@clisp.org>
61280
61281         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61282         Git's management files if the CVS files are not present.
61283
61284 2007-10-20  Bruno Haible  <bruno@clisp.org>
61285
61286         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61287         gcc-3.4.x.
61288
61289 2007-10-20  Ben Pfaff  <blp@gnu.org>
61290
61291         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61292         implementations.
61293         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61294         * lib/round.c: New file.
61295         * lib/roundf.c: New file.
61296         * lib/roundl.c: New file.
61297         * m4/round.m4: New file.
61298         * m4/roundf.m4: New file.
61299         * m4/roundl.m4: New file.
61300         * m4/check-libm-func-m4: New file.
61301         * modules/math: Replace round, roundf, roundl related @VARS@ in
61302         math.in.h.
61303         * modules/round: New file.
61304         * modules/round-tests: New file.
61305         * modules/roundf: New file.
61306         * modules/roundf-tests: New file.
61307         * modules/roundl: New file.
61308         * modules/roundl-tests: New file.
61309         * tests/test-round1.c: New file.
61310         * tests/test-round2.c: New file.
61311         * tests/test-roundf1.c: New file.
61312         * tests/test-roundf2.c: New file.
61313         * tests/test-roundl.c: New file.
61314         * doc/functions/round.texi: Mention round module.
61315         * doc/functions/roundf.texi: Mention roundf module.
61316         * doc/functions/roundl.texi: Mention roundl module.
61317         * MODULES.html.sh: Mention new modules.
61318         Thanks to Bruno Haible for suggestions.
61319
61320 2007-10-20  Jim Meyering  <meyering@redhat.com>
61321
61322         * lib/xprintf.c: Include <config.h> unconditionally.
61323
61324         Change xprintf's license to GPL.
61325         * modules/xprintf (License): s/LGPL/GPL/, since this module
61326         depends on modules (exit and exitfail) which are GPL.
61327         Suggestion from Bruno Haible.
61328
61329         xprintf fixes.
61330         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61331         Use a clearer diagnostic.
61332         Patch from Bruno Haible.
61333
61334 2007-10-20  Bruno Haible  <bruno@clisp.org>
61335
61336         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61337         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61338         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61339
61340 2007-10-20  Bruno Haible  <bruno@clisp.org>
61341
61342         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61343         precision in the comparison result > x - 1 or similar.
61344         * tests/test-ceilf2.c (correct_result_p): Likewise.
61345         * tests/test-truncf2.c (correct_result_p): Likewise.
61346         * tests/test-trunc2.c (correct_result_p): Likewise.
61347         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61348
61349 2007-10-20  Bruno Haible  <bruno@clisp.org>
61350
61351         * modules/ceil: New file.
61352         * m4/ceil.m4: New file.
61353         * doc/functions/ceil.texi: Mention the 'ceil' module.
61354
61355 2007-10-20  Bruno Haible  <bruno@clisp.org>
61356
61357         * modules/floor: New file.
61358         * m4/floor.m4: New file.
61359         * doc/functions/floor.texi: Mention the 'floor' module.
61360
61361 2007-10-20  Bruno Haible  <bruno@clisp.org>
61362
61363         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61364         of %a.
61365         * modules/floorf-tests (Depends-on): Likewise.
61366         * modules/truncf-tests (Depends-on): Likewise.
61367         * modules/trunc-tests (Depends-on): Likewise.
61368         Reported by Ben Pfaff.
61369
61370 2007-10-19  Jim Meyering  <meyering@redhat.com>
61371
61372         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61373         Don't bother testing specific errno values.  Just test ferror.
61374
61375         New module: xprintf
61376         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61377
61378 2007-10-19  Bruno Haible  <bruno@clisp.org>
61379
61380         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61381         syntax.
61382         * modules/javaexec (Makefile.am): Likewise.
61383         * modules/relocatable-prog (Makefile.am): Likewise.
61384         Suggested by Jim Meyering.
61385
61386 2007-10-18  Bruno Haible  <bruno@clisp.org>
61387
61388         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61389         Reported by Jim Meyering.
61390
61391 2007-10-18  Eric Blake  <ebb9@byu.net>
61392
61393         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61394
61395 2007-10-18  Bruno Haible  <bruno@clisp.org>
61396
61397         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61398         the format string into writable memory. Needed in Fortify conditions.
61399
61400 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61401             Bruno Haible  <bruno@clisp.org>
61402
61403         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61404         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61405         * modules/trim (Depends-on): Add mbchar.
61406         (configure.ac): Add gl_FUNC_MBRTOWC.
61407         (Makefile.am): Augment lib_SOURCES.
61408
61409 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61410
61411         Modify glob.c to use fstatat and dirfd, to simplify it.
61412         Suggested by Eric Blake.
61413         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61414         Don't include <stdbool.h>; not used.
61415         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61416         (link_exists_p): Simplify implementation, since we can now assume
61417         dirfd and fstatat.
61418         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61419
61420 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61421
61422         * gnulib-tool (func_get_dependencies): Fix sed script to
61423         match only tests.
61424
61425 2007-10-17  Bruno Haible  <bruno@clisp.org>
61426
61427         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61428         allow locale names without encoding suffix.
61429         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61430         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61431
61432 2007-10-16  Bruno Haible  <bruno@clisp.org>
61433
61434         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61435         * lib/getgroups.c (getgroups): Likewise.
61436         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61437
61438 2007-10-16  Bruno Haible  <bruno@clisp.org>
61439
61440         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61441         * modules/malloc-posix (License): Likewise.
61442         * modules/realloc-posix (License): Likewise.
61443         * modules/calloc-posix (License): Likewise.
61444         * modules/intprops (License): Change from GPL to LGPL, with
61445         Paul Eggert's approval.
61446
61447 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61448
61449         Merge glibc changes into lib/glob.c.
61450
61451         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61452         2007-10-15 04:59:03 UTC.  Here are the changes:
61453
61454         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61455
61456         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61457
61458         * lib/glob.c: Add some branch prediction throughout.
61459
61460         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61461
61462         [BZ #5103]
61463         * lib/glob.c (glob): Recognize patterns starting \/.
61464
61465         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61466
61467         [BZ #3996]
61468         * lib/glob.c (attribute_hidden): Define if not defined.
61469         (glob): Unescape dirname, filename or username when needed and not
61470         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61471         is NULL.  Handle unescaped [ in pattern without closing ].
61472         Don't pass GLOB_CHECK down to recursive glob for directories.
61473         (__glob_pattern_type): New function.
61474         (__glob_pattern_p): Implement using __glob_pattern_type.
61475         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61476         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61477         Remove unreachable code.
61478
61479         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61480
61481         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61482         explain why there are no leaks.
61483
61484         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61485
61486         [BZ #3253]
61487         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61488         time, rather allocate increasingly bigger arrays of pointers, if
61489         possible with alloca, if too large with malloc.
61490
61491 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61492
61493         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61494         Problem reported by H.Merijn Brand in
61495         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61496         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61497         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61498
61499 2007-10-15  Bruno Haible  <bruno@clisp.org>
61500
61501         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61502         with explicit rpl_ prefix.
61503         * lib/fopen.c (fopen): Likewise.
61504         * lib/freopen.c (freopen): Likewise.
61505         * lib/iconv.c (iconv): Likewise.
61506         * lib/iconv_close.c (iconv_close): Likewise.
61507
61508 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61509
61510         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61511
61512 2007-10-15  Bruno Haible  <bruno@clisp.org>
61513
61514         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61515         <stddef.h> instead of <stdlib.h> since we only need NULL.
61516         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61517
61518 2007-10-15  Bruno Haible  <bruno@clisp.org>
61519
61520         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61521         Replace paragraph talking about LIBOBJS.
61522         Reported by Colin Watson <cjwatson@debian.org>.
61523
61524 2007-10-15  Bruno Haible  <bruno@clisp.org>
61525
61526         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61527         <stdlib.h> before using NULL.
61528
61529 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61530
61531         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61532         Reported by Albert Chin <china@thewrittenword.com>.
61533
61534 2007-10-14  Bruno Haible  <bruno@clisp.org>
61535
61536         * modules/iconv_open-utf-tests: New file.
61537         * tests/test-iconv-utf.c: New file.
61538
61539         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61540         * modules/iconv_open-utf: New file.
61541         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61542         (iconv, iconv_close): New declarations.
61543         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61544         be defined.
61545         (iconv_open): Add special handling of conversion between UTF-8 and
61546         UTF-{16,32}{BE,LE}.
61547         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61548         * lib/iconv_close.c: New file.
61549         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61550         gl_FUNC_ICONV_OPEN.
61551         (gl_FUNC_ICONV_OPEN): Use it.
61552         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61553         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61554         and REPLACE_ICONV_UTF.
61555         * modules/iconv_open (Depends-on): Add c-strcase.
61556         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61557         ICONV_CONST.
61558         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61559
61560 2007-10-13  Albert Chin  <china@thewrittenword.com>
61561             Bruno Haible  <bruno@clisp.org>
61562
61563         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61564         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61565
61566 2007-10-13  Bruno Haible  <bruno@clisp.org>
61567
61568         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61569         defined, use the ISO C99 inline semantics.
61570         * lib/argp.h (ARGP_EI): Likewise.
61571
61572 2007-10-13  Bruno Haible  <bruno@clisp.org>
61573
61574         Handle 'inline' change in gcc 4.3.0.
61575         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61576         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61577         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61578         argp_fmtstream_point): Disable 'extern' declaration if the function
61579         definition is going to be provided inline.
61580         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61581         semantics, not the ISO C99 inline semantics.
61582         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61583         'extern' declaration if the function definition is going to be provided
61584         inline.
61585         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61586         the GNU C inline semantics, not the ISO C99 inline semantics. With
61587         GCC 4.2, avoid a warning.
61588
61589 2007-10-13  Bruno Haible  <bruno@clisp.org>
61590
61591         * lib/freading.h (freading): Enable the use of __freading for
61592         glibc >= 2.7.
61593         * lib/freading.c (freading): Likewise.
61594
61595 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61598         "warning: C99 inline functions are not supported; using GNU89".
61599
61600 2007-10-12  Bruno Haible  <bruno@clisp.org>
61601
61602         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61603         of 2.
61604         * tests/test-ceilf2.c: New file.
61605         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61606
61607         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61608         * modules/ceilf-tests: Update.
61609
61610 2007-10-12  Bruno Haible  <bruno@clisp.org>
61611
61612         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61613         of 2.
61614         * tests/test-floorf2.c: New file.
61615         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61616
61617         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61618         * modules/floorf-tests: Update.
61619
61620 2007-10-12  Bruno Haible  <bruno@clisp.org>
61621
61622         * tests/test-trunc2.c: New file.
61623         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61624
61625         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61626         * modules/trunc-tests: Update.
61627
61628 2007-10-12  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61631         of 2.
61632         * tests/test-truncf2.c: New file.
61633         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61634
61635         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61636         * modules/truncf-tests: Update.
61637
61638 2007-10-11  Eric Blake  <ebb9@byu.net>
61639
61640         Don't claim strerror is broken on Interix.
61641         * doc/functions/strerror.texi (strerror): Known broken systems are
61642         now Solaris 8, and not Interix.
61643         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61644         Interix on cross-compile.
61645         Reported by Martin Koeppe in
61646         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61647
61648 2007-10-11  Bruno Haible  <bruno@clisp.org>
61649
61650         * modules/i-ring-tests: New file.
61651         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61652         instead of assert.
61653
61654 2007-10-11  Bruno Haible  <bruno@clisp.org>
61655
61656         * modules/filenamecat-tests: New file.
61657         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61658         * lib/filenamecat.c: Remove test code.
61659
61660 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61663
61664         * lib/strerror.c: Include <string.h> always, to test interface,
61665         and to remove the need for the dummy.
61666         Include intprops.h to compute width instead of doing it ourselves
61667         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61668         (strerror): Define it to return NULL if there's no system strerror.
61669         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61670         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61671         ancient pre-strerror Unix systems well any more.  Saying "unknown
61672         system error" is enough.
61673         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61674         simpler strerror.c implementation.
61675         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61676         Simplify the tests to reflect the simpler strerror implementation.
61677         * modules/strerror (Depends-on): Add intprops.
61678
61679 2007-10-09  Eric Blake  <ebb9@byu.net>
61680
61681         Silence test-fpending.
61682         * modules/fpending-tests (Files): Add wrapper script.
61683         * tests/test-fpending.sh: New file.
61684
61685 2007-10-09  Bruno Haible  <bruno@clisp.org>
61686
61687         * MODULES.html.sh (func_module): Don't create a hyperlink for
61688         function names like 'printf_frexp'.
61689         (Misc): Add crc, memxor.
61690         (Characteristics of floating types): New section.
61691         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61692         isnanf-nolibm, signbit, trunc, truncf, truncl.
61693         (Enhancements for ISO C 99 functions): New subsection Input/output.
61694         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61695         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61696         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61697         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61698         (Enhancements for POSIX:2001 functions): Add chdir-long.
61699         (File system functions): Add areadlink, chdir-safer, read-file.
61700         Remove cycle-check.
61701         (File system as inode set): New section.
61702         (Date and time): Add gethrxtime.
61703         (Multithreading): Add openmp.
61704         (Internationalization functions): Add localename.
61705         (Unicode string functions): Add unistr/u*-mbsnlen.
61706         (Support for maintaining and releasing projects): Add git-version-gen.
61707         (Lone files): Remove directories.
61708
61709 2007-10-08  Ben Pfaff  <blp@gnu.org>
61710
61711         * lib/xmalloca.h: Fix typo in comment.
61712
61713 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61714
61715         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61716         when avoiding problems with integer overflow.  Use a portable test
61717         instead.
61718
61719 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61720
61721         * modules/dummy (License): Change to LGPLv2+.
61722         * modules/float (License): Likewise
61723         * modules/realloc (License): Likewise
61724         * modules/stdlib (License): Likewise
61725
61726 2007-10-07  Bruno Haible  <bruno@clisp.org>
61727
61728         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61729         * floor.c (TWO_MANT_DIG): Likewise.
61730         * ceil.c (TWO_MANT_DIG): Likewise.
61731         Reported by Ben Pfaff.
61732
61733 2007-10-07  Bruno Haible  <bruno@clisp.org>
61734
61735         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61736         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61737         * lib/frexp.c (FUNC): Likewise.
61738         * lib/printf-frexp.h (printf_frexp): Likewise.
61739         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61740         * lib/printf-frexp.c (FUNC): Likewise.
61741         Suggested by Jim Meyering.
61742
61743 2007-10-07  Jim Meyering  <meyering@redhat.com>
61744
61745         Make xnanosleep's integer overflow test more robust.
61746         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61747         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61748
61749 2007-10-07  Bruno Haible  <bruno@clisp.org>
61750
61751         * NEWS: Mention the license change.
61752
61753         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61754         abbreviations in the modules files.
61755
61756         Change copyright notice from GPLv2+ to GPLv3+.
61757         * README: Change copyright notice.
61758         * MODULES.html.sh: Likewise.
61759         * build-aux/bootstrap.conf: Likewise.
61760         * build-aux/config.libpath: Likewise.
61761         * build-aux/csharpcomp.sh.in: Likewise.
61762         * build-aux/csharpexec.sh.in: Likewise.
61763         * build-aux/install-reloc: Likewise.
61764         * build-aux/javacomp.sh.in: Likewise.
61765         * build-aux/javaexec.sh.in: Likewise.
61766         * build-aux/ldd.sh.in: Likewise.
61767         * build-aux/reloc-ldflags: Likewise.
61768         * build-aux/relocatable.sh.in: Likewise.
61769         * build-aux/x-to-1.in: Likewise.
61770         * check-module: Likewise.
61771         * config/srclistvars.sh: Likewise.
61772         * gnulib-tool: Likewise.
61773         * lib/acl-internal.h: Likewise.
61774         * lib/acl.c: Likewise.
61775         * lib/acl.h: Likewise.
61776         * lib/acl_entries.c: Likewise.
61777         * lib/areadlink-with-size.c: Likewise.
61778         * lib/areadlink.c: Likewise.
61779         * lib/areadlink.h: Likewise.
61780         * lib/argmatch.c: Likewise.
61781         * lib/argmatch.h: Likewise.
61782         * lib/argp-ba.c: Likewise.
61783         * lib/argp-eexst.c: Likewise.
61784         * lib/argp-fmtstream.c: Likewise.
61785         * lib/argp-fmtstream.h: Likewise.
61786         * lib/argp-fs-xinl.c: Likewise.
61787         * lib/argp-help.c: Likewise.
61788         * lib/argp-namefrob.h: Likewise.
61789         * lib/argp-parse.c: Likewise.
61790         * lib/argp-pin.c: Likewise.
61791         * lib/argp-pv.c: Likewise.
61792         * lib/argp-pvh.c: Likewise.
61793         * lib/argp-xinl.c: Likewise.
61794         * lib/argp.h: Likewise.
61795         * lib/at-func.c: Likewise.
61796         * lib/atanl.c: Likewise.
61797         * lib/backupfile.c: Likewise.
61798         * lib/backupfile.h: Likewise.
61799         * lib/basename.c: Likewise.
61800         * lib/binary-io.h: Likewise.
61801         * lib/byteswap.in.h: Likewise.
61802         * lib/c-stack.c: Likewise.
61803         * lib/c-stack.h: Likewise.
61804         * lib/c-strcasestr.c: Likewise.
61805         * lib/c-strcasestr.h: Likewise.
61806         * lib/c-strstr.c: Likewise.
61807         * lib/c-strstr.h: Likewise.
61808         * lib/c-strtod.c: Likewise.
61809         * lib/calloc.c: Likewise.
61810         * lib/canon-host.c: Likewise.
61811         * lib/canon-host.h: Likewise.
61812         * lib/canonicalize-lgpl.c: Likewise.
61813         * lib/canonicalize.c: Likewise.
61814         * lib/canonicalize.h: Likewise.
61815         * lib/ceil.c: Likewise.
61816         * lib/ceilf.c: Likewise.
61817         * lib/ceill.c: Likewise.
61818         * lib/chdir-long.c: Likewise.
61819         * lib/chdir-long.h: Likewise.
61820         * lib/chdir-safer.c: Likewise.
61821         * lib/chdir-safer.h: Likewise.
61822         * lib/chown.c: Likewise.
61823         * lib/classpath.c: Likewise.
61824         * lib/classpath.h: Likewise.
61825         * lib/clean-temp.c: Likewise.
61826         * lib/clean-temp.h: Likewise.
61827         * lib/cloexec.c: Likewise.
61828         * lib/close-stream.c: Likewise.
61829         * lib/closein.c: Likewise.
61830         * lib/closein.h: Likewise.
61831         * lib/closeout.c: Likewise.
61832         * lib/closeout.h: Likewise.
61833         * lib/concat-filename.c: Likewise.
61834         * lib/copy-file.c: Likewise.
61835         * lib/copy-file.h: Likewise.
61836         * lib/count-one-bits.h: Likewise.
61837         * lib/crc.c: Likewise.
61838         * lib/crc.h: Likewise.
61839         * lib/creat-safer.c: Likewise.
61840         * lib/csharpcomp.c: Likewise.
61841         * lib/csharpcomp.h: Likewise.
61842         * lib/csharpexec.c: Likewise.
61843         * lib/csharpexec.h: Likewise.
61844         * lib/cycle-check.c: Likewise.
61845         * lib/cycle-check.h: Likewise.
61846         * lib/diacrit.c: Likewise.
61847         * lib/diacrit.h: Likewise.
61848         * lib/diffseq.h: Likewise.
61849         * lib/dirchownmod.c: Likewise.
61850         * lib/dirent.in.h: Likewise.
61851         * lib/dirfd.c: Likewise.
61852         * lib/dirfd.h: Likewise.
61853         * lib/dirname.c: Likewise.
61854         * lib/dirname.h: Likewise.
61855         * lib/dummy.c: Likewise.
61856         * lib/dup-safer.c: Likewise.
61857         * lib/dup2.c: Likewise.
61858         * lib/eealloc.h: Likewise.
61859         * lib/error.c: Likewise.
61860         * lib/error.h: Likewise.
61861         * lib/euidaccess.c: Likewise.
61862         * lib/exclude.c: Likewise.
61863         * lib/exclude.h: Likewise.
61864         * lib/execute.c: Likewise.
61865         * lib/execute.h: Likewise.
61866         * lib/exitfail.c: Likewise.
61867         * lib/exitfail.h: Likewise.
61868         * lib/expl.c: Likewise.
61869         * lib/fatal-signal.c: Likewise.
61870         * lib/fatal-signal.h: Likewise.
61871         * lib/fbufmode.c: Likewise.
61872         * lib/fbufmode.h: Likewise.
61873         * lib/fchdir.c: Likewise.
61874         * lib/fchmodat.c: Likewise.
61875         * lib/fchownat.c: Likewise.
61876         * lib/fcntl--.h: Likewise.
61877         * lib/fcntl-safer.h: Likewise.
61878         * lib/fcntl.in.h: Likewise.
61879         * lib/fd-safer.c: Likewise.
61880         * lib/fflush.c: Likewise.
61881         * lib/file-has-acl.c: Likewise.
61882         * lib/file-set.c: Likewise.
61883         * lib/file-type.c: Likewise.
61884         * lib/file-type.h: Likewise.
61885         * lib/fileblocks.c: Likewise.
61886         * lib/filemode.c: Likewise.
61887         * lib/filemode.h: Likewise.
61888         * lib/filename.h: Likewise.
61889         * lib/filenamecat.c: Likewise.
61890         * lib/filenamecat.h: Likewise.
61891         * lib/findprog.c: Likewise.
61892         * lib/findprog.h: Likewise.
61893         * lib/float.in.h: Likewise.
61894         * lib/floor.c: Likewise.
61895         * lib/floorf.c: Likewise.
61896         * lib/floorl.c: Likewise.
61897         * lib/fopen-safer.c: Likewise.
61898         * lib/fopen.c: Likewise.
61899         * lib/fpending.c: Likewise.
61900         * lib/fpending.h: Likewise.
61901         * lib/fprintf.c: Likewise.
61902         * lib/fprintftime.h: Likewise.
61903         * lib/fpucw.h: Likewise.
61904         * lib/fpurge.c: Likewise.
61905         * lib/fpurge.h: Likewise.
61906         * lib/freadable.c: Likewise.
61907         * lib/freadable.h: Likewise.
61908         * lib/freadahead.c: Likewise.
61909         * lib/freadahead.h: Likewise.
61910         * lib/freading.c: Likewise.
61911         * lib/freading.h: Likewise.
61912         * lib/free.c: Likewise.
61913         * lib/freopen.c: Likewise.
61914         * lib/frexp.c: Likewise.
61915         * lib/frexpl.c: Likewise.
61916         * lib/fseek.c: Likewise.
61917         * lib/fseterr.c: Likewise.
61918         * lib/fseterr.h: Likewise.
61919         * lib/fstatat.c: Likewise.
61920         * lib/fstrcmp.c: Likewise.
61921         * lib/fstrcmp.h: Likewise.
61922         * lib/fsusage.c: Likewise.
61923         * lib/fsusage.h: Likewise.
61924         * lib/ftell.c: Likewise.
61925         * lib/ftello.c: Likewise.
61926         * lib/fts-cycle.c: Likewise.
61927         * lib/fts.c: Likewise.
61928         * lib/fts_.h: Likewise.
61929         * lib/full-read.c: Likewise.
61930         * lib/full-read.h: Likewise.
61931         * lib/full-write.c: Likewise.
61932         * lib/full-write.h: Likewise.
61933         * lib/fwritable.c: Likewise.
61934         * lib/fwritable.h: Likewise.
61935         * lib/fwriteerror.c: Likewise.
61936         * lib/fwriteerror.h: Likewise.
61937         * lib/fwriting.c: Likewise.
61938         * lib/fwriting.h: Likewise.
61939         * lib/gcd.c: Likewise.
61940         * lib/gcd.h: Likewise.
61941         * lib/getcwd.c: Likewise.
61942         * lib/getdate.h: Likewise.
61943         * lib/getdate.y: Likewise.
61944         * lib/getdomainname.c: Likewise.
61945         * lib/getdomainname.h: Likewise.
61946         * lib/getgroups.c: Likewise.
61947         * lib/gethostname.c: Likewise.
61948         * lib/gethrxtime.c: Likewise.
61949         * lib/gethrxtime.h: Likewise.
61950         * lib/getloadavg.c: Likewise.
61951         * lib/getndelim2.c: Likewise.
61952         * lib/getndelim2.h: Likewise.
61953         * lib/getnline.c: Likewise.
61954         * lib/getnline.h: Likewise.
61955         * lib/getopt.c: Likewise.
61956         * lib/getopt.in.h: Likewise.
61957         * lib/getopt1.c: Likewise.
61958         * lib/getopt_int.h: Likewise.
61959         * lib/getpagesize.h: Likewise.
61960         * lib/getsubopt.c: Likewise.
61961         * lib/gettime.c: Likewise.
61962         * lib/getugroups.c: Likewise.
61963         * lib/getugroups.h: Likewise.
61964         * lib/getusershell.c: Likewise.
61965         * lib/gl_anyavltree_list1.h: Likewise.
61966         * lib/gl_anyavltree_list2.h: Likewise.
61967         * lib/gl_anyhash_list1.h: Likewise.
61968         * lib/gl_anyhash_list2.h: Likewise.
61969         * lib/gl_anylinked_list1.h: Likewise.
61970         * lib/gl_anylinked_list2.h: Likewise.
61971         * lib/gl_anyrbtree_list1.h: Likewise.
61972         * lib/gl_anyrbtree_list2.h: Likewise.
61973         * lib/gl_anytree_list1.h: Likewise.
61974         * lib/gl_anytree_list2.h: Likewise.
61975         * lib/gl_anytree_oset.h: Likewise.
61976         * lib/gl_anytreehash_list1.h: Likewise.
61977         * lib/gl_anytreehash_list2.h: Likewise.
61978         * lib/gl_array_list.c: Likewise.
61979         * lib/gl_array_list.h: Likewise.
61980         * lib/gl_array_oset.c: Likewise.
61981         * lib/gl_array_oset.h: Likewise.
61982         * lib/gl_avltree_list.c: Likewise.
61983         * lib/gl_avltree_list.h: Likewise.
61984         * lib/gl_avltree_oset.c: Likewise.
61985         * lib/gl_avltree_oset.h: Likewise.
61986         * lib/gl_avltreehash_list.c: Likewise.
61987         * lib/gl_avltreehash_list.h: Likewise.
61988         * lib/gl_carray_list.c: Likewise.
61989         * lib/gl_carray_list.h: Likewise.
61990         * lib/gl_linked_list.c: Likewise.
61991         * lib/gl_linked_list.h: Likewise.
61992         * lib/gl_linkedhash_list.c: Likewise.
61993         * lib/gl_linkedhash_list.h: Likewise.
61994         * lib/gl_list.c: Likewise.
61995         * lib/gl_list.h: Likewise.
61996         * lib/gl_oset.c: Likewise.
61997         * lib/gl_oset.h: Likewise.
61998         * lib/gl_rbtree_list.c: Likewise.
61999         * lib/gl_rbtree_list.h: Likewise.
62000         * lib/gl_rbtree_oset.c: Likewise.
62001         * lib/gl_rbtree_oset.h: Likewise.
62002         * lib/gl_rbtreehash_list.c: Likewise.
62003         * lib/gl_rbtreehash_list.h: Likewise.
62004         * lib/gl_sublist.c: Likewise.
62005         * lib/gl_sublist.h: Likewise.
62006         * lib/group-member.c: Likewise.
62007         * lib/group-member.h: Likewise.
62008         * lib/hard-locale.c: Likewise.
62009         * lib/hard-locale.h: Likewise.
62010         * lib/hash-pjw.c: Likewise.
62011         * lib/hash-pjw.h: Likewise.
62012         * lib/hash-triple.c: Likewise.
62013         * lib/hash.c: Likewise.
62014         * lib/hash.h: Likewise.
62015         * lib/human.c: Likewise.
62016         * lib/human.h: Likewise.
62017         * lib/i-ring.c: Likewise.
62018         * lib/i-ring.h: Likewise.
62019         * lib/idcache.c: Likewise.
62020         * lib/imaxabs.c: Likewise.
62021         * lib/imaxdiv.c: Likewise.
62022         * lib/inet_pton.c: Likewise.
62023         * lib/inet_pton.h: Likewise.
62024         * lib/intprops.h: Likewise.
62025         * lib/inttostr.c: Likewise.
62026         * lib/inttostr.h: Likewise.
62027         * lib/inttypes.in.h: Likewise.
62028         * lib/isapipe.c: Likewise.
62029         * lib/isdir.c: Likewise.
62030         * lib/isnan.c: Likewise.
62031         * lib/isnan.h: Likewise.
62032         * lib/isnanf.c: Likewise.
62033         * lib/isnanf.h: Likewise.
62034         * lib/isnanl-nolibm.h: Likewise.
62035         * lib/isnanl.c: Likewise.
62036         * lib/isnanl.h: Likewise.
62037         * lib/javacomp.c: Likewise.
62038         * lib/javacomp.h: Likewise.
62039         * lib/javaexec.c: Likewise.
62040         * lib/javaexec.h: Likewise.
62041         * lib/javaversion.c: Likewise.
62042         * lib/javaversion.h: Likewise.
62043         * lib/javaversion.java: Likewise.
62044         * lib/lbrkprop.h: Likewise.
62045         * lib/lchmod.h: Likewise.
62046         * lib/lchown.c: Likewise.
62047         * lib/ldexpl.c: Likewise.
62048         * lib/linebreak.c: Likewise.
62049         * lib/linebreak.h: Likewise.
62050         * lib/linebuffer.c: Likewise.
62051         * lib/linebuffer.h: Likewise.
62052         * lib/locale.in.h: Likewise.
62053         * lib/logl.c: Likewise.
62054         * lib/long-options.c: Likewise.
62055         * lib/long-options.h: Likewise.
62056         * lib/lstat.c: Likewise.
62057         * lib/lstat.h: Likewise.
62058         * lib/math.in.h: Likewise.
62059         * lib/mbchar.c: Likewise.
62060         * lib/mbchar.h: Likewise.
62061         * lib/mbfile.h: Likewise.
62062         * lib/mbiter.h: Likewise.
62063         * lib/mbscasecmp.c: Likewise.
62064         * lib/mbscasestr.c: Likewise.
62065         * lib/mbschr.c: Likewise.
62066         * lib/mbscspn.c: Likewise.
62067         * lib/mbslen.c: Likewise.
62068         * lib/mbsncasecmp.c: Likewise.
62069         * lib/mbsnlen.c: Likewise.
62070         * lib/mbspbrk.c: Likewise.
62071         * lib/mbspcasecmp.c: Likewise.
62072         * lib/mbsrchr.c: Likewise.
62073         * lib/mbssep.c: Likewise.
62074         * lib/mbsspn.c: Likewise.
62075         * lib/mbsstr.c: Likewise.
62076         * lib/mbstok_r.c: Likewise.
62077         * lib/mbswidth.c: Likewise.
62078         * lib/mbswidth.h: Likewise.
62079         * lib/mbuiter.h: Likewise.
62080         * lib/memcasecmp.c: Likewise.
62081         * lib/memcasecmp.h: Likewise.
62082         * lib/memchr.c: Likewise.
62083         * lib/memcmp.c: Likewise.
62084         * lib/memcoll.c: Likewise.
62085         * lib/memcoll.h: Likewise.
62086         * lib/memcpy.c: Likewise.
62087         * lib/memrchr.c: Likewise.
62088         * lib/mkancesdirs.c: Likewise.
62089         * lib/mkdir-p.c: Likewise.
62090         * lib/mkdir-p.h: Likewise.
62091         * lib/mkdir.c: Likewise.
62092         * lib/mkdirat.c: Likewise.
62093         * lib/mkdtemp.c: Likewise.
62094         * lib/mkstemp-safer.c: Likewise.
62095         * lib/mkstemp.c: Likewise.
62096         * lib/modechange.c: Likewise.
62097         * lib/modechange.h: Likewise.
62098         * lib/mountlist.c: Likewise.
62099         * lib/mountlist.h: Likewise.
62100         * lib/mpsort.c: Likewise.
62101         * lib/nanosleep.c: Likewise.
62102         * lib/obstack.c: Likewise.
62103         * lib/obstack.h: Likewise.
62104         * lib/open-safer.c: Likewise.
62105         * lib/open.c: Likewise.
62106         * lib/openat-die.c: Likewise.
62107         * lib/openat-priv.h: Likewise.
62108         * lib/openat-proc.c: Likewise.
62109         * lib/openat.c: Likewise.
62110         * lib/openat.h: Likewise.
62111         * lib/pagealign_alloc.c: Likewise.
62112         * lib/pagealign_alloc.h: Likewise.
62113         * lib/physmem.c: Likewise.
62114         * lib/physmem.h: Likewise.
62115         * lib/pipe-safer.c: Likewise.
62116         * lib/pipe.c: Likewise.
62117         * lib/pipe.h: Likewise.
62118         * lib/posixtm.c: Likewise.
62119         * lib/posixtm.h: Likewise.
62120         * lib/posixver.c: Likewise.
62121         * lib/printf-frexp.c: Likewise.
62122         * lib/printf-frexp.h: Likewise.
62123         * lib/printf-frexpl.c: Likewise.
62124         * lib/printf-frexpl.h: Likewise.
62125         * lib/printf.c: Likewise.
62126         * lib/progname.c: Likewise.
62127         * lib/progname.h: Likewise.
62128         * lib/progreloc.c: Likewise.
62129         * lib/putenv.c: Likewise.
62130         * lib/quote.c: Likewise.
62131         * lib/quote.h: Likewise.
62132         * lib/quotearg.c: Likewise.
62133         * lib/quotearg.h: Likewise.
62134         * lib/raise.c: Likewise.
62135         * lib/readline.c: Likewise.
62136         * lib/readline.h: Likewise.
62137         * lib/readlink.c: Likewise.
62138         * lib/readtokens.c: Likewise.
62139         * lib/readtokens.h: Likewise.
62140         * lib/readtokens0.c: Likewise.
62141         * lib/readtokens0.h: Likewise.
62142         * lib/readutmp.c: Likewise.
62143         * lib/readutmp.h: Likewise.
62144         * lib/realloc.c: Likewise.
62145         * lib/relocwrapper.c: Likewise.
62146         * lib/rename-dest-slash.c: Likewise.
62147         * lib/rename.c: Likewise.
62148         * lib/rmdir.c: Likewise.
62149         * lib/rpmatch.c: Likewise.
62150         * lib/safe-read.c: Likewise.
62151         * lib/safe-read.h: Likewise.
62152         * lib/safe-write.c: Likewise.
62153         * lib/safe-write.h: Likewise.
62154         * lib/same-inode.h: Likewise.
62155         * lib/same.c: Likewise.
62156         * lib/same.h: Likewise.
62157         * lib/save-cwd.c: Likewise.
62158         * lib/save-cwd.h: Likewise.
62159         * lib/savedir.c: Likewise.
62160         * lib/savedir.h: Likewise.
62161         * lib/savewd.c: Likewise.
62162         * lib/savewd.h: Likewise.
62163         * lib/search.in.h: Likewise.
62164         * lib/setenv.c: Likewise.
62165         * lib/setenv.h: Likewise.
62166         * lib/settime.c: Likewise.
62167         * lib/sh-quote.c: Likewise.
62168         * lib/sh-quote.h: Likewise.
62169         * lib/sig2str.c: Likewise.
62170         * lib/sig2str.h: Likewise.
62171         * lib/signal.in.h: Likewise.
62172         * lib/signbitd.c: Likewise.
62173         * lib/signbitf.c: Likewise.
62174         * lib/signbitl.c: Likewise.
62175         * lib/sigprocmask.c: Likewise.
62176         * lib/sincosl.c: Likewise.
62177         * lib/sleep.c: Likewise.
62178         * lib/sprintf.c: Likewise.
62179         * lib/sqrtl.c: Likewise.
62180         * lib/stat-time.h: Likewise.
62181         * lib/stdio--.h: Likewise.
62182         * lib/stdio-safer.h: Likewise.
62183         * lib/stdlib--.h: Likewise.
62184         * lib/stdlib-safer.h: Likewise.
62185         * lib/stdlib.in.h: Likewise.
62186         * lib/stpcpy.c: Likewise.
62187         * lib/stpncpy.c: Likewise.
62188         * lib/strchrnul.c: Likewise.
62189         * lib/strcspn.c: Likewise.
62190         * lib/strerror.c: Likewise.
62191         * lib/strftime.c: Likewise.
62192         * lib/strftime.h: Likewise.
62193         * lib/striconveh.c: Likewise.
62194         * lib/striconveh.h: Likewise.
62195         * lib/striconveha.c: Likewise.
62196         * lib/striconveha.h: Likewise.
62197         * lib/stripslash.c: Likewise.
62198         * lib/strnlen1.c: Likewise.
62199         * lib/strnlen1.h: Likewise.
62200         * lib/strtod.c: Likewise.
62201         * lib/strtoimax.c: Likewise.
62202         * lib/strtok_r.c: Likewise.
62203         * lib/strtol.c: Likewise.
62204         * lib/strtoll.c: Likewise.
62205         * lib/strtoul.c: Likewise.
62206         * lib/strtoull.c: Likewise.
62207         * lib/sysexits.in.h: Likewise.
62208         * lib/tempname.c: Likewise.
62209         * lib/tempname.h: Likewise.
62210         * lib/timespec.h: Likewise.
62211         * lib/tls.c: Likewise.
62212         * lib/tls.h: Likewise.
62213         * lib/tmpdir.c: Likewise.
62214         * lib/tmpdir.h: Likewise.
62215         * lib/tmpfile-safer.c: Likewise.
62216         * lib/tmpfile.c: Likewise.
62217         * lib/trigl.c: Likewise.
62218         * lib/trigl.h: Likewise.
62219         * lib/trim.c: Likewise.
62220         * lib/trim.h: Likewise.
62221         * lib/trunc.c: Likewise.
62222         * lib/truncf.c: Likewise.
62223         * lib/truncl.c: Likewise.
62224         * lib/tsearch.c: Likewise.
62225         * lib/unicodeio.c: Likewise.
62226         * lib/unicodeio.h: Likewise.
62227         * lib/unistd--.h: Likewise.
62228         * lib/unistd-safer.h: Likewise.
62229         * lib/unistdio/ulc-fprintf.c: Likewise.
62230         * lib/unistdio/ulc-vfprintf.c: Likewise.
62231         * lib/unlinkdir.c: Likewise.
62232         * lib/unlinkdir.h: Likewise.
62233         * lib/unlocked-io.h: Likewise.
62234         * lib/unsetenv.c: Likewise.
62235         * lib/userspec.c: Likewise.
62236         * lib/utime.c: Likewise.
62237         * lib/utimecmp.c: Likewise.
62238         * lib/utimecmp.h: Likewise.
62239         * lib/utimens.c: Likewise.
62240         * lib/verify.h: Likewise.
62241         * lib/verror.c: Likewise.
62242         * lib/verror.h: Likewise.
62243         * lib/version-etc-fsf.c: Likewise.
62244         * lib/version-etc.c: Likewise.
62245         * lib/version-etc.h: Likewise.
62246         * lib/vfprintf.c: Likewise.
62247         * lib/vprintf.c: Likewise.
62248         * lib/vsprintf.c: Likewise.
62249         * lib/w32spawn.h: Likewise.
62250         * lib/wait-process.c: Likewise.
62251         * lib/wait-process.h: Likewise.
62252         * lib/wcwidth.c: Likewise.
62253         * lib/write-any-file.c: Likewise.
62254         * lib/xalloc-die.c: Likewise.
62255         * lib/xalloc.h: Likewise.
62256         * lib/xasprintf.c: Likewise.
62257         * lib/xgetcwd.c: Likewise.
62258         * lib/xgetcwd.h: Likewise.
62259         * lib/xgetdomainname.c: Likewise.
62260         * lib/xgetdomainname.h: Likewise.
62261         * lib/xgethostname.c: Likewise.
62262         * lib/xmalloc.c: Likewise.
62263         * lib/xmalloca.c: Likewise.
62264         * lib/xmalloca.h: Likewise.
62265         * lib/xmemcoll.c: Likewise.
62266         * lib/xnanosleep.c: Likewise.
62267         * lib/xreadlink.c: Likewise.
62268         * lib/xreadlink.h: Likewise.
62269         * lib/xsetenv.c: Likewise.
62270         * lib/xsetenv.h: Likewise.
62271         * lib/xstriconv.c: Likewise.
62272         * lib/xstriconv.h: Likewise.
62273         * lib/xstrndup.c: Likewise.
62274         * lib/xstrndup.h: Likewise.
62275         * lib/xstrtod.c: Likewise.
62276         * lib/xstrtod.h: Likewise.
62277         * lib/xstrtol-error.c: Likewise.
62278         * lib/xstrtol.c: Likewise.
62279         * lib/xstrtol.h: Likewise.
62280         * lib/xtime.h: Likewise.
62281         * lib/xvasprintf.c: Likewise.
62282         * lib/xvasprintf.h: Likewise.
62283         * lib/yesno.c: Likewise.
62284         * lib/yesno.h: Likewise.
62285         * posix-modules: Likewise.
62286         * tests/test-alloca-opt.c: Likewise.
62287         * tests/test-arcfour.c: Likewise.
62288         * tests/test-arctwo.c: Likewise.
62289         * tests/test-argmatch.c: Likewise.
62290         * tests/test-argp-2.sh: Likewise.
62291         * tests/test-argp.c: Likewise.
62292         * tests/test-arpa_inet.c: Likewise.
62293         * tests/test-array_list.c: Likewise.
62294         * tests/test-array_oset.c: Likewise.
62295         * tests/test-atexit.c: Likewise.
62296         * tests/test-avltree_list.c: Likewise.
62297         * tests/test-avltree_oset.c: Likewise.
62298         * tests/test-avltreehash_list.c: Likewise.
62299         * tests/test-base64.c: Likewise.
62300         * tests/test-binary-io.c: Likewise.
62301         * tests/test-byteswap.c: Likewise.
62302         * tests/test-c-ctype.c: Likewise.
62303         * tests/test-c-strcasecmp.c: Likewise.
62304         * tests/test-c-strcasestr.c: Likewise.
62305         * tests/test-c-strncasecmp.c: Likewise.
62306         * tests/test-c-strstr.c: Likewise.
62307         * tests/test-canonicalize-lgpl.c: Likewise.
62308         * tests/test-canonicalize.c: Likewise.
62309         * tests/test-carray_list.c: Likewise.
62310         * tests/test-ceilf.c: Likewise.
62311         * tests/test-ceill.c: Likewise.
62312         * tests/test-count-one-bits.c: Likewise.
62313         * tests/test-crc.c: Likewise.
62314         * tests/test-dirname.c: Likewise.
62315         * tests/test-fbufmode.c: Likewise.
62316         * tests/test-fcntl.c: Likewise.
62317         * tests/test-fflush.c: Likewise.
62318         * tests/test-floorf.c: Likewise.
62319         * tests/test-floorl.c: Likewise.
62320         * tests/test-fopen.c: Likewise.
62321         * tests/test-fprintf-posix.c: Likewise.
62322         * tests/test-fprintf-posix.h: Likewise.
62323         * tests/test-fpurge.c: Likewise.
62324         * tests/test-freadable.c: Likewise.
62325         * tests/test-freadahead.c: Likewise.
62326         * tests/test-freading.c: Likewise.
62327         * tests/test-freopen.c: Likewise.
62328         * tests/test-frexp.c: Likewise.
62329         * tests/test-frexpl.c: Likewise.
62330         * tests/test-fseek.c: Likewise.
62331         * tests/test-fseeko.c: Likewise.
62332         * tests/test-fseterr.c: Likewise.
62333         * tests/test-fstrcmp.c: Likewise.
62334         * tests/test-ftell.c: Likewise.
62335         * tests/test-ftello.c: Likewise.
62336         * tests/test-fwritable.c: Likewise.
62337         * tests/test-fwriting.c: Likewise.
62338         * tests/test-getaddrinfo.c: Likewise.
62339         * tests/test-getpass.c: Likewise.
62340         * tests/test-gettimeofday.c: Likewise.
62341         * tests/test-hmac-md5.c: Likewise.
62342         * tests/test-hmac-sha1.c: Likewise.
62343         * tests/test-iconv.c: Likewise.
62344         * tests/test-iconvme.c: Likewise.
62345         * tests/test-inttypes.c: Likewise.
62346         * tests/test-isnan.c: Likewise.
62347         * tests/test-isnanf.c: Likewise.
62348         * tests/test-isnanl-nolibm.c: Likewise.
62349         * tests/test-isnanl.c: Likewise.
62350         * tests/test-isnanl.h: Likewise.
62351         * tests/test-ldexpl.c: Likewise.
62352         * tests/test-linked_list.c: Likewise.
62353         * tests/test-linkedhash_list.c: Likewise.
62354         * tests/test-locale.c: Likewise.
62355         * tests/test-localename.c: Likewise.
62356         * tests/test-lock.c: Likewise.
62357         * tests/test-lseek.c: Likewise.
62358         * tests/test-malloca.c: Likewise.
62359         * tests/test-math.c: Likewise.
62360         * tests/test-mbscasecmp.c: Likewise.
62361         * tests/test-mbscasestr1.c: Likewise.
62362         * tests/test-mbscasestr2.c: Likewise.
62363         * tests/test-mbscasestr3.c: Likewise.
62364         * tests/test-mbscasestr4.c: Likewise.
62365         * tests/test-mbschr.c: Likewise.
62366         * tests/test-mbscspn.c: Likewise.
62367         * tests/test-mbsncasecmp.c: Likewise.
62368         * tests/test-mbspbrk.c: Likewise.
62369         * tests/test-mbspcasecmp.c: Likewise.
62370         * tests/test-mbsrchr.c: Likewise.
62371         * tests/test-mbsspn.c: Likewise.
62372         * tests/test-mbsstr1.c: Likewise.
62373         * tests/test-mbsstr2.c: Likewise.
62374         * tests/test-mbsstr3.c: Likewise.
62375         * tests/test-md5.c: Likewise.
62376         * tests/test-memmem.c: Likewise.
62377         * tests/test-netinet_in.c: Likewise.
62378         * tests/test-open.c: Likewise.
62379         * tests/test-printf-frexp.c: Likewise.
62380         * tests/test-printf-frexpl.c: Likewise.
62381         * tests/test-printf-posix.c: Likewise.
62382         * tests/test-printf-posix.h: Likewise.
62383         * tests/test-rbtree_list.c: Likewise.
62384         * tests/test-rbtree_oset.c: Likewise.
62385         * tests/test-rbtreehash_list.c: Likewise.
62386         * tests/test-read-file.c: Likewise.
62387         * tests/test-rijndael.c: Likewise.
62388         * tests/test-search.c: Likewise.
62389         * tests/test-signbit.c: Likewise.
62390         * tests/test-sleep.c: Likewise.
62391         * tests/test-snprintf-posix.c: Likewise.
62392         * tests/test-snprintf-posix.h: Likewise.
62393         * tests/test-snprintf.c: Likewise.
62394         * tests/test-sprintf-posix.c: Likewise.
62395         * tests/test-sprintf-posix.h: Likewise.
62396         * tests/test-stat-time.c: Likewise.
62397         * tests/test-stdbool.c: Likewise.
62398         * tests/test-stdint.c: Likewise.
62399         * tests/test-stdio.c: Likewise.
62400         * tests/test-stdlib.c: Likewise.
62401         * tests/test-stpncpy.c: Likewise.
62402         * tests/test-strcasestr.c: Likewise.
62403         * tests/test-striconv.c: Likewise.
62404         * tests/test-striconveh.c: Likewise.
62405         * tests/test-striconveha.c: Likewise.
62406         * tests/test-string.c: Likewise.
62407         * tests/test-sys_select.c: Likewise.
62408         * tests/test-sys_socket.c: Likewise.
62409         * tests/test-sys_stat.c: Likewise.
62410         * tests/test-sys_time.c: Likewise.
62411         * tests/test-sysexits.c: Likewise.
62412         * tests/test-time.c: Likewise.
62413         * tests/test-tls.c: Likewise.
62414         * tests/test-trunc.c: Likewise.
62415         * tests/test-truncf.c: Likewise.
62416         * tests/test-truncl.c: Likewise.
62417         * tests/test-unistd.c: Likewise.
62418         * tests/test-vasnprintf-posix.c: Likewise.
62419         * tests/test-vasnprintf-posix2.c: Likewise.
62420         * tests/test-vasnprintf.c: Likewise.
62421         * tests/test-vasprintf-posix.c: Likewise.
62422         * tests/test-vasprintf.c: Likewise.
62423         * tests/test-verify.c: Likewise.
62424         * tests/test-vfprintf-posix.c: Likewise.
62425         * tests/test-vprintf-posix.c: Likewise.
62426         * tests/test-vsnprintf-posix.c: Likewise.
62427         * tests/test-vsnprintf.c: Likewise.
62428         * tests/test-vsprintf-posix.c: Likewise.
62429         * tests/test-wchar.c: Likewise.
62430         * tests/test-wctype.c: Likewise.
62431         * tests/test-wcwidth.c: Likewise.
62432         * tests/test-xstrtol.c: Likewise.
62433         * tests/test-xvasprintf.c: Likewise.
62434         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62435         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62436         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62437         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62438         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62439         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62440         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62441         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62442         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62443         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62444         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62445         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62446         * tests/uniname/test-uninames.c: Likewise.
62447         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62448         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62449         * tests/unistdio/test-u16-printf1.h: Likewise.
62450         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62451         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62452         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62453         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62454         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62455         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62456         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62457         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62458         * tests/unistdio/test-u32-printf1.h: Likewise.
62459         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62460         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62461         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62462         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62463         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62464         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62465         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62466         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62467         * tests/unistdio/test-u8-printf1.h: Likewise.
62468         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62469         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62470         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62471         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62472         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62473         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62474         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62475         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62476         * tests/unistdio/test-ulc-printf1.h: Likewise.
62477         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62478         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62479         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62480         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62481         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62482         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62483         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62484         * tests/uniwidth/test-u16-width.c: Likewise.
62485         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62486         * tests/uniwidth/test-u32-width.c: Likewise.
62487         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62488         * tests/uniwidth/test-u8-width.c: Likewise.
62489         * tests/uniwidth/test-uc_width.c: Likewise.
62490         * config/srclist-update: Likewise.
62491         (fixlicense): Update to GPLv3+.
62492
62493         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62494         * tests/test-tsearch.c: Change copyright notice.
62495
62496         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62497         * lib/c-strcaseeq.h: Change copyright notice.
62498         * lib/streq.h: Likewise.
62499         * lib/uniconv.h: Likewise.
62500         * lib/uniconv/u-conv-from-enc.h: Likewise.
62501         * lib/uniconv/u-conv-to-enc.h: Likewise.
62502         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62503         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62504         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62505         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62506         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62507         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62508         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62509         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62510         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62511         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62512         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62513         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62514         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62515         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62516         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62517         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62518         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62519         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62520         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62521         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62522         * lib/uniname.h: Likewise.
62523         * lib/uniname/uniname.c: Likewise.
62524         * lib/unistdio.h: Likewise.
62525         * lib/unistdio/u-asnprintf.h: Likewise.
62526         * lib/unistdio/u-asprintf.h: Likewise.
62527         * lib/unistdio/u-printf-args.c: Likewise.
62528         * lib/unistdio/u-printf-args.h: Likewise.
62529         * lib/unistdio/u-printf-parse.h: Likewise.
62530         * lib/unistdio/u-snprintf.h: Likewise.
62531         * lib/unistdio/u-sprintf.h: Likewise.
62532         * lib/unistdio/u-vasprintf.h: Likewise.
62533         * lib/unistdio/u-vsnprintf.h: Likewise.
62534         * lib/unistdio/u-vsprintf.h: Likewise.
62535         * lib/unistdio/u16-asnprintf.c: Likewise.
62536         * lib/unistdio/u16-asprintf.c: Likewise.
62537         * lib/unistdio/u16-printf-parse.c: Likewise.
62538         * lib/unistdio/u16-snprintf.c: Likewise.
62539         * lib/unistdio/u16-sprintf.c: Likewise.
62540         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62541         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62542         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62543         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62544         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62545         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62546         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62547         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62548         * lib/unistdio/u16-vasnprintf.c: Likewise.
62549         * lib/unistdio/u16-vasprintf.c: Likewise.
62550         * lib/unistdio/u16-vsnprintf.c: Likewise.
62551         * lib/unistdio/u16-vsprintf.c: Likewise.
62552         * lib/unistdio/u32-asnprintf.c: Likewise.
62553         * lib/unistdio/u32-asprintf.c: Likewise.
62554         * lib/unistdio/u32-printf-parse.c: Likewise.
62555         * lib/unistdio/u32-snprintf.c: Likewise.
62556         * lib/unistdio/u32-sprintf.c: Likewise.
62557         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62558         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62559         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62560         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62561         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62562         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62563         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62564         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62565         * lib/unistdio/u32-vasnprintf.c: Likewise.
62566         * lib/unistdio/u32-vasprintf.c: Likewise.
62567         * lib/unistdio/u32-vsnprintf.c: Likewise.
62568         * lib/unistdio/u32-vsprintf.c: Likewise.
62569         * lib/unistdio/u8-asnprintf.c: Likewise.
62570         * lib/unistdio/u8-asprintf.c: Likewise.
62571         * lib/unistdio/u8-printf-parse.c: Likewise.
62572         * lib/unistdio/u8-snprintf.c: Likewise.
62573         * lib/unistdio/u8-sprintf.c: Likewise.
62574         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62575         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62576         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62577         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62578         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62579         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62580         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62581         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62582         * lib/unistdio/u8-vasnprintf.c: Likewise.
62583         * lib/unistdio/u8-vasprintf.c: Likewise.
62584         * lib/unistdio/u8-vsnprintf.c: Likewise.
62585         * lib/unistdio/u8-vsprintf.c: Likewise.
62586         * lib/unistdio/ulc-asnprintf.c: Likewise.
62587         * lib/unistdio/ulc-asprintf.c: Likewise.
62588         * lib/unistdio/ulc-printf-parse.c: Likewise.
62589         * lib/unistdio/ulc-snprintf.c: Likewise.
62590         * lib/unistdio/ulc-sprintf.c: Likewise.
62591         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62592         * lib/unistdio/ulc-vasprintf.c: Likewise.
62593         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62594         * lib/unistdio/ulc-vsprintf.c: Likewise.
62595         * lib/unistr.h: Likewise.
62596         * lib/unistr/u-cpy-alloc.h: Likewise.
62597         * lib/unistr/u-cpy.h: Likewise.
62598         * lib/unistr/u-endswith.h: Likewise.
62599         * lib/unistr/u-move.h: Likewise.
62600         * lib/unistr/u-set.h: Likewise.
62601         * lib/unistr/u-startswith.h: Likewise.
62602         * lib/unistr/u-stpcpy.h: Likewise.
62603         * lib/unistr/u-stpncpy.h: Likewise.
62604         * lib/unistr/u-strcat.h: Likewise.
62605         * lib/unistr/u-strcpy.h: Likewise.
62606         * lib/unistr/u-strcspn.h: Likewise.
62607         * lib/unistr/u-strdup.h: Likewise.
62608         * lib/unistr/u-strlen.h: Likewise.
62609         * lib/unistr/u-strncat.h: Likewise.
62610         * lib/unistr/u-strncpy.h: Likewise.
62611         * lib/unistr/u-strnlen.h: Likewise.
62612         * lib/unistr/u-strpbrk.h: Likewise.
62613         * lib/unistr/u-strspn.h: Likewise.
62614         * lib/unistr/u-strstr.h: Likewise.
62615         * lib/unistr/u-strtok.h: Likewise.
62616         * lib/unistr/u16-check.c: Likewise.
62617         * lib/unistr/u16-chr.c: Likewise.
62618         * lib/unistr/u16-cmp.c: Likewise.
62619         * lib/unistr/u16-cpy-alloc.c: Likewise.
62620         * lib/unistr/u16-cpy.c: Likewise.
62621         * lib/unistr/u16-endswith.c: Likewise.
62622         * lib/unistr/u16-mblen.c: Likewise.
62623         * lib/unistr/u16-mbsnlen.c: Likewise.
62624         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62625         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62626         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62627         * lib/unistr/u16-mbtouc.c: Likewise.
62628         * lib/unistr/u16-mbtoucr.c: Likewise.
62629         * lib/unistr/u16-move.c: Likewise.
62630         * lib/unistr/u16-next.c: Likewise.
62631         * lib/unistr/u16-prev.c: Likewise.
62632         * lib/unistr/u16-set.c: Likewise.
62633         * lib/unistr/u16-startswith.c: Likewise.
62634         * lib/unistr/u16-stpcpy.c: Likewise.
62635         * lib/unistr/u16-stpncpy.c: Likewise.
62636         * lib/unistr/u16-strcat.c: Likewise.
62637         * lib/unistr/u16-strchr.c: Likewise.
62638         * lib/unistr/u16-strcmp.c: Likewise.
62639         * lib/unistr/u16-strcpy.c: Likewise.
62640         * lib/unistr/u16-strcspn.c: Likewise.
62641         * lib/unistr/u16-strdup.c: Likewise.
62642         * lib/unistr/u16-strlen.c: Likewise.
62643         * lib/unistr/u16-strmblen.c: Likewise.
62644         * lib/unistr/u16-strmbtouc.c: Likewise.
62645         * lib/unistr/u16-strncat.c: Likewise.
62646         * lib/unistr/u16-strncmp.c: Likewise.
62647         * lib/unistr/u16-strncpy.c: Likewise.
62648         * lib/unistr/u16-strnlen.c: Likewise.
62649         * lib/unistr/u16-strpbrk.c: Likewise.
62650         * lib/unistr/u16-strrchr.c: Likewise.
62651         * lib/unistr/u16-strspn.c: Likewise.
62652         * lib/unistr/u16-strstr.c: Likewise.
62653         * lib/unistr/u16-strtok.c: Likewise.
62654         * lib/unistr/u16-to-u32.c: Likewise.
62655         * lib/unistr/u16-to-u8.c: Likewise.
62656         * lib/unistr/u16-uctomb-aux.c: Likewise.
62657         * lib/unistr/u16-uctomb.c: Likewise.
62658         * lib/unistr/u32-check.c: Likewise.
62659         * lib/unistr/u32-chr.c: Likewise.
62660         * lib/unistr/u32-cmp.c: Likewise.
62661         * lib/unistr/u32-cpy-alloc.c: Likewise.
62662         * lib/unistr/u32-cpy.c: Likewise.
62663         * lib/unistr/u32-endswith.c: Likewise.
62664         * lib/unistr/u32-mblen.c: Likewise.
62665         * lib/unistr/u32-mbsnlen.c: Likewise.
62666         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62667         * lib/unistr/u32-mbtouc.c: Likewise.
62668         * lib/unistr/u32-mbtoucr.c: Likewise.
62669         * lib/unistr/u32-move.c: Likewise.
62670         * lib/unistr/u32-next.c: Likewise.
62671         * lib/unistr/u32-prev.c: Likewise.
62672         * lib/unistr/u32-set.c: Likewise.
62673         * lib/unistr/u32-startswith.c: Likewise.
62674         * lib/unistr/u32-stpcpy.c: Likewise.
62675         * lib/unistr/u32-stpncpy.c: Likewise.
62676         * lib/unistr/u32-strcat.c: Likewise.
62677         * lib/unistr/u32-strchr.c: Likewise.
62678         * lib/unistr/u32-strcmp.c: Likewise.
62679         * lib/unistr/u32-strcpy.c: Likewise.
62680         * lib/unistr/u32-strcspn.c: Likewise.
62681         * lib/unistr/u32-strdup.c: Likewise.
62682         * lib/unistr/u32-strlen.c: Likewise.
62683         * lib/unistr/u32-strmblen.c: Likewise.
62684         * lib/unistr/u32-strmbtouc.c: Likewise.
62685         * lib/unistr/u32-strncat.c: Likewise.
62686         * lib/unistr/u32-strncmp.c: Likewise.
62687         * lib/unistr/u32-strncpy.c: Likewise.
62688         * lib/unistr/u32-strnlen.c: Likewise.
62689         * lib/unistr/u32-strpbrk.c: Likewise.
62690         * lib/unistr/u32-strrchr.c: Likewise.
62691         * lib/unistr/u32-strspn.c: Likewise.
62692         * lib/unistr/u32-strstr.c: Likewise.
62693         * lib/unistr/u32-strtok.c: Likewise.
62694         * lib/unistr/u32-to-u16.c: Likewise.
62695         * lib/unistr/u32-to-u8.c: Likewise.
62696         * lib/unistr/u32-uctomb.c: Likewise.
62697         * lib/unistr/u8-check.c: Likewise.
62698         * lib/unistr/u8-chr.c: Likewise.
62699         * lib/unistr/u8-cmp.c: Likewise.
62700         * lib/unistr/u8-cpy-alloc.c: Likewise.
62701         * lib/unistr/u8-cpy.c: Likewise.
62702         * lib/unistr/u8-endswith.c: Likewise.
62703         * lib/unistr/u8-mblen.c: Likewise.
62704         * lib/unistr/u8-mbsnlen.c: Likewise.
62705         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62706         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62707         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62708         * lib/unistr/u8-mbtouc.c: Likewise.
62709         * lib/unistr/u8-mbtoucr.c: Likewise.
62710         * lib/unistr/u8-move.c: Likewise.
62711         * lib/unistr/u8-next.c: Likewise.
62712         * lib/unistr/u8-prev.c: Likewise.
62713         * lib/unistr/u8-set.c: Likewise.
62714         * lib/unistr/u8-startswith.c: Likewise.
62715         * lib/unistr/u8-stpcpy.c: Likewise.
62716         * lib/unistr/u8-stpncpy.c: Likewise.
62717         * lib/unistr/u8-strcat.c: Likewise.
62718         * lib/unistr/u8-strchr.c: Likewise.
62719         * lib/unistr/u8-strcmp.c: Likewise.
62720         * lib/unistr/u8-strcpy.c: Likewise.
62721         * lib/unistr/u8-strcspn.c: Likewise.
62722         * lib/unistr/u8-strdup.c: Likewise.
62723         * lib/unistr/u8-strlen.c: Likewise.
62724         * lib/unistr/u8-strmblen.c: Likewise.
62725         * lib/unistr/u8-strmbtouc.c: Likewise.
62726         * lib/unistr/u8-strncat.c: Likewise.
62727         * lib/unistr/u8-strncmp.c: Likewise.
62728         * lib/unistr/u8-strncpy.c: Likewise.
62729         * lib/unistr/u8-strnlen.c: Likewise.
62730         * lib/unistr/u8-strpbrk.c: Likewise.
62731         * lib/unistr/u8-strrchr.c: Likewise.
62732         * lib/unistr/u8-strspn.c: Likewise.
62733         * lib/unistr/u8-strstr.c: Likewise.
62734         * lib/unistr/u8-strtok.c: Likewise.
62735         * lib/unistr/u8-to-u16.c: Likewise.
62736         * lib/unistr/u8-to-u32.c: Likewise.
62737         * lib/unistr/u8-uctomb-aux.c: Likewise.
62738         * lib/unistr/u8-uctomb.c: Likewise.
62739         * lib/unitypes.h: Likewise.
62740         * lib/uniwidth.h: Likewise.
62741         * lib/uniwidth/cjk.h: Likewise.
62742         * lib/uniwidth/u16-strwidth.c: Likewise.
62743         * lib/uniwidth/u16-width.c: Likewise.
62744         * lib/uniwidth/u32-strwidth.c: Likewise.
62745         * lib/uniwidth/u32-width.c: Likewise.
62746         * lib/uniwidth/u8-strwidth.c: Likewise.
62747         * lib/uniwidth/u8-width.c: Likewise.
62748         * lib/uniwidth/width.c: Likewise.
62749
62750 2007-10-07  Bruno Haible  <bruno@clisp.org>
62751
62752         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62753         The file is still under LGPL (see modules/inttypes).
62754
62755 2007-10-06  Bruno Haible  <bruno@clisp.org>
62756
62757         * modules/trunc (Dependencies): Add 'extensions'.
62758         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62759         Reported by Ben Pfaff <blp@gnu.org>.
62760
62761 2007-10-06  Bruno Haible  <bruno@clisp.org>
62762
62763         * modules/freopen-tests: New file.
62764         * tests/test-freopen.c: New file.
62765
62766         * modules/fopen-tests: New file.
62767         * tests/test-fopen.c: New file.
62768
62769         * modules/fopen: New file.
62770         * lib/fopen.c: New file.
62771         * m4/fopen.m4: New file.
62772         * modules/freopen: New file.
62773         * lib/freopen.c: New file.
62774         * m4/freopen.m4: New file.
62775         * lib/stdio.in.h (fopen, freopen): New declarations.
62776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62777         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62778         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62779         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62780         * doc/functions/fopen.texi: Mention the 'fopen' module.
62781         * doc/functions/freopen.texi: Mention the 'freopen' module.
62782
62783 2007-10-06  Bruno Haible  <bruno@clisp.org>
62784
62785         * modules/open-tests: New file.
62786         * tests/test-open.c: New file.
62787
62788         * modules/open: New file.
62789         * lib/open.c: New file.
62790         * m4/open.m4: New file.
62791         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62792         lib/open.c does.
62793         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62794         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62795         macros.
62796         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62797         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62798         REPLACE_OPEN.
62799         * doc/functions/open.texi: Mention the 'open' module.
62800
62801 2007-10-04  Bruno Haible  <bruno@clisp.org>
62802
62803         * modules/ceill-tests: New file.
62804         * tests/test-ceill.c: New file.
62805
62806         * modules/ceill: New file.
62807         * lib/ceill.c: Replace entire file.
62808         * m4/ceill.m4: New file.
62809         * lib/math.in.h (ceill): Replace declaration.
62810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62811         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62812         * doc/functions/ceill.texi: Mention the 'ceill' module.
62813         * modules/mathl (Files): Remove lib/ceill.c.
62814         (Depends-on): Add ceill.
62815
62816 2007-10-04  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/ceilf-tests: New file.
62819         * tests/test-ceilf.c: New file.
62820
62821         * modules/ceilf: New file.
62822         * lib/ceil.c: New file.
62823         * lib/ceilf.c: New file.
62824         * m4/ceilf.m4: New file.
62825         * lib/math.in.h (ceilf): New declaration.
62826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62827         HAVE_DECL_CEILF.
62828         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62829         HAVE_DECL_CEILF.
62830         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62831
62832 2007-10-04  Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/floorl-tests: New file.
62835         * tests/test-floorl.c: New file.
62836
62837         * modules/floorl: New file.
62838         * lib/floorl.c: Replace entire file.
62839         * m4/floorl.m4: New file.
62840         * lib/math.in.h (floorl): Replace declaration.
62841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62842         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62843         * doc/functions/floorl.texi: Mention the 'floorl' module.
62844         * modules/mathl (Files): Remove lib/floorl.c.
62845         (Depends-on): Add floorl.
62846
62847 2007-10-04  Bruno Haible  <bruno@clisp.org>
62848
62849         * modules/floorf-tests: New file.
62850         * tests/test-floorf.c: New file.
62851
62852         * modules/floorf: New file.
62853         * lib/floor.c: New file.
62854         * lib/floorf.c: New file.
62855         * m4/floorf.m4: New file.
62856         * lib/math.in.h (floorf): New declaration.
62857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62858         HAVE_DECL_FLOORF.
62859         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62860         HAVE_DECL_FLOORF.
62861         * doc/functions/floorf.texi: Mention the 'floorf' module.
62862
62863 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62864             Bruno Haible  <bruno@clisp.org>
62865
62866         Advertise for the Git server instead of the CVS server.
62867         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62868         repository instead of the CVS one.
62869         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62870         about all VCS systems generically.
62871         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62872
62873 2007-10-04  Bruno Haible  <bruno@clisp.org>
62874
62875         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62876         means.
62877         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62878
62879 2007-10-04  Bruno Haible  <bruno@clisp.org>
62880
62881         * modules/truncl-tests: New file.
62882         * tests/test-truncl.c: New file.
62883
62884         * modules/truncl: New file.
62885         * lib/truncl.c: New file.
62886         * m4/truncl.m4: New file.
62887         * lib/math.in.h (truncl): New declaration.
62888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62889         HAVE_DECL_TRUNCL.
62890         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62891         HAVE_DECL_TRUNCL.
62892         * doc/functions/truncl.texi: Mention the 'truncl' module.
62893
62894 2007-10-04  Bruno Haible  <bruno@clisp.org>
62895
62896         * modules/truncf-tests: New file.
62897         * tests/test-truncf.c: New file.
62898
62899         * modules/truncf: New file.
62900         * lib/trunc.c: Make paramerizable through USE_* macros.
62901         * lib/truncf.c: New file.
62902         * m4/truncf.m4: New file.
62903         * lib/math.in.h (truncf): New declaration.
62904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62905         HAVE_DECL_TRUNCF.
62906         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62907         HAVE_DECL_TRUNCF.
62908         * doc/functions/truncf.texi: Mention the 'truncf' module.
62909
62910 2007-10-03  Bruno Haible  <bruno@clisp.org>
62911
62912         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62913         augmentation also for tests modules.
62914         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62915         * modules/atexit-tests (Makefile.am): Likewise.
62916         * modules/binary-io-tests (Makefile.am): Likewise.
62917         * modules/c-strcase-tests (Makefile.am): Likewise.
62918         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62919         * modules/canonicalize-tests (Makefile.am): Likewise.
62920         * modules/closein-tests (Makefile.am): Likewise.
62921         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62922         * modules/freadahead-tests (Makefile.am): Likewise.
62923         * modules/fseek-tests (Makefile.am): Likewise.
62924         * modules/fseeko-tests (Makefile.am): Likewise.
62925         * modules/ftell-tests (Makefile.am): Likewise.
62926         * modules/ftello-tests (Makefile.am): Likewise.
62927         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62928         * modules/isnanl-tests (Makefile.am): Likewise.
62929         * modules/lseek-tests (Makefile.am): Likewise.
62930         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62931         * modules/mbscasestr-tests (Makefile.am): Likewise.
62932         * modules/mbschr-tests (Makefile.am): Likewise.
62933         * modules/mbscspn-tests (Makefile.am): Likewise.
62934         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62935         * modules/mbspbrk-tests (Makefile.am): Likewise.
62936         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62937         * modules/mbsrchr-tests (Makefile.am): Likewise.
62938         * modules/mbsspn-tests (Makefile.am): Likewise.
62939         * modules/mbsstr-tests (Makefile.am): Likewise.
62940         * modules/printf-posix-tests (Makefile.am): Likewise.
62941         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62942         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62943         * modules/tsearch-tests (Makefile.am): Likewise.
62944         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62945         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62946         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62947         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62948         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62949         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62950         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62951         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62952         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62953         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62954         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62955         * modules/xstrtol-tests (Makefile.am): Likewise.
62956         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62957         * modules/yesno-tests (Makefile.am): Likewise.
62958
62959 2007-10-03  Bruno Haible  <bruno@clisp.org>
62960
62961         * modules/trunc-tests: New file.
62962         * tests/test-trunc.c: New file.
62963
62964         * modules/trunc: New file.
62965         * lib/trunc.c: New file.
62966         * m4/trunc.m4: New file.
62967         * lib/math.in.h (trunc): New declaration.
62968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62969         HAVE_DECL_TRUNC.
62970         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62971         HAVE_DECL_TRUNC.
62972         * doc/functions/trunc.texi: Mention the 'trunc' module.
62973
62974 2007-10-03  Bruno Haible  <bruno@clisp.org>
62975
62976         * tests/test-fpending.c: New file, mostly copied
62977         from coreutils/lib/t-fpending.c.
62978         * modules/fpending-tests: New file.
62979
62980 2007-10-03  Bruno Haible  <bruno@clisp.org>
62981
62982         Port the stdio extensions to QNX (untested).
62983         * lib/fseterr.c (fseterr): Add support for QNX.
62984         * lib/fbufmode.c (fbufmode): Likewise.
62985         * lib/freadable.c (freadable): Likewise.
62986         * lib/fwritable.c (fwritable): Likewise.
62987         * lib/freading.c (freading): Likewise.
62988         * lib/fwriting.c (fwriting): Likewise.
62989         * lib/freadahead.c (freadahed): Likewise.
62990         * lib/fpurge.c (fpurge): Likewise.
62991         * lib/fseeko.c (rpl_fseeko): Likewise.
62992
62993 2007-10-03  Bruno Haible  <bruno@clisp.org>
62994             Jim Meyering  <jim@meyering.net>
62995             Eric Blake  <ebb9@byu.net>
62996
62997         * doc/relocatable.texi: Use @command instead of @program.
62998
62999 2007-10-02  Jim Meyering  <jim@meyering.net>
63000
63001         Perform one more "_.h" -> ".in.h" substitution.
63002         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63003         instead of unistd_.h here, too.
63004
63005 2007-10-01  Bruno Haible  <bruno@clisp.org>
63006
63007         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63008         Needed for the alloca-opt module.
63009
63010 2007-09-30  Bruno Haible  <bruno@clisp.org>
63011
63012         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63013         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63014         alloca_.h.
63015         * lib/argz.in.h: Renamed from lib/argz_.h.
63016         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63017         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63018         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63019         byteswap_.h.
63020         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63021         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63022         dirent_.h.
63023         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63024         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63025         fcntl_.h.
63026         * lib/float.in.h: Renamed from lib/float_.h.
63027         * modules/float (Files, Makefile.am): Use float.in.h instead of
63028         float_.h.
63029         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63030         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63031         fnmatch_.h.
63032         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63033         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63034         getopt_.h.
63035         * lib/glob.in.h: Renamed from lib/glob_.h.
63036         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63037         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63038         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63039         iconv_.h.
63040         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63041         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63042         inttypes_.h.
63043         * lib/locale.in.h: Renamed from lib/locale_.h.
63044         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63045         locale_.h.
63046         * lib/math.in.h: Renamed from lib/math_.h.
63047         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63048         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63049         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63050         of netinet_in_.h. Add dependency.
63051         * lib/poll.in.h: Renamed from lib/poll_.h.
63052         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63053         * lib/search.in.h: Renamed from lib/search_.h.
63054         * modules/search (Files, Makefile.am): Use search.in.h instead of
63055         search_.h.
63056         * lib/signal.in.h: Renamed from lib/signal_.h.
63057         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63058         _signal.h.
63059         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63060         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63061         stdbool_.h.
63062         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63063         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63064         stdint_.h.
63065         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63066         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63067         stdio_.h.
63068         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63069         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63070         stdlib_.h.
63071         * lib/string.in.h: Renamed from lib/string_.h.
63072         * modules/string (Files, Makefile.am): Use string.in.h instead of
63073         string_.h.
63074         * doc/gnulib-tool.texi (Initial import): Update.
63075         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63076         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63077         of sys_select_.h. Add dependency.
63078         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63079         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63080         of sys_socket_.h.
63081         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63082         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63083         sys_stat_.h.
63084         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63085         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63086         sys_time_.h.
63087         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63088         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63089         sysexits_.h.
63090         * lib/time.in.h: Renamed from lib/time_.h.
63091         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63092         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63093         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63094         unistd_.h.
63095         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63096         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63097         wchar_.h.
63098         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63099         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63100         wctype_.h.
63101         * build-aux/bootstrap (slurp): Update.
63102         * lib/.cppi-disable: Update.
63103
63104 2007-09-30  Bruno Haible  <bruno@clisp.org>
63105
63106         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63107         Needed on BeOS.
63108
63109 2007-09-30  Bruno Haible  <bruno@clisp.org>
63110
63111         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63112
63113 2007-09-29  Bruno Haible  <bruno@clisp.org>
63114
63115         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63116
63117 2007-09-29  Bruno Haible  <bruno@clisp.org>
63118
63119         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63120         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63121         * build-aux/install-reloc: Compile also areadlink.c.
63122         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63123
63124 2007-09-29  Bruno Haible  <bruno@clisp.org>
63125
63126         * gnulib-tool (func_emit_initmacro_done): Indentation.
63127
63128 2007-09-29  Bruno Haible  <bruno@clisp.org>
63129
63130         * README: Add CVS checkout update instructions.
63131         Info from Bob Proulx <bob@proulx.com>.
63132
63133 2007-09-28  Eric Blake  <ebb9@byu.net>
63134
63135         Provide move-if-change.
63136         * build-aux/move-if-change: New file, based on best practice
63137         rather than any canonical upstream location.
63138
63139 2007-09-28  Jim Meyering  <jim@meyering.net>
63140
63141         Fix canonicalize loop-detection corner case.
63142         Do not attempt to stat the symlink values stored via seen_triple.
63143         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63144         on linux-2.6.18, (but not 2.6.22).
63145         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63146         triple_compare.  The former compares dev,ino,filename, while the latter
63147         would actually stat dirname(filename) when dev and ino were equal.
63148         * lib/hash-triple.c: Install <string.h>.
63149         (STREQ): Define.
63150         (triple_compare_ino_str): New function.
63151         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63152
63153 2007-09-28  Eric Blake  <ebb9@byu.net>
63154
63155         Enforce that AC_REPLACE_FUNCS files exist.
63156         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63157         override check for typos.
63158
63159         Fix test-closein on Solaris 10.
63160         * tests/test-closein.c (main): Don't assume stdin can be inherited
63161         closed on all systems.
63162         * tests/test-closein.sh: Likewise.
63163         Reported by Piotr Tarnowski.
63164
63165 2007-09-28  Jim Meyering  <jim@meyering.net>
63166
63167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63168
63169 2007-09-27  Jim Meyering  <jim@meyering.net>
63170
63171         canonicalize: Avoid a false-positive cycle failure.
63172         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63173         Sort.  Remove cycle-check.
63174         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63175         not cycle-check.h.
63176         (seen_triple): New function.
63177         (canonicalize_filename_mode): Use it instead of cycle-check.
63178         * tests/test-canonicalize.c: Add a test for this bug.
63179         * tests/test-canonicalize.sh: Set up and run the test.
63180
63181         New module, file-set, from coreutils.
63182         * modules/file-set: Define it.
63183         * lib/file-set.c, lib/file-set.h: Implement.
63184
63185         New module, hash-triple, from coreutils.
63186         * modules/hash-triple: Define it.
63187         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63188
63189 2007-09-25  Eric Blake  <ebb9@byu.net>
63190
63191         Fix strerror on Interix.
63192         * lib/string_.h (strerror): Declare replacement.
63193         * doc/functions/strerror.texi (strerror): Document the Interix
63194         shortcoming.
63195         * modules/string (Makefile.am): Support new hooks.
63196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63197         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63198         gl_FUNC_STRERROR_SEPARATE.
63199         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63200         * lib/strerror.c (rpl_strerror): Provide replacement.
63201         * modules/strerror (Depends-on): Add string.
63202         (configure.ac): Detect use of module.
63203         * tests/test-strerror.c: New file.
63204         * modules/strerror-tests: New test module.
63205         * modules/argp (Depends-on): Add strerror.
63206         * modules/error (Depends-on): Likewise.
63207         Reported by Martin Koeppe.
63208
63209 2007-09-24  Bruno Haible  <bruno@clisp.org>
63210
63211         * README: Update git instructions.
63212
63213 2007-09-24  Eric Blake  <ebb9@byu.net>
63214
63215         Revert fpending breakage from 2007-09-08.
63216         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63217         __fpending.c.
63218
63219 2007-09-24  Jim Meyering  <jim@meyering.net>
63220
63221         filenamecat.c: Add a test.
63222         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63223         showing how the function works when DIR is the empty string.
63224
63225 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63226
63227         * tests/test-canonicalize.sh: Turn on executable bit.
63228
63229 2007-09-19  Eric Blake  <ebb9@byu.net>
63230
63231         * README: Update CVS instructions.
63232
63233 2007-09-18  Bruno Haible  <bruno@clisp.org>
63234
63235         * modules/areadlink: New file.
63236         * lib/areadlink.h (areadlink): New declaration.
63237         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63238
63239 2007-09-17  Jim Meyering  <jim@meyering.net>
63240
63241         * lib/savewd.c (ESTALE) [!defined]: Define.
63242         Reported to be required on Interix by Martin Koeppe.
63243
63244 2007-09-17  Bruno Haible  <bruno@clisp.org>
63245
63246         * gnulib-tool (func_version): Use $version.
63247
63248 2007-09-16  Bruno Haible  <bruno@clisp.org>
63249
63250         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63251         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63252         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63253         Reported by Greg Schafer <gschafer@zip.com.au>.
63254
63255 2007-09-15  Bruno Haible  <bruno@clisp.org>
63256
63257         * gnulib-tool (sed): Try a little harder to make bash understand the
63258         alias.
63259         Reported by Bruce Korb <bruce.korb@gmail.com>.
63260
63261 2007-09-13  Eric Blake  <ebb9@byu.net>
63262
63263         * ChangeLog: Remove conflict markers.
63264
63265 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63266
63267         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63268         Reported by Bruno Haible <bruno@clisp.org>.
63269
63270 2007-09-12  Bruno Haible  <bruno@clisp.org>
63271
63272         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63273         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63274         is not defined.
63275
63276 2007-09-12  Eric Blake  <ebb9@byu.net>
63277
63278         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63279         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63280         Autoconf definition.
63281         * modules/euidaccess (Depends-on): Add extensions, for
63282         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63283         * modules/fnmatch (Depends-on): Likewise.
63284         * modules/getaddrinfo (Depends-on): Likewise.
63285         * modules/getdelim (Depends-on): Likewise.
63286         * modules/getline (Depends-on): Likewise.
63287         * modules/getsubopt (Depends-on): Likewise.
63288         * modules/gettext (Depends-on): Likewise.
63289         * modules/group-member (Depends-on): Likewise.
63290         * modules/mbchar (Depends-on): Likewise.
63291         * modules/memmem (Depends-on): Likewise.
63292         * modules/mempcpy (Depends-on): Likewise.
63293         * modules/memrchr (Depends-on): Likewise.
63294         * modules/pagealign_alloc (Depends-on): Likewise.
63295         * modules/readutmp (Depends-on): Likewise.
63296         * modules/stpcpy (Depends-on): Likewise.
63297         * modules/stpncpy (Depends-on): Likewise.
63298         * modules/strchrnul (Depends-on): Likewise.
63299         * modules/strndup (Depends-on): Likewise.
63300         * modules/strsep (Depends-on): Likewise.
63301         * modules/strverscmp (Depends-on): Likewise.
63302         * modules/vasprintf (Depends-on): Likewise.
63303         * modules/wcwidth (Depends-on): Likewise.
63304         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63305         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63306         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63307         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63308         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63309         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63310         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63311         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63312         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63313         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63314         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63315         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63316         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63317         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63318         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63319         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63320         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63321         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63322         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63323         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63324         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63325         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63326         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63327         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63328         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63330         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63331         so that lock.m4 can be used in gettext without extensions module.
63332
63333 2007-09-11  Bruno Haible  <bruno@clisp.org>
63334
63335         * m4/isc-posix.m4: Remove file.
63336         Suggested by Eric Blake.
63337
63338 2007-09-11  Eric Blake  <ebb9@byu.net>
63339
63340         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63341
63342 2007-09-10  Bruno Haible  <bruno@clisp.org>
63343
63344         * posix-modules: Fix typo in error message.
63345         Reported by Matt <mkraai@beckman.com>.
63346
63347 2007-09-09  Bruno Haible  <bruno@clisp.org>
63348
63349         * doc/functions/getdelim.texi: Update list of platforms lacking the
63350         function.
63351         * doc/functions/getline.texi: Likewise.
63352
63353 2007-09-09  Jim Meyering  <jim@meyering.net>
63354
63355         * lib/hash.c (hash_initialize): Detect calloc failure.
63356         Reported by Bruno Haible.
63357
63358 2007-09-09  Bruno Haible  <bruno@clisp.org>
63359
63360         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63361         malloc or realloc fails.
63362
63363 2007-09-09  Bruno Haible  <bruno@clisp.org>
63364
63365         * modules/getcwd (Depends-on): Add malloc-posix.
63366         * modules/glob (Depends-on): Likewise.
63367         * modules/putenv (Depends-on): Likewise.
63368         * modules/strdup (Depends-on): Likewise.
63369         * modules/getdelim (Depends-on): Add realloc-posix.
63370         * modules/read-file (Depends-on): Likewise.
63371
63372 2007-09-09  Bruno Haible  <bruno@clisp.org>
63373
63374         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63375         (gl_FUNC_MALLOC_POSIX): Require it.
63376         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63377         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63378         * modules/realloc (Files): Add m4/malloc.m4.
63379         * modules/calloc (Files): Likewise.
63380
63381 2007-09-09  Bruno Haible  <bruno@clisp.org>
63382
63383         * modules/malloc-posix: New file.
63384         * modules/malloc (Depends-on): Add malloc-posix.
63385         * lib/malloc.c: Include errno.h.
63386         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63387         and a POSIX-compatible malloc into a single function. Set ENOMEM
63388         when returning NULL.
63389         * m4/malloc.m4: New file.
63390         * doc/functions/malloc.texi: Mention the malloc-posix module.
63391         * lib/stdlib_.h (malloc): New declaration.
63392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63393         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63394         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63395         and HAVE_MALLOC_POSIX.
63396
63397 2007-09-09  Bruno Haible  <bruno@clisp.org>
63398
63399         * modules/realloc-posix: New file.
63400         * modules/realloc (Depends-on): Add realloc-posix.
63401         * lib/realloc.c: Include errno.h.
63402         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63403         and a POSIX-compatible realloc into a single function. Set ENOMEM
63404         when returning NULL.
63405         * m4/realloc.m4: New file.
63406         * doc/functions/realloc.texi: Mention the realloc-posix module.
63407         * lib/stdlib_.h (realloc): New declaration.
63408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63409         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63410         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63411         and HAVE_REALLOC_POSIX.
63412
63413 2007-09-09  Bruno Haible  <bruno@clisp.org>
63414
63415         * modules/calloc-posix: New file.
63416         * modules/calloc (Depends-on): Add calloc-posix.
63417         * lib/calloc.c: Include errno.h.
63418         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63419         and a POSIX-compatible calloc into a single function. Set ENOMEM
63420         when returning NULL.
63421         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63422         * doc/functions/calloc.texi: Mention the calloc-posix module.
63423         * lib/stdlib_.h (calloc): New declaration.
63424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63425         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63426         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63427         and HAVE_CALLOC_POSIX.
63428
63429 2007-09-09  Bruno Haible  <bruno@clisp.org>
63430
63431         Allow for modules to show an arbitrary notice.
63432         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63433         * gnulib-tool: New option --extract-notice.
63434         (func_usage): Document it.
63435         (sed_extract_prog): Update.
63436         (func_get_notice): New function.
63437         (func_modules_notice): New function.
63438         (func_import, func_create_testdir): Invoke it.
63439         Suggested by Jim Meyering.
63440
63441 2007-09-09  Bruno Haible  <bruno@clisp.org>
63442
63443         * gnulib-tool: New options --verbose, --quiet.
63444         (func_usage): Document them.
63445         (verbose): New variable.
63446         (func_execute_command): New function.
63447         (func_import): Don't show the module list and the file list if
63448         $verbose < 0.
63449         (func_create_testdir): Likewise. Use func_execute_command.
63450         (func_create_megatestdir): Use func_execute_command.
63451
63452 2007-09-08  Bruno Haible  <bruno@clisp.org>
63453
63454         * gnulib-tool (func_import): Prefer rsync over wget when available,
63455         for fetching the PO files.
63456
63457 2007-09-08  Bruno Haible  <bruno@clisp.org>
63458
63459         * posix-modules: New file. Portions copied from gnulib-tool.
63460         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63461
63462 2007-09-08  Jim Meyering  <jim@meyering.net>
63463
63464         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63465         * lib/fpending.h: Rename from __fpending.h.
63466         * lib/fpending.c: Rename from __fpending.c.
63467         Include "fpending.h", not "__fpending.h".
63468         * lib/__fpending.h, lib/__fpending.c: Remove files.
63469         * modules/fpending (Files): Reflect new file names.
63470         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63471
63472 2007-09-08  Bruno Haible  <bruno@clisp.org>
63473
63474         * m4/inttypes-h.m4: Remove stub file.
63475
63476 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63477
63478         * doc/headers/stdint.texi: Discuss #include_next issue.
63479
63480 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63481
63482         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63483
63484 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63485
63486         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63487         in variable name.
63488
63489 2007-09-03  Jim Meyering  <jim@meyering.net>
63490
63491         New module: git-version-gen.
63492         * modules/git-version-gen: New file.
63493
63494         Import changes from coreutils for bootstrap script.
63495
63496         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63497
63498         bootstrap: uses rsync to download the .po files
63499         * build-aux/bootstrap (po_download_command_format): New global.
63500         (download_po_files): Use rsync.
63501         (update_po_files): Don't remove .po files after download,
63502         so future rsync runs can take advantage of the copies.
63503
63504         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63505
63506         Solve the unnecessary-.po-file-regeneration problem once and for all.
63507         * build-aux/bootstrap (download_po_files): New function, renamed from
63508         get_translations.  Now, downloads, but doesn't update LINGUAS.
63509         (update_po_files): New function.
63510
63511         bootstrap: Ignore more.
63512         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63513         uniwidth to e.g., lib/.gitignore.
63514         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63515
63516         * build-aux/bootstrap: New setting: vc_ignore.
63517         (insert_sorted_if_absent): Create $file if absent.
63518         Adapt to new, possibly empty, list: $vc_ignore.
63519
63520         bootstrap: generate more ignorable names
63521         * build-aux/bootstrap (slurp): When generating ignorable names,
63522         also map .sin to .sed, .gperf to .c, and .y to .c.
63523
63524 2007-09-03  Jim Meyering  <jim@meyering.net>
63525
63526         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63527         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63528
63529 2007-09-02  Bruno Haible  <bruno@clisp.org>
63530
63531         Fix mis-recognition of 'mcs' on QNX 6.
63532         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63533         output contains the string "Mono".
63534         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63535         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63536
63537 2007-09-01  Bruno Haible  <bruno@clisp.org>
63538
63539         Fix collision between uniwidth/* and linebreak modules.
63540         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63541         u32_width): Remove declarations.
63542         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63543         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63544         streq3, streq2, streq1, streq0): Remove functions.
63545         (STREQ): Remove macro.
63546         (is_cjk_encoding): Remove function.
63547         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63548         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63549         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63550         * NEWS: Document the change.
63551
63552 2007-09-01  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/streq.h: Add double-inclusion guard.
63555
63556 2007-09-01  Karl Berry  <karl@gnu.org>
63557
63558         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63559
63560 2007-08-28  Jim Meyering  <jim@meyering.net>
63561
63562         Rename mreadlink_with_size to areadlink_with_size.
63563         * NEWS: Document the change.
63564         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63565         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63566         * lib/mreadlink.h: Rename this to...
63567         * lib/areadlink.h: ...this.
63568         * modules/mreadlink-with-size: Rename this to...
63569         * modules/areadlink-with-size: ...this.
63570         * lib/canonicalize.c: Reflect the renaming.
63571         * modules/canonicalize: Likewise.
63572
63573 2007-08-26  Bruno Haible  <bruno@clisp.org>
63574
63575         * gnulib-tool (func_import): When deciding which files to remove,
63576         consider also dangling symbolic links.
63577         Reported by Eric Blake.
63578
63579 2007-08-26  Bruno Haible  <bruno@clisp.org>
63580
63581         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63582
63583 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63584
63585         * lib/readline.c: Don't include getline.h, the prototype is now
63586         found in stdio.h.
63587
63588 2007-08-23  Jim Meyering  <jim@meyering.net>
63589
63590         Getdelim touchup.
63591         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63592         around the funlockfile call, since funlockfile never sets errno.
63593         Don't set errno upon failed realloc.
63594
63595 2007-08-22  Eric Blake  <ebb9@byu.net>
63596
63597         Getline touchups.
63598         * lib/getdelim.c (getdelim): Revert regression that required *n to
63599         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63600         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63601         getdelim, rather than whether implementation is missing.
63602         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63603         * lib/stdio_.h (getline): Also declare if replacement is
63604         required.
63605         * doc/functions/getdelim.texi: New file.
63606         * doc/functions/getline.texi: Likewise.
63607         * doc/gnulib.texi (Function Substitutes): Add new files.
63608         Reported by Bruno Haible.
63609
63610 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63611
63612         * users.txt: Add Guile.
63613
63614 2007-08-22  Eric Blake  <ebb9@byu.net>
63615
63616         * tests/test-getdelim.c (main): Use remove, not unlink.
63617         * tests/test-getline.c (main): Likewise.
63618
63619         Move getline and getdelim into stdio.h, per POSIX 200x.
63620         * modules/getline (Files): Remove getline.h.
63621         (Depends-on): Add stdio.
63622         (configure.ac): Add module indicator.
63623         * modules/getdelim (Files): Remove getdelim.h.
63624         (Depends-on): Add stdio.
63625         (configure.ac): Add module indicator.
63626         * modules/stdio (Makefile.am): Work with new indicators.
63627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63628         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63629         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63630         * lib/getdelim.h: Delete.
63631         * lib/getline.h: Delete.
63632         * lib/stdio_.h (getdelim, getline): Declare.
63633         * modules/getdelim-tests: New module.
63634         * modules/getline-tests: Likewise.
63635         * tests/test-getdelim.c: New file.
63636         * tests/test-getline.c: Likewise.
63637         * NEWS: Document the change.
63638         * lib/getline.c: Update choice of header.
63639         * lib/csharpcomp.c: Likewise.
63640         * lib/getpass.c: Likewise.
63641         * lib/javacomp.c: Likewise.
63642         * lib/javaversion.c: Likewise.
63643         * lib/yesno.c: Likewise.
63644         * lib/getdelim.c: Likewise.
63645         (getdelim): Set errno on failure, and avoid memory leak.
63646
63647 2007-08-19  Bruno Haible  <bruno@clisp.org>
63648
63649         * modules/closein (Depends-on): Add freadahead.
63650         * lib/closein.c: Include freadahead.h.
63651         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63652         is zero.
63653
63654 2007-08-19  Bruno Haible  <bruno@clisp.org>
63655
63656         * modules/freadahead-tests: New file.
63657         * tests/test-freadahead.sh: New file.
63658         * tests/test-freadahead.c: New file.
63659
63660         * modules/freadahead: New file.
63661         * lib/freadahead.h: New file.
63662         * lib/freadahead.c: New file.
63663         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63664         fbufmode, fpurge, freadable, fwritable.
63665
63666 2007-08-19  Eric Blake  <ebb9@byu.net>
63667
63668         Test yesno in combination with closein.
63669         * lib/yesno.c (yesno): Document use of stdin.
63670         * modules/yesno-tests (Files): New module.
63671         * tests/test-yesno.c (main): New file.
63672         * tests/test-yesno.sh: Likewise.
63673
63674 2007-08-19  Bruno Haible  <bruno@clisp.org>
63675
63676         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63677         * lib/fseeko.c (rpl_fseeko): Likewise.
63678         * lib/fseterr.c (fseterr): Likewise.
63679
63680 2007-08-19  Bruno Haible  <bruno@clisp.org>
63681
63682         * tests/test-lseek.c (main): Disable a test for BeOS.
63683         * doc/functions/lseek.texi: Document the BeOS bug.
63684
63685 2007-08-19  Bruno Haible  <bruno@clisp.org>
63686             Eric Blake  <ebb9@byu.net>
63687
63688         * lib/lseek.c: Include <sys/stat.h>.
63689         (rpl_lseek): Add workaround code also for Unix platforms.
63690         Needed for BeOS.
63691         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63692         * doc/functions/lseek.texi: Document BeOS definiency.
63693
63694 2007-08-18  Bruno Haible  <bruno@clisp.org>
63695
63696         * modules/fstrcmp-tests: New file.
63697         * tests/test-fstrcmp.c: New file.
63698
63699 2007-08-18  Bruno Haible  <bruno@clisp.org>
63700
63701         * modules/fstrcmp: New file, from GNU gettext with modifications.
63702         * lib/fstrcmp.h: New file, from GNU gettext.
63703         * lib/fstrcmp.c: New file, from GNU gettext.
63704         * MODULES.html.sh (String handling): Add fstrcmp.
63705
63706 2007-08-18  Bruno Haible  <bruno@clisp.org>
63707
63708         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63709         'bool'.
63710         (diag, compareseq): Remove const from the ctxt argument.
63711         (USE_HEURISTIC): Undefine at the end.
63712
63713 2007-08-18  Jim Meyering  <jim@meyering.net>
63714
63715         New file: lib/idcache.h
63716         * NEWS: Mention the addition.
63717         * modules/idcache (Files): Add lib/idcache.h
63718         * lib/idcache.c: Include "idcache.h".
63719         Don't include <sys/types.h>.
63720         Add a FIXME comment.
63721         Move file-scoped "static" declarations to the top.
63722         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63723
63724 2007-08-17  Bruno Haible  <bruno@clisp.org>
63725         and Paul Eggert  <eggert@cs.ucla.edu>
63726
63727         * MODULES.html.sh: Add diffseq.
63728         * modules/diffseq: New file.
63729         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63730         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63731
63732 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63733
63734         Import changes from coreutils for bootstrap script.
63735
63736         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63737
63738         * build-aux/bootstrap (slurp): Work even in environments where
63739         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63740         current code does not slurp files whose names start with ".", and
63741         this looks like it might be a troublesome area.
63742
63743         2007-07-11  Jim Meyering  <jim@meyering.net>
63744
63745         If there's a GPL vN copyright comment, require that N == 3.
63746
63747         2007-07-08  Jim Meyering  <jim@meyering.net>
63748
63749         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63750         * build-aux/bootstrap (mam_template): Move definition out of loop.
63751
63752         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63753
63754         * build-aux/bootstrap (symlink_to_dir): Rename function from
63755         symlink_to_gnulib.  Add a directory parameter.  Update all
63756         callers.
63757         (cp_mark_as_generated): Also check for -- and link to -- files in
63758         gl/.
63759
63760         2007-07-08  Jim Meyering  <jim@meyering.net>
63761
63762         Adapt to deeper hierarchy in gnulib.
63763         * build-aux/bootstrap (symlink_to_dir): If the destination
63764         directory doesn't exist, create it. This is required at least for
63765         "lib/uniwidth/cjk.h".
63766
63767         2007-05-15  Jim Meyering  <jim@meyering.net>
63768
63769         * build-aux/bootstrap: Now that generated Makefile.am files
63770         are no longer under version control, they must be created at
63771         bootstrap time.
63772
63773 2007-08-14  Ben Pfaff  <blp@gnu.org>
63774
63775         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63776
63777 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63778
63779         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63780         given the changes below.
63781         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63782         even on hosts that have padding bits beyond the supported 64.
63783
63784 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63787         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63788         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63789         depends on it.
63790         (xstrtol_error): Remove.
63791         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63792         but with a different signature.
63793         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63794         * lib/xstrtol-error.c: Include exitfail.h.
63795         (xstrtol_fatal): New function, with a different signature from the
63796         old xstrtol_error, so that the caller need not worry about passing
63797         in an exit status, or about storage management of the option argument.
63798         (xstrtol_error): Now a static function.  Redo signature to
63799         implement xstrtol_fatal.  Output the correct number of hyphens in
63800         front of the option so that the caller need not worry about
63801         storage management.
63802         (N_): New macro.
63803         (_): Remove; not used now.
63804         * modules/xstrtol: Depend on getopt.
63805         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63806         of old STRTOL_FATAL_ERROR macro.
63807         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63808         of test program.
63809         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63810         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63811
63812 2007-08-08  Eric Blake  <ebb9@byu.net>
63813
63814         * lib/xstrtol-error.c: Add missing include.
63815
63816         Move xstrtol messages into gnulib domain, when --pobase is used.
63817         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63818         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63819         * modules/xstrtol (Files): Distribute new file.
63820         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63821         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63822         * tests/test-xstrtol.c: ...into new file.
63823         * tests/test-xstrtoul.c: Also test xstrtoul.
63824         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63825         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63826         * tests/test-xstrtol.sh: Drive the tests.
63827         * tests/test-xstrtoimax.sh: Likewise.
63828         * tests/test-xstrtoumax.sh: Likewise.
63829         * modules/xstrtol-tests: New module.
63830         * modules/xstrtoimax-tests: Likewise.
63831         * modules/xstrtoumax-tests: Likewise.
63832
63833 2007-08-08  Jim Meyering  <jim@meyering.net>
63834
63835         New function: mfile_name_concat.
63836         * lib/filenamecat.c (mfile_name_concat): New function, just like
63837         file_name_concat, but return NULL upon failure rather than exiting
63838         with a diagnostic.
63839         * lib/filenamecat.h: Declare it.
63840
63841 2007-08-07  Bruno Haible  <bruno@clisp.org>
63842
63843         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63844         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63845         warning from gcc.
63846         Reported by Eric Blake.
63847
63848 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63849
63850         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63851         * modules/crypto/arcfour (License): Likewise.
63852         * modules/crypto/des-tests (License): Likewise.
63853         * modules/crypto/gc-arctwo-tests (License): Likewise.
63854         * modules/crypto/gc-des-tests (License): Likewise.
63855         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63856         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63857         * modules/crypto/gc-md2-tests (License): Likewise.
63858         * modules/crypto/gc-md4-tests (License): Likewise.
63859         * modules/crypto/gc-md5-tests (License): Likewise.
63860         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63861         * modules/crypto/gc-rijndael-tests (License): Likewise.
63862         * modules/crypto/gc-sha1-tests (License): Likewise.
63863         * modules/crypto/gc-tests (License): Likewise.
63864         * modules/crypto/hmac-md5 (License): Likewise.
63865         * modules/crypto/hmac-sha1 (License): Likewise.
63866         * modules/crypto/md2-tests (License): Likewise.
63867         * modules/crypto/md4-tests (License): Likewise.
63868         * modules/crypto/md5 (License): Likewise.
63869         * modules/crypto/rijndael (License): Likewise.
63870         * modules/crypto/sha1 (License): Likewise.
63871         * modules/memxor (License): Likewise.
63872
63873 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63874         and Bruno Haible  <bruno@clisp.org>
63875
63876         * NEWS: Describe interface changes to human, xstrtol.
63877         * lib/human.h: Include <xstrtol.h>.
63878         (human_options): Return enum strtol_error, not int.  Remove
63879         bool arg; take int * instead.
63880         * lib/human.c: Don't include "gettext.h".
63881         (_): Remove; no longer used.
63882         Don't include <xstrtol.h>, since human.h does it.
63883         (human_options): Adjust to abovementioned interface changes.
63884         Do not report error to stderr; that's now the caller's
63885         responsibility.
63886         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63887         interface change.
63888         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63889         Str, Argument_type_string.  All uses changed.  Put " argument"
63890         in diagnostics to make them clearer.  Change wording of suffix
63891         message for clarity.
63892         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63893         Argument_type_string.
63894         (STRTOL_FATAL_WARN): Remove; no longer used.
63895         * modules/human (Depends-on): Remove gettext-h.
63896
63897 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63898
63899         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63900
63901 2007-07-31  Bruno Haible  <bruno@clisp.org>
63902
63903         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63904         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63905         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63906
63907 2007-07-31  Bruno Haible  <bruno@clisp.org>
63908
63909         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63910         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63911
63912 2007-07-30  Bruno Haible  <bruno@clisp.org>
63913
63914         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63915         * modules/c-ctype (License): Likewise.
63916         * modules/c-strcase (License): Likewise.
63917         * modules/check-version (License): Likewise.
63918         * modules/iconv (License): Likewise.
63919         * modules/iconv_open (License): Likewise.
63920         * modules/read-file (License): Likewise.
63921         * modules/striconv (License): Likewise.
63922         * modules/strverscmp (License): Likewise.
63923         * modules/vasprintf (License): Likewise.
63924         * modules/crypto/des (License): Likewise.
63925         * modules/crypto/gc (License): Likewise.
63926         * modules/crypto/gc-arcfour (License): Likewise.
63927         * modules/crypto/gc-arctwo (License): Likewise.
63928         * modules/crypto/gc-des (License): Likewise.
63929         * modules/crypto/gc-hmac-md5 (License): Likewise.
63930         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63931         * modules/crypto/gc-md2 (License): Likewise.
63932         * modules/crypto/gc-md4 (License): Likewise.
63933         * modules/crypto/gc-md5 (License): Likewise.
63934         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63935         * modules/crypto/gc-random (License): Likewise.
63936         * modules/crypto/gc-rijndael (License): Likewise.
63937         * modules/crypto/gc-sha1 (License): Likewise.
63938         * modules/crypto/md2 (License): Likewise.
63939         * modules/crypto/md4 (License): Likewise.
63940
63941 2007-07-30  Jim Meyering  <jim@meyering.net>
63942
63943         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63944         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63945         it has valid stat data.  This bug would cause du not to count the
63946         sizes of inaccessible directories.
63947         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63948         in <http://bugzilla.redhat.com/250077>.
63949
63950 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63951             Bruno Haible  <bruno@clisp.org>
63952
63953         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63954         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63955         #include_next, gives a diagnostic about it, but reports no error in
63956         the exit code.
63957         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63958
63959 2007-07-24  Ben Pfaff  <blp@gnu.org>
63960
63961         Improve name: "count-one-bits" is better than "popcount".
63962         * MODULES.html.sh: Update name.
63963         * lib/popcount.h: Renamed lib/count-one-bits.h.
63964         (popcount): Renamed count_one_bits.
63965         (popcountl): Renamed count_one_bits_l.
63966         (popcountll): Renamed count_one_bits_ll.
63967         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63968         * modules/popcount: Renamed module/count-one-bits.
63969         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63970         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63971
63972 2007-07-23  Ben Pfaff  <blp@gnu.org>
63973
63974         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63975         better code generation, and add U to large constants to avoid
63976         warnings, in non-GCC case.
63977         Suggested by Bruno Haible.
63978
63979 2007-07-23  Ben Pfaff  <blp@gnu.org>
63980
63981         * lib/popcount.h: Use verify_true instead of if...abort.
63982         * modules/popcount: Depend on verify module.
63983         Suggested by Jim Meyering.
63984
63985 2007-07-23  Bruno Haible  <bruno@clisp.org>
63986
63987         * gnulib-tool (func_import): Create a .cvsignore file also when the
63988         directory is not yet in CVS but the toplevel directory is. When
63989         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63990         Reported by Karl Berry.
63991
63992 2007-07-22  Ben Pfaff  <blp@gnu.org>
63993
63994         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63995         case.
63996         Suggested by Eric Blake.
63997
63998 2007-07-22  Ben Pfaff  <blp@gnu.org>
63999
64000         New module: popcount.
64001         * MODULES.html.sh: Add popcount.
64002         * modules/popcount: New file.
64003         * modules/popcount-tests: New file.
64004         * tests/test-popcount.c: New file.
64005         * lib/popcount.h: New file.
64006         * m4/popcount.m4: New file.
64007
64008 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         * build-aux/announce-gen: Update to GPLv3.
64011
64012         * build-aux/config.guess: Update from config.
64013
64014 2007-07-21  Bruno Haible  <bruno@clisp.org>
64015
64016         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64017         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64018
64019 2007-07-20  Jim Meyering  <jim@meyering.net>
64020
64021         * check-module: Diagnose a self-dependency.
64022
64023 2007-07-19  Bruno Haible  <bruno@clisp.org>
64024
64025         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64026         empty.
64027         Reported by Eric Blake.
64028
64029 2007-07-18  Bruno Haible  <bruno@clisp.org>
64030
64031         * gnulib-tool: New options --po-base, --po-domain.
64032         (func_usage): Document them.
64033         (pobase, po_domain): New variables.
64034         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64035         DEFAULT_TEXT_DOMAIN.
64036         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64037         (func_import): Consider pobase and po_domain. Create a po/ directory.
64038         (func_create_testdir): Set pobase and po_domain to empty.
64039         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64040         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64041
64042 2007-07-18  Bruno Haible  <bruno@clisp.org>
64043
64044         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64045         EXTRA_DIST augmentation for files in build-aux/.
64046
64047 2007-07-16  Bruno Haible  <bruno@clisp.org>
64048
64049         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64050         * modules/getdelim (License): Likewise.
64051
64052 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64053
64054         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64055         * modules/d-type (License): Likewise.
64056         * modules/extensions (License): Likewise.
64057         * modules/fnmatch (License): Likewise.
64058         * modules/fseeko (License): Likewise.
64059         * modules/getaddrinfo (License): Likewise.
64060         * modules/getline (License): Likewise.
64061         * modules/getlogin_r (License): Likewise.
64062         * modules/getpass (License): Likewise.
64063         * modules/gettimeofday (License): Likewise.
64064         * modules/glob (License): Likewise.
64065         * modules/inet_ntop (License): Likewise.
64066         * modules/malloc (License): Likewise.
64067         * modules/malloca (License): Likewise.
64068         * modules/memmem (License): Likewise.
64069         * modules/mempcpy (License): Likewise.
64070         * modules/memset (License): Likewise.
64071         * modules/minmax (License): Likewise.
64072         * modules/mktime (License): Likewise.
64073         * modules/netinet_in (License): Likewise.
64074         * modules/pathmax (License): Likewise.
64075         * modules/poll (License): Likewise.
64076         * modules/regex (License): Likewise.
64077         * modules/snprintf (License): Likewise.
64078         * modules/stdbool (License): Likewise.
64079         * modules/stdint (License): Likewise.
64080         * modules/stdio (License): Likewise.
64081         * modules/strcase (License): Likewise.
64082         * modules/strcasestr (License): Likewise.
64083         * modules/strdup (License): Likewise.
64084         * modules/string (License): Likewise.
64085         * modules/strndup (License): Likewise.
64086         * modules/strnlen (License): Likewise.
64087         * modules/strpbrk (License): Likewise.
64088         * modules/strptime (License): Likewise.
64089         * modules/strsep (License): Likewise.
64090         * modules/sys_select (License): Likewise.
64091         * modules/sys_socket (License): Likewise.
64092         * modules/sys_stat (License): Likewise.
64093         * modules/sys_time (License): Likewise.
64094         * modules/time (License): Likewise.
64095         * modules/time_r (License): Likewise.
64096         * modules/timegm (License): Likewise.
64097         * modules/unistd (License): Likewise.
64098         * modules/vsnprintf (License): Likewise.
64099         * modules/wctype (License): Likewise.
64100
64101 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64102
64103         * modules/argz (License): LGPLv2+.
64104
64105 2007-07-15  Karl Berry  <karl@gnu.org>
64106
64107         * doc/gnulib.texi: revise node structure per new fdl.texi.
64108
64109 2007-07-14  Bruno Haible  <bruno@clisp.org>
64110
64111         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64112         the output file.
64113         * lib/uniname/uninames.h: Regenerated.
64114
64115 2007-07-14  Karl Berry  <karl@gnu.org>
64116
64117         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64118         omitting sectioning and index commands.
64119
64120 2007-07-13  Bruno Haible  <bruno@clisp.org>
64121
64122         New gnulib-tool option --more-symlinks.
64123         * gnulib-tool (func_usage): Document --more-symlinks.
64124         (do_copyrights): New variable.
64125         Recognize option --more-symlinks.
64126         (func_import): Don't add a copyright notice transform to
64127         sed_transform_lib_file if do_copyrights is empty.
64128
64129 2007-07-13  Bruno Haible  <bruno@clisp.org>
64130
64131         * lib/vasnprintf.c (decimal_point_char): Define also if
64132         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64133         && !NEED_PRINTF_DIRECTIVE_A.
64134         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64135         Gary V. Vaughan <gary@gnu.org>.
64136
64137 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64138
64139         * lib/inttypes_.h: Undo previous change, since it was fixed
64140         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64141
64142 2007-07-13  Bruno Haible  <bruno@clisp.org>
64143
64144         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64145         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64146
64147 2007-07-13  Jim Meyering  <jim@meyering.net>
64148
64149         df: Don't fail for Tru64's "file-on-file mount".
64150         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64151         so we fall through and use statfs instead.  Details here:
64152         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64153         Reported by Albert Chin.
64154
64155 2007-07-13  Bruno Haible  <bruno@clisp.org>
64156
64157         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64158         * modules/configmake (License): Likewise.
64159         * modules/gettext (License): Likewise.
64160         * modules/gettext-h (License): Likewise.
64161         * modules/include_next (License): Likewise.
64162         * modules/link-warning (License): Likewise.
64163         * modules/localcharset (License): Likewise.
64164         * modules/localename (License): Likewise.
64165         * modules/lock (License): Likewise.
64166         * modules/relocatable-lib-lgpl (License): Likewise.
64167         * modules/size_max (License): Likewise.
64168         * modules/vasnprintf (License): Likewise.
64169         * modules/wchar (License): Likewise.
64170         * modules/xsize (License): Likewise.
64171
64172 2007-07-13  Bruno Haible  <bruno@clisp.org>
64173
64174         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64175         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64176
64177 2007-07-12  Bruno Haible  <bruno@clisp.org>
64178
64179         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64180         in the modules files.
64181
64182 2007-07-11  Karl Berry  <karl@gnu.org>
64183
64184         * MODULES.html.sh (func_module): use
64185          sed -e '\|^'"${includefile}"'$|d'
64186          instead of /.../d, to avoid errors on $includefile's containing /.
64187
64188 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64189
64190         * gnulib-tool (func_import): Avoid duplication of --avoid
64191         statements
64192         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64193         names to `_' in variable names.
64194
64195 2007-07-10  Eric Blake  <ebb9@byu.net>
64196
64197         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64198         * NEWS: Document this change.
64199
64200 2007-07-08  Bruno Haible  <bruno@clisp.org>
64201
64202         Update to Unicode 5.0.
64203         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64204         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64205         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64206         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64207         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64208         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64209         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64210         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64211         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64212         U+10A3F, U+1D242..U+1D244.
64213         (nonspacing_table_ind): Update.
64214         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64215         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64216
64217 2007-07-08  Bruno Haible  <bruno@clisp.org>
64218
64219         Update to Unicode 5.0.
64220         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64221         code transform. Extend the name index field of unicode_name_to_code and
64222         unicode_code_to_name from 16 to 24 bits.
64223         * lib/uniname/uniname.c (unicode_character_name,
64224         unicode_name_character): Add the range 0x12xxx to the code transform.
64225         * lib/uniname/uninames.h: Regenerated.
64226         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64227
64228 2007-07-07  Bruno Haible  <bruno@clisp.org>
64229
64230         * modules/wcwidth-tests: New file.
64231         * tests/test-wcwidth.c: New file.
64232
64233         Work around MacOS X wcwidth() bug.
64234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64235         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64236         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64237         original wcwidth in non-UTF-8 locales.
64238         * modules/wcwidth (Depends-on): Add localcharset, streq,
64239         uniwidth/width.
64240         * doc/functions/wcwidth.texi: Update.
64241
64242 2007-07-07  Bruno Haible  <bruno@clisp.org>
64243
64244         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64245         (wcwidth): New declaration.
64246         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64247         macros.
64248         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64249         here. Prepare for creating <wchar.h> unconditionally.
64250         * modules/wchar (Depends-on): Add link-warning.
64251         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64252         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64253         * lib/wcwidth.h: Remove file.
64254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64255         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64256         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64257         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64258         (Include): Replace wcwidth.h with <wchar.h>.
64259         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64260         * lib/mbchar.h: Don't include wcwidth.h.
64261         * lib/mbswidth.c: Likewise.
64262         * NEWS: Mention the change.
64263
64264 2007-07-07  Bruno Haible  <bruno@clisp.org>
64265
64266         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64267         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64268         definition with an external declaration.
64269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64270         defined as a function. Remove AC_C_INLINE requirement.
64271         * modules/wcwidth (Files): Add lib/wcwidth.c.
64272         (Makefile.am): Remove redundant statement.
64273
64274 2007-07-07  Bruno Haible  <bruno@clisp.org>
64275
64276         * MODULES.html.sh (Unicode string functions): Add the new modules.
64277
64278         * tests/uniwidth/test-u32-strwidth.c: New file.
64279         * modules/uniwidth/u32-strwidth-tests: New file.
64280
64281         * lib/uniwidth/u32-strwidth.c: New file.
64282         * modules/uniwidth/u32-strwidth: New file.
64283
64284         * tests/uniwidth/test-u16-strwidth.c: New file.
64285         * modules/uniwidth/u16-strwidth-tests: New file.
64286
64287         * lib/uniwidth/u16-strwidth.c: New file.
64288         * modules/uniwidth/u16-strwidth: New file.
64289
64290         * tests/uniwidth/test-u8-strwidth.c: New file.
64291         * modules/uniwidth/u8-strwidth-tests: New file.
64292
64293         * lib/uniwidth/u8-strwidth.c: New file.
64294         * modules/uniwidth/u8-strwidth: New file.
64295
64296         * tests/uniwidth/test-u32-width.c: New file.
64297         * modules/uniwidth/u32-width-tests: New file.
64298
64299         * lib/uniwidth/u32-width.c: New file.
64300         * modules/uniwidth/u32-width: New file.
64301
64302         * tests/uniwidth/test-u16-width.c: New file.
64303         * modules/uniwidth/u16-width-tests: New file.
64304
64305         * lib/uniwidth/u16-width.c: New file.
64306         * modules/uniwidth/u16-width: New file.
64307
64308         * tests/uniwidth/test-u8-width.c: New file.
64309         * modules/uniwidth/u8-width-tests: New file.
64310
64311         * lib/uniwidth/u8-width.c: New file.
64312         * modules/uniwidth/u8-width: New file.
64313
64314         * tests/uniwidth/test-uc_width.c: New file.
64315         * modules/uniwidth/width-tests: New file.
64316
64317         * lib/uniwidth/width.c: New file, from GNU libiconv.
64318         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64319         * modules/uniwidth/width: New file.
64320
64321         * lib/uniwidth.h: New file, from GNU libiconv.
64322         * modules/uniwidth/base: New file.
64323
64324 2007-07-07  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/uniname.h: New file, from GNU gettext.
64327         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64328         * lib/uniname/uninames.h: New file, from GNU gettext.
64329         * lib/uniname/uniname.c: New file, from GNU gettext.
64330         * tests/uniname/test-uninames.sh: New file.
64331         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64332         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64333         * modules/uniname/base: New file.
64334         * modules/uniname/uniname: New file.
64335         * modules/uniname/uniname-tests: New file.
64336         * MODULES.html.sh (Unicode string functions): Add the new modules.
64337
64338 2007-07-06  Bruno Haible  <bruno@clisp.org>
64339
64340         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64341
64342 2007-07-06  Bruno Haible  <bruno@clisp.org>
64343
64344         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64345         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64346         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64347         include <sys/time.h>.
64348         Reported by Eric Blake.
64349
64350 2007-07-06  Eric Blake  <ebb9@byu.net>
64351
64352         Fix testing canonicalize on cygwin.
64353         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64354         Revert patch from 2007-06-19.
64355         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64356         canonicalize module is also in use.
64357         * tests/test-canonicalize.c: New file.
64358         * tests/test-canonicalize.sh: Likewise.
64359         * modules/canonicalize-tests: Likewise.
64360
64361 2007-07-06  Jim Meyering  <jim@meyering.net>
64362
64363         * lib/getugroups.c (getugroups): Detect getgrent failure.
64364         Adjust comment to reflect reality: this function may return -1.
64365
64366 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64367
64368         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64369         the new TP address.
64370         (usage): Fix typo
64371         (gnulib_mk): New variable.
64372
64373 2007-07-05  Jim Meyering  <jim@meyering.net>
64374
64375         Don't let endgrent clobber errno, no matter how improbable.
64376         * lib/getugroups.c (getugroups): Save and restore errno around
64377         endgrent call.
64378
64379         Close the group DB even when failing with 2^31 or more members.
64380         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64381
64382 2007-07-04  Jim Meyering  <jim@meyering.net>
64383
64384         * lib/getugroups.h: New file.
64385         * lib/getugroups.c: Include "getugroups.h".
64386         Remove uses of "register" keyword.
64387         Move local variable, "cp", down into scope where used.
64388         Give "username" parameter the "const" attribute.
64389         * modules/getugroups (Files): Add lib/getugroups.h
64390
64391 2007-07-04  Karl Berry  <karl@gnu.org>
64392
64393         * MODULES.html.sh (func_all_modules): Complete rename of
64394         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64395
64396 2007-07-02  Bruno Haible  <bruno@clisp.org>
64397
64398         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64399         mode, when inttypes.h comes from gnulib.
64400         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64401
64402 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64403
64404         * NEWS: Mention lgpl module name change.
64405
64406         * modules/lgpl-2.1: Renamed from lgpl.
64407
64408         * NEWS: Mention gpl module name change.
64409
64410         * modules/gpl-3.0: New file, based on gpl-2.0.
64411
64412         * modules/gpl-2.0: Renamed from gpl.
64413
64414         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64415         doc/gpl-2.0.texi.
64416
64417 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64420         #define __STDC_LIMIT_MACROS temporarily while including
64421         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64422         Problem reported by Joel E. Denny in
64423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64424
64425 2007-07-01  Bruno Haible  <bruno@clisp.org>
64426
64427         * lib/unistdio.h: New file.
64428         * lib/unistdio/u-asnprintf.h: New file.
64429         * lib/unistdio/u-asprintf.h: New file.
64430         * lib/unistdio/u-printf-args.c: New file.
64431         * lib/unistdio/u-printf-args.h: New file.
64432         * lib/unistdio/u-printf-parse.h: New file.
64433         * lib/unistdio/u-snprintf.h: New file.
64434         * lib/unistdio/u-sprintf.h: New file.
64435         * lib/unistdio/u-vasprintf.h: New file.
64436         * lib/unistdio/u-vsnprintf.h: New file.
64437         * lib/unistdio/u-vsprintf.h: New file.
64438         * lib/unistdio/ulc-asnprintf.c: New file.
64439         * lib/unistdio/ulc-asprintf.c: New file.
64440         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64441         * lib/unistdio/ulc-printf-parse.c: New file.
64442         * lib/unistdio/ulc-snprintf.c: New file.
64443         * lib/unistdio/ulc-sprintf.c: New file.
64444         * lib/unistdio/ulc-vasnprintf.c: New file.
64445         * lib/unistdio/ulc-vasprintf.c: New file.
64446         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64447         * lib/unistdio/ulc-vsnprintf.c: New file.
64448         * lib/unistdio/ulc-vsprintf.c: New file.
64449         * lib/unistdio/u8-asnprintf.c: New file.
64450         * lib/unistdio/u8-asprintf.c: New file.
64451         * lib/unistdio/u8-printf-parse.c: New file.
64452         * lib/unistdio/u8-snprintf.c: New file.
64453         * lib/unistdio/u8-sprintf.c: New file.
64454         * lib/unistdio/u8-vasnprintf.c: New file.
64455         * lib/unistdio/u8-vasprintf.c: New file.
64456         * lib/unistdio/u8-vsnprintf.c: New file.
64457         * lib/unistdio/u8-vsprintf.c: New file.
64458         * lib/unistdio/u8-u8-asnprintf.c: New file.
64459         * lib/unistdio/u8-u8-asprintf.c: New file.
64460         * lib/unistdio/u8-u8-snprintf.c: New file.
64461         * lib/unistdio/u8-u8-sprintf.c: New file.
64462         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64463         * lib/unistdio/u8-u8-vasprintf.c: New file.
64464         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64465         * lib/unistdio/u8-u8-vsprintf.c: New file.
64466         * lib/unistdio/u16-asnprintf.c: New file.
64467         * lib/unistdio/u16-asprintf.c: New file.
64468         * lib/unistdio/u16-printf-parse.c: New file.
64469         * lib/unistdio/u16-snprintf.c: New file.
64470         * lib/unistdio/u16-sprintf.c: New file.
64471         * lib/unistdio/u16-vasnprintf.c: New file.
64472         * lib/unistdio/u16-vasprintf.c: New file.
64473         * lib/unistdio/u16-vsnprintf.c: New file.
64474         * lib/unistdio/u16-vsprintf.c: New file.
64475         * lib/unistdio/u16-u16-asnprintf.c: New file.
64476         * lib/unistdio/u16-u16-asprintf.c: New file.
64477         * lib/unistdio/u16-u16-snprintf.c: New file.
64478         * lib/unistdio/u16-u16-sprintf.c: New file.
64479         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64480         * lib/unistdio/u16-u16-vasprintf.c: New file.
64481         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64482         * lib/unistdio/u16-u16-vsprintf.c: New file.
64483         * lib/unistdio/u32-asnprintf.c: New file.
64484         * lib/unistdio/u32-asprintf.c: New file.
64485         * lib/unistdio/u32-printf-parse.c: New file.
64486         * lib/unistdio/u32-snprintf.c: New file.
64487         * lib/unistdio/u32-sprintf.c: New file.
64488         * lib/unistdio/u32-vasnprintf.c: New file.
64489         * lib/unistdio/u32-vasprintf.c: New file.
64490         * lib/unistdio/u32-vsnprintf.c: New file.
64491         * lib/unistdio/u32-vsprintf.c: New file.
64492         * lib/unistdio/u32-u32-asnprintf.c: New file.
64493         * lib/unistdio/u32-u32-asprintf.c: New file.
64494         * lib/unistdio/u32-u32-snprintf.c: New file.
64495         * lib/unistdio/u32-u32-sprintf.c: New file.
64496         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64497         * lib/unistdio/u32-u32-vasprintf.c: New file.
64498         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64499         * lib/unistdio/u32-u32-vsprintf.c: New file.
64500         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64501         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64502         * tests/unistdio/test-ulc-printf1.h: New file.
64503         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64504         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64505         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64506         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64507         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64508         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64509         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64510         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64511         * tests/unistdio/test-u8-asnprintf1.c: New file.
64512         * tests/unistdio/test-u8-asnprintf1.h: New file.
64513         * tests/unistdio/test-u8-printf1.h: New file.
64514         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64515         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64516         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64517         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64518         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64519         * tests/unistdio/test-u8-vasprintf1.c: New file.
64520         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64521         * tests/unistdio/test-u8-vsprintf1.c: New file.
64522         * tests/unistdio/test-u16-asnprintf1.c: New file.
64523         * tests/unistdio/test-u16-asnprintf1.h: New file.
64524         * tests/unistdio/test-u16-printf1.h: New file.
64525         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64526         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64527         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64528         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64529         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64530         * tests/unistdio/test-u16-vasprintf1.c: New file.
64531         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64532         * tests/unistdio/test-u16-vsprintf1.c: New file.
64533         * tests/unistdio/test-u32-asnprintf1.c: New file.
64534         * tests/unistdio/test-u32-asnprintf1.h: New file.
64535         * tests/unistdio/test-u32-printf1.h: New file.
64536         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64537         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64538         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64539         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64540         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64541         * tests/unistdio/test-u32-vasprintf1.c: New file.
64542         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64543         * tests/unistdio/test-u32-vsprintf1.c: New file.
64544         * modules/unistdio/base: New file.
64545         * modules/unistdio/u-printf-args: New file.
64546         * modules/unistdio/ulc-asnprintf: New file.
64547         * modules/unistdio/ulc-asprintf: New file.
64548         * modules/unistdio/ulc-fprintf: New file.
64549         * modules/unistdio/ulc-printf-parse: New file.
64550         * modules/unistdio/ulc-snprintf: New file.
64551         * modules/unistdio/ulc-sprintf: New file.
64552         * modules/unistdio/ulc-vasnprintf: New file.
64553         * modules/unistdio/ulc-vasprintf: New file.
64554         * modules/unistdio/ulc-vfprintf: New file.
64555         * modules/unistdio/ulc-vsnprintf: New file.
64556         * modules/unistdio/ulc-vsprintf: New file.
64557         * modules/unistdio/u8-asnprintf: New file.
64558         * modules/unistdio/u8-asprintf: New file.
64559         * modules/unistdio/u8-printf-parse: New file.
64560         * modules/unistdio/u8-snprintf: New file.
64561         * modules/unistdio/u8-sprintf: New file.
64562         * modules/unistdio/u8-vasnprintf: New file.
64563         * modules/unistdio/u8-vasprintf: New file.
64564         * modules/unistdio/u8-vsnprintf: New file.
64565         * modules/unistdio/u8-vsprintf: New file.
64566         * modules/unistdio/u8-u8-asnprintf: New file.
64567         * modules/unistdio/u8-u8-asprintf: New file.
64568         * modules/unistdio/u8-u8-snprintf: New file.
64569         * modules/unistdio/u8-u8-sprintf: New file.
64570         * modules/unistdio/u8-u8-vasnprintf: New file.
64571         * modules/unistdio/u8-u8-vasprintf: New file.
64572         * modules/unistdio/u8-u8-vsnprintf: New file.
64573         * modules/unistdio/u8-u8-vsprintf: New file.
64574         * modules/unistdio/u16-asnprintf: New file.
64575         * modules/unistdio/u16-asprintf: New file.
64576         * modules/unistdio/u16-printf-parse: New file.
64577         * modules/unistdio/u16-snprintf: New file.
64578         * modules/unistdio/u16-sprintf: New file.
64579         * modules/unistdio/u16-vasnprintf: New file.
64580         * modules/unistdio/u16-vasprintf: New file.
64581         * modules/unistdio/u16-vsnprintf: New file.
64582         * modules/unistdio/u16-vsprintf: New file.
64583         * modules/unistdio/u16-u16-asnprintf: New file.
64584         * modules/unistdio/u16-u16-asprintf: New file.
64585         * modules/unistdio/u16-u16-snprintf: New file.
64586         * modules/unistdio/u16-u16-sprintf: New file.
64587         * modules/unistdio/u16-u16-vasnprintf: New file.
64588         * modules/unistdio/u16-u16-vasprintf: New file.
64589         * modules/unistdio/u16-u16-vsnprintf: New file.
64590         * modules/unistdio/u16-u16-vsprintf: New file.
64591         * modules/unistdio/u32-asnprintf: New file.
64592         * modules/unistdio/u32-asprintf: New file.
64593         * modules/unistdio/u32-printf-parse: New file.
64594         * modules/unistdio/u32-snprintf: New file.
64595         * modules/unistdio/u32-sprintf: New file.
64596         * modules/unistdio/u32-vasnprintf: New file.
64597         * modules/unistdio/u32-vasprintf: New file.
64598         * modules/unistdio/u32-vsnprintf: New file.
64599         * modules/unistdio/u32-vsprintf: New file.
64600         * modules/unistdio/u32-u32-asnprintf: New file.
64601         * modules/unistdio/u32-u32-asprintf: New file.
64602         * modules/unistdio/u32-u32-snprintf: New file.
64603         * modules/unistdio/u32-u32-sprintf: New file.
64604         * modules/unistdio/u32-u32-vasnprintf: New file.
64605         * modules/unistdio/u32-u32-vasprintf: New file.
64606         * modules/unistdio/u32-u32-vsnprintf: New file.
64607         * modules/unistdio/u32-u32-vsprintf: New file.
64608         * modules/unistdio/ulc-asnprintf-tests: New file.
64609         * modules/unistdio/ulc-vasnprintf-tests: New file.
64610         * modules/unistdio/ulc-vasprintf-tests: New file.
64611         * modules/unistdio/ulc-vsnprintf-tests: New file.
64612         * modules/unistdio/ulc-vsprintf-tests: New file.
64613         * modules/unistdio/u8-asnprintf-tests: New file.
64614         * modules/unistdio/u8-vasnprintf-tests: New file.
64615         * modules/unistdio/u8-vasprintf-tests: New file.
64616         * modules/unistdio/u8-vsnprintf-tests: New file.
64617         * modules/unistdio/u8-vsprintf-tests: New file.
64618         * modules/unistdio/u16-asnprintf-tests: New file.
64619         * modules/unistdio/u16-vasnprintf-tests: New file.
64620         * modules/unistdio/u16-vasprintf-tests: New file.
64621         * modules/unistdio/u16-vsnprintf-tests: New file.
64622         * modules/unistdio/u16-vsprintf-tests: New file.
64623         * modules/unistdio/u32-asnprintf-tests: New file.
64624         * modules/unistdio/u32-vasnprintf-tests: New file.
64625         * modules/unistdio/u32-vasprintf-tests: New file.
64626         * modules/unistdio/u32-vsnprintf-tests: New file.
64627         * modules/unistdio/u32-vsprintf-tests: New file.
64628         * MODULES.html.sh (Unicode string functions): Add the new modules.
64629
64630 2007-07-01  Bruno Haible  <bruno@clisp.org>
64631
64632         * lib/sprintf.c (sprintf): Limit the available length estimation,
64633         to avoid address wraparound.
64634         * lib/vsprintf.c (vsprintf): Likewise.
64635         * modules/sprintf-posix (Dependencies): Add stdint.
64636         * modules/vsprintf-posix (Dependencies): Likewise.
64637
64638 2007-07-01  Bruno Haible  <bruno@clisp.org>
64639
64640         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64641         Windows PATH as well. Conservative double-quoting. Comments.
64642
64643 2007-07-01  Bruno Haible  <bruno@clisp.org>
64644             Eric Blake  <ebb9@byu.net>
64645             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64646
64647         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64648         empty components in $PATH, denoting '.'.
64649
64650 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64651
64652         * gnulib-tool: Fix indentation.
64653         (func_create_megatestdir): Likewise.
64654         Report by Bruno Haible.
64655
64656 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64657
64658         Sync from Automake.
64659         * build-aux/gnupload: Fix shell portability issues with for loops.
64660         Report by Karl Berry.
64661
64662 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64663
64664         * build-aux/maint.mk (POURL): Use translationproject.org.
64665
64666 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64667             Bruno Haible  <bruno@clisp.org>
64668
64669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64670         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64671         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64672         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64673         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64674
64675 2007-06-27  Bruno Haible  <bruno@clisp.org>
64676
64677         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64678         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64679
64680 2007-06-26  Karl Berry  <karl@gnu.org>
64681
64682         * MODULES.html.sh: remove xreadlink-with-size.
64683
64684 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64685
64686         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64687         method that I hope also handles the double-include problem noted
64688         by Bruno Haible in
64689         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64690
64691 2007-06-23  Bruno Haible  <bruno@clisp.org>
64692
64693         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64694         Don't let the 'mostlyclean' target fail if the last subdirectory could
64695         not be removed.
64696         Reported by Karl Berry.
64697
64698 2007-06-23  Bruno Haible  <bruno@clisp.org>
64699
64700         * gnulib-tool (echo): Add a speedier workaround for ksh.
64701         * tests/test-echo.sh: Likewise.
64702
64703 2007-06-23  Bruno Haible  <bruno@clisp.org>
64704
64705         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64706         * tests/test-echo.sh: Likewise.
64707
64708 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64709
64710         * gnulib-tool (IFS): Initialize early, so we don't set it to
64711         empty later.
64712         (self_abspathname): Rewrite algorithm to set it, reindent.
64713         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64714         (func_create_megatestdir): Merge some sed scripts.
64715
64716 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64719         exposed by Sun Studio 11 cc on Solaris 8.
64720
64721 2007-06-22  Bruno Haible  <bruno@clisp.org>
64722
64723         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64724         backslashes.
64725         * tests/test-echo.sh: New file.
64726
64727 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64728
64729         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64730         simplify `sed_replace_build_aux' scripts, they are portable but
64731         echoing them with `echo' is not.
64732         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64733
64734 2007-06-21  Karl Berry  <karl@gnu.org>
64735
64736         * config/srclist.txt: guess we can't handle the licenses via
64737         srclist at the moment.
64738
64739 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * MODULES.html.sh: Add include_next.
64742         * modules/include_next: New file.
64743
64744 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64745
64746         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64747         INCLUDE_NEXT.
64748         (gl_CHECK_NEXT_HEADERS): New macro.
64749         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64750         the obsolescent gl_ABSOLUTE_HEADER.
64751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64752         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64753         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64754         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64755         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64756         * m4/math_h.m4 (gl_MATH_H): Likewise.
64757         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64758         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64759         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64760         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64761         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64762         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64763         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64765         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64766         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64767         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64768         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64769         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64770         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64771         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64772         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64773         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64774         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64775         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64776         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64777         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64778         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64779         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64780         * lib/float_.h: Likewise.
64781         * lib/inttypes_.h: Likewise.
64782         * lib/math_.h: Likewise.
64783         * lib/search_.h: Likewise.
64784         * lib/signal_.h: Likewise.
64785         * lib/stdint_.h: Likewise.
64786         * lib/stdio_.h: Likewise.
64787         * lib/stdlib_.h: Likewise.
64788         * lib/string_.h: Likewise.
64789         * lib/sys_stat_.h: Likewise.
64790         * lib/sys_time_.h: Likewise.
64791         * lib/time_.h: Likewise.
64792         * lib/unistd_.h: Likewise.
64793         * lib/wchar_.h: Likewise.
64794         * lib/wctype_.h: Likewise.
64795         * lib/dirent_.h: Likewise.
64796         * lib/iconv_.h: Likewise.
64797         * lib/locale_.h: Likewise.
64798         * lib/netinet_in_.h: Likewise.
64799         * lib/sys_select_.h: Likewise.
64800         * lib/sys_socket_.h: Likewise.
64801         * lib/sysexits_.h: Likewise.
64802         * modules/fcntl (Depends-on): Depend on include_next, not
64803         absolute_header.
64804         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64805         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64806         * modules/fchdir: Likewise.
64807         * modules/float: Likewise.
64808         * modules/iconv_open: Likewise.
64809         * modules/inttypes: Likewise.
64810         * modules/locale: Likewise.
64811         * modules/math: Likewise.
64812         * modules/netinet_in: Likewise.
64813         * modules/search: Likewise.
64814         * modules/signal: Likewise.
64815         * modules/stdint: Likewise.
64816         * modules/stdio: Likewise.
64817         * modules/stdlib: Likewise.
64818         * modules/string: Likewise.
64819         * modules/sys_select: Likewise.
64820         * modules/sys_socket: Likewise.
64821         * modules/sys_stat: Likewise.
64822         * modules/sys_time: Likewise.
64823         * modules/sysexits: Likewise.
64824         * modules/time: Likewise.
64825         * modules/unistd: Likewise.
64826         * modules/wchar: Likewise.
64827         * modules/wctype: Likewise.
64828         * modules/sys_stat: Change maintainer to "all".
64829         * modules/unistd: Likewise.
64830
64831 2007-06-20  Karl Berry  <karl@gnu.org>
64832
64833         * config/srclist.txt: track www changes in license files.
64834
64835 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64836
64837         * build-aux/bootstrap: Remove stray dot.
64838         Make sure build_aux settings are honored when linking
64839         gnulib_extra_files.
64840
64841 2007-06-19  Eric Blake  <ebb9@byu.net>
64842
64843         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64844         Allow compilation on cygwin.
64845
64846 2007-06-19  Jim Meyering  <jim@meyering.net>
64847
64848         xreadlink-with-size: Remove module.  No longer used.
64849         Ex-callers now use xreadlink or mreadlink-with-size.
64850         * modules/xreadlink-with-size: Remove module.
64851         * lib/xreadlink-with-size.c: Remove file.
64852         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64853         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64854         just before the function definition *is* accurate.
64855
64856         Eliminate one way canonicalize_filename_mode could exit.
64857         * lib/canonicalize.c (canonicalize_filename_mode):
64858         Use mreadlink_with_size, not xreadlink_with_size.
64859
64860 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         Detect porting problems to FreeBSD/arm, which has time_t wider than
64863         long int.  Original problem reported for GNU diff by Xin Li in
64864         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64865         * modules/getdate (Depends-on): Add intprops, verify.
64866         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64867         is an integer type no wider than long int.
64868
64869 2007-06-18  Jim Meyering  <jim@meyering.net>
64870
64871         New module: mreadlink-with-size.
64872         * MODULES.html.sh: Add mreadlink-with-size.
64873         * modules/mreadlink-with-size: New module
64874         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64875         not xreadlink-with-size.
64876         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64877
64878 2007-06-16  Bruno Haible  <bruno@clisp.org>
64879
64880         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64881         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64882         Reported by Gary V. Vaughan <gary@gnu.org>.
64883
64884 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64885
64886         Revamp lchown so that it lives in unistd.h where it belongs.
64887         * lib/lchown.h: Remove.
64888         * lib/dirchownmod.c: Don't include lib/lchown.h.
64889         * lib/fchownat.c: Likewise.
64890         * lib/openat.c: Likewise.
64891         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64892         does not follow symlinks.
64893         (EOPNOTSUPP): Define if not defined.
64894         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64895         is defined to 0.
64896         (lchown): New decl.
64897         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64898         Do not check for lchown decl.
64899         Set REPLACE_LCHOWN.
64900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64901         REPLACE_LCHOWN.
64902         * modules/chown: Make it clear it follows symlinks.
64903         * modules/lchown: Make it clear it doesn't follow symlinks.
64904         (Files): Remove lib/lchown.h
64905         (Depends-on): Add unistd.
64906         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64907         (Include): Include <unistd.h>, not "lchown.h".
64908         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64909         REPLACE_LCHOWN.
64910
64911 2007-06-15  Jim Meyering  <jim@meyering.net>
64912
64913         Change license (GPL to LGPL) of fsusage and dependents.
64914         * modules/fsusage (License): Change to LGPL.
64915         * modules/full-read (License): Likewise.
64916         * modules/full-write (License): Likewise.
64917         * modules/safe-read (License): Likewise.
64918         * modules/safe-write (License): Likewise.
64919
64920 2007-06-14  Ben Pfaff  <blp@gnu.org>
64921
64922         Missing part of allocsa -> malloca transition.
64923         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64924         gl_MALLOCA.
64925
64926 2007-06-12  Bruno Haible  <bruno@clisp.org>
64927
64928         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64929         to ia64, x86_64, i386.
64930         Reported by Eric Blake.
64931
64932 2007-06-12  Bruno Haible  <bruno@clisp.org>
64933
64934         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64935         cross-compiling to x86_64.
64936
64937 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64938
64939         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64940         glitch reported by Ralf Wildenhues in
64941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64942
64943         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64944         Vin Shelton.
64945
64946 2007-06-11  Bruno Haible  <bruno@clisp.org>
64947
64948         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64949         replacement string.
64950         Reported by Eric Blake.
64951
64952 2007-06-10  Bruno Haible  <bruno@clisp.org>
64953
64954         Prepare vasnprintf code for use with Unicode strings.
64955         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64956         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64957         TYPE_U32_STRING.
64958         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64959         a_u32_string variants.
64960         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64961         * lib/printf-args.c: Don't include config.h and the specification
64962         header if PRINTF_FETCHARGS is already defined.
64963         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64964         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64965         TYPE_U16_STRING, TYPE_U32_STRING.
64966         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64967         u16_directive, u16_directives, u32_directive, u32_directives): New
64968         types.
64969         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64970         New declarations.
64971         * lib/printf-parse.c: Don't include config.h and the specification
64972         header if PRINTF_PARSE is already defined. Eliminate the set of
64973         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64974         them now. Include c-ctype.h.
64975         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64976         directive and CHAR_T_ONLY_ASCII.
64977         * lib/vasnprintf.c: Don't include config.h and the specification header
64978         if VASNPRINTF is already defined.
64979         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64980         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64981         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64982         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64983         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64984         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64985         code accordingly.
64986         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64987         pad_ourselves also in this case, with the 'c' and 's' directives, and
64988         with a different notion of "width".
64989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64990
64991 2007-06-10  Bruno Haible  <bruno@clisp.org>
64992
64993         * modules/unistr/u32-mbsnlen: New file.
64994         * lib/unistr/u32-mbsnlen.c: New file.
64995
64996         * modules/unistr/u16-mbsnlen: New file.
64997         * lib/unistr/u16-mbsnlen.c: New file.
64998
64999         * modules/unistr/u8-mbsnlen: New file.
65000         * lib/unistr/u8-mbsnlen.c: New file.
65001
65002         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65003         declarations.
65004
65005 2007-06-10  Bruno Haible  <bruno@clisp.org>
65006
65007         * lib/string_.h (mbsnlen): New declaration.
65008         * lib/mbsnlen.c: New file.
65009         * m4/mbsnlen.m4: New file.
65010         * modules/mbsnlen: New file.
65011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65012         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65013         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65014
65015 2007-06-10  Bruno Haible  <bruno@clisp.org>
65016
65017         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65018
65019 2007-06-10  Bruno Haible  <bruno@clisp.org>
65020
65021         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65022         * lib/mbuiter.h: Likewise.
65023
65024 2007-06-10  Bruno Haible  <bruno@clisp.org>
65025
65026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65027         declaration.
65028
65029 2007-06-10  Karl Berry  <karl@gnu.org>
65030
65031         * config/srclist.txt: remove gettext entries, Bruno prefers
65032         to update individually.
65033
65034 2007-06-10  Bruno Haible  <bruno@clisp.org>
65035
65036         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65037         'maxlen'. Ensure only length + width bytes are allocated, not
65038         length + 1 + width.
65039
65040 2007-06-09  Bruno Haible  <bruno@clisp.org>
65041
65042         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65043         (CHAR_T): Remove macro.
65044         (VASNPRINTF): Update.
65045
65046 2007-06-09  Bruno Haible  <bruno@clisp.org>
65047
65048         * MODULES.html.sh (Unicode string functions): Add the new modules.
65049
65050         * modules/uniconv/u32-conv-to-enc: New file.
65051         * lib/uniconv/u32-conv-to-enc.c: New file.
65052         * modules/uniconv/u32-conv-to-enc-tests: New file.
65053         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65054
65055         * modules/uniconv/u16-conv-to-enc: New file.
65056         * lib/uniconv/u16-conv-to-enc.c: New file.
65057         * lib/uniconv/u-conv-to-enc.h: New file.
65058         * modules/uniconv/u16-conv-to-enc-tests: New file.
65059         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65060
65061         * modules/uniconv/u8-conv-to-enc: New file.
65062         * lib/uniconv/u8-conv-to-enc.c: New file.
65063         * modules/uniconv/u8-conv-to-enc-tests: New file.
65064         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65065
65066         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65067         u32_conv_to_encoding): New declarations.
65068
65069 2007-06-09  Bruno Haible  <bruno@clisp.org>
65070
65071         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65072
65073 2007-06-09  Bruno Haible  <bruno@clisp.org>
65074
65075         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65076         * modules/malloca: Renamed from modules/allocsa, updated.
65077         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65078         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65079         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65080         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65081         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65082         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65083         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65084         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65085         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65086         * modules/c-strcasestr (Depends-on): Update.
65087         * lib/c-strcasestr.c: Update.
65088         * modules/c-strstr (Depends-on): Update.
65089         * lib/c-strstr.c: Update.
65090         * modules/canonicalize-lgpl (Depends-on): Update.
65091         * lib/canonicalize-lgpl.c: Update.
65092         * modules/clean-temp (Depends-on): Update.
65093         * lib/clean-temp.c: Update.
65094         * modules/csharpcomp (Depends-on): Update.
65095         * lib/csharpcomp.c: Update.
65096         * modules/csharpexec (Depends-on): Update.
65097         * lib/csharpexec.c: Update.
65098         * modules/javacomp (Depends-on): Update.
65099         * lib/javacomp.c: Update.
65100         * modules/javaexec (Depends-on): Update.
65101         * lib/javaexec.c: Update.
65102         * modules/mbscasestr (Depends-on): Update.
65103         * lib/mbscasestr.c: Update.
65104         * modules/mbsstr (Depends-on): Update.
65105         * lib/mbsstr.c: Update.
65106         * modules/setenv (Depends-on): Update.
65107         * lib/setenv.c: Update.
65108         * modules/strcasestr (Depends-on): Update.
65109         * lib/strcasestr.c: Update.
65110         * modules/striconveha (Depends-on): Update.
65111         * lib/striconveha.c: Update.
65112         * modules/relocatable-prog-wrapper (Files): Update.
65113         * lib/relocwrapper.c: Update.
65114         * build-aux/install-reloc: Update.
65115         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65116
65117 2007-06-08  Bruno Haible  <bruno@clisp.org>
65118
65119         Port to uClibc.
65120         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65121         * lib/fpurge.c (fpurge): Likewise.
65122         * lib/freading.c (freading): Likewise.
65123         * lib/fseeko.c (rpl_fseeko): Likewise.
65124         * lib/fseterr.c (fseterr): Likewise.
65125         * lib/fwriting.c (fwriting): Likewise.
65126         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65127
65128 2007-06-08  Bruno Haible  <bruno@clisp.org>
65129
65130         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65131         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65132         * modules/gettext (Files): Add m4/intlmacosx.m4.
65133
65134 2007-06-07  Bruno Haible  <bruno@clisp.org>
65135
65136         * modules/localename-tests: New file.
65137         * tests/test-localename.c: New file.
65138
65139         New module 'localename'.
65140         * lib/localename.h: New file.
65141         * lib/localename.c: New file, from GNU gettext.
65142         * m4/localename.m4: New file.
65143         * modules/localename: New file.
65144
65145 2007-06-07  Bruno Haible  <bruno@clisp.org>
65146
65147         Work around the lack of <wchar.h> on some builds of uClibc.
65148         * doc/headers/wchar.texi: Update.
65149         * lib/wchar_.h: Include <wchar.h> only if it exists.
65150         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65151         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65152         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65153         doesn't exist.
65154         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65155         * modules/mbfile (Depends-on): Add wchar.
65156         * modules/mbiter (Depends-on): Likewise.
65157         * modules/mbuiter (Depends-on): Likewise.
65158         Reported by Simon Josefsson.
65159
65160 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         Work around problem reported by Steven M. Schweda in
65163         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65164         Tru64 5.1B with the Compaq compiler environment installed declares
65165         an 'isblank' function but does not define it in the C library.
65166         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65167         * lib/regex_internal.h (isblank): Likewise.
65168         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65169         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65170
65171 2007-06-05  Bruno Haible  <bruno@clisp.org>
65172
65173         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65174         ia64.
65175         * modules/printf-safe: New file.
65176         * modules/fprintf-posix (Depends-on): Add printf-safe.
65177         * modules/printf-posix (Depends-on): Likewise.
65178         * modules/snprintf-posix (Depends-on): Likewise.
65179         * modules/sprintf-posix (Depends-on): Likewise.
65180         * modules/vasnprintf-posix (Depends-on): Likewise.
65181         * modules/vasprintf-posix (Depends-on): Likewise.
65182         * modules/vfprintf-posix (Depends-on): Likewise.
65183         * modules/vprintf-posix (Depends-on): Likewise.
65184         * modules/vsnprintf-posix (Depends-on): Likewise.
65185         * modules/vsprintf-posix (Depends-on): Likewise.
65186         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65187         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65188         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65189         "no" on i386, x86_64, ia64.
65190         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65191         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65192         on i386, x86_64, ia64.
65193         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65194         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65195         on i386, x86_64, ia64.
65196         * tests/test-vasnprintf-posix.c: Include float.h.
65197         (LDBL80_WORDS): New macro.
65198         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65199         on i386, x86_64, ia64.
65200         * tests/test-vasprintf-posix.c: Include float.h.
65201         (LDBL80_WORDS): New macro.
65202         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65203         on i386, x86_64, ia64.
65204         * tests/test-snprintf-posix.c: Include float.h.
65205         * tests/test-sprintf-posix.c: Likewise.
65206         * tests/test-vsnprintf-posix.c: Likewise.
65207         * tests/test-vsprintf-posix.c: Likewise.
65208
65209 2007-06-05  Bruno Haible  <bruno@clisp.org>
65210
65211         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65212         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65213         non-IEEE numbers on i386, x86_64, ia64.
65214         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65215         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65216         * tests/test-isnanl.h: Include float.h.
65217         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65218
65219 2007-06-05  Bruno Haible  <bruno@clisp.org>
65220
65221         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65222         also the %a / %A. Handle the %a / %A code before this extra handling.
65223
65224 2007-06-05  Bruno Haible  <bruno@clisp.org>
65225
65226         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65227         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65228
65229 2007-06-05  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65232         typo in variable name.
65233
65234 2007-06-05  Eric Blake  <ebb9@byu.net>
65235
65236         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65237         Reported by Simon Josefsson.
65238
65239 2007-06-04  Bruno Haible  <bruno@clisp.org>
65240
65241         Avoid test failures on some PowerPC platforms.
65242         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65243         Define differently for PowerPC.
65244         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65245         Reported by Gary V. Vaughan <gary@gnu.org>.
65246
65247 2007-06-02  Bruno Haible  <bruno@clisp.org>
65248
65249         Fix test-stdint failure on FreeBSD/ia64.
65250         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65251         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65252         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65253         * doc/headers/stdint.texi: Update.
65254
65255 2007-06-01  Bruno Haible  <bruno@clisp.org>
65256
65257         * tests/test-binary-io.c (main): Pass a third argument to open().
65258         Reported by Gary V. Vaughan <gary@gnu.org>.
65259
65260 2007-06-01  Bruno Haible  <bruno@clisp.org>
65261
65262         * doc/functions/frexpl.texi: Update for mingw.
65263
65264 2007-06-01  Bruno Haible  <bruno@clisp.org>
65265
65266         * tests/test-lseek.c (main): Disable test of errno for invalid third
65267         argument.
65268         * doc/functions/lseek.texi: Update.
65269         Reported by Gary V. Vaughan <gary@gnu.org>.
65270
65271 2007-05-28  Bruno Haible  <bruno@clisp.org>
65272
65273         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65274
65275 2007-05-31  Eric Blake  <ebb9@byu.net>
65276
65277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65278         cross compiling.
65279
65280 2007-05-30  Eric Blake  <ebb9@byu.net>
65281         and Bruno Haible  <bruno@clisp.org>
65282
65283         Work around mingw test failures exposed by m4-1.4.9b.
65284         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65285         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65286         moment.
65287
65288 2007-05-30  Bruno Haible  <bruno@clisp.org>
65289
65290         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65291         assuming that they are closed. Needed on HP-UX 11.
65292
65293 2007-05-29  Bruno Haible  <bruno@clisp.org>
65294
65295         Fix a problem with #include_next.
65296         * lib/dirent_.h: Split the double-inclusion guard.
65297         * lib/fcntl_.h: Likewise.
65298         * lib/float_.h: Likewise.
65299         * lib/iconv_.h: Likewise.
65300         * lib/inttypes_.h: Likewise.
65301         * lib/locale_.h: Likewise.
65302         * lib/math_.h: Likewise.
65303         * lib/netinet_in_.h: Likewise.
65304         * lib/search_.h: Likewise.
65305         * lib/signal_.h: Likewise.
65306         * lib/stdint_.h: Likewise.
65307         * lib/stdio_.h: Likewise.
65308         * lib/stdlib_.h: Likewise.
65309         * lib/string_.h: Likewise.
65310         * lib/sys_select_.h: Likewise.
65311         * lib/sys_socket_.h: Likewise.
65312         * lib/sys_stat_.h: Likewise.
65313         * lib/sys_time_.h: Likewise.
65314         * lib/sysexits_.h: Likewise.
65315         * lib/time_.h: Likewise.
65316         * lib/unistd_.h: Likewise.
65317         * lib/wchar_.h: Likewise.
65318         * lib/wctype_.h: Likewise.
65319
65320 2007-05-29  Bruno Haible  <bruno@clisp.org>
65321
65322         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65323         for the moment.
65324
65325 2007-05-29  Bruno Haible  <bruno@clisp.org>
65326
65327         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65328         invocation.
65329         Reported by Eric Blake.
65330
65331 2007-05-29  Bruno Haible  <bruno@clisp.org>
65332
65333         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65334         compiling case.
65335
65336 2007-05-29  Eric Blake  <ebb9@byu.net>
65337             Bruno Haible  <bruno@clisp.org>
65338
65339         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65340         cross compiles.
65341
65342 2007-05-28  Eric Blake  <ebb9@byu.net>
65343
65344         * modules/closein-tests (test_closein_LDADD): Support test on
65345         cygwin with libtool.
65346
65347 2007-05-28  Bruno Haible  <bruno@clisp.org>
65348
65349         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65350         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65351         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65352         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65353         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65354         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65355         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65356         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65357         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65358
65359 2007-05-28  Eric Blake  <ebb9@byu.net>
65360
65361         Unconditionally include <config.h> in unit tests.
65362         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65363         * tests/test-allocsa.c, tests/test-arcfour.c,
65364         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65365         tests/test-array_list.c, tests/test-array_oset.c,
65366         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65367         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65368         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65369         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65370         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65371         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65372         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65373         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65374         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65375         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65376         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65377         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65378         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65379         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65380         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65381         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65382         test-md5.c, test-memmem.c, test-printf-posix.c,
65383         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65384         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65385         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65386         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65387         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65388         test-vasnprintf-posix2.c, test-vasnprintf.c,
65389         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65390         test-vfprintf-posix.c, test-vprintf-posix.c,
65391         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65392         test-xvasprintf.c: Likewise.
65393
65394 2007-05-28  Bruno Haible  <bruno@clisp.org>
65395
65396         * gnulib-tool (func_import): Remember the --with-tests command-line
65397         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65398         Reported by Eric Blake.
65399
65400 2007-05-28  Bruno Haible  <bruno@clisp.org>
65401
65402         * modules/ftell-tests: New file.
65403         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65404         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65405
65406         * lib/ftell.c: New file.
65407         * modules/ftell: New file.
65408         * m4/ftell.m4: New file.
65409         * doc/functions/ftell.texi: Update.
65410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65411         REPLACE_FTELL.
65412         * lib/stdio_.h (rpl_ftell): New declaration.
65413         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65414         REPLACE_FTELL.
65415
65416 2007-05-28  Eric Blake  <ebb9@byu.net>
65417
65418         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65419
65420 2007-05-28  Bruno Haible  <bruno@clisp.org>
65421
65422         * modules/fseek-tests: New file.
65423         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65424         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65425
65426         * lib/fseek.c: New file.
65427         * modules/fseek: New file.
65428         * m4/fseek.m4: New file.
65429         * doc/functions/fseek.texi: Update.
65430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65431         REPLACE_FSEEK.
65432         * lib/stdio_.h (rpl_fseek): New declaration.
65433         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65434         REPLACE_FSEEK.
65435
65436 2007-05-28  Bruno Haible  <bruno@clisp.org>
65437
65438         * lib/stdio_.h (fflush): More comments.
65439
65440 2007-05-28  Bruno Haible  <bruno@clisp.org>
65441
65442         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65443         runtime test.
65444
65445 2007-05-28  Eric Blake  <ebb9@byu.net>
65446
65447         Improve lseek module.
65448         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65449         * lib/unistd_.h (lseek): Scale back link warning message.
65450         * tests/test-lseek.c: Beef up test.
65451         * tests/test-lseek.sh: Exercise more facets of lseek.
65452         Reported by Bruno Haible.
65453
65454 2007-05-28  Bruno Haible  <bruno@clisp.org>
65455
65456         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65457         to define.
65458
65459 2007-05-27  Bruno Haible  <bruno@clisp.org>
65460
65461         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65462
65463 2007-05-27  Bruno Haible  <bruno@clisp.org>
65464
65465         * modules/openmp: New file.
65466         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65467         Noah Misch.
65468
65469 2007-05-26  Bruno Haible  <bruno@clisp.org>
65470
65471         * modules/chdir-long (Depends-on): Add fchdir.
65472         * modules/chdir-safer (Depends-on): Likewise.
65473         * modules/fts (Depends-on): Likewise.
65474         * modules/fts-lgpl (Depends-on): Likewise.
65475         * modules/openat (Depends-on): Likewise.
65476         * modules/savewd (Depends-on): Likewise.
65477
65478 2007-05-24  Eric Blake  <ebb9@byu.net>
65479
65480         Fix lseek on mingw.
65481         * modules/lseek: New module.
65482         * m4/lseek.m4: New file.
65483         * lib/lseek.c: New file.
65484         * modules/lseek-tests: New file.
65485         * tests/test-lseek.c: New file.
65486         * tests/test-lseek.sh: New file.
65487         * MODULES.html.sh: Document lseek module.
65488         * modules/fflush (Depends-on): Add lseek, fseeko.
65489         * modules/fseeko (Depends-on): Likewise.
65490         * modules/ftello (Depends-on): Likewise.
65491         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65492         broken.
65493         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65494         broken.
65495         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65496         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65497         * lib/ftello.c (rpl_ftello): Likewise.
65498         * tests/test-fseeko.c (main): Test this.
65499         * tests/test-fseeko.sh: Likewise.
65500         * tests/test-ftello.c (main): Likewise.
65501         * tests/test-ftello.sh: Likewise.
65502         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65503         implies replacing fseek.
65504         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65505         HAVE_FTELLO.
65506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65507         * modules/unistd (Makefile.am): Likewise.
65508         * lib/unistd_.h (lseek): Declare a replacement.
65509         * doc/functions/lseek.texi (lseek): Document this fix.
65510         * doc/functions/fseek.texi (fseek): Likewise.
65511         * doc/functions/ftell.texi (ftell): Likewise.
65512
65513 2007-05-24  Bruno Haible  <bruno@clisp.org>
65514
65515         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65516         in the printed representation of a NaN.
65517         * tests/test-vasprintf-posix.c (test_function): Likewise.
65518         * tests/test-snprintf-posix.h (test_function): Likewise.
65519         * tests/test-sprintf-posix.h (test_function): Likewise.
65520         Reported by Eric Blake.
65521
65522 2007-05-23  Eric Blake  <ebb9@byu.net>
65523
65524         Fix fseeko/ftello on cygwin 1.5.24.
65525         * doc/functions/fseeko.texi (fseeko): Document the fix.
65526         * doc/functions/ftello.texi (ftello): Document the fix.
65527         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65528         * doc/functions/stdout.text (stdout): New file.
65529         * doc/functions/stderr.text (stderr): New file.
65530         * doc/gnulib.texi (Function Substitutes): Use new files.
65531         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65532         prior to 1.7.0.
65533         * tests/test-ftello.c (main): Likewise for ftello.
65534         * tests/test-fseeko.sh: New file.
65535         * tests/test-ftello.sh: New file.
65536         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65537         with seekable stdin.
65538         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65539         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65540         (gl_REPLACE_FSEEKO): New macro.
65541         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65542         * modules/fseeko (Files): Distribute fseeko.c.
65543         * modules/ftello (Files): Distribute ftello.c.
65544         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65545         mode.
65546         * lib/ftello.c (rpl_ftello): New file.
65547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65548         fseeko, ftello.
65549         (gl_STDIN_LARGE_OFFSET): New macro.
65550         * modules/stdio (Makefile.am): Perform the replacement.
65551         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65552
65553 2007-05-23  Bruno Haible  <bruno@clisp.org>
65554
65555         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65556         GNULIB_POSIXCHECK is defined.
65557
65558 2007-05-21  Bruno Haible  <bruno@clisp.org>
65559
65560         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65561         Check also the output for NaN arguments. When cross-compiling, guess
65562         no on IRIX.
65563         * lib/vasnprintf.c: Update comments.
65564         * tests/test-vasnprintf-posix.c (strisnan): New function.
65565         (test_function): Use it.
65566         * tests/test-vasprintf-posix.c (strisnan): New function.
65567         (test_function): Use it.
65568         * tests/test-snprintf-posix.h (strisnan): New function.
65569         (test_function): Use it.
65570         * tests/test-sprintf-posix.h (strisnan): New function.
65571         (test_function): Use it.
65572         Reported by Eric Blake.
65573
65574 2007-05-20  Bruno Haible  <bruno@clisp.org>
65575
65576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65577         numbers that fails on BeOS.
65578         * doc/functions/frexpl.texi: Update.
65579
65580 2007-05-20  Jim Meyering  <jim@meyering.net>
65581
65582         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65583         forced upon us by glibc-2.6.
65584
65585 2007-05-20  Bruno Haible  <bruno@clisp.org>
65586
65587         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65588         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65589         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65590         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65591         NEED_PRINTF_INFINITE.
65592         (is_infinitel): New function.
65593         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65594         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65595         gl_PREREQ_VASNPRINTF_INFINITE.
65596         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65597         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65598         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65599         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65600         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65601         gl_PREREQ_VASNPRINTF_INFINITE.
65602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65603         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65604         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65605         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65606         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65607         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65608         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65609         * doc/functions/fprintf.texi: Update.
65610         * doc/functions/printf.texi: Update.
65611         * doc/functions/snprintf.texi: Update.
65612         * doc/functions/sprintf.texi: Update.
65613         * doc/functions/vfprintf.texi: Update.
65614         * doc/functions/vprintf.texi: Update.
65615         * doc/functions/vsnprintf.texi: Update.
65616         * doc/functions/vsprintf.texi: Update.
65617
65618 2007-05-20  Bruno Haible  <bruno@clisp.org>
65619
65620         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65621         was not found in libc.
65622         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65623
65624 2007-05-20  Bruno Haible  <bruno@clisp.org>
65625
65626         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65627         printed as "-nan" instead of "nan".
65628         * tests/test-vasprintf-posix.c (test_function): Likewise.
65629         * tests/test-snprintf-posix.h (test_function): Likewise.
65630         * tests/test-sprintf-posix.h (test_function): Likewise.
65631         Needed for HP-UX 11.
65632
65633 2007-05-20  Jim Meyering  <jim@meyering.net>
65634
65635         Fix buggy test for the fchownat-deref bug.
65636         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65637         symlink required for the run-test.  Without it, this test would
65638         always declare that fchownat doesn't work, and client code would
65639         unnecessarily use the replacement function with fixed libc.
65640         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65641         Reported by Greg Schafer.
65642
65643 2007-05-19  Bruno Haible  <bruno@clisp.org>
65644
65645         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65646         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65647         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65648         Needed for IRIX 6.5 and Solaris 2.5.1.
65649
65650 2007-05-19  Bruno Haible  <bruno@clisp.org>
65651
65652         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65653         (test_function): Skip tests involving -0.0 on platforms where
65654         -0.0 = 0.0.
65655         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65656         (test_function): Skip tests involving -0.0 on platforms where
65657         -0.0 = 0.0.
65658         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65659         (test_function): Skip tests involving -0.0 on platforms where
65660         -0.0 = 0.0.
65661         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65662         (test_function): Skip tests involving -0.0 on platforms where
65663         -0.0 = 0.0.
65664         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65665         tests.
65666         * tests/test-printf-posix.h (test_function): Likewise.
65667         * tests/test-printf-posix.output: Remove all -0.0 related results.
65668         Needed for IRIX 6.5.
65669
65670 2007-05-19  Bruno Haible  <bruno@clisp.org>
65671
65672         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65673         printed as "nan0x7fffffff" instead of "nan".
65674         * tests/test-vasprintf-posix.c (test_function): Likewise.
65675         * tests/test-snprintf-posix.h (test_function): Likewise.
65676         * tests/test-sprintf-posix.h (test_function): Likewise.
65677         * tests/test-fprintf-posix.h (NaN): Remove macro.
65678         (test_function): Remove all NaN related tests.
65679         * tests/test-printf-posix.h (NaN): Remove macro.
65680         (test_function): Remove all NaN related tests.
65681         * tests/test-printf-posix.output: Remove all NaN related results.
65682         Needed for IRIX 6.5.
65683
65684 2007-05-19  Bruno Haible  <bruno@clisp.org>
65685
65686         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65687         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65688
65689 2007-05-19  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/float_.h: New file.
65692         * m4/float_h.m4: New file.
65693         * modules/float: New file.
65694         * modules/isnanl (Dependencies): Add float.
65695         * modules/isnanl-nolibm (Dependencies): Likewise.
65696         * modules/mathl (Dependencies): Likewise.
65697         * modules/printf-frexpl (Dependencies): Likewise.
65698         * modules/signbit (Dependencies): Likewise.
65699         * modules/vasnprintf (Dependencies): Likewise.
65700         * doc/headers/float.texi: Update.
65701
65702 2007-05-19  Jim Meyering  <jim@meyering.net>
65703
65704         * lib/utimens.c (gl_futimens): Rename from futimens,
65705         now that glibc-2.6 declares futimens.
65706         * lib/utimens.h: Likewise.
65707
65708 2007-05-19  Bruno Haible  <bruno@clisp.org>
65709
65710         Avoid test failures on mingw.
65711         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65712         * tests/test-printf-posix.sh: Likewise.
65713         * tests/test-vfprintf-posix.sh: Likewise.
65714         * tests/test-vprintf-posix.sh: Likewise.
65715
65716 2007-05-19  Bruno Haible  <bruno@clisp.org>
65717
65718         Fix *printf result for NaN, Inf, -0.0 on mingw.
65719         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65720         * lib/vasnprintf.c: Include math.h and isnan.h.
65721         (is_infinite_or_zero): New function.
65722         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65723         values in the %f, %F, %e, %E, %g, %G directives.
65724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65725         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65726         gl_PRINTF_INFINITE and test its result. Invoke
65727         gl_PREREQ_VASNPRINTF_INFINITE.
65728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65731         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65732         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65735         * doc/functions/fprintf.texi: Update.
65736         * doc/functions/printf.texi: Update.
65737         * doc/functions/snprintf.texi: Update.
65738         * doc/functions/sprintf.texi: Update.
65739         * doc/functions/vfprintf.texi: Update.
65740         * doc/functions/vprintf.texi: Update.
65741         * doc/functions/vsnprintf.texi: Update.
65742         * doc/functions/vsprintf.texi: Update.
65743
65744 2007-05-19  Bruno Haible  <bruno@clisp.org>
65745
65746         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65747         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65748         Instead of multiplying with 10^k, set extra_zeroes to k.
65749         (scale10_round_long_double): Remove function.
65750
65751 2007-05-18  Bruno Haible  <bruno@clisp.org>
65752
65753         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65754         introduced on 2007-05-06.
65755
65756 2007-05-18  Bruno Haible  <bruno@clisp.org>
65757
65758         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65759         %g directives.
65760         * tests/test-vasprintf-posix.c (test_function): Likewise.
65761         * tests/test-snprintf-posix.h (test_function): Likewise.
65762         * tests/test-sprintf-posix.h (test_function): Likewise.
65763
65764 2007-05-18  Bruno Haible  <bruno@clisp.org>
65765
65766         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65767         (strmatch): New function.
65768         (test_function): Test the %f directive on numbers of various exponents.
65769         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65770         (strmatch): New function.
65771         (test_function): Test the %f directive on numbers of various exponents.
65772         * tests/test-snprintf-posix.h (strmatch): New function.
65773         (test_function): Test the %f directive on numbers of various exponents.
65774         * tests/test-sprintf-posix.h (strmatch): New function.
65775         (test_function): Test the %f directive on numbers of various exponents.
65776         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65777         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65778         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65779         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65780
65781 2007-05-18  Bruno Haible  <bruno@clisp.org>
65782
65783         Add support for 'long double' number output.
65784         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65785         * lib/vasnprintf.c: Include math.h and float+.h.
65786         (mp_limb_t): New type.
65787         (GMP_LIMB_BITS): New macro.
65788         (mp_twolimb_t): New type.
65789         (GMP_TWOLIMB_BITS): New macro.
65790         (mpn_t): New type.
65791         (multiply, divide, convert_to_decimal, decode_long_double,
65792         scale10_round_long_double, scale10_round_decimal_long_double,
65793         floorlog10l): New functions.
65794         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65795         for the %f, %F, %e, %E, %g, %G directives.
65796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65797         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65798         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65799         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65800         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65801         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65802         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65804         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65806         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65807         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65808         * modules/snprintf-posix (Depends-on): Likewise.
65809         * modules/sprintf-posix (Depends-on): Likewise.
65810         * modules/vasnprintf-posix (Depends-on): Likewise.
65811         * modules/vasprintf-posix (Depends-on): Likewise.
65812         * modules/vfprintf-posix (Depends-on): Likewise.
65813         * modules/vsnprintf-posix (Depends-on): Likewise.
65814         * modules/vsprintf-posix (Depends-on): Likewise.
65815         * modules/vasnprintf (Files): Add lib/float+.h.
65816         * doc/functions/fprintf.texi: Update.
65817         * doc/functions/printf.texi: Update.
65818         * doc/functions/snprintf.texi: Update.
65819         * doc/functions/sprintf.texi: Update.
65820         * doc/functions/vfprintf.texi: Update.
65821         * doc/functions/vprintf.texi: Update.
65822         * doc/functions/vsnprintf.texi: Update.
65823         * doc/functions/vsprintf.texi: Update.
65824
65825 2007-05-18  Bruno Haible  <bruno@clisp.org>
65826
65827         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65828
65829 2007-05-18  Bruno Haible  <bruno@clisp.org>
65830
65831         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65832         for printing 64-bit integers. Needed for mingw.
65833
65834 2007-05-18  Bruno Haible  <bruno@clisp.org>
65835
65836         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65837         gl_FUNC_FREXPL_WORKS.
65838         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65839
65840 2007-05-18  Bruno Haible  <bruno@clisp.org>
65841
65842         * modules/frexpl-nolibm-tests: New file.
65843
65844         * modules/frexpl-nolibm: New file.
65845         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65846
65847 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65850         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65851         GCC 4.2, which otherwise issues a lot of warnings.
65852         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65853         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65854         Likewise.
65855         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65856         * modules/iconv_open (iconv.h): Likewise.
65857         * modules/locale (locale.h): Likewise.
65858         * modules/netinet_in (netinet/in.h): Likewise.
65859         * modules/sys_select (sys_select.h): Likewise.
65860         * modules/sys_socket (sys/socket.h): Likewise.
65861         * modules/sys_stat (sys/stat.h): Likewise.
65862         * modules/sysexits (sysexits.h): Likewise.
65863         * modules/unistd (unistd.h): Likewise.
65864
65865 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65866
65867         * modules/closein-tests (Makefile.am): Distribute
65868         `test-closein.sh'.
65869
65870 2007-05-17  Bruno Haible  <bruno@clisp.org>
65871
65872         * tests/test-printf-posix.output: Renamed from
65873         tests/test-fprintf-posix.out.
65874         * modules/fprintf-posix-tests: Update.
65875         * modules/printf-posix-tests: Update.
65876         * modules/vfprintf-posix-tests: Update.
65877         * modules/vprintf-posix-tests: Update.
65878         * tests/test-fprintf-posix.sh: Update.
65879         * tests/test-printf-posix.sh: Update.
65880         * tests/test-vfprintf-posix.sh: Update.
65881         * tests/test-vprintf-posix.sh: Update.
65882         Reported by Ralf Wildenhues.
65883
65884 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65887         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65888         GCC 4.2, which otherwise issues a lot of warnings.
65889         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65890         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65891         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65892         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65893         it should no longer be needed.
65894         * lib/string_.h: Likewise.
65895         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65896         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65897         * modules/inttypes (inttypes.h): Likewise.
65898         * modules/math (math.h): Likewise.
65899         * modules/search (search.h): Likewise.
65900         * modules/signal (signal.h): Likewise.
65901         * modules/stdint (stdint.h): Likewise.
65902         * modules/stdio (stdio.h): Likewise.
65903         * modules/stdlib (stdlib.h): Likewise.
65904         * modules/string (string.h): Likewise.
65905         * modules/sys_time (sys/time.h): Likewise.
65906         * modules/time (time.h): Likewise.
65907         * modules/wchar (wchar.h): Likewise.
65908         * modules/wctype (wtype.h): Likewise.
65909
65910 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65911
65912         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65913
65914 2007-05-13  Bruno Haible  <bruno@clisp.org>
65915
65916         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65917         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65918         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65919         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65920         (gl_PREREQ_STRTOK_R): Don't require it here.
65921
65922 2007-05-13  Bruno Haible  <bruno@clisp.org>
65923
65924         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65925         when used in C++ mode.
65926
65927 2007-05-12  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/linebuffer.h: Tweak doc.
65930         * lib/linebuffer.c: Likewise.
65931
65932 2007-05-12  James Youngman  <jay@gnu.org>
65933
65934         * lib/linebuffer.c (readlinebuffer_delim): New function,
65935         like readlinebuffer, but use a caller-specified delimiter.
65936         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65937         as the delimiter.
65938         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65939
65940 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65941
65942         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65943         * modules/openat (Files): Remove openat-die.c.
65944         (Depends-on): Add openat-die.
65945         * modules/openat-die: New module.
65946
65947 2007-05-06  Bruno Haible  <bruno@clisp.org>
65948
65949         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65950         Update with info about Cygwin.
65951         * doc/functions/fprintf.texi: Update.
65952         * doc/functions/printf.texi: Update.
65953         * doc/functions/snprintf.texi: Update.
65954         * doc/functions/sprintf.texi: Update.
65955         * doc/functions/vfprintf.texi: Update.
65956         * doc/functions/vprintf.texi: Update.
65957         * doc/functions/vsnprintf.texi: Update.
65958         * doc/functions/vsprintf.texi: Update.
65959         Reported by Eric Blake.
65960
65961 2007-05-06  Bruno Haible  <bruno@clisp.org>
65962
65963         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65964         padding ourselves for the floating-point directives.
65965         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65968         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65969         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65971         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65977         * tests/test-snprintf-posix.h (test_function): Also check the width
65978         and some flags in the %f directive.
65979         * tests/test-sprintf-posix.h (test_function): Likewise.
65980         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65981         * tests/test-vasprintf-posix.c (test_function): Likewise.
65982         * doc/functions/fprintf.texi: Update.
65983         * doc/functions/printf.texi: Update.
65984         * doc/functions/snprintf.texi: Update.
65985         * doc/functions/sprintf.texi: Update.
65986         * doc/functions/vfprintf.texi: Update.
65987         * doc/functions/vprintf.texi: Update.
65988         * doc/functions/vsnprintf.texi: Update.
65989         * doc/functions/vsprintf.texi: Update.
65990
65991 2007-05-06  Bruno Haible  <bruno@clisp.org>
65992
65993         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65994         pass the ' flag character to sprintf or snprintf.
65995         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65998         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65999         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66001         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66003         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66004         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66005         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66006         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66007         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66008         flag.
66009         * tests/test-sprintf-posix.h (test_function): Likewise.
66010         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66011         * tests/test-vasprintf-posix.c (test_function): Likewise.
66012         * doc/functions/fprintf.texi: Update.
66013         * doc/functions/printf.texi: Update.
66014         * doc/functions/snprintf.texi: Update.
66015         * doc/functions/sprintf.texi: Update.
66016         * doc/functions/vfprintf.texi: Update.
66017         * doc/functions/vprintf.texi: Update.
66018         * doc/functions/vsnprintf.texi: Update.
66019         * doc/functions/vsprintf.texi: Update.
66020
66021 2007-05-01  Bruno Haible  <bruno@clisp.org>
66022
66023         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66024
66025 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66026
66027         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66028         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66029
66030 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66031
66032         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66033         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66034         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66035
66036 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66037
66038         * lib/argp-help.c (struct hol_entry): New member `ord'.
66039         (HOL_ENTRY_PTRCMP): Use ord for comparison
66040         (hol_sort): Initialize ord.
66041
66042 2007-05-01  Bruno Haible  <bruno@clisp.org>
66043
66044         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66045         Reported by Eric Blake.
66046         * doc/gnulib.texi (Function Substitutes): Update.
66047
66048 2007-05-01  Bruno Haible  <bruno@clisp.org>
66049
66050         * doc/functions.texi: Remove file, now redundant through
66051         doc/functions/*.texi.
66052
66053 2007-05-01  Bruno Haible  <bruno@clisp.org>
66054
66055         * modules/argp (Depends-on): Add sleep.
66056
66057 2007-05-01  Bruno Haible  <bruno@clisp.org>
66058
66059         * modules/sleep-tests: New file.
66060         * tests/test-sleep.c: New file.
66061
66062         * modules/sleep: New file.
66063         * lib/sleep.c: New file.
66064         * m4/sleep.m4: New file.
66065         * lib/unistd_.h (sleep): New declaration.
66066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66067         HAVE_SLEEP.
66068         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66069         * doc/functions/sleep.texi: Document the sleep module.
66070
66071 2007-05-01  Bruno Haible  <bruno@clisp.org>
66072
66073         * lib/sigprocmask.h: Remove file.
66074         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66075         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66076         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66077         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66078         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66079         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66080         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66081         HAVE_SIGSET_T as a shell variable.
66082         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66083         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66084         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66085         (Depends-on): Add signal. Remove verify.
66086         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66087         (Include): Mention <signal.h> instead of sigprocmask.h.
66088         * NEWS: Mention the change.
66089         * lib/fatal-signal.c: Don't include sigprocmask.h.
66090
66091 2007-05-01  Bruno Haible  <bruno@clisp.org>
66092
66093         * modules/signal: New file.
66094         * lib/signal_.h: New file.
66095         * m4/signal_h.m4: New file.
66096
66097 2007-05-01  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66100         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66101         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66102         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66103
66104 2007-05-01  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66107         configure time.
66108         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66109         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66110         * modules/sys_stat (Makefile.am): Substitute their values into
66111         sys/stat.h.
66112
66113 2007-05-01  Bruno Haible  <bruno@clisp.org>
66114
66115         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66116         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66117         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66118
66119 2007-05-01  Bruno Haible  <bruno@clisp.org>
66120
66121         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66122         'assert' module here.
66123
66124 2007-05-01  Bruno Haible  <bruno@clisp.org>
66125
66126         * doc/functions/*.texi: New files.
66127         * doc/functions/google-ranking.txt: New file.
66128         * doc/gnulib.texi (Function Substitutes): New chapter.
66129         (ctime, inet_ntoa): Remove sections.
66130         * doc/ctime.texi: Remove file.
66131         * doc/inet_ntoa.texi: Remove file.
66132         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66133         dependencies.
66134         (%.info): New rule, specifying a --reference-limit.
66135
66136 2007-05-01  Bruno Haible  <bruno@clisp.org>
66137
66138         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66139
66140 2007-05-01  Bruno Haible  <bruno@clisp.org>
66141
66142         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66143         the portability of 'mkdir' to mingw systems.
66144
66145 2007-05-01  Bruno Haible  <bruno@clisp.org>
66146
66147         * doc/headers/google-ranking.txt: New file.
66148
66149 2007-04-30  Eric Blake  <ebb9@byu.net>
66150
66151         Prefer fseeko to fseek.
66152         * modules/getpass (Depends-on): Add fseeko.
66153         * lib/getpass.c (getpass): Use fseeko, not fseek.
66154
66155 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66156
66157         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66158         assumes the sorting is stable, while most qsort implementations
66159         are not.  Use argument addresses to ensure they never compare as
66160         equal.
66161
66162         * tests/test-argp-2.sh (usage-indent test): Fix output
66163         (func_compare): Restore diff options
66164         * tests/test-argp.c: Restore #include "progname.h"
66165
66166 2007-04-29  Bruno Haible  <bruno@clisp.org>
66167
66168         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66170         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66172         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66173         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66174         (TESTS, check_PROGRAMS): Add test-snprintf.
66175         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66176         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66177         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66178         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66179         assertions that fail on HP-UX, OSF/1, or IRIX.
66180         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66181
66182 2007-04-29  Bruno Haible  <bruno@clisp.org>
66183
66184         * MODULES.html.sh (posix_functions): Remove 'contents'.
66185
66186 2007-04-29  Karl Berry  <karl@gnu.org>
66187
66188         * config/srclist.txt (gendocs_template_min): new entry.
66189
66190 2007-04-29  Bruno Haible  <bruno@clisp.org>
66191
66192         Work around fpurge bug on BSD systems.
66193         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66194         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66195         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66196         fpurge to rpl_fpurge if the system already has this function.
66197         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66198         the case where the system already has this function. Correct invariants
66199         on BSD systems.
66200         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66201         BSD systems.
66202
66203 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66204
66205         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66206         proposed by Sven Verdoolaege.
66207
66208         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66209         options.
66210         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66211         (usage and help tests): Update
66212
66213 2007-04-29  Bruno Haible  <bruno@clisp.org>
66214
66215         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66216         Print more information in case of failure. Disable a test on BeOS.
66217
66218 2007-04-29  Bruno Haible  <bruno@clisp.org>
66219
66220         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66221         This helps debugging on systems on which no gdb is available.
66222
66223 2007-04-29  Bruno Haible  <bruno@clisp.org>
66224
66225         * lib/freading.h: Improve comments.
66226         * lib/fwriting.h: Likewise.
66227         * tests/test-freading.c (main): Don't check freading immediately after
66228         repositioning. Needed for glibc.
66229
66230 2007-04-29  Bruno Haible  <bruno@clisp.org>
66231
66232         * lib/freading.c (freading): Trivial simplification.
66233
66234 2007-04-28  Bruno Haible  <bruno@clisp.org>
66235
66236         * tests/test-fwriting.c (main): Also test the interaction between
66237         fflush and fwriting.
66238         * modules/fwriting-tests (Depends-on): Add fflush.
66239
66240         * tests/test-freading.c (main): Also test the interaction between
66241         fflush and freading.
66242         * modules/freading-tests (Depends-on): Add fflush.
66243
66244 2007-04-28  Bruno Haible  <bruno@clisp.org>
66245
66246         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66247         fseeko and ftello.
66248         Suggested by Eric Blake.
66249
66250 2007-04-28  Jim Meyering  <jim@meyering.net>
66251
66252         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66253         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66254         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66255
66256 2007-04-27  Eric Blake  <ebb9@byu.net>
66257
66258         * doc/headers/assert.texi (assert.h): Document assert module use.
66259
66260 2007-04-27  Bruno Haible  <bruno@clisp.org>
66261
66262         * doc/headers/*.texi: New files.
66263         * doc/gnulib.texi (Header File Substitutes): New chapter.
66264         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66265         dependencies.
66266         (standards.info ,standards.html, standards.dvi): Update dependencies.
66267         (mostlyclean, clean): New targets.
66268
66269 2007-04-27  Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66272         * modules/sysexits (Files, Makefile.am): Update.
66273
66274         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66275         * modules/sys_socket (Files, Makefile.am): Update.
66276
66277         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66278         * modules/sys_stat (Files, Makefile.am): Update.
66279
66280 2007-04-27  Eric Blake  <ebb9@byu.net>
66281
66282         * lib/freading.h: Improve comments.
66283         * lib/fwriting.h: Likewise.
66284         * lib/fflush.c: Likewise.
66285
66286         Fix closein for mingw.
66287         * modules/closein-tests: Add tests for closein.
66288         * tests/test-closein.c: New file.
66289         * tests/test-closein.sh: Likewise.
66290         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66291         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66292
66293 2007-04-27  Bruno Haible  <bruno@clisp.org>
66294
66295         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66296         version is < 6.
66297         * lib/math_.h [__DECC]: Likewise.
66298         * lib/stdio_.h [__DECC]: Likewise.
66299         * lib/stdlib_.h [__DECC]: Likewise.
66300         * lib/string_.h [__DECC]: Likewise.
66301         * lib/time_.h [__DECC]: Likewise.
66302         * lib/wchar_.h [__DECC]: Likewise.
66303         * lib/wctype_.h [__DECC]: Likewise.
66304
66305 2007-04-27  Bruno Haible  <bruno@clisp.org>
66306
66307         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66308
66309 2007-04-27  Bruno Haible  <bruno@clisp.org>
66310
66311         * lib/fflush.c: Add comments.
66312         * modules/fpurge-tests (Depends-on): Add fflush.
66313         * modules/freadable-tests (Depends-on): Likewise.
66314         * modules/fwritable-tests (Depends-on): Likewise.
66315
66316 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66317
66318         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66319         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66320         Report by Bruno Haible <bruno@clisp.org>.
66321
66322 2007-04-26  Eric Blake  <ebb9@byu.net>
66323
66324         Fix fflush on mingw.
66325         * modules/fflush (Depends-on): Add freading.
66326         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66327         but unread data.
66328
66329 2007-04-26  Eric Blake  <ebb9@byu.net>
66330         and Bruno Haible  <bruno@clisp.org>
66331
66332         Implement freading and fwriting.
66333         * lib/freading.c: New file.
66334         * lib/freading.h: Likewise.
66335         * m4/freading.m4: Likewise.
66336         * modules/freading: Likewise.
66337         * modules/freading-tests: Likewise.
66338         * tests/test-freading.c: Likewise.
66339         * lib/fwriting.c: New file.
66340         * lib/fwriting.h: Likewise.
66341         * m4/fwriting.m4: Likewise.
66342         * modules/fwriting: Likewise.
66343         * modules/fwriting-tests: Likewise.
66344         * tests/test-fwriting.c: Likewise.
66345         * MODULES.html.sh (File stream based Input/Output): Mention them.
66346
66347 2007-04-26  Bruno Haible  <bruno@clisp.org>
66348
66349         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66350         'long' when we assume it.
66351         Suggested by Eric Blake.
66352
66353 2007-04-26  Bruno Haible  <bruno@clisp.org>
66354
66355         Ensure fseeko, ftello are declared on glibc systems.
66356         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66357         * modules/fseeko (configure.ac-early): Likewise.
66358         * modules/ftello (configure.ac-early): Likewise.
66359         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66360         AC_FUNC_FSEEKO for this.
66361         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66362         (gl_CHECK_FSEEKO): Remove macro.
66363
66364 2007-04-26  Bruno Haible  <bruno@clisp.org>
66365
66366         * tests/test-fflush.c (main): Also check the ftell result after
66367         fflush and fseek/fseeko.
66368         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66369         file descriptor position cache in the stream.
66370         * lib/fseeko.c (rpl_fseeko): Likewise.
66371
66372 2007-04-26  Bruno Haible  <bruno@clisp.org>
66373
66374         * modules/fflush-tests (Depends-on): Add fseeko.
66375
66376 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66377             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66378
66379         * lib/argz_.h: ensure error_t definition is obtained in same
66380         mechanism system argz.h would have.
66381         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66382         argz facilities are known bad.  Err on the side of caution if
66383         cross-compiling.
66384
66385 2007-04-25  Eric Blake  <ebb9@byu.net>
66386
66387         * lib/fpurge.c (includes): Use stdlib.h for free.
66388         * tests/test-fflush.c (main): Also test fflush-fseeko.
66389
66390 2007-04-25  Bruno Haible  <bruno@clisp.org>
66391
66392         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66393         * lib/fseeko.c: New file.
66394         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66395         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66396         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66397         gl_FUNC_FSEEKO.
66398         (gl_FUNC_FSEEKO): Invoke it.
66399         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66400         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66401         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66402
66403 2007-04-25  Bruno Haible  <bruno@clisp.org>
66404
66405         * modules/fflush (Depends-on): Add ftello.
66406
66407 2007-04-25  Bruno Haible  <bruno@clisp.org>
66408
66409         * modules/ftello-tests: New file.
66410         * tests/test-ftello.c: New file.
66411
66412         * modules/ftello: New file.
66413         * m4/ftello.m4: New file.
66414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66415         HAVE_FTELLO.
66416         * lib/stdio_.h (ftello): New declaration.
66417         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66418         HAVE_FTELLO.
66419
66420 2007-04-25  Bruno Haible  <bruno@clisp.org>
66421
66422         * modules/fseeko-tests: New file.
66423         * tests/test-fseeko.c: New file.
66424
66425         * modules/fseeko: New file.
66426         * m4/fseeko.m4: New file.
66427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66428         HAVE_FSEEKO.
66429         * lib/stdio_.h (fseeko): New declaration.
66430         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66431         HAVE_FSEEKO.
66432
66433 2007-04-25  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66436
66437 2007-04-25  Bruno Haible  <bruno@clisp.org>
66438
66439         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66440         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66441         * tests/test-unistd.c: Likewise.
66442         * tests/test-fcntl.c: Likewise.
66443
66444 2007-04-23  Eric Blake  <ebb9@byu.net>
66445
66446         * lib/fflush.c: Fix missing include.
66447         Reported by Bruno Haible.
66448
66449 2007-04-23  Bruno Haible  <bruno@clisp.org>
66450
66451         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66452         Reported by Eric Blake.
66453
66454 2007-04-23  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66457
66458 2007-04-23  Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66461
66462 2007-04-23  Bruno Haible  <bruno@clisp.org>
66463
66464         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66465         Needed on HP-UX 11.
66466
66467 2007-04-16  Eric Blake  <ebb9@byu.net>
66468
66469         Make fflush rely on fpurge.
66470         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66471         open coding all variants.
66472         * modules/fflush (Depends-on): Add fpurge and unistd.
66473         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66474         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66475
66476         Fix --with-tests compilation on cygwin.
66477         * modules/argmatch-tests (Makefile.am): List gnulib library first
66478         in LDADD.
66479         * modules/argp-tests (Makefile.am): Likewise.
66480         * modules/array-list-tests (Makefile.am): Likewise.
66481         * modules/array-oset-tests (Makefile.am): Likewise.
66482         * modules/avltree-list-tests (Makefile.am): Likewise.
66483         * modules/avltree-oset-tests (Makefile.am): Likewise.
66484         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66485         * modules/carray-list-tests (Makefile.am): Likewise.
66486         * modules/dirname-tests (Makefile.am): Likewise.
66487         * modules/frexp-tests (Makefile.am): Likewise.
66488         * modules/isnanl-tests (Makefile.am): Likewise.
66489         * modules/linked-list-tests (Makefile.am): Likewise.
66490         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66491         * modules/lock-tests (Makefile.am): Likewise.
66492         * modules/rbtree-list-tests (Makefile.am): Likewise.
66493         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66494         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66495         * modules/tls-tests (Makefile.am): Likewise.
66496         * modules/tsearch-tests (Makefile.am): Likewise.
66497         * modules/xvasprintf-tests (Makefile.am): Likewise.
66498
66499         Fix fpurge for cygwin.
66500         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66501         value.
66502         * modules/fpurge-tests (Depends-on): Clean up trash.
66503
66504 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66505
66506         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66507
66508         * m4/autobuild.m4: Re-indent.
66509
66510 2007-04-13  Bruno Haible  <bruno@clisp.org>
66511
66512         * modules/fpurge-tests: New file.
66513         * tests/test-fpurge.c: New file.
66514
66515         * modules/fpurge: New file.
66516         * lib/fpurge.h: New file.
66517         * lib/fpurge.c: New file.
66518         * m4/fpurge.m4: New file.
66519
66520 2007-04-13  Bruno Haible  <bruno@clisp.org>
66521
66522         * modules/fbufmode-tests: New file.
66523         * tests/test-fbufmode.c: New file.
66524
66525         * modules/fbufmode: New file.
66526         * lib/fbufmode.h: New file.
66527         * lib/fbufmode.c: New file.
66528         * m4/fbufmode.m4: New file.
66529
66530 2007-04-13  Bruno Haible  <bruno@clisp.org>
66531
66532         * modules/fwritable-tests: New file.
66533         * tests/test-fwritable.c: New file.
66534
66535         * modules/fwritable: New file.
66536         * lib/fwritable.h: New file.
66537         * lib/fwritable.c: New file.
66538         * m4/fwritable.m4: New file.
66539
66540 2007-04-13  Bruno Haible  <bruno@clisp.org>
66541
66542         * modules/freadable-tests: New file.
66543         * tests/test-freadable.c: New file.
66544
66545         * modules/freadable: New file.
66546         * lib/freadable.h: New file.
66547         * lib/freadable.c: New file.
66548         * m4/freadable.m4: New file.
66549
66550 2007-04-13  Bruno Haible  <bruno@clisp.org>
66551
66552         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66553         MOSTLYCLEANFILES.
66554
66555 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66556
66557         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66558         gzip bootstrap.conf to avoid dragging in i18n machinery.
66559         (gnulib_tool_option): Use it.
66560
66561 2007-04-13  Bruno Haible  <bruno@clisp.org>
66562
66563         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66564         %F directives.
66565         * tests/test-vasprintf-posix.c (test_function): Likewise.
66566         * tests/test-snprintf-posix.h (test_function): Likewise.
66567         * tests/test-sprintf-posix.h (test_function): Likewise.
66568         * tests/test-fprintf-posix.h (test_function): Likewise.
66569         * tests/test-printf-posix.h (test_function): Likewise.
66570         * tests/test-fprintf-posix.out: Likewise.
66571
66572 2007-04-13  Bruno Haible  <bruno@clisp.org>
66573
66574         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66575         * modules/tls-tests (configure.ac): Likewise.
66576         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66577
66578 2007-04-13  Bruno Haible  <bruno@clisp.org>
66579
66580         * lib/tls.c (glthread_tls_get): Fix return type.
66581         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66582
66583 2007-04-12  Eric Blake  <ebb9@byu.net>
66584
66585         * modules/gettime (Depends-on): Remove gettime.
66586         Reported by Dmitry V. Levin.
66587
66588 2007-04-12  Bruno Haible  <bruno@clisp.org>
66589
66590         * modules/fflush (Include): Mention <stdio.h>.
66591         * modules/strtoimax (Include): Mention <inttypes.h>.
66592         * modules/strtoumax (Include): Likewise.
66593
66594 2007-04-12  Eric Blake  <ebb9@byu.net>
66595
66596         * .cvsignore: New file.
66597         * .gitignore: Likewise.
66598
66599 2007-04-12  Bruno Haible  <bruno@clisp.org>
66600
66601         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66602         not before, since $(LDADD) often contains libgnu.a.
66603         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66604         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66605         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66606         Needed on Cygwin.
66607
66608 2007-04-12  Eric Blake  <ebb9@byu.net>
66609
66610         Work around glibc's failure to flush stdin on fclose.
66611         * lib/closein.c (close_stdin): Flush stdin before closing.
66612
66613         Work around glibc's failure to reset seekable stdin on exit.
66614         * modules/closein: New module.
66615         * lib/closein.c: New file.
66616         * lib/closein.h: Likewise.
66617         * m4/closein.m4: Likewise.
66618         * MODULES.html.sh (File stream based Input/Output): Document it.
66619
66620 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66621
66622         * gnulib-tool: Rename generated 'autobuild' script to
66623         'do-autobuild' in --create-megatestdir output.
66624
66625         * doc/gnulib.texi (Build robot for gnulib): Fix.
66626
66627 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66628
66629         * modules/sysexits (Depends-on): Add absolute-header.
66630
66631 2007-04-12  Eric Blake  <ebb9@byu.net>
66632
66633         No need to preserve errno on success.
66634         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66635         Reported by Bruno Haible.
66636
66637 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66638
66639         * MODULES.html.sh (Support for maintaining and releasing
66640         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66641
66642 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66643
66644         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66645
66646 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66647
66648         * modules/autobuild: New module.
66649
66650         * m4/autobuild.m4: New file.
66651
66652 2007-04-11  Bruno Haible  <bruno@clisp.org>
66653
66654         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66655         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66656         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66659         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66660         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66662         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66663         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66664         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66665         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66666         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66667         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66668         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66669         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66671         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66672         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66673         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66674         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66675         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66677         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66678         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66679         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66680         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66681         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66682         Reported by Eric Blake.
66683
66684 2007-04-11  Bruno Haible  <bruno@clisp.org>
66685
66686         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66687
66688 2007-04-10  Bruno Haible  <bruno@clisp.org>
66689
66690         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66691         for NaN and Infinity. Needed on FreeBSD 6.1.
66692         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66693         regarding results for "%010a" of Infinity and NaN.
66694         * tests/test-vasprintf-posix.c (test_function): Likewise.
66695         * tests/test-snprintf-posix.h (test_function): Likewise.
66696         * tests/test-sprintf-posix.h (test_function): Likewise.
66697         * tests/test-fprintf-posix.h (test_function): Likewise.
66698         * tests/test-printf-posix.h (test_function): Likewise.
66699         * tests/test-fprintf-posix.out: Likewise.
66700
66701 2007-04-10  Bruno Haible  <bruno@clisp.org>
66702
66703         * modules/locale-tests: New file.
66704         * tests/test-locale.c: New file.
66705
66706         * modules/locale: New file.
66707         * lib/locale_.h: New file.
66708         * m4/locale_h.m4: New file.
66709
66710 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66711             Bruno Haible  <bruno@clisp.org>
66712
66713         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66714         be determined, test for availability of the copysignf, copysign,
66715         copysignl functions.
66716         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66717         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66718         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66719
66720 2007-04-09  Eric Blake  <ebb9@byu.net>
66721
66722         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66723         * modules/stdio (Makefile.am): Support fflush.
66724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66725         * modules/fflush: New file.
66726         * lib/fflush.c: Likewise.
66727         * m4/fflush.m4: Likewise.
66728         * modules/fflush-tests: New test.
66729         * tests/test-fflush.c: Likewise.
66730         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66731
66732 2007-04-06  Bruno Haible  <bruno@clisp.org>
66733
66734         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66735         (VASNPRINTF): Use signbit for faster determination whether to print a
66736         minus sign.
66737         * modules/vasnprintf (Files): Remove lib/float+.h.
66738         * modules/fprintf-posix (Depends-on): Add signbit.
66739         * modules/snprintf-posix (Depends-on): Likewise.
66740         * modules/sprintf-posix (Depends-on): Likewise.
66741         * modules/vasnprintf-posix (Depends-on): Likewise.
66742         * modules/vasprintf-posix (Depends-on): Likewise.
66743         * modules/vfprintf-posix (Depends-on): Likewise.
66744         * modules/vsnprintf-posix (Depends-on): Likewise.
66745         * modules/vsprintf-posix (Depends-on): Likewise.
66746
66747 2007-04-06  Bruno Haible  <bruno@clisp.org>
66748
66749         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66750         * tests/test-frexpl.c (main): Likewise.
66751         * tests/test-ldexpl.c (main): Likewise.
66752         * modules/frexp-tests (Depends-on): Add signbit.
66753         * modules/frexpl-tests (Depdends-on): Likewise.
66754         * modules/ldexpl-tests (Depdends-on): Likewise.
66755
66756 2007-04-06  Bruno Haible  <bruno@clisp.org>
66757
66758         * modules/signbit-tests: New file.
66759         * tests/test-signbit.c: New file.
66760
66761         * modules/signbit: New file.
66762         * lib/signbitf.c: New file.
66763         * lib/signbitd.c: New file.
66764         * lib/signbitl.c: New file.
66765         * m4/signbit.m4: New file.
66766         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66767         (signbit): New macro.
66768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66769         REPLACE_SIGNBIT.
66770         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66771         REPLACE_FREXPL into math.h.
66772
66773 2007-04-06  Bruno Haible  <bruno@clisp.org>
66774
66775         * modules/isnanf-nolibm-tests: New file.
66776         * tests/test-isnanf.c: New file.
66777
66778         * modules/isnanf-nolibm: New file.
66779         * lib/isnanf.h: New file.
66780         * lib/isnanf.c: New file.
66781         * lib/isnan.c: Consider the USE_FLOAT macro.
66782         * m4/isnanf.m4: New file.
66783
66784 2007-04-06  Bruno Haible  <bruno@clisp.org>
66785
66786         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66787         (Link): New section.
66788
66789         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66790
66791 2007-04-06  Bruno Haible  <bruno@clisp.org>
66792
66793         Assume the 'long double' type.
66794         * m4/longdouble.m4: Remove file.
66795         * config/srclist.txt: Don't mention longdouble.m4.
66796         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66797         * lib/float+.h: Likewise.
66798         * lib/frexp.c: Likewise.
66799         * lib/printf-args.h: Likewise.
66800         * lib/printf-args.c: Likewise.
66801         * lib/printf-frexp.c: Likewise.
66802         * lib/printf-parse.c: Likewise.
66803         * lib/vasnprintf.c: Likewise.
66804         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66805         * m4/intl.m4: Likewise.
66806         * m4/isnanl.m4: Likewise.
66807         * m4/printf.m4: Likewise.
66808         * m4/printf-frexpl.m4: Likewise.
66809         * m4/vasnprintf.m4: Likewise.
66810         * modules/allocsa (Files): Remove m4/longdouble.m4.
66811         * modules/gettext (Files): Likewise.
66812         * modules/relocatable-prog-wrapper (Files): Likewise.
66813         * modules/vasnprintf (Files): Likewise.
66814         * modules/isnanl (Files): Likewise.
66815         (Include): Simplify.
66816         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66817         (Include): Simplify.
66818         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66819         (Include): Simplify.
66820         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66821         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66822         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66823         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66824         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66825         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66826         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66827         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66828         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66829         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66830         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66831         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66832         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66833         * tests/test-isnanl.c: Likewise.
66834         * tests/test-snprintf-posix.h: Likewise.
66835         * tests/test-sprintf-posix.h: Likewise.
66836         * tests/test-vasnprintf-posix.c: Likewise.
66837         * tests/test-vasnprintf-posix2.c: Likewise.
66838         * tests/test-vasprintf-posix.c: Likewise.
66839
66840 2007-04-06  Bruno Haible  <bruno@clisp.org>
66841
66842         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66843         * lib/math_.h [__DECC]: Include the overridden include file through
66844         #include_next, outside the double-inclusion guard.
66845         * lib/stdio_.h [__DECC]: Likewise.
66846         * lib/stdlib_.h [__DECC]: Likewise.
66847         * lib/string_.h [__DECC]: Likewise.
66848         * lib/time_.h [__DECC]: Likewise.
66849         * lib/wchar_.h [__DECC]: Likewise.
66850         * lib/wctype_.h [__DECC]: Likewise.
66851         * lib/inttypes_.h [__DECC]: Likewise.
66852         Reported by Albert Chin <china@thewrittenword.com> in
66853         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66854
66855 2007-04-04  Eric Blake  <ebb9@byu.net>
66856
66857         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66858         1.5.x.
66859
66860 2007-04-04  Bruno Haible  <bruno@clisp.org>
66861
66862         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66863         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66864
66865 2007-04-04  Bruno Haible  <bruno@clisp.org>
66866
66867         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66868         results for "%010a" of Infinity and NaN.
66869         * tests/test-vasprintf-posix.c (test_function): Likewise.
66870         * tests/test-snprintf-posix.h (test_function): Likewise.
66871         * tests/test-sprintf-posix.h (test_function): Likewise.
66872         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66873         * tests/test-printf-posix.h (test_function): Likewise.
66874         * tests/test-fprintf-posix.out: Update.
66875         Needed for FreeBSD 6.1.
66876
66877 2007-04-04  Bruno Haible  <bruno@clisp.org>
66878
66879         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66880         directly used by the gnulib modules nor by gnulib-tool.
66881
66882 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66883
66884         * DEPENDENCIES: Give overall description of version dependency
66885         desirability.  Use more-typical names for apps.
66886         Add shell, coreutils, diffutils, grep, tar, gzip.
66887
66888 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66889
66890         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66891
66892 2007-04-04  Karl Berry  <karl@gnu.org>
66893
66894         * MODULES.html.sh (func_module): missing '.
66895
66896 2007-04-03  Bruno Haible  <bruno@clisp.org>
66897
66898         * modules/argmatch-tests (Makefile.am): New variable
66899         test_argmatch_LDADD.
66900         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66901         * modules/array-list-tests (Makefile.am): New variable
66902         test_array_list_LDADD.
66903         * modules/array-oset-tests (Makefile.am): New variable
66904         test_array_oset_LDADD.
66905         * modules/avltree-list-tests (Makefile.am): New variable
66906         test_avltree_list_LDADD.
66907         * modules/avltree-oset-tests (Makefile.am): New variable
66908         test_avltree_oset_LDADD.
66909         * modules/avltreehash-list-tests (Makefile.am): New variable
66910         test_avltreehash_list_LDADD.
66911         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66912         test_canonicalize_lgpl_LDADD.
66913         * modules/carray-list-tests (Makefile.am): New variable
66914         test_carray_list_LDADD.
66915         * modules/dirname-tests (Makefile.am): New variable
66916         test_dirname_LDADD.
66917         * modules/linked-list-tests (Makefile.am): New variable
66918         test_linked_list_LDADD.
66919         * modules/linkedhash-list-tests (Makefile.am): New variable
66920         test_linkedhash_list_LDADD.
66921         * modules/rbtree-list-tests (Makefile.am): New variable
66922         test_rbtree_list_LDADD.
66923         * modules/rbtree-oset-tests (Makefile.am): New variable
66924         test_rbtree_oset_LDADD.
66925         * modules/rbtreehash-list-tests (Makefile.am): New variable
66926         test_rbtreehash_list_LDADD.
66927         * modules/xvasprintf-tests (Makefile.am): New variable
66928         test_xvasprintf_LDADD.
66929         Reported by Eric Blake.
66930
66931 2007-04-03  Eric Blake  <ebb9@byu.net>
66932
66933         * DEPENDENCIES: Weaken m4 requirements.
66934
66935 2007-04-03  Bruno Haible  <bruno@clisp.org>
66936
66937         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66938         * modules/isnanl-tests (configure.ac): Likewise.
66939
66940 2007-04-03  Ben Pfaff  <blp@gnu.org>
66941
66942         * modules/iconv_open: Add $(srcdir)/ to source directory
66943         references in Makefile fragments that call gperf, to fix VPATH
66944         builds.
66945
66946 2007-04-03  Bruno Haible  <bruno@clisp.org>
66947
66948         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66949         * lib/ldexpl.c: Undo last change.
66950
66951 2007-04-03  Bruno Haible  <bruno@clisp.org>
66952
66953         * modules/printf-frexpl (Depends-on): Undo last change.
66954         (Files): Add m4/ldexpl.m4.
66955
66956 2007-04-03  Bruno Haible  <bruno@clisp.org>
66957
66958         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66959         * modules/isnanl (Link): New section.
66960
66961         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66962         * modules/frexp (Link): New section.
66963
66964         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66965         * modules/frexpl (Link): New section.
66966
66967         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66968         * modules/ldexpl (Link): New section.
66969
66970 2007-04-03  Bruno Haible  <bruno@clisp.org>
66971
66972         * modules/TEMPLATE-EXTENDED: New file.
66973         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66974
66975 2007-04-03  Bruno Haible  <bruno@clisp.org>
66976
66977         * DEPENDENCIES: New file.
66978         Suggested by Simon Josefsson.
66979
66980 2007-04-03  Bruno Haible  <bruno@clisp.org>
66981
66982         * doc/gnulib.texi: Escape @.
66983
66984 2007-04-03  James Youngman  <jay@gnu.org>
66985         and Paul Eggert  <eggert@cs.ucla.edu>
66986
66987         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66988         birthtime on all systems that have birthtime, not just those which
66989         use st_birthtimensec rather than st_birthtim.  Putting zero in
66990         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66991         that the birth time is not available for files on an NFS mount.
66992
66993 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66994
66995         * modules/memxor: Move back from crypto/, suggested by Bruno.
66996         * modules/crypto/hmac-sha1: Fix memxor dependency.
66997
66998         * modules/crypto/gc: Moved from ../.
66999
67000 2007-04-02  Eric Blake  <ebb9@byu.net>
67001
67002         * lib/ldexpl.c (includes): Avoid libm.
67003
67004         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67005
67006 2007-04-02  Bruno Haible  <bruno@clisp.org>
67007
67008         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67009         on IRIX.
67010
67011 2007-04-02  Bruno Haible  <bruno@clisp.org>
67012
67013         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67014         x86 or x86_64 platforms running MacOS X.
67015         Reported by Ryan Schmidt <@ryandesign.com>.
67016
67017 2007-04-02  Bruno Haible  <bruno@clisp.org>
67018
67019         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67020         i386.
67021
67022 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67023
67024         * modules/crypto/arcfour: Moved from ../.
67025         * modules/crypto/arcfour-tests: Moved from ../.
67026         * modules/crypto/arctwo: Moved from ../.
67027         * modules/crypto/arctwo-tests: Moved from ../.
67028         * modules/crypto/des: Moved from ../.
67029         * modules/crypto/des-tests: Moved from ../.
67030         * modules/crypto/gc-arcfour: Moved from ../.
67031         * modules/crypto/gc-arcfour-tests: Moved from ../.
67032         * modules/crypto/gc-arctwo: Moved from ../.
67033         * modules/crypto/gc-arctwo-tests: Moved from ../.
67034         * modules/crypto/gc-des: Moved from ../.
67035         * modules/crypto/gc-des-tests: Moved from ../.
67036         * modules/crypto/gc-hmac-md5: Moved from ../.
67037         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67038         * modules/crypto/gc-hmac-sha1: Moved from ../.
67039         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67040         * modules/crypto/gc-md2: Moved from ../.
67041         * modules/crypto/gc-md2-tests: Moved from ../.
67042         * modules/crypto/gc-md4: Moved from ../.
67043         * modules/crypto/gc-md4-tests: Moved from ../.
67044         * modules/crypto/gc-md5: Moved from ../.
67045         * modules/crypto/gc-md5-tests: Moved from ../.
67046         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67047         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67048         * modules/crypto/gc-random: Moved from ../.
67049         * modules/crypto/gc-rijndael: Moved from ../.
67050         * modules/crypto/gc-rijndael-tests: Moved from ../.
67051         * modules/crypto/gc-sha1: Moved from ../.
67052         * modules/crypto/gc-sha1-tests: Moved from ../.
67053         * modules/crypto/gc-tests: Moved from ../.
67054         * modules/crypto/hmac-md5: Moved from ../.
67055         * modules/crypto/hmac-md5-tests: Moved from ../.
67056         * modules/crypto/hmac-sha1: Moved from ../.
67057         * modules/crypto/hmac-sha1-tests: Moved from ../.
67058         * modules/crypto/md2: Moved from ../.
67059         * modules/crypto/md2-tests: Moved from ../.
67060         * modules/crypto/md4: Moved from ../.
67061         * modules/crypto/md4-tests: Moved from ../.
67062         * modules/crypto/md5: Moved from ../.
67063         * modules/crypto/md5-tests: Moved from ../.
67064         * modules/crypto/memxor: Moved from ../.
67065         * modules/crypto/rijndael: Moved from ../.
67066         * modules/crypto/rijndael-tests: Moved from ../.
67067         * modules/crypto/sha1: Moved from ../.
67068
67069 2007-03-30  James Youngman  <jay@gnu.org>
67070
67071         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67072         rename() to change the ctime of a file (because ctime is unaffected
67073         by rename on jfs2 on AIX 5.1).
67074         (main): Start by doing cleanup, in case a previous run failed leaving
67075         test files behind.
67076
67077 2007-03-31  Bruno Haible  <bruno@clisp.org>
67078
67079         Support old proprietary implementations of iconv.
67080         * modules/iconv_open: New file.
67081         * lib/iconv_.h: New file.
67082         * m4/iconv_h.m4: New file.
67083         * lib/iconv_open.c: New file.
67084         * lib/iconv_open-aix.gperf: New file.
67085         * lib/iconv_open-hpux.gperf: New file.
67086         * lib/iconv_open-irix.gperf: New file.
67087         * lib/iconv_open-osf.gperf: New file.
67088         * m4/iconv_open.m4: New file.
67089         * modules/linebreak (Depends-on): Add iconv_open.
67090         * modules/striconv (Depends-on): Likewise.
67091         * modules/striconveh (Depends-on): Likewise.
67092         * modules/unicodeio (Depends-on): Likewise.
67093         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67094         (iconv_t)(-1).
67095         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67096         conversion if cd is (iconv_t)(-1).
67097         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67098         is not possible.
67099
67100 2007-03-31  Bruno Haible  <bruno@clisp.org>
67101
67102         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67103         work on Solaris either. Protect also second use of "autodetect_jp".
67104
67105 2007-03-31  Bruno Haible  <bruno@clisp.org>
67106
67107         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67108         the function is not present.
67109
67110 2007-03-31  Bruno Haible  <bruno@clisp.org>
67111
67112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67113         the function is not present.
67114
67115 2007-03-31  Bruno Haible  <bruno@clisp.org>
67116
67117         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67118         a bug in HP-UX iconv_open().
67119
67120 2007-03-31  Bruno Haible  <bruno@clisp.org>
67121
67122         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67123         (Mathematics <math.h>): New section, add fpieee.
67124         (Input/output <stdio.h>): Add fseterr.
67125         (Mathematics <math.h>): New section, add printf-frexp.
67126         (Container data structures): Add sublist.
67127         (Core language properties): Add fpucw, inline.
67128         (Functions for greatest-width integer types <inttypes.h>): Add
67129         imaxabs, imaxdiv, inttypes.
67130         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67131         isnanl-nolibm, ldexp.
67132         (Mathematics <math.h>): New section, add printf-frexpl.
67133         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67134         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67135         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67136         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67137         (Unicode string functions): Add unistr/u*-mbtoucr.
67138         (Java): Add javacomp-script, javaexec-script.
67139         (C#): Add csharpcomp-script, csharpexec-script.
67140         (Support for building libraries and executables): Add havelib,
67141         relocatable-*.
67142         (Support for maintaining and releasing projects): Renamed from
67143         'Support for maintaining and release projects'. Add announce-gen.
67144
67145 2007-03-31  Bruno Haible  <bruno@clisp.org>
67146
67147         * README: Talk primarily about git.
67148         (git and CVS): Renamed from CVS.
67149         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67150         gnulib is available through git.
67151         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67152
67153 2007-03-30  Bruno Haible  <bruno@clisp.org>
67154
67155         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67156         * lib/poll_.h: Likewise.
67157         * lib/stat_.h: Likewise.
67158         * lib/sys_time_.h: Likewise.
67159         * lib/sysexit_.h: Likewise.
67160         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67161         * lib/stdbool_.h: Likewise.
67162         * lib/byteswap_.h: Add double-inclusion guard.
67163
67164 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67165
67166         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67167
67168 2007-03-30  Karl Berry  <karl@gnu.org>
67169
67170         * config/srclist-update: double space after USA in the license
67171         substitution, since that's how it's usually (?) written.
67172
67173 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67174
67175         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67176         reported by Bruno Haible.
67177
67178 2007-03-29  Bruno Haible  <bruno@clisp.org>
67179
67180         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67181         a bug in AIX iconv().
67182
67183 2007-03-29  Bruno Haible  <bruno@clisp.org>
67184
67185         * modules/ldexpl-tests: New file.
67186         * tests/test-ldexpl.c: New file.
67187
67188 2007-03-29  Bruno Haible  <bruno@clisp.org>
67189
67190         * lib/ldexpl.c: Include fpucw.h.
67191         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67192         multiplication.
67193         * modules/ldexpl (Depends-on): Add fpucw.
67194
67195 2007-03-29  Bruno Haible  <bruno@clisp.org>
67196
67197         * modules/ldexpl: New file.
67198         * m4/ldexpl.m4: New file.
67199         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67200         set.
67201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67202         REPLACE_LDEXPL.
67203         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67204         REPLACE_LDEXPL.
67205         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67206         gl_FUNC_LDEXPL_WORKS.
67207         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67208         * modules/mathl (Files): Remove lib/ldexpl.c.
67209         (Depends-on): Add ldexpl.
67210
67211 2007-03-29  Bruno Haible  <bruno@clisp.org>
67212
67213         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67214
67215 2007-03-29  Bruno Haible  <bruno@clisp.org>
67216
67217         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67218         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67219         and possibly also HP-UX.
67220         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67221         work on AIX, IRIX, HP-UX, OSF/1.
67222         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67223         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67224         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67225         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67226         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67227         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67228
67229 2007-03-29  Bruno Haible  <bruno@clisp.org>
67230
67231         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67232
67233 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67234
67235         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67236         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67237
67238 2007-03-29  Eric Blake  <ebb9@byu.net>
67239
67240         * lib/acl-internal.h: Remove redundant include.
67241         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67242         Cygwin when a file is locked.
67243
67244 2007-03-29  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67247         file.
67248         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67249
67250 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67253         try to remove a parent directory if the child couldn't be removed
67254         (except for the first rmdir, which could fail because the child
67255         doesn't exist).  Problem reported by Jeff Blaine in
67256         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67257
67258 2007-03-28  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/striconveh.c (utf8conv_carefully): New function.
67261         (mem_cd_iconveh_internal): Invoke it.
67262
67263 2007-03-28  Bruno Haible  <bruno@clisp.org>
67264
67265         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67266         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67267         input.
67268         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67269         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67270         unistr/u8-uctomb.
67271
67272 2007-03-28  Bruno Haible  <bruno@clisp.org>
67273
67274         * modules/unistr/u8-mbtoucr: New file.
67275         * lib/unistr/u8-mbtoucr.c: New file.
67276         * modules/unistr/u16-mbtoucr: New file.
67277         * lib/unistr/u16-mbtoucr.c: New file.
67278         * modules/unistr/u16-mbtoucr: New file.
67279         * lib/unistr/u16-mbtoucr.c: New file.
67280         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67281
67282 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67283             Bruno Haible  <bruno@clisp.org>
67284
67285         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67286         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67287         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67288
67289         * m4/stdio_h.m4: Add stubs for vasprintf too.
67290
67291         * modules/stdio: Support vasprintf in sed command.
67292
67293         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67294         vasprintf.h.  Add stdio module indicator.
67295
67296         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67297         vasprintf.h.
67298
67299         * lib/vasprintf.h: File removed.
67300
67301         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67302         * lib/vasprintf.c: Ditto.
67303         * lib/xvasprintf.c: Ditto.
67304         * tests/test-vasprintf-posix.c: Ditto.
67305         * tests/test-vasprintf.c: Ditto.
67306
67307 2007-03-27  Bruno Haible  <bruno@clisp.org>
67308
67309         Make vasnprintf multithread-safe.
67310         * lib/vasnprintf.c (decimal_point_char): New function.
67311         (VASNPRINTF): Use it.
67312         Suggested by Simon Josefsson.
67313
67314 2007-03-27  Eric Blake  <ebb9@byu.net>
67315
67316         Support sub-second birthtime on cygwin.
67317         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67318         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67319         (get_stat_birthtime): Also work with st_birthtim.
67320
67321 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67322
67323         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67324         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67325         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67326         (get_stat_birthtime_ns): Simplify compile-time tests.
67327         (get_stat_birthtime): Change the API to look like
67328         get_stat_mtime etc., except return a negative tv_nsec on error.
67329         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67330         Don't check for "spare" fields.
67331         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67332         or for struct stat.st_birthtime, as these tests aren't used.
67333         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67334
67335 2007-03-27  Bruno Haible  <bruno@clisp.org>
67336
67337         * lib/stat-time.h: Include <sys/stat.h>.
67338
67339 2007-03-27  James Youngman  <jay@gnu.org>
67340
67341         * lib/stat-time.h (get_stat_birthtime): New function for
67342           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67343         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67344           and its variants.
67345         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67346         * modules/stat-time-test: New file.
67347         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67348
67349 2007-03-26  Bruno Haible  <bruno@clisp.org>
67350
67351         Better support of signalling NaNs.
67352         * lib/atanl.c: Include isnanl.h.
67353         (atanl): Perform test for NaN at the beginning of the function and
67354         through a call to isnanl.
67355         * lib/cosl.c: Include isnanl.h.
67356         (cosl): Perform test for NaN at the beginning of the function and
67357         through a call to isnanl.
67358         * lib/ldexpl.c: Include isnanl.h.
67359         (ldexpl): Perform test for NaN through a call to isnanl.
67360         * lib/logl.c: Include isnanl.h.
67361         (logl): Perform test for NaN at the beginning of the function and
67362         through a call to isnanl.
67363         * lib/sinl.c: Include isnanl.h.
67364         (sinl): Perform test for NaN at the beginning of the function and
67365         through a call to isnanl.
67366         * lib/sqrtl.c: Include isnanl.h.
67367         (sqrtl): Perform test for NaN at the beginning of the function and
67368         through a call to isnanl.
67369         * lib/tanl.c: Include isnanl.h.
67370         (tanl): Perform test for NaN at the beginning of the function and
67371         through a call to isnanl.
67372         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67373         * modules/mathl (Depends-on): Add isnanl.
67374
67375 2007-03-26  Eric Blake  <ebb9@byu.net>
67376
67377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67378         regression in logic sense of previous patch.
67379
67380 2007-03-26  Bruno Haible  <bruno@clisp.org>
67381
67382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67383         unportable shell command "if ! ...".
67384         Reported by Ralf Wildenhues.
67385
67386 2007-03-25  Bruno Haible  <bruno@clisp.org>
67387
67388         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67389         <sysexits.h> file, and only add EX_CONFIG.
67390         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67391         absolute file name and whether it is sufficient. Substitute also
67392         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67393         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67394         ABSOLUTE_SYSEXITS_H into sysexits.h.
67395
67396 2007-03-25  Bruno Haible  <bruno@clisp.org>
67397
67398         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67399         hints is NULL.
67400
67401 2007-03-25  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67404         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67405
67406 2007-03-25  Bruno Haible  <bruno@clisp.org>
67407
67408         * lib/vasnprintf.c: Include langinfo.h.
67409         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67410         multithread-safe.
67411         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67413         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67414         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67415         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67416         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67417         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67418         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67419         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67420         Reported by Simon Josefsson.
67421
67422 2007-03-25  Bruno Haible  <bruno@clisp.org>
67423
67424         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67425         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67426         * modules/vasnprintf (Depends-on): Add stdint.
67427
67428 2007-03-25  Bruno Haible  <bruno@clisp.org>
67429
67430         * modules/fpieee: New file.
67431         * m4/fpieee.m4: New file.
67432         * modules/isnan-nolibm (Depends-on): Add fpieee.
67433         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67434         * modules/isnanl (Depends-on): Add fpieee.
67435
67436 2007-03-25  Bruno Haible  <bruno@clisp.org>
67437
67438         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67439
67440 2007-03-25  Bruno Haible  <bruno@clisp.org>
67441
67442         Avoid test failures on IRIX 6.5.
67443         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67444         (main): Use it.
67445         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67446         macros.
67447         (main): Use them.
67448
67449 2007-03-25  Bruno Haible  <bruno@clisp.org>
67450
67451         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67452         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67453         exists but doesn't work.
67454         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67455         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67457         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67458         math.h.
67459
67460 2007-03-25  Bruno Haible  <bruno@clisp.org>
67461
67462         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67463         returns inf. Needed on IRIX 6.5.
67464
67465 2007-03-25  Bruno Haible  <bruno@clisp.org>
67466
67467         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67468         (main): Use isnanl instead of x != x idiom.
67469         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67470
67471         * tests/test-frexp.c: Include isnan.h.
67472         (main): Use isnan instead of x != x idiom.
67473         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67474
67475 2007-03-25  Bruno Haible  <bruno@clisp.org>
67476
67477         * tests/test-frexp.c (NaN): New function/macro.
67478         (main): Use it instead of 0.0 / 0.0.
67479         * tests/test-isnan.c (NaN): New function/macro.
67480         (main): Use it instead of 0.0 / 0.0.
67481         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67482         (test_function): Use it instead of 0.0 / 0.0.
67483         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67484         (test_function): Use it instead of 0.0 / 0.0.
67485         * tests/test-snprintf-posix.h (NaN): New function/macro.
67486         (test_function): Use it instead of 0.0 / 0.0.
67487         * tests/test-sprintf-posix.h (NaN): New function/macro.
67488         (test_function): Use it instead of 0.0 / 0.0.
67489         * tests/test-fprintf-posix.h (NaN): New function/macro.
67490         (test_function): Use it instead of 0.0 / 0.0.
67491         * tests/test-printf-posix.h (NaN): New function/macro.
67492         (test_function): Use it instead of 0.0 / 0.0.
67493
67494         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67495
67496 2007-03-25  Bruno Haible  <bruno@clisp.org>
67497
67498         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67499
67500 2007-03-25  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/regexec.c (merge_state_with_log): Make static.
67503
67504 2007-03-25  Bruno Haible  <bruno@clisp.org>
67505
67506         * lib/trigl.c (kernel_rem_pio2): Make static.
67507
67508 2007-03-25  Bruno Haible  <bruno@clisp.org>
67509
67510         * lib/sincosl.c (sincosl_table): Make static.
67511
67512 2007-03-25  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67515         if the compiler does not support C99.
67516
67517 2007-03-25  Bruno Haible  <bruno@clisp.org>
67518
67519         * modules/time (Makefile.am): Ensure all rule action lines start with a
67520         tab.
67521
67522 2007-03-24  Bruno Haible  <bruno@clisp.org>
67523
67524         * modules/tsearch-tests: New file.
67525         * tests/test-tsearch.sh: New file.
67526         * tests/test-tsearch.c: New file, mostly copied from glibc.
67527
67528         * modules/search-tests: New file.
67529         * tests/test-search.c: New file.
67530
67531         * modules/search: New file.
67532         * lib/search_.h: New file, incorporating lib/tsearch.h.
67533         * m4/search_h.m4: New file.
67534         * lib/tsearch.h: Remove file.
67535         * lib/tsearch.c: Include search.h instead of tsearch.h.
67536         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67537         HAVE_TSEARCH.
67538         * modules/tsearch (Files): Remove lib/tsearch.h.
67539         (Depends-on): Add search.
67540         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67541         (Include): Change tsearch.h into search.h.
67542
67543 2007-03-24  Bruno Haible  <bruno@clisp.org>
67544
67545         * modules/fpucw: New file.
67546         * lib/fpucw.h: New file.
67547         * lib/frexp.c: Include fpucw.h.
67548         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67549         (FUNC): Use them.
67550         * lib/printf-frexp.c: Include fpucw.h.
67551         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67552         (FUNC): Use them.
67553         * lib/vasnprintf.c: Include fpucw.h.
67554         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67555         'long double' calculations.
67556         * tests/test-frexpl.c: Include fpucw.h.
67557         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67558         * tests/test-printf-frexpl.c: Include fpucw.h.
67559         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67560         * modules/frexpl (Depends-on): Add fpucw.
67561         * modules/printf-frexpl (Depends-on): Likewise.
67562         * modules/fprintf-posix (Depends-on): Likewise.
67563         * modules/snprintf-posix (Depends-on): Likewise.
67564         * modules/sprintf-posix (Depends-on): Likewise.
67565         * modules/vasnprintf-posix (Depends-on): Likewise.
67566         * modules/vasprintf-posix (Depends-on): Likewise.
67567         * modules/vfprintf-posix (Depends-on): Likewise.
67568         * modules/vsnprintf-posix (Depends-on): Likewise.
67569         * modules/vsprintf-posix (Depends-on): Likewise.
67570         * modules/frexpl-tests (Depends-on): Likewise.
67571         * modules/printf-frexpl-tests (Depends-on): Likewise.
67572
67573 2007-03-24  Bruno Haible  <bruno@clisp.org>
67574
67575         * lib/float+.h: New file.
67576         * lib/isnan.c: Include float+.h.
67577         (SIZE): New macro.
67578         (FUNC): Compare only SIZE bytes of the value.
67579         * lib/vasnprintf.c: Include float+.h.
67580         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67581         SIZEOF_LDBL or SIZEOF_DBL bytes.
67582         * modules/isnan-nolibm (Files): Add lib/float+.h.
67583         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67584         * modules/isnanl (Files): Add lib/float+.h.
67585         * modules/vasnprintf (Files): Add lib/float+.h.
67586
67587 2007-03-24  Bruno Haible  <bruno@clisp.org>
67588
67589         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67590         include isnanl-nolibm.h.
67591
67592 2007-03-24  Bruno Haible  <bruno@clisp.org>
67593
67594         * tests/test-read-file.c (main): Don't produce spurious output for
67595         expected situations. Make the test fail if it encountered unexpected
67596         results.
67597
67598 2007-03-24  Bruno Haible  <bruno@clisp.org>
67599
67600         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67601         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67602
67603 2007-03-24  Bruno Haible  <bruno@clisp.org>
67604
67605         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67606
67607 2007-03-24  Bruno Haible  <bruno@clisp.org>
67608
67609         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67610         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67611
67612         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67613         * modules/utf8-ucs4: Turn into a symbolic link to module
67614         unistr/u8-mbtouc.
67615
67616         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67617         utf8-ucs4-unsafe.
67618         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67619         unistr/u8-mbtouc-unsafe.
67620
67621         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67622         * modules/utf16-ucs4: Turn into a symbolic link to module
67623         unistr/u16-mbtouc.
67624
67625         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67626         utf16-ucs4-unsafe.
67627         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67628         unistr/u16-mbtouc-unsafe.
67629
67630         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67631         * modules/ucs4-utf8: Turn into a symbolic link to module
67632         unistr/u8-ubtomb.
67633
67634         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67635         * modules/ucs4-utf16: Turn into a symbolic link to module
67636         unistr/u16-ubtomb.
67637
67638 2007-03-24  Bruno Haible  <bruno@clisp.org>
67639
67640         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67641         Enable the function only if HAVE_INLINE.
67642         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67643         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67644         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67645         Enable the function only if HAVE_INLINE.
67646         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67647         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67648         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67649         Enable the function only if HAVE_INLINE.
67650         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67651         Enable the function only if HAVE_INLINE.
67652         * modules/utf8-ucs4: Update.
67653         * modules/utf8-ucs4-unsafe: Update.
67654         * modules/utf16-ucs4: Update.
67655         * modules/utf16-ucs4-unsafe: Update.
67656         * modules/ucs4-utf8: Update.
67657         * modules/ucs4-utf16: Update.
67658
67659 2007-03-24  Bruno Haible  <bruno@clisp.org>
67660
67661         * lib/utf8-ucs4.h: Remove file.
67662         * lib/utf8-ucs4-unsafe.h: Remove file.
67663         * lib/utf16-ucs4.h: Remove file.
67664         * lib/utf16-ucs4-unsafe.h: Remove file.
67665         * lib/ucs4-utf8.h: Remove file.
67666         * lib/ucs4-utf16.h: Remove file.
67667         * lib/unistr.h: Include their previous contents.
67668         * m4/utf-ucs4.m4: Remove file.
67669         * m4/ucs4-utf.m4: Remove file.
67670         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67671         (Depends-on): Add unistr/base.
67672         (configure.ac): Remove gl_UTF_UCS4.
67673         (Makefile.am): Update.
67674         (Include): Change to unistr.h.
67675         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67676         (Depends-on): Add unistr/base.
67677         (configure.ac): Remove gl_UTF_UCS4.
67678         (Makefile.am): Update.
67679         (Include): Change to unistr.h.
67680         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67681         (Depends-on): Add unistr/base.
67682         (configure.ac): Remove gl_UTF_UCS4.
67683         (Makefile.am): Update.
67684         (Include): Change to unistr.h.
67685         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67686         (Depends-on): Add unistr/base.
67687         (configure.ac): Remove gl_UTF_UCS4.
67688         (Makefile.am): Update.
67689         (Include): Change to unistr.h.
67690         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67691         (Depends-on): Add unistr/base.
67692         (configure.ac): Remove gl_UCS4_UTF.
67693         (Makefile.am): Update.
67694         (Include): Change to unistr.h.
67695         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67696         (Depends-on): Add unistr/base.
67697         (configure.ac): Remove gl_UCS4_UTF.
67698         (Makefile.am): Update.
67699         (Include): Change to unistr.h.
67700         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67701         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67702         utf8-ucs4-unsafe.h.
67703         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67704         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67705         utf16-ucs4-unsafe.h.
67706         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67707         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67708         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67709         * lib/unistr/u8-strchr.c: Likewise.
67710         * lib/unistr/u8-strrchr.c: Likewise.
67711         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67712         * lib/unistr/u16-strchr.c: Likewise.
67713         * lib/unistr/u16-strrchr.c: Likewise.
67714         * lib/striconveh.c: Update.
67715         * lib/linebreak.c: Update.
67716
67717 2007-03-24  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67720         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67721
67722 2007-03-22  Bruno Haible  <bruno@clisp.org>
67723
67724         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67725
67726 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67727
67728         * MODULES.html.sh (File system functions): New module write-any-file.
67729         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67730         * m4/write-any-file.m4: New files.
67731
67732 2007-03-23  Eric Blake  <ebb9@byu.net>
67733
67734         * gnulib-tool: Rearrange space-tab sequences, since some editors
67735         like to eat them.
67736
67737 2007-03-23  Eric Blake  <ebb9@byu.net>
67738
67739         * lib/version-etc.c (version_etc_va): Update license wording to
67740         be more concise.  Recommended by Richard Stallman.
67741
67742 2007-03-22  Bruno Haible  <bruno@clisp.org>
67743
67744         * lib/poll.c (MSG_PEEK): New fallback definition.
67745
67746 2007-03-22  Bruno Haible  <bruno@clisp.org>
67747
67748         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67749         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67750         (main): Update.
67751         Fixes a compilation error on BeOS.
67752
67753 2007-03-22  Bruno Haible  <bruno@clisp.org>
67754
67755         * modules/frexpl-tests: New file.
67756         * tests/test-frexpl.c: New file.
67757
67758         * modules/frexpl: New file.
67759         * m4/frexpl.m4: New file.
67760         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67761         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67763         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67764         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67765         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67766
67767 2007-03-22  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/frexpl.c: Share code with lib/frexp.c.
67770         * modules/mathl (Files): Add lib/frexp.c.
67771         (Depends-on): Add isnanl-nolibm.
67772
67773 2007-03-22  Bruno Haible  <bruno@clisp.org>
67774
67775         * modules/printf-frexp (Files): Add m4/frexp.m4.
67776         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67777         only if the found frexp function actually works.
67778
67779 2007-03-22  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/frexp.c: Remove older implementation that uses divisions.
67782
67783 2007-03-21  Bruno Haible  <bruno@clisp.org>
67784
67785         * modules/frexp-tests: New file.
67786         * tests/test-frexp.c: New file.
67787
67788         * modules/frexp: New file.
67789         * lib/frexp.c: New file.
67790         * m4/frexp.m4: New file.
67791         * lib/math_.h (frexp): New declaration.
67792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67793         REPLACE_FREXP.
67794         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67795
67796 2007-03-21  Bruno Haible  <bruno@clisp.org>
67797
67798         * modules/isnanl-tests: New file.
67799         * tests/test-isnanl.c: New file.
67800
67801         * modules/isnanl: New file.
67802         * lib/isnanl.h: New file.
67803         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67804         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67805         gl_FUNC_ISNANL_WORKS.
67806         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67807         New macros.
67808
67809 2007-03-21  Bruno Haible  <bruno@clisp.org>
67810
67811         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67812         lib/isnanl.h.
67813         (Include): Update.
67814         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67815         * lib/vasnprintf.c: Update.
67816         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67817         tests/test-isnanl.h, remove tests/test-isnanl.c.
67818         (Makefile.am): Update.
67819         * tests/test-isnanl-nolibm.c: New file.
67820         * tests/test-isnanl.h: New file.
67821         * tests/test-isnanl.c: Remove file.
67822
67823 2007-03-21  Jim Meyering  <jim@meyering.net>
67824
67825         When trying to open ".", treat ESTALE like EACCES.
67826         * lib/savewd.c (savewd_save): Resort to forking not just upon
67827         failure with EACCES, but also when errno is ESTALE.
67828
67829 2007-03-20  Bruno Haible  <bruno@clisp.org>
67830
67831         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67832         Needed on AIX 5.1. Reported by Matthew Woehlke.
67833
67834 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         Suggestions by Bruno Haible:
67837         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67838         our own.
67839         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67840         * modules/acl (Depends-on): Add gettext.
67841
67842 2007-03-19  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/iconvme: Remove file.
67845         * lib/iconvme.h: Remove file.
67846         * lib/iconvme.c: Remove file.
67847         * m4/iconvme.m4: Remove file.
67848
67849 2007-03-19  Bruno Haible  <bruno@clisp.org>
67850
67851         * doc/relocatable-maint.texi: Break long shell script line.
67852         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67853
67854 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67855
67856         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67857         handle file_has_acl.
67858         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67859         * lib/acl.c: Move header inclusions and related macro defns into
67860         lib/acl-internal.h.
67861         (S_ISLNK): Remove defn, since that's now done for us.
67862         (file_has_acl): Move to lib/file-has-acl.c.
67863         Call acl_trivial if available.  This is the crucial part of the fix.
67864         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67865         shared within the library.  Rewrite a bit, partly to make it compatible
67866         with the GNU coding style.
67867         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67868         Remove unnecessary double-quotes.
67869         Don't test for acl_to_text; the build will catch that.
67870         Replace acl_entries if it doesn't exist and it is needed.
67871         Check for -lsec and acl_trivial (as used on Solaris 10).
67872         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67873         lib/file-has-acl.c.
67874         (Depends-on): Add sys_stat, for S_ISLNK.
67875
67876 2007-03-19  Ben Pfaff  <blp@gnu.org>
67877
67878         * doc/gnulib.texi: Fix typos.
67879         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67880
67881 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67884         If size is zero here, buf must be zero.
67885
67886 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67887
67888         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67889         <bruno@clisp.org>.
67890
67891 2007-03-18  Bruno Haible  <bruno@clisp.org>
67892
67893         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67894         Suggested by Eric Blake.
67895
67896 2007-03-18  Ben Pfaff  <blp@gnu.org>
67897
67898         * doc/relocatable.texi: Recommend using as prefix a directory
67899         that does not exist and will never be created.  Based on
67900         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67901         and others.
67902
67903 2007-03-17  Bruno Haible  <bruno@clisp.org>
67904
67905         * lib/fchownat.c: Include lchown.h.
67906
67907 2007-03-17  Bruno Haible  <bruno@clisp.org>
67908
67909         Fix endless loop when the given allocated size was > INT_MAX.
67910         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67911         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67912         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67913         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67914         * lib/sprintf.c (sprintf): Likewise.
67915
67916 2007-03-17  Bruno Haible  <bruno@clisp.org>
67917
67918         * tests/test-argp-2.sh (func_compare): Output a context diff.
67919
67920 2007-03-17  Bruno Haible  <bruno@clisp.org>
67921
67922         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67923         locale's decimal-point character.
67924
67925 2007-03-17  Bruno Haible  <bruno@clisp.org>
67926
67927         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67928         before comparing it. Needed because on some platforms (e.g. x86) a
67929         'long double' occupies less bytes than sizeof (long double).
67930
67931 2007-03-17  Bruno Haible  <bruno@clisp.org>
67932
67933         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67934         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67935         * tests/test-getaddrinfo.c (simple): Likewise.
67936         * tests/test-read-file.c (main): Likewise.
67937
67938 2007-03-17  Bruno Haible  <bruno@clisp.org>
67939
67940         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67941
67942 2007-03-17  Bruno Haible  <bruno@clisp.org>
67943
67944         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67945         unused variable.
67946
67947 2007-03-17  Bruno Haible  <bruno@clisp.org>
67948
67949         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67950         * tests/test-c-strncasecmp.c: Likewise.
67951
67952 2007-03-17  Bruno Haible  <bruno@clisp.org>
67953
67954         * modules/stdlib (Depends-on): Add unistd.
67955         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67956         Needed for MacOS X 10.3.
67957
67958 2007-03-17  Bruno Haible  <bruno@clisp.org>
67959
67960         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67961
67962 2007-03-17  Bruno Haible  <bruno@clisp.org>
67963
67964         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67965
67966 2007-03-17  Bruno Haible  <bruno@clisp.org>
67967
67968         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67969         to reflect files copied from gnulib (with or without modifications).
67970         Suggested by Jim Meyering.
67971
67972 2007-03-17  Eric Blake  <ebb9@byu.net>
67973
67974         * NEWS: Document stdlib change from 2007-02-18.
67975
67976 2007-03-17  Jim Meyering  <jim@meyering.net>
67977
67978         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67979         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67980         someone uses a name containing shell meta-characters.
67981         Reported by Alfred M. Szmidt.
67982
67983         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67984
67985 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67986
67987         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67988         and copy gettext configuration files only if configure.ac contains
67989         a use of AM_GNU_GETTEXT_VERSION.
67990
67991 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67992
67993         * build-aux/bootstrap (gnulib_name): New variable.
67994         (gnulib_tool_options): Use it.
67995
67996 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67997
67998         * tests/test-des.c: Use new namespace.
67999
68000 2007-03-15  Bruno Haible  <bruno@clisp.org>
68001
68002         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68003         Reported by James Youngman <jay@gnu.org>.
68004
68005 2007-03-15  Bruno Haible  <bruno@clisp.org>
68006
68007         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68008         declared prototype. Needed with cc on OSF/1 5.1.
68009
68010 2007-03-15  Bruno Haible  <bruno@clisp.org>
68011
68012         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68013         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68014         (struct gl_list_implementation): Add dispose_fn argument to the
68015         'create_empty', 'create' methods.
68016         (struct gl_list_impl_base): Add field 'dispose_fn'.
68017         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68018         argument.
68019         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68020         dispose_fn argument.
68021         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68022         dispose_fn on the dropped values.
68023         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68024         dispose_fn argument.
68025         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68026         dropped values.
68027         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68028         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68029         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68030         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68031         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68032         argument.
68033         (gl_tree_list_free): Call dispose_fn on the dropped values.
68034         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68035         the dropped values.
68036         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68037         Add dispose_fn argument.
68038         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68039         Call dispose_fn on the dropped values.
68040         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68041         Add dispose_fn argument.
68042         (gl_sublist_create): Initialize the 'dispose_fn' field.
68043         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68044         * tests/test-array_list.c (main): Update.
68045         * tests/test-carray_list.c (main): Update.
68046         * tests/test-avltree_list.c (main): Update.
68047         * tests/test-rbtree_list.c (main): Update.
68048         * tests/test-avltreehash_list.c (main): Update.
68049         * tests/test-rbtreehash_list.c (main): Update.
68050         * tests/test-linked_list.c (main): Update.
68051         * tests/test-linkedhash_list.c (main): Update.
68052         * tests/test-array_oset.c (main): Update.
68053
68054 2007-03-15  Bruno Haible  <bruno@clisp.org>
68055
68056         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68057         (gl_oset_create_empty): Add dispose_fn argument.
68058         (struct gl_oset_implementation): Add dispose_fn argument to
68059         'create_empty' method.
68060         (struct gl_oset_impl_base): Add dispose_fn field.
68061         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68062         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68063         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68064         values.
68065         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68066         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68067         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68068         dropped value.
68069         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68070         dropped value.
68071         * tests/test-array_oset.c (main): Update.
68072         * tests/test-avltree_oset.c (main): Update.
68073         * tests/test-rbtree_oset.c (main): Update.
68074         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68075
68076 2007-03-13  Bruno Haible  <bruno@clisp.org>
68077
68078         * tests/test-stdbool.c (i): Update after last patch.
68079
68080 2007-03-12  Bruno Haible  <bruno@clisp.org>
68081
68082         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68083         the iswprint macro. Needed on Solaris 2.5.1.
68084
68085 2007-03-12  Bruno Haible  <bruno@clisp.org>
68086
68087         * tests/test-printf-frexp.c (main): Declare x as volatile.
68088
68089 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68090
68091         * doc/gnulib.texi (Build robot for gnulib): New section.
68092
68093 2007-03-12  Jim Meyering  <jim@meyering.net>
68094
68095         * build-aux/bootstrap: New file.
68096         * build-aux/bootstrap.conf: New file, from coreutils.
68097
68098 2007-03-11  Bruno Haible  <bruno@clisp.org>
68099
68100         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68101
68102 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68103
68104         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68105         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68106         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68107
68108 2007-03-11  Bruno Haible  <bruno@clisp.org>
68109
68110         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68111         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68112
68113 2007-03-11  Bruno Haible  <bruno@clisp.org>
68114
68115         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68116         formula. Needed for SunPRO C 5.0.
68117
68118 2007-03-11  Bruno Haible  <bruno@clisp.org>
68119
68120         * modules/long-options (Depends-on): Add getopt.
68121
68122 2007-03-11  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/modechange (Depends-on): Add stdbool.
68125
68126 2007-03-11  Bruno Haible  <bruno@clisp.org>
68127
68128         * modules/i-ring (Depends-on): Add stdbool.
68129
68130 2007-03-11  Bruno Haible  <bruno@clisp.org>
68131
68132         * modules/gc-des (Depends-on): Add stdbool.
68133
68134 2007-03-11  Bruno Haible  <bruno@clisp.org>
68135
68136         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68137
68138 2007-03-11  Bruno Haible  <bruno@clisp.org>
68139
68140         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68141
68142 2007-03-11  Bruno Haible  <bruno@clisp.org>
68143
68144         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68145
68146 2007-03-11  Bruno Haible  <bruno@clisp.org>
68147
68148         * lib/vasnprintf.c (sprintf): Undefine.
68149
68150 2007-03-11  Bruno Haible  <bruno@clisp.org>
68151
68152         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68153         initializers in SunPRO C and Compaq C compilers.
68154
68155 2007-03-11  Bruno Haible  <bruno@clisp.org>
68156
68157         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68158         decrementing code ANSI C compliant.
68159
68160 2007-03-11  Bruno Haible  <bruno@clisp.org>
68161
68162         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68163         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68164
68165 2007-03-11  Bruno Haible  <bruno@clisp.org>
68166
68167         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68168         <stdbool.h> substitute doesn't pass.
68169
68170 2007-03-11  Bruno Haible  <bruno@clisp.org>
68171
68172         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68173
68174 2007-03-11  Bruno Haible  <bruno@clisp.org>
68175
68176         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68177         script, for submission to autobuild.josefsson.org.
68178
68179 2007-03-10  Bruno Haible  <bruno@clisp.org>
68180
68181         * modules/canonicalize-lgpl-tests: New file.
68182         * tests/test-canonicalize-lgpl.sh: New file.
68183         * tests/test-canonicalize-lgpl.c: New file.
68184
68185         * modules/c-strcase-tests: New file.
68186         * tests/test-c-strcase.sh: New file.
68187         * tests/test-c-strcasecmp.c: New file.
68188         * tests/test-c-strncasecmp.c: New file.
68189
68190         * modules/atexit-tests: New file.
68191         * tests/test-atexit.sh: New file.
68192         * tests/test-atexit.c: New file.
68193
68194 2007-03-10  Bruno Haible  <bruno@clisp.org>
68195
68196         * tests/test-binary-io.sh: Use temporary filenames that are not so
68197         likely to clash with those of other tests (in a parallel make).
68198         * tests/test-binary-io.c: Likewise.
68199
68200 2007-03-10  Bruno Haible  <bruno@clisp.org>
68201
68202         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68203         fallback; use #error instead.
68204         Suggested by Simon Josefsson.
68205
68206 2007-03-10  Bruno Haible  <bruno@clisp.org>
68207
68208         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68209         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68210         first and the last.
68211
68212 2007-03-10  Bruno Haible  <bruno@clisp.org>
68213
68214         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68215
68216 2007-03-10  Bruno Haible  <bruno@clisp.org>
68217
68218         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68219         "make distcheck".
68220         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68221         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68222         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68223
68224 2007-03-10  Bruno Haible  <bruno@clisp.org>
68225
68226         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68227         variable.
68228         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68229         variable.
68230
68231 2007-03-09  Eric Blake  <ebb9@byu.net>
68232         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68233
68234         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68235         types are not being provided by gnulib.
68236         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68237         types are supported.
68238
68239 2007-03-10  Bruno Haible  <bruno@clisp.org>
68240
68241         * lib/stdio_.h (__attribute__): New macro.
68242         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68243         vsprintf): Specify __attribute__ __format__ for GCC.
68244         Suggested by Eric Blake.
68245
68246 2007-03-09  Bruno Haible  <bruno@clisp.org>
68247
68248         * modules/printf-posix-tests: New file.
68249         * tests/test-printf-posix.sh: New file.
68250         * tests/test-printf-posix.c: New file.
68251
68252         * modules/printf-posix: New file.
68253         * lib/printf.c: New file.
68254         * m4/printf-posix-rpl.m4: New file.
68255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68256         REPLACE_PRINTF.
68257         * lib/stdio_.h (printf): New declaration.
68258         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68259         ____strfmon____): New macros.
68260         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68261         REPLACE_PRINTF.
68262
68263 2007-03-09  Bruno Haible  <bruno@clisp.org>
68264
68265         * tests/test-vasnprintf-posix2.sh: New file.
68266         * tests/test-vasnprintf-posix2.c: New file.
68267         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68268         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68269         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68270
68271         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68272         a locale dependent decimal point, rather than always '.'.
68273
68274 2007-03-09  Eric Blake  <ebb9@byu.net>
68275
68276         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68277         spite of platforms like Tandem/NSK that define it to -1.
68278
68279 2007-03-08  Bruno Haible  <bruno@clisp.org>
68280
68281         * modules/vprintf-posix-tests: New file.
68282         * tests/test-vprintf-posix.sh: New file.
68283         * tests/test-vprintf-posix.c: New file.
68284         * tests/test-printf-posix.h: New file.
68285
68286         * modules/vprintf-posix: New file.
68287         * lib/vprintf.c: New file.
68288         * m4/vprintf-posix.m4: New file.
68289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68290         REPLACE_VPRINTF.
68291         * lib/stdio_.h (vprintf): New declaration.
68292         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68293         REPLACE_VPRINTF.
68294
68295 2007-03-08  Bruno Haible  <bruno@clisp.org>
68296
68297         * modules/fprintf-posix-tests: New file.
68298         * tests/test-fprintf-posix.sh: New file.
68299         * tests/test-fprintf-posix.c: New file.
68300
68301         * modules/fprintf-posix: New file.
68302         * lib/fprintf.c: New file.
68303         * m4/fprintf-posix.m4: New file.
68304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68305         REPLACE_FPRINTF.
68306         * lib/stdio_.h (fprintf): New declaration.
68307         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68308         REPLACE_FPRINTF.
68309
68310 2007-03-08  Bruno Haible  <bruno@clisp.org>
68311
68312         * modules/vfprintf-posix-tests: New file.
68313         * tests/test-vfprintf-posix.sh: New file.
68314         * tests/test-vfprintf-posix.c: New file.
68315         * tests/test-fprintf-posix.h: New file.
68316         * tests/test-fprintf-posix.out: New file.
68317
68318         * modules/vfprintf-posix: New file.
68319         * lib/vfprintf.c: New file.
68320         * m4/vfprintf-posix.m4: New file.
68321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68322         REPLACE_VFPRINTF.
68323         * lib/stdio_.h (vfprintf): New declaration.
68324         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68325         REPLACE_VFPRINTF.
68326
68327 2007-03-08  Bruno Haible  <bruno@clisp.org>
68328
68329         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68330
68331 2007-03-08  Bruno Haible  <bruno@clisp.org>
68332
68333         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68334         instead of 'expr' invocations.
68335         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68336         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68337         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68340         Suggested by Paul Eggert.
68341
68342 2007-03-08  Bruno Haible  <bruno@clisp.org>
68343
68344         * modules/fseterr-tests: New file.
68345         * tests/test-fseterr.c: New file.
68346
68347         * modules/fseterr: New file.
68348         * lib/fseterr.h: New file.
68349         * lib/fseterr.c: New file.
68350
68351 2007-03-08  Bruno Haible  <bruno@clisp.org>
68352
68353         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68354         * lib/getopt_.h: Likewise.
68355         * lib/mbswidth.h: Likewise.
68356         * lib/setenv.h: Likewise.
68357         * lib/vasnprintf.h: Likewise.
68358         * lib/vasprintf.h: Likewise.
68359         * lib/verror.h: Likewise.
68360         * lib/xsetenv.h: Likewise.
68361         * lib/xvasprintf.h: Likewise.
68362
68363 2007-03-08  Jim Meyering  <jim@meyering.net>
68364
68365         * users.txt: Add parted.
68366
68367         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68368
68369 2007-03-07  Bruno Haible  <bruno@clisp.org>
68370
68371         * m4/printf.m4: Make the shell script snippets copy&pastable.
68372
68373 2007-03-02  Bruno Haible  <bruno@clisp.org>
68374
68375         * lib/netinet_in_.h: New file.
68376         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68377         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68378         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68379         (Depends-on): Add absolute-header.
68380         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68381         into netinet/in.h.
68382
68383 2007-03-03  Bruno Haible  <bruno@clisp.org>
68384
68385         * lib/sys_select_.h: New file.
68386         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68387         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68388         * modules/sys_select (Files): Add lib/sys_select_.h.
68389         (Depends-on): Add absolute-header.
68390         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68391         into sys/select.h.
68392
68393 2007-03-02  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68396         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68397         values.
68398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68399         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68400         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68401         * modules/sys_socket (Depends-on): Add absolute-header.
68402         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68403         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68404         (Include): Remove requirement of inclusion of <sys/types.h>.
68405
68406 2007-03-02  Bruno Haible  <bruno@clisp.org>
68407
68408         * lib/byteswap_.h (bswap_32): Fix formula.
68409
68410 2007-03-06  Bruno Haible  <bruno@clisp.org>
68411
68412         * modules/sprintf-posix-tests: New file.
68413         * tests/test-sprintf-posix.c: New file.
68414
68415         * modules/sprintf-posix: New file.
68416         * lib/sprintf.c: New file.
68417         * m4/sprintf-posix.m4: New file.
68418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68419         REPLACE_SPRINTF.
68420         * lib/stdio_.h (sprintf): New declaration.
68421         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68422         REPLACE_SPRINTF.
68423
68424 2007-03-06  Bruno Haible  <bruno@clisp.org>
68425
68426         * modules/vsprintf-posix-tests: New file.
68427         * tests/test-vsprintf-posix.c: New file.
68428         * tests/test-sprintf-posix.h: New file.
68429
68430         * modules/vsprintf-posix: New file.
68431         * lib/vsprintf.c: New file.
68432         * m4/vsprintf-posix.m4: New file.
68433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68434         REPLACE_VSPRINTF.
68435         * lib/stdio_.h (vsprintf): New declaration.
68436         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68437         REPLACE_VSPRINTF.
68438
68439 2007-03-06  Bruno Haible  <bruno@clisp.org>
68440
68441         * modules/vsnprintf (Depend-on): Remove minmax.
68442
68443 2007-03-06  Bruno Haible  <bruno@clisp.org>
68444
68445         * modules/snprintf-posix-tests: New file.
68446         * tests/test-snprintf-posix.c: New file.
68447
68448         * modules/snprintf-posix: New file.
68449         * m4/snprintf-posix.m4: New file.
68450         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68451         gl_FUNC_SNPRINTF.
68452         (gl_FUNC_SNPRINTF): Invoke it.
68453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68454         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68455         is set.
68456         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68457
68458 2007-03-06  Bruno Haible  <bruno@clisp.org>
68459
68460         * modules/vsnprintf-posix-tests: New file.
68461         * tests/test-vsnprintf-posix.c: New file.
68462         * tests/test-snprintf-posix.h: New file.
68463
68464         * modules/vsnprintf-posix: New file.
68465         * m4/vsnprintf-posix.m4: New file.
68466         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68467         gl_FUNC_VSNPRINTF.
68468         (gl_FUNC_VSNPRINTF): Invoke it.
68469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68470         * lib/stdio_.h (vsnprintf): Define as a replacement if
68471         REPLACE_VSNPRINTF is set.
68472         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68473
68474 2007-03-06  Bruno Haible  <bruno@clisp.org>
68475
68476         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68477         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68478
68479 2007-03-06  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68482         (asinl): Declare also if HAVE_DECL_ASINL is set.
68483         (atanl): Declare also if HAVE_DECL_ATANL is set.
68484         (ceill): Declare also if HAVE_DECL_CEILL is set.
68485         (cosl): Declare also if HAVE_DECL_COSL is set.
68486         (expl): Declare also if HAVE_DECL_EXPL is set.
68487         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68488         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68489         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68490         (logl): Declare also if HAVE_DECL_LOGL is set.
68491         (sinl): Declare also if HAVE_DECL_SINL is set.
68492         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68493         (tanl): Declare also if HAVE_DECL_TANL is set.
68494         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68496         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68497         declaration of frexpl, ldexpl.
68498         * modules/printf-frexpl (Depends-on): Add math.
68499         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68500
68501 2007-03-05  Bruno Haible  <bruno@clisp.org>
68502
68503         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68504         frexpl and ldexpl are declared.
68505         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68506
68507 2007-03-05  Bruno Haible  <bruno@clisp.org>
68508
68509         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68510         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68511
68512 2007-03-05  Bruno Haible  <bruno@clisp.org>
68513
68514         * lib/stdio_.h: Include <stddef.h>.
68515
68516 2007-03-05  Bruno Haible  <bruno@clisp.org>
68517
68518         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68519
68520 2007-03-05  Bruno Haible  <bruno@clisp.org>
68521
68522         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68523         NetBSD 4, from Ralf Wildenhues.
68524
68525 2007-03-04  Bruno Haible  <bruno@clisp.org>
68526
68527         * lib/vasprintf.h: Update #if logic for the case when the functions
68528         exist but are overridden.
68529
68530 2007-03-04  Bruno Haible  <bruno@clisp.org>
68531
68532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68533         implementations: glibc-2.4 and MacOS X 10.3.
68534         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68535         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68536         * tests/test-vasprintf-posix.c (test_function): Likewise.
68537
68538 2007-03-04  Bruno Haible  <bruno@clisp.org>
68539
68540         * modules/vasprintf-posix-tests: New file.
68541         * tests/test-vasprintf-posix.c: New file.
68542
68543         * modules/vasprintf-posix: New file.
68544         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68545         defined.
68546         * m4/vasprintf-posix.m4: New file.
68547         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68548         gl_FUNC_VASPRINTF.
68549         (gl_FUNC_VASPRINTF): Invoke it.
68550         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68551         here.
68552         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68553
68554 2007-03-04  Bruno Haible  <bruno@clisp.org>
68555
68556         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68557         REPLACE_GETTIMEOFDAY.
68558         * modules/sys_time (Makefile.am): Likewise.
68559         * m4/sys_time_h.m4: Likewise.
68560         * m4/gettimeofday.m4: Likewise.
68561
68562 2007-03-04  Bruno Haible  <bruno@clisp.org>
68563
68564         * modules/vasnprintf-posix-tests: New file.
68565         * tests/test-vasnprintf-posix.c: New file.
68566
68567         * modules/vasnprintf-posix: New file.
68568         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68569         printf-frexpl.h.
68570         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68571         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68572         REPLACE_VASNPRINTF is defined.
68573         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68574         gl_FUNC_VASNPRINTF.
68575         (gl_FUNC_VASNPRINTF): Invoke it.
68576         * m4/vasnprintf-posix.m4: New file.
68577         * m4/printf.m4: New file.
68578
68579 2007-03-04  Bruno Haible  <bruno@clisp.org>
68580
68581         Compile progreloc.c only if --enable-relocatable is specified.
68582         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68583         if --enable-relocatable was specified.
68584         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68585         lib_SOURCES.
68586
68587 2007-03-04  Jim Meyering  <jim@meyering.net>
68588
68589         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68590         Use it consistently, rather than enumerating errno constants.
68591
68592 2007-03-04  Bruno Haible  <bruno@clisp.org>
68593
68594         * modules/xvasprintf-tests: New file.
68595         * tests/test-xvasprintf.c: New file.
68596
68597         * modules/vasprintf-tests: New file.
68598         * tests/test-vasprintf.c: New file.
68599
68600         * modules/vasnprintf-tests: New file.
68601         * tests/test-vasnprintf.c: New file.
68602
68603         * modules/vsnprintf-tests: New file.
68604         * tests/test-vsnprintf.c: New file.
68605
68606         * modules/snprintf-tests: New file.
68607         * tests/test-snprintf.c: New file.
68608
68609 2007-03-04  Bruno Haible  <bruno@clisp.org>
68610
68611         Compile relocatable.c only if --enable-relocatable is specified.
68612         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68613         gl_RELOCATABLE_LIBRARY.
68614         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68615         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68616         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68617         gl_RELOCATABLE_LIBRARY.
68618         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68619         (Makefile.am): Remove lib_SOURCES.
68620         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68621         gl_RELOCATABLE_LIBRARY.
68622         (Makefile.am): Remove lib_SOURCES.
68623         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68624         always.
68625         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68626         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68627
68628 2007-03-04  Bruno Haible  <bruno@clisp.org>
68629
68630         * modules/argmatch-tests: New file.
68631         * tests/test-argmatch.c: New file.
68632
68633         * tests/test-allocsa.c (main): Halve the number of loop runs.
68634
68635         * modules/alloca-opt-tests: New file.
68636         * tests/test-alloca-opt.c: New file.
68637
68638 2007-03-04  Jim Meyering  <jim@meyering.net>
68639
68640         Work around difference between Linux ACLs and Solaris 10 ZFS.
68641         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68642         for EINVAL.
68643
68644 2007-03-03  Bruno Haible  <bruno@clisp.org>
68645
68646         * modules/relocatable-prog (Depends-on): Add back progreloc's
68647         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68648
68649 2007-03-03  Bruno Haible  <bruno@clisp.org>
68650
68651         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68652         * modules/relocatable-lib: New file.
68653
68654 2007-03-03  Bruno Haible  <bruno@clisp.org>
68655
68656         * modules/relocatable-prog: Renamed from modules/relocatable.
68657         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68658
68659 2007-03-03  Bruno Haible  <bruno@clisp.org>
68660
68661         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68662         m4/relocatable-lib.m4.
68663         (Depends-on): Remove 'relocatable'.
68664         (configure.ac): Add gl_RELOCATABLE_NOP.
68665
68666 2007-03-03  Bruno Haible  <bruno@clisp.org>
68667
68668         * modules/relocatable-prog-wrapper: New file.
68669         * modules/relocatable (Depends-on): Add it. Remove all other
68670         dependencies except progname.
68671         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68672
68673         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68674         (gl_FUNC_STRERROR): Nop.
68675         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68676
68677         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68678         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68679
68680         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68681         (gl_FUNC_READLINK): Update.
68682
68683         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68684
68685 2007-03-03  Bruno Haible  <bruno@clisp.org>
68686
68687         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68688         * modules/xreadlink (Depends-on): Add unistd.
68689         * modules/xreadlink-with-size (Depends-on): Likewise.
68690
68691 2007-03-03  Bruno Haible  <bruno@clisp.org>
68692
68693         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68694         extracted from gt_FUNC_SETENV.
68695         (gt_FUNC_SETENV): Remove macro.
68696         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68697         remove gt_FUNC_SETENV.
68698
68699 2007-03-03  Bruno Haible  <bruno@clisp.org>
68700
68701         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68702         ENABLE_RELOCATABLE here.
68703         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68704
68705 2007-03-03  Bruno Haible  <bruno@clisp.org>
68706
68707         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68708         * tests/test-rbtreehash_list.c: Include progname.h.
68709         (main): Call set_program_name.
68710
68711         * modules/rbtree-oset-tests (Depends-on): Add progname.
68712         * tests/test-rbtree_oset.c: Include progname.h.
68713         (main): Call set_program_name.
68714
68715         * modules/rbtree-list-tests (Depends-on): Add progname.
68716         * tests/test-rbtree_list.c: Include progname.h.
68717         (main): Call set_program_name.
68718
68719         * modules/linked-list-tests (Depends-on): Add progname.
68720         * tests/test-linked_list.c: Include progname.h.
68721         (main): Call set_program_name.
68722
68723 2007-03-03  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68726         All uses of __restrict changed to _Restrict_.
68727         * lib/glob_.h (__restrict): Remove macro.
68728
68729 2007-03-02  Bruno Haible  <bruno@clisp.org>
68730
68731         * modules/gettext (configure.ac): Require gettext infrastructure
68732         from version 0.16.1.
68733
68734 2007-03-02  Bruno Haible  <bruno@clisp.org>
68735
68736         * modules/linkedhash-list-tests (Depends-on): Add progname.
68737         * tests/test-linkedhash_list.c: Include progname.h.
68738         (main): Call set_program_name.
68739
68740         * modules/carray-list-tests (Depends-on): Add progname.
68741         * tests/test-carray_list.c: Include progname.h.
68742         (main): Call set_program_name.
68743
68744         * modules/avltreehash-list-tests (Depends-on): Add progname.
68745         * tests/test-avltreehash_list.c: Include progname.h.
68746         (main): Call set_program_name.
68747
68748         * modules/avltree-oset-tests (Depends-on): Add progname.
68749         * tests/test-avltree_oset.c: Include progname.h.
68750         (main): Call set_program_name.
68751
68752         * modules/avltree-list-tests (Depends-on): Add progname.
68753         * tests/test-avltree_list.c: Include progname.h.
68754         (main): Call set_program_name.
68755
68756         * modules/array-oset-tests (Depends-on): Add progname.
68757         * tests/test-array_oset.c: Include progname.h.
68758         (main): Call set_program_name.
68759
68760         * modules/array-list-tests (Depends-on): Add progname.
68761         * tests/test-array_list.c: Include progname.h.
68762         (main): Call set_program_name.
68763
68764         * modules/argp-tests (Depends-on): Add progname.
68765         * tests/test-argp.c: Include argp.h first. Include progname.h.
68766         (main): Call set_program_name.
68767
68768 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68769
68770         * doc/gnulib-tool.texi (Initial import): Reword description of
68771         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68772         limited effect even if defined after the first system include.
68773
68774 2007-03-01  Bruno Haible  <bruno@clisp.org>
68775
68776         * build-aux/config.libpath: Update to libtool-1.5.22.
68777         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68778
68779 2007-03-01  Bruno Haible  <bruno@clisp.org>
68780
68781         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68782         foo_CFLAGS.
68783         Reported by Ralf Wildenhues.
68784
68785 2007-03-01  Bruno Haible  <bruno@clisp.org>
68786
68787         * build-aux/install-reloc: Remove object files left over by some
68788         compilers.
68789         Reported by Ralf Wildenhues.
68790
68791 2007-03-01  Bruno Haible  <bruno@clisp.org>
68792
68793         * build-aux/install-reloc: Break long lines.
68794
68795 2007-03-01  Bruno Haible  <bruno@clisp.org>
68796
68797         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68798         Reported by Ralf Wildenhues.
68799
68800 2007-03-01  Bruno Haible  <bruno@clisp.org>
68801
68802         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68803         include ordering constraints.
68804
68805 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68808         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68809         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68810         as another example.
68811         * lib/time_.h: Fix misspelling.
68812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68813         Require gl_HEADER_TIME_H_DEFAULTS.
68814         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68815         * m4/time_r.m4 (gl_TIME_R): Likewise.
68816         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68817
68818 2007-03-01  Bruno Haible  <bruno@clisp.org>
68819
68820         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68821         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68822
68823 2007-03-01  Jim Meyering  <jim@meyering.net>
68824
68825         * modules/xreadlink (Maintainer): Add my name.
68826         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68827
68828 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68829             Bruno Haible  <bruno@clisp.org>
68830
68831         * build-aux/install-reloc: Compile also c-ctype.c.
68832         * build-aux/relocatable.sh.in: New file.
68833         * doc/relocatable.texi: New file.
68834         * doc/relocatable-maint.texi: New file.
68835         * doc/gnulib.texi: Include relocatable-maint.texi.
68836         * lib/progreloc.c: Include unistd.h unconditionally.
68837         * lib/relocwrapper.c: Include unistd.h unconditionally.
68838         Include c-ctype.h.
68839         (add_dotbin): Use c_tolower.
68840         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68841         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68842         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68843         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68844         to m4/relocatable-lib.m4.
68845         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68846         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68847         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68848         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68849         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68850         * modules/relocatable: New file.
68851         * modules/relocatable-lib: New file.
68852         * modules/relocatable-script: New file.
68853
68854 2007-02-28  Bruno Haible  <bruno@clisp.org>
68855
68856         Import --enable-relocatable infrastructure.
68857         * build-aux/config.libpath: New file, from GNU gettext.
68858         * build-aux/install-reloc: New file, from GNU gettext.
68859         * build-aux/reloc-ldflags: New file, from GNU gettext.
68860         * lib/relocatable.h: New file, from GNU gettext.
68861         * lib/relocatable.c: New file, from GNU gettext.
68862         * lib/relocwrapper.c: New file, from GNU gettext.
68863         * m4/relocatable.m4: New file, from GNU gettext.
68864
68865 2007-02-28  Bruno Haible  <bruno@clisp.org>
68866
68867         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68868
68869         * modules/xreadlink: New file, from GNU gettext with modifications.
68870         * lib/xreadlink.c: New file, from GNU gettext.
68871         * lib/xreadlink.h: Add comments.
68872         (xreadlink): New declaration.
68873
68874         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68875         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68876         lib/xreadlink-with-size.c.
68877         (configure.ac): Remove gl_XREADLINK invocation.
68878         (Makefile.am): Augment lib_SOURCES.
68879         * m4/xreadlink.m4: Remove file.
68880         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68881         (xreadlink_with_size): Renamed from xreadink.
68882         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68883         * modules/canonicalize (Depends-on): Replace xreadlink with
68884         xreadlink-with-size.
68885         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68886
68887 2007-02-25  Jim Meyering  <jim@meyering.net>
68888
68889         * build-aux/announce-gen: When complaining about excess arguments,
68890         list them.
68891
68892 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         * README: Document signed integer overflow situation more
68895         accurately.
68896
68897 2007-02-25  Bruno Haible  <bruno@clisp.org>
68898
68899         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68900         'a' or 'A' conversion.
68901
68902 2007-02-25  Bruno Haible  <bruno@clisp.org>
68903
68904         * modules/filename: Renamed from modules/pathname.
68905         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68906         lib/concatpath.c with lib/concat-filename.c.
68907         (Makefile.am): Update.
68908         (Include): Replace pathname.h with filename.h.
68909         * lib/filename.h: Renamed from lib/pathname.h.
68910         (concatenated_filename): Renamed from concatenated_pathname.
68911         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68912         (concatenated_filename): Renamed from concatenated_pathname.
68913         * lib/findprog.c: Include filename.h instead of pathname.h.
68914         (find_in_path): Update.
68915         * lib/javacomp.c: Include filename.h instead of pathname.h.
68916         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68917         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68918         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68919         is_oldgcj_14_13_usable, is_javac_usable): Update.
68920         * lib/javaexec.c: Include filename.h instead of pathname.h.
68921         (execute_java_class): Update.
68922         * modules/findprog: Update.
68923         * modules/javacomp: Update.
68924         * modules/javaexec: Update.
68925         * MODULES.html.sh (File system functions): Add 'filename', remove
68926         'pathname'.
68927
68928 2007-02-25  Bruno Haible  <bruno@clisp.org>
68929
68930         * modules/printf-frexpl-tests: New file.
68931         * tests/test-printf-frexpl.c: New file.
68932
68933         * modules/printf-frexpl: New file.
68934         * lib/printf-frexpl.h: New file.
68935         * lib/printf-frexpl.c: New file.
68936         * m4/printf-frexpl.m4: New file.
68937
68938 2007-02-25  Bruno Haible  <bruno@clisp.org>
68939
68940         * modules/printf-frexp-tests: New file.
68941         * tests/test-printf-frexp.c: New file.
68942
68943         * modules/printf-frexp: New file.
68944         * lib/printf-frexp.h: New file.
68945         * lib/printf-frexp.c: New file.
68946         * m4/printf-frexp.m4: New file.
68947
68948 2007-02-25  Bruno Haible  <bruno@clisp.org>
68949
68950         Assume automake >= 1.10 for the tests.
68951         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68952         * modules/arctwo-tests: Likewise.
68953         * modules/argp-tests: Likewise.
68954         * modules/avltree-list-tests: Likewise.
68955         * modules/avltree-oset-tests: Likewise.
68956         * modules/avltreehash-list-tests: Likewise.
68957         * modules/carray-list-tests: Likewise.
68958         * modules/crc-tests: Likewise.
68959         * modules/des-tests: Likewise.
68960         * modules/gc-arcfour-tests: Likewise.
68961         * modules/gc-arctwo-tests: Likewise.
68962         * modules/gc-des-tests: Likewise.
68963         * modules/gc-hmac-md5-tests: Likewise.
68964         * modules/gc-hmac-sha1-tests: Likewise.
68965         * modules/gc-md2-tests: Likewise.
68966         * modules/gc-md4-tests: Likewise.
68967         * modules/gc-md5-tests: Likewise.
68968         * modules/gc-pbkdf2-sha1-tests: Likewise.
68969         * modules/gc-rijndael-tests: Likewise.
68970         * modules/gc-sha1-tests: Likewise.
68971         * modules/gc-tests: Likewise.
68972         * modules/getaddrinfo-tests: Likewise.
68973         * modules/hmac-md5-tests: Likewise.
68974         * modules/hmac-sha1-tests: Likewise.
68975         * modules/linked-list-tests: Likewise.
68976         * modules/linkedhash-list-tests: Likewise.
68977         * modules/lock-tests: Likewise.
68978         * modules/md2-tests: Likewise.
68979         * modules/md4-tests: Likewise.
68980         * modules/md5-tests: Likewise.
68981         * modules/rbtree-list-tests: Likewise.
68982         * modules/rbtree-oset-tests: Likewise.
68983         * modules/rbtreehash-list-tests: Likewise.
68984         * modules/read-file-tests: Likewise.
68985         * modules/rijndael-tests: Likewise.
68986         * modules/stdint-tests: Likewise.
68987         * modules/tls-tests: Likewise.
68988
68989 2007-02-24  Bruno Haible  <bruno@clisp.org>
68990
68991         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68992         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68993         function; instead check whether isnan with a double argument links.
68994         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68995         function; instead check whether isnan with a 'long double' argument
68996         links.
68997         Reported by Eric Blake <ebb9@byu.net>.
68998
68999 2007-02-24  Bruno Haible  <bruno@clisp.org>
69000
69001         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69002         defined.
69003         * lib/isnanl.c: Remove all code. Just include isnan.c.
69004         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69005
69006 2007-02-25  Jim Meyering  <jim@meyering.net>
69007
69008         Avoid conflicting types for 'unsetenv' on FreeBSD.
69009         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69010         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69011         in stdlib.h.
69012
69013 2007-02-24  Bruno Haible  <bruno@clisp.org>
69014
69015         * modules/isnanl-nolibm-tests: New file.
69016         * tests/test-isnanl.c: New file.
69017
69018         * modules/isnanl-nolibm: New file.
69019         * lib/isnanl.h: New file.
69020         * lib/isnanl.c: New file.
69021         * m4/isnanl.m4: New file.
69022
69023 2007-02-24  Bruno Haible  <bruno@clisp.org>
69024
69025         * modules/isnan-nolibm-tests: New file.
69026         * tests/test-isnan.c: New file.
69027
69028         * modules/isnan-nolibm: New file.
69029         * lib/isnan.h: New file.
69030         * lib/isnan.c: New file.
69031         * m4/isnan.m4: New file.
69032
69033 2007-02-24  Bruno Haible  <bruno@clisp.org>
69034
69035         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69036         assume that an exponent fits in 20 bits.
69037
69038 2007-02-24  Jim Meyering  <jim@meyering.net>
69039
69040         * m4/regex.m4: Update the description of the configure-time option,
69041         --without-included-regex, to state accurately what the defaults are,
69042         and perhaps to give people an idea why using this option is risky.
69043
69044 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69045
69046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69047         loops on small arguments.  This attempts to avoid the problem
69048         Bruno Haible reported for AIX 4.3.2 in
69049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69050
69051 2007-02-23  Bruno Haible  <bruno@clisp.org>
69052
69053         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69054         Needed for help2man.
69055
69056 2007-02-23  Karl Berry  <karl@gnu.org>
69057
69058         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69059         exists, foo.h should be cvs-ignored, not committed.
69060
69061 2007-02-23  Eric Blake  <ebb9@byu.net>
69062
69063         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69064         * lib/stat-time.h (includes): Likewise.
69065         * lib/utimecmp.c (includes): Likewise.
69066         * lib/utimens.h (includes): Likewise.
69067         * lib/getdate.y (includes): Also include "timespec.h" for use
69068         internal to the module.
69069         * modules/utimens (Depends-on): Revert yesterday's patch.
69070         * modules/nanosleep (Depends-on): Add missing dependency.
69071
69072 2007-02-22  Bruno Haible  <bruno@clisp.org>
69073
69074         * lib/glob.c: Don't include getlogin_r.h.
69075
69076 2007-02-22  Jim Meyering  <jim@meyering.net>
69077
69078         * modules/utimens (Depends-on): Add timespec, required for
69079         utimens.h's inclusion of timespec.h.
69080
69081 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69084         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69085         Schwab in
69086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69087         I'll try to think of a better way to fix the Solaris problem.
69088
69089         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69090         like glibc; on Solaris 10, it fails with errno == EINVAL.
69091         POSIX says the behavior is unspecified if the first argument is NULL,
69092         so play it safe and never pass NULL to the system getcwd.
69093
69094 2007-02-21  Jim Meyering  <jim@meyering.net>
69095
69096         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69097         of gettimeofday.  It would conflict with the one now always
69098         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69099         an IRIX 6.5 build failure.
69100
69101 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         Minor fixups to port to Solaris 10 with Sun C 5.8.
69104         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69105         * modules/getcwd (Depends-on): Add dirfd.
69106         * lib/putenv.c (putenv): #undef it.
69107         (rpl_putenv): New decl.
69108         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69109
69110 2007-02-20  Bruno Haible  <bruno@clisp.org>
69111
69112         * modules/stdio-tests: New file.
69113         * tests/test-stdio.c: New file.
69114
69115         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69116         (Depends-on): Add stdio.
69117         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69118         (Include): Use <stdio.h> instead of vsnprintf.h.
69119         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69120         HAVE_DECL_VSNPRINTF.
69121         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69122
69123         * modules/snprintf (Files): Remove lib/snprintf.h.
69124         (Depends-on): Add stdio.
69125         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69126         (Include): Use <stdio.h> instead of snprintf.h.
69127         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69128         HAVE_DECL_SNPRINTF.
69129         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69130         * lib/getaddrinfo.c: Likewise.
69131
69132         * modules/stdio: New file.
69133         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69134         * lib/snprintf.h: Remove file.
69135         * lib/vsnprintf.h: Remove file.
69136         * lib/.cppi-disable: Remove snprintf.h.
69137         * m4/stdio_h.m4: New file.
69138         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69139
69140 2007-02-20  Jim Meyering  <jim@meyering.net>
69141
69142         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69143         used by e.g., mingw.  From Bruno Haible.
69144
69145 2007-02-19  Bruno Haible  <bruno@clisp.org>
69146
69147         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69148         warnings.
69149         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69150
69151 2007-02-19  Bruno Haible  <bruno@clisp.org>
69152
69153         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69154         from mingw users.
69155
69156 2007-02-19  Bruno Haible  <bruno@clisp.org>
69157
69158         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69159         warnings.
69160         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69161
69162 2007-02-19  Jim Meyering  <jim@meyering.net>
69163
69164         Don't use FD after a successful "fdopendir (fd)".
69165         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69166         Reset it by calling dirfd on the just-obtained DIR*.
69167
69168         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69169         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69170
69171 2007-02-18  Bruno Haible  <bruno@clisp.org>
69172
69173         * lib/readlink.c: Include <unistd.h>.
69174         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69175         HAVE_READLINK.
69176         * modules/readlink (Depends-on): Add unistd.
69177         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69178         (Include): Add <unistd.h>.
69179
69180         * lib/getlogin_r.h: Remove file.
69181         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69182         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69183         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69184         HAVE_DECL_GETLOGIN_R.
69185         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69186         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69187         (Include): Use <unistd.h> instead of getlogin_r.h.
69188
69189         * lib/getcwd.h: Remove file.
69190         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69191         * lib/xgetcwd.c: Likewise.
69192         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69193         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69194         * modules/getcwd (Files): Remove lib/getcwd.h.
69195         (Depends-on): Add unistd.
69196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69197         (Include): Use <unistd.h> instad of getcwd.h.
69198
69199         * lib/ftruncate.c: Include <unistd.h> first.
69200         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69201         Set HAVE_FTRUNCATE.
69202         * modules/ftruncate (Depends-on): Add unistd.
69203         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69204
69205         * lib/fchdir.c: Include <unistd.h> first.
69206         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69208         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69209         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69210         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69211
69212         * lib/dup2.c: Include <unistd.h> first.
69213         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69214         HAVE_DUP2.
69215         * modules/dup2 (Depends-on): Add unistd.
69216         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69217
69218         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69219         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69220         REPLACE_CHOWN. Don't define chown as a macro here.
69221         * modules/chown (Depends-on): Add unistd.
69222         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69223
69224         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69225         Add definition for GL_LINK_WARNING.
69226         (chown, dup2): New declarations.
69227         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69228         link warning.
69229         (ftruncate): New declaration.
69230         (getcwd): New declaration, taken from old getcwd.h.
69231         (getlogin_r): New declaration, taken from old getlogin_r.h.
69232         (readlink): New declaration.
69233         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69234         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69235         (gl_PREREQ_UNISTD): Remove macro.
69236         (gl_UNISTD_MODULE_INDICATOR): New macro.
69237         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69238         many new variables. Don't set UNISTD_H.
69239         * modules/unistd (Description): Change.
69240         (Depends-on): Add link-warning.
69241         (configure.ac): Update.
69242         (Makefile.am): Create unistd.h always. Substitute many new variables
69243         into it.
69244
69245 2007-02-18  Bruno Haible  <bruno@clisp.org>
69246
69247         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69248         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69249         HAVE_GETSUBOPT.
69250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69251         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69252         * lib/getsubopt.h: Remove file.
69253         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69254         (Depends-on): Add stdlib.
69255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69256         (Includes): Use <stdlib.h> instead of getsubopt.h.
69257         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69258         Set HAVE_GETSUBOPT.
69259         * lib/getsubopt.c: Don't include getsubopt.h.
69260
69261 2007-02-18  Bruno Haible  <bruno@clisp.org>
69262
69263         * modules/fchdir (Depends-on): Add dup2.
69264
69265 2007-02-18  Bruno Haible  <bruno@clisp.org>
69266
69267         * lib/stdlib_.h: Handle glibc's special invocation convention
69268         specially.
69269
69270 2007-02-18  Bruno Haible  <bruno@clisp.org>
69271
69272         * modules/stdlib-tests: New file.
69273         * tests/test-stdlib.c: New file.
69274
69275         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69276         (Depends-on): Add stdlib.
69277         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69278         (Includes): Use <stdlib.h> instead of mkstemp.h.
69279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69280         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69281         * lib/mkstemp.c: Don't include mkstemp.h.
69282         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69283         * lib/stdlib--.h: Don't include mkstemp.h.
69284
69285         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69286         (Depends-on): Add stdlib.
69287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69288         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69289         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69290         HAVE_MKDTEMP.
69291         * lib/mkdtemp.c: Don't include mkdtemp.h.
69292         * lib/clean-temp.c: Don't include mkdtemp.h.
69293
69294         * modules/exit (Files): Remove lib/exit.h.
69295         (Depends-on): Add stdlib.
69296         (Makefile.am): Remove lib_SOURCES.
69297         (Include): Use <stdlib.h> instead of exit.h.
69298         * lib/argmatch.c: Don't include exit.h.
69299         * lib/execute.c: Likewise.
69300         * lib/pagealign_alloc.c: Likewise.
69301         * lib/pipe.c: Likewise.
69302         * lib/wait-process.c: Likewise.
69303         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69304         * lib/exitfail.c: Likewise.
69305         * lib/savewd.c: Likewise.
69306         * lib/xsetenv.c: Likewise.
69307
69308         * modules/stdlib: New file.
69309         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69310         and extra comments about mkstemp().
69311         * lib/exit.h: Remove file.
69312         * lib/mkdtemp.h: Remove file.
69313         * lib/mkstemp.h: Remove file.
69314         * m4/stdlib_h.m4: New file.
69315         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69316
69317 2007-02-18  Bruno Haible  <bruno@clisp.org>
69318
69319         * modules/math-tests: New file.
69320         * tests/test-math.c: New file.
69321
69322         * modules/math: New file.
69323         * modules/mathl (Files): Remove lib/mathl.h.
69324         (Depends-on): Add math.
69325         (Makefile.am): Don't mention mathl.h.
69326         (Include): Use <math.h> instead of mathl.h.
69327         * lib/math_.h: New file.
69328         * lib/mathl.h: Remove file.
69329         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69330         mathl.h.
69331         * lib/asinl.c: Likewise.
69332         * lib/atanl.c: Likewise.
69333         * lib/ceill.c: Likewise.
69334         * lib/cosl.c: Likewise.
69335         * lib/expl.c: Likewise.
69336         * lib/floorl.c: Likewise.
69337         * lib/frexpl.c: Likewise.
69338         * lib/ldexpl.c: Likewise.
69339         * lib/logl.c: Likewise.
69340         * lib/sincosl.c: Likewise.
69341         * lib/sinl.c: Likewise.
69342         * lib/sqrtl.c: Likewise.
69343         * lib/tanl.c: Likewise.
69344         * lib/trigl.c: Likewise.
69345         * m4/math_h.m4: New file.
69346         * MODULES.html.sh (Mathematics): Add math.
69347
69348 2007-02-17  Bruno Haible  <bruno@clisp.org>
69349
69350         * modules/wctype-tests: New file.
69351         * tests/test-wctype.c: New file.
69352
69353         * modules/wchar-tests: New file.
69354         * tests/test-wchar.c: New file.
69355
69356         * modules/unistd-tests: New file.
69357         * tests/test-unistd.c: New file.
69358
69359         * modules/time-tests: New file.
69360         * tests/test-time.c: New file.
69361
69362         * modules/sysexits-tests: New file.
69363         * tests/test-sysexits.c: New file.
69364
69365         * modules/sys_time-tests: New file.
69366         * tests/test-sys_time.c: New file.
69367
69368         * modules/sys_stat-tests: New file.
69369         * tests/test-sys_stat.c: New file.
69370
69371         * modules/sys_socket-tests: New file.
69372         * tests/test-sys_socket.c: New file.
69373
69374         * modules/sys_select-tests: New file.
69375         * tests/test-sys_select.c: New file.
69376
69377         * modules/string-tests: New file.
69378         * tests/test-string.c: New file.
69379
69380         * modules/stdbool-tests: New file.
69381         * tests/test-stdbool.c: New file.
69382
69383         * modules/netinet_in-tests: New file.
69384         * tests/test-netinet_in.c: New file.
69385
69386         * modules/inttypes-tests: New file.
69387         * tests/test-inttypes.c: New file.
69388
69389         * modules/fcntl-tests: New file.
69390         * tests/test-fcntl.c: New file.
69391
69392         * modules/byteswap-tests: New file.
69393         * tests/test-byteswap.c: New file.
69394
69395         * modules/arpa_inet-tests: New file.
69396         * tests/test-arpa_inet.c: New file.
69397
69398 2007-02-17  Bruno Haible  <bruno@clisp.org>
69399
69400         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69401         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69402         if the corresponding module is not enabled. Emit link warnings if
69403         the function is used nevertheless.
69404         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69405         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69406         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69407         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69408         * modules/inttypes (Depends-on): Add link-warning.
69409         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69410         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69411         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69412         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69413         * modules/imaxdiv (configure.ac): Likewise.
69414         * modules/strtoimax (configure.ac): Likewise.
69415         * modules/strtoumax (configure.ac): Likewise.
69416
69417 2007-02-17  Bruno Haible  <bruno@clisp.org>
69418
69419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69420         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69421         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69422         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69423
69424 2007-02-17  Bruno Haible  <bruno@clisp.org>
69425
69426         * modules/link-warning: New file.
69427         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69428         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69429         * modules/string (Depends-on): Add link-warning.
69430         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69431         string.h.
69432         * MODULES.html.sh (Support for building libraries and executables): Add
69433         link-warning.
69434
69435 2007-02-17  Bruno Haible  <bruno@clisp.org>
69436
69437         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69438         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69439         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69440         long lines.
69441
69442 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69443             Bruno Haible  <bruno@clisp.org>
69444
69445         * modules/tmpfile: New file.
69446         * lib/tmpfile.c: New file.
69447         * m4/tmpfile.m4: New file.
69448         * MODULES.html.sh (func_all_modules): New section "Input/output".
69449
69450 2007-02-15  Bruno Haible  <bruno@clisp.org>
69451
69452         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69453         (supports_delete_on_close): New function.
69454         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69455
69456 2007-02-14  Bruno Haible  <bruno@clisp.org>
69457
69458         * modules/mbspcasecmp-tests: New file.
69459         * tests/test-mbspcasecmp.sh: New file.
69460         * tests/test-mbspcasecmp.c: New file.
69461
69462         New module mbspcasecmp.
69463         * modules/mbspcasecmp: New file.
69464         * lib/mbspcasecmp.c: New file.
69465         * lib/string_.h (strncasecmp): Change warning message.
69466         (mbspcasecmp): New declaration.
69467         * m4/mbspcasecmp.m4: New file.
69468         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69469         GNULIB_MBSPCASECMP.
69470         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69471         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69472
69473 2007-02-14  Bruno Haible  <bruno@clisp.org>
69474
69475         * modules/mbsncasecmp-tests: New file.
69476         * tests/test-mbsncasecmp.sh: New file.
69477         * tests/test-mbsncasecmp.c: New file.
69478
69479         New module mbsncasecmp.
69480         * modules/mbsncasecmp: New file.
69481         * lib/mbsncasecmp.c: New file.
69482         * lib/string_.h (mbsncasecmp): New declaration.
69483         * m4/mbsncasecmp.m4: New file.
69484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69485         GNULIB_MBSNCASECMP.
69486         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69487         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69488
69489 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69490
69491         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69492         Verify that it doesn't overlap with our flags.
69493         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69494         do not have the desired effect in multibyte locales; instead, use
69495         mbscasecmp.
69496         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69497         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69498         we don't require GNU fnmatch ourselves (if our users require it, they
69499         should do so explicitly).
69500
69501         Fix regex code so it doesn't rely on strcasecmp.
69502         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69503         Otherwise, include gnulib's langinfo.h.
69504         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69505         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69506         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69507         * modules/regex (FILES): Remove m4/codeset.m4.
69508         (Depends-on): Add localcharset.  Remove strcase.
69509
69510 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69511
69512         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69513         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69514
69515 2007-02-13  Bruno Haible  <bruno@clisp.org>
69516
69517         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69518         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69519
69520 2007-02-12  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69523         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69524         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69525         time warning rather than a link error.
69526
69527 2007-02-12  Bruno Haible  <bruno@clisp.org>
69528
69529         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69530         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69532
69533 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69536         args, not 2.
69537
69538 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         New module 'time', so that apps can include <time.h> as per
69541         POSIX and GNU instead of separate include files like time_r.h
69542         and timegm.h.  This implementation tries out a simpler approach
69543         for replacing decls in standard include files (as compared to
69544         the string module), somewhat as an experiment.
69545
69546         * config/srclist.txt: Comment out mktime.c for now.
69547         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69548         since it doesn't apply any more.  Use generic wording instead.
69549         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69550         'time'.
69551         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69552         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69553         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69554         Don't include <sys/types.h>; no longer needed since we assume C89.
69555         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69556         * lib/strftime.c: Likewise.
69557         * lib/time_r.c: Likewise.
69558         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69559         * lib/nanosleep.c: Include <time.h> first, to check interface.
69560         * lib/strptime.c: Likewise.
69561         * lib/time_r.c: Likewise.
69562         * lib/timegm.c: Likewise.
69563         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69564         needed.
69565         * lib/timegm.c: Don't include timegm.h; no longer needed.
69566         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69567         time.h now handles any problems in that area.
69568         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69569         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69570         that time.h defines struct timespec.
69571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69572         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69573         handles that.
69574         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69575         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69576         needed.  Set REPLACE_LOCALTIME.
69577         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69578         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69579         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69580         nanosleep; time_h.m4 now does that.  Don't require
69581         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69582         module handles this now.
69583         * modules/getdate (Depends-on): Remove timespec.  Add time.
69584         * modules/nanosleep (Depends-on): Likewise.
69585         * modules/stat-time (Depends-on): Likewise.
69586         * modules/nanosleep (Include): Include time.h, not timespec.h.
69587         * modules/strptime (Files): Remove lib/strptime.h.
69588         (Depends-on): Add extensions, time.
69589         (Include): Include time.h, not strptime.h.
69590         * modules/time_r (Files): Remove lib/time_r.h.
69591         (Depends-on): Add time.
69592         (Include): Include time.h, not time_r.h.
69593         * modules/timegm: Likewise.
69594         * modules/timespec (Description): Now does timespec-related decls
69595         of our own, instead of struct timespec itself.
69596         (Depends-on): Add time; remove extensions.
69597         (Maintainer): Add self.
69598         * modules/utimecmp (Depends-on): Add time; remove timespec.
69599         * modules/utimens (Depends-on): Likewise.
69600         * modules/xnanosleep (Depends-on): Likewise.
69601
69602 2007-02-11  Bruno Haible  <bruno@clisp.org>
69603
69604         * lib/c-strstr.c: Include allocsa.h.
69605         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69606         * lib/c-strcasestr.c: Include allocsa.h.
69607         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69608         * lib/strcasestr.c: Include allocsa.h.
69609         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69610         * lib/mbsstr.c: Include allocsa.h.
69611         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69612         allocsa/freesa instead of malloc/free.
69613         * lib/mbscasestr.c: Include allocsa.h.
69614         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69615         allocsa/freesa instead of malloc/free.
69616         * modules/c-strstr (Depends-on): Add allocsa.
69617         * modules/c-strcasestr (Depends-on): Likewise.
69618         * modules/strcasestr (Depends-on): Likewise.
69619         * modules/mbsstr (Depends-on): Likewise.
69620         * modules/mbscasestr (Depends-on): Likewise.
69621
69622 2007-02-11  Bruno Haible  <bruno@clisp.org>
69623
69624         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69625
69626         * modules/mbsspn-tests: New file.
69627         * tests/test-mbsspn.sh: New file.
69628         * tests/test-mbsspn.c: New file.
69629
69630 2007-02-11  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69633
69634         * modules/mbspbrk-tests: New file.
69635         * tests/test-mbspbrk.sh: New file.
69636         * tests/test-mbspbrk.c: New file.
69637
69638 2007-02-11  Bruno Haible  <bruno@clisp.org>
69639
69640         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69641         unneeded cast.
69642
69643         * modules/mbscspn-tests: New file.
69644         * tests/test-mbscspn.sh: New file.
69645         * tests/test-mbscspn.c: New file.
69646
69647 2007-02-11  Bruno Haible  <bruno@clisp.org>
69648
69649         * modules/mbscasecmp-tests: New file.
69650         * tests/test-mbscasecmp.sh: New file.
69651         * tests/test-mbscasecmp.c: New file.
69652
69653 2007-02-11  Bruno Haible  <bruno@clisp.org>
69654
69655         Ensure O(n) worst-case complexity of mbscasestr.
69656         * lib/mbscasestr.c: Include stdbool.h.
69657         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69658         functions.
69659         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69660         the bookkeeping indicates that it's worth it.
69661         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69662
69663         * modules/mbscasestr-tests: New file.
69664         * tests/test-mbscasestr1.c: New file.
69665         * tests/test-mbscasestr2.sh: New file.
69666         * tests/test-mbscasestr2.c: New file.
69667         * tests/test-mbscasestr3.sh: New file.
69668         * tests/test-mbscasestr3.c: New file.
69669         * tests/test-mbscasestr4.sh: New file.
69670         * tests/test-mbscasestr4.c: New file.
69671         * m4/locale-tr.m4: New file.
69672
69673 2007-02-11  Bruno Haible  <bruno@clisp.org>
69674
69675         Ensure O(n) worst-case complexity of mbsstr.
69676         * lib/mbsstr.c: Include stdbool.h.
69677         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69678         functions.
69679         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69680         bookkeeping indicates that it's worth it.
69681         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69682
69683         * modules/mbsstr-tests: New file.
69684         * tests/test-mbsstr1.c: New file.
69685         * tests/test-mbsstr2.sh: New file.
69686         * tests/test-mbsstr2.c: New file.
69687         * tests/test-mbsstr3.sh: New file.
69688         * tests/test-mbsstr3.c: New file.
69689         * m4/locale-fr.m4: New file.
69690
69691 2007-02-11  Bruno Haible  <bruno@clisp.org>
69692
69693         * lib/mbsrchr.c (mbsrchr): Fix bug.
69694
69695         * modules/mbsrchr-tests: New file.
69696         * tests/test-mbsrchr.sh: New file.
69697         * tests/test-mbsrchr.c: New file.
69698
69699 2007-02-11  Bruno Haible  <bruno@clisp.org>
69700
69701         * lib/mbschr.c (mbschr): Fix bug.
69702
69703         * modules/mbschr-tests: New file.
69704         * tests/test-mbschr.sh: New file.
69705         * tests/test-mbschr.c: New file.
69706         * m4/locale-zh.m4: New file.
69707
69708 2007-02-11  Bruno Haible  <bruno@clisp.org>
69709
69710         Support for copying multibyte string iterators.
69711         * lib/mbiter.h: Include <string.h>.
69712         (mbiter_multi_copy): New function.
69713         (mbi_copy): New macro.
69714         * lib/mbuiter.h: Include <string.h>.
69715         (mbuiter_multi_copy): New function.
69716         (mbui_copy): New macro.
69717
69718 2007-02-11  Bruno Haible  <bruno@clisp.org>
69719
69720         New module mbslen.
69721         * modules/mbslen: New file.
69722         * lib/mbslen.c: New file.
69723         * lib/string_.h (mbslen): New declaration.
69724         * m4/mbslen.m4: New file.
69725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69726         GNULIB_MBSLEN.
69727         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69728         * MODULES.html.sh (Internationalization functions): Add mbslen.
69729
69730 2007-02-11  Bruno Haible  <bruno@clisp.org>
69731
69732         Ensure O(n) worst-case complexity of strcasestr substitute.
69733         * lib/strcasestr.c: Include stdbool.h.
69734         (knuth_morris_pratt): New function.
69735         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69736         bookkeeping indicates that it's worth it.
69737         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69738
69739         * modules/strcasestr-tests: New file.
69740         * tests/test-strcasestr.c: New file.
69741
69742 2007-02-11  Bruno Haible  <bruno@clisp.org>
69743
69744         Ensure O(n) worst-case complexity of c_strcasestr.
69745         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69746         (knuth_morris_pratt): New function.
69747         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69748         the bookkeeping indicates that it's worth it.
69749         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69750
69751         * modules/c-strcasestr-tests: New file.
69752         * tests/test-c-strcasestr.c: New file.
69753
69754 2007-02-11  Bruno Haible  <bruno@clisp.org>
69755
69756         Ensure O(n) worst-case complexity of c_strstr.
69757         * lib/c-strstr.c: Include stdbool.h, string.h.
69758         (knuth_morris_pratt): New function.
69759         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69760         bookkeeping indicates that it's worth it.
69761         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69762
69763         * lib/c-strstr.c: Complete rewrite for maintainability.
69764
69765         * modules/c-strstr-tests: New file.
69766         * tests/test-c-strstr.c: New file.
69767
69768 2007-02-11  Bruno Haible  <bruno@clisp.org>
69769
69770         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69771         5.2.1 and earlier, whereby \055 was treated just like the range
69772         delimiter '-'.
69773         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69774
69775 2007-02-08  Bruno Haible  <bruno@clisp.org>
69776
69777         * modules/regex (Depends-on): Add stdbool.
69778         Reported by Dalibor Topic <robilad@kaffe.org>.
69779
69780 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69783         Prefer returning from main to exiting from it.
69784         Remove unnecessary parens after sizeof.
69785
69786 2007-02-05  Bruno Haible  <bruno@clisp.org>
69787
69788         New module mbssep.
69789         * modules/mbssep: New file.
69790         * lib/mbssep.c: New file.
69791         * lib/string_.h (strsep): Add a conditional link warning.
69792         (mbssep): New declaration.
69793         * m4/mbssep.m4: New file.
69794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69795         GNULIB_MBSSEP.
69796         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69797         * MODULES.html.sh (Internationalization functions): Add mbssep.
69798
69799 2007-02-05  Bruno Haible  <bruno@clisp.org>
69800
69801         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69802         Optimize search in case of 1 delimiter.
69803
69804 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69805
69806         * lib/acl.h: Include sys/types.h before sys/acl.h.
69807
69808 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69809
69810         Merge upstream fix for glibc bugzilla #3957:
69811
69812         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69813
69814         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69815         bit for RE_HAT_LISTS_NOT_NEWLINE.
69816         (build_charclass_op): Remove bogus comment.
69817
69818 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69819
69820         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69821
69822 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69825         * lib/memmem.c [!defined _LIBC]: Include config.h.
69826
69827 2007-02-04  Bruno Haible  <bruno@clisp.org>
69828
69829         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69830         warning message.
69831
69832 2007-02-04  Bruno Haible  <bruno@clisp.org>
69833
69834         New module mbstok_r.
69835         * modules/mbstok_r: New file.
69836         * lib/mbstok_r.c: New file.
69837         * lib/string_.h (strtok_r): Change argument names to match the
69838         comments. Add a conditional link warning.
69839         (mbstok_r): New declaration.
69840         * m4/mbstok_r.m4: New file.
69841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69842         GNULIB_MBSTOK_R.
69843         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69844         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69845
69846 2007-02-04  Bruno Haible  <bruno@clisp.org>
69847
69848         New module mbsspn.
69849         * modules/mbsspn: New file.
69850         * lib/mbsspn.c: New file.
69851         * lib/string_.h (strspn): Add a conditional link warning.
69852         (mbsspn): New declaration.
69853         * m4/mbsspn.m4: New file.
69854         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69855         GNULIB_MBSSPN.
69856         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69857         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69858
69859 2007-02-04  Bruno Haible  <bruno@clisp.org>
69860
69861         New module mbspbrk.
69862         * modules/mbspbrk: New file.
69863         * lib/mbspbrk.c: New file.
69864         * lib/string_.h (strpbrk): Add a conditional link warning.
69865         (mbspbrk): New declaration.
69866         * m4/mbspbrk.m4: New file.
69867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69868         GNULIB_MBSPBRK.
69869         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69870         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69871
69872 2007-02-04  Bruno Haible  <bruno@clisp.org>
69873
69874         New module mbscspn.
69875         * modules/mbscspn: New file.
69876         * lib/mbscspn.c: New file.
69877         * lib/string_.h (strcspn): Add a conditional link warning.
69878         (mbscspn): New declaration.
69879         * m4/mbscspn.m4: New file.
69880         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69881         GNULIB_MBSCSPN.
69882         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69883         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69884
69885 2007-02-04  Bruno Haible  <bruno@clisp.org>
69886
69887         New module mbscasestr, reduced goal of strcasestr.
69888         * modules/mbscasestr: New file.
69889         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69890         (mbscasestr): Renamed from strcasestr.
69891         * lib/strcasestr.c: Don't include mbuiter.h.
69892         (strcasestr): Remove support for multibyte locales.
69893         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69894         Change the conditional link warning.
69895         (mbscasestr): New declaration.
69896         * m4/mbscasestr.m4: New file.
69897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69898         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69899         REPLACE_STRCASESTR.
69900         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69902         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69903         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69904         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69905         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69906         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69907         (Depends-on): Remove mbuiter.
69908         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69909
69910 2007-02-04  Bruno Haible  <bruno@clisp.org>
69911
69912         Simplify handling of strncasecmp.
69913         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69914         the conditional link warning.
69915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69916         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69917         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69918         * modules/strcase (configure.ac): Don't invoke
69919         gl_STRING_MODULE_INDICATOR.
69920         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69921
69922 2007-02-04  Bruno Haible  <bruno@clisp.org>
69923
69924         New module mbscasecmp, reduced goal of strcasecmp.
69925         * modules/mbscasecmp: New file.
69926         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69927         (mbscasecmp): Renamed from strcasecmp.
69928         * lib/strcasecmp.c: Don't include mbuiter.h.
69929         (strcasecmp): Remove support for multibyte locales.
69930         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69931         Change the conditional link warning.
69932         (mbscasecmp): New declaration.
69933         * m4/mbscasecmp.m4: New file.
69934         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69935         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69936         REPLACE_STRCASECMP.
69937         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69939         GNULIB_MBSCASECMP.
69940         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69941         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69942         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69943         (Depends-on): Remove mbuiter.
69944         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69945
69946 2007-02-04  Bruno Haible  <bruno@clisp.org>
69947
69948         New module mbsstr. Remove module strstr.
69949         * modules/mbsstr: New file.
69950         * modules/strstr: Remove file.
69951         * lib/mbsstr.c: Renamed from lib/strstr.c.
69952         (mbsstr): Renamed from strstr.
69953         * lib/string_.h (strstr): Remove declaration. Change the conditional
69954         link warning.
69955         (mbsstr): New declaration.
69956         * m4/mbsstr.m4: New file.
69957         * m4/strstr.m4: Remove file.
69958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69959         REPLACE_STRSTR.
69960         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69961         Don't initialize GNULIB_STRSTR.
69962         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69963         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69964         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69965         (Support for systems lacking ANSI C 89): Remove strstr.
69966
69967 2007-02-04  Bruno Haible  <bruno@clisp.org>
69968
69969         New module mbsrchr.
69970         * modules/mbsrchr: New file.
69971         * lib/mbsrchr.c: New file.
69972         * lib/string_.h (strrchr): Add a conditional link warning.
69973         (mbsrchr): New declaration.
69974         * m4/mbsrchr.m4: New file.
69975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69976         GNULIB_MBSRCHR.
69977         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69978         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69979
69980 2007-02-04  Bruno Haible  <bruno@clisp.org>
69981
69982         New module mbschr.
69983         * modules/mbschr: New file.
69984         * lib/mbschr.c: New file.
69985         * lib/string_.h (strchr): Add a conditional link warning.
69986         (mbschr): New declaration.
69987         * m4/mbschr.m4: New file.
69988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69989         GNULIB_MBSCHR.
69990         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69991         * MODULES.html.sh (Internationalization functions): Add mbschr.
69992
69993 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69996
69997         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69998
69999 2007-02-04  Bruno Haible  <bruno@clisp.org>
70000
70001         New module description section 'configure.ac-early'.
70002         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70003         (func_get_autoconf_early_snippet): New function.
70004         (func_import, func_create_testdir): Use it. Remove special cases for
70005         modules 'extensions' and 'lock'.
70006         * modules/extensions (configure.ac-early): Require
70007         gl_USE_SYSTEM_EXTENSIONS.
70008         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70009
70010 2007-02-04  Bruno Haible  <bruno@clisp.org>
70011
70012         Make use of gcj-4.3's -fsource and -ftarget option.
70013         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70014         and if so try the options -fsource and -ftarget.
70015         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70016         source_version, ftarget_option, target_version arguments.
70017         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70018         (is_envjavac_oldgcj_14_14_usable): Renamed from
70019         is_envjavac_gcj_14_14_usable.
70020         (is_envjavac_oldgcj_14_13_usable): Renamed from
70021         is_envjavac_gcj_14_13_usable.
70022         (is_gcj_present): Update.
70023         (is_gcj_43, is_gcj43_usable): New functions.
70024         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70025         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70026         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70027         try the options -fsource and -ftarget.
70028
70029 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70032         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70033         larger value.
70034
70035 2007-02-03  Jim Meyering  <jim@meyering.net>
70036
70037         Give tools a better chance to allocate space for very large buffers.
70038         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70039
70040         Make pwd and readlink work also when run with an unreadable parent dir
70041         on systems with openat support.
70042         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70043         provided getcwd function, even when we have openat support.
70044         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70045
70046 2007-02-02  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70049         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70050         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70051         portability problems if one of these functions is only used on specific
70052         platforms.
70053         Reported by Paul Eggert.
70054
70055 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70058         is causing more trouble than it's curing.
70059         * lib/regex_internal.h (__mempcpy): Remove.
70060         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70061         (and make the code a tad smaller to boot).
70062         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70063
70064 2007-02-02  Jim Meyering  <jim@meyering.net>
70065
70066         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70067         section, not in the Makefile.am: one.
70068
70069 2007-02-02  Eric Blake  <ebb9@byu.net>
70070
70071         * lib/strchrnul.c: Always include config.h first.
70072
70073         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70074         gnulib strstr is not necessary here.
70075
70076 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70077
70078         * m4/socklen.m4: Fix typo.
70079
70080 2007-02-02  Eric Blake  <ebb9@byu.net>
70081
70082         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70083         * modules/netinet_in (Makefile.am): Likewise.
70084
70085 2007-02-01  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/string_.h (GL_LINK_WARNING): New macro.
70088         (strcasecmp, strstr, strcasestr): If provided by the system,
70089         conditionally define as a macro that leads to a warning instead of to
70090         an error.
70091         (strncasecmp): Conditionally define as a macro that leads to a warning.
70092
70093 2007-02-01  Karl Berry  <karl@gnu.org>
70094
70095         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70096
70097 2007-02-01  Bruno Haible  <bruno@clisp.org>
70098
70099         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70100         renamings.
70101
70102 2007-02-01  Eric Blake  <ebb9@byu.net>
70103
70104         * modules/regex (Depends-on): Revert dependence on mempcpy.
70105         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70106         module's definition of mempcpy.
70107         Reported by Paul Eggert.
70108
70109 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70110
70111         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70112         the symbol XYZ before redefining it.  This fixes a problem with
70113         programs that don't use XYZ, when compiled on systems that define
70114         XYZ to something else.
70115
70116 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70117
70118         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70119         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70120         writeable to group or other and (2) is intended to have a special
70121         mode bit that is set or cleared.  In such a case, the directory
70122         should be neither group- nor other-writeable until the special
70123         mode bits are right.
70124
70125 2007-01-31  Eric Blake  <ebb9@byu.net>
70126
70127         * modules/mountlist (Depends-on): Add strstr.
70128
70129         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70130         bug.
70131         * modules/string (Makefile.am): Remove redundant replacement.
70132         * modules/regex (Depends-on): Add mempcpy.
70133
70134 2007-01-31  Bruno Haible  <bruno@clisp.org>
70135
70136         New module description field 'Link'.
70137         * gnulib-tool (func_usage): Document --extract-link-directive.
70138         (sed_extract_prog): Recognize 'Link' directive.
70139         (func_get_link_directive): New function.
70140         (func_import): Show summary of link directives.
70141         Handle --extract-link-directive option.
70142         * modules/acl (Link): New section.
70143         * modules/clock-time (Link): New section.
70144         * modules/euidaccess (Link): New section.
70145         * modules/gettext (Link): New section.
70146         * modules/iconv (Link): New section.
70147         * modules/lock (Link): New section.
70148         * modules/nanosleep (Link): New section.
70149         * modules/readline (Link): New section.
70150
70151 2007-01-27  Bruno Haible  <bruno@clisp.org>
70152
70153         Enforce the use of gnulib modules for unportable <string.h> functions.
70154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70155         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70156         (gl_HEADER_STRING_H_BODY): Require it.
70157         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70158         the symbol XYZ to one that gives a link error.
70159         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70160         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70161         * modules/mempcpy (configure.ac): Likewise.
70162         * modules/memrchr (configure.ac): Likewise.
70163         * modules/stpcpy (configure.ac): Likewise.
70164         * modules/stpncpy (configure.ac): Likewise.
70165         * modules/strcase (configure.ac): Likewise.
70166         * modules/strcasestr (configure.ac): Likewise.
70167         * modules/strchrnul (configure.ac): Likewise.
70168         * modules/strdup (configure.ac): Likewise.
70169         * modules/strndup (configure.ac): Likewise.
70170         * modules/strnlen (configure.ac): Likewise.
70171         * modules/strpbrk (configure.ac): Likewise.
70172         * modules/strsep (configure.ac): Likewise.
70173         * modules/strstr (configure.ac): Likewise.
70174         * modules/strtok_r (configure.ac): Likewise.
70175
70176 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70177
70178         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70179
70180 2007-01-30  Jim Meyering  <jim@meyering.net>
70181
70182         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70183
70184 2007-01-29  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70187         * lib/execute.c: Likewise.
70188         * lib/pipe.c: Likewise.
70189         * lib/printf-args.h: Likewise.
70190         * lib/printf-args.c: Likewise.
70191         * lib/printf-parse.c: Likewise.
70192         * lib/vasnprintf.c: Likewise.
70193
70194 2007-01-29  Eric Blake  <ebb9@byu.net>
70195
70196         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70197         declaration.
70198
70199 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70200
70201         * lib/strptime.h (strptime): Use 'restrict' for args where
70202         POSIX requires this.
70203         * lib/strptime.c (strptime): Likewise.
70204         Change license notice from LGPL to GPL, since gnulib-tool will
70205         change this as needed.
70206         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70207         defined.
70208         Include "strptime.h" first, to check interface.
70209         Do not #undef _LIBC and _NL_CURRENT.
70210         Do not include <stdlib.h>; no longer needed.
70211         Include "time_r.h" and declare ptime_locale_status
70212         only if _LIBC is not defined.
70213         (__P): Remove unused macro.
70214         (match_string): Bring back glibc version, but use it only if _LIBC
70215         is defined.
70216         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70217         Remove unnecessary assertion and abort() call.
70218         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70219         * m4/strptime.m4: Fix serial number comment.
70220         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70221         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70222         (Depends-on): Add time_r.
70223
70224 2007-01-29  Bruno Haible  <bruno@clisp.org>
70225
70226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70227         strptime.
70228         * modules/strptime (Depends-on): Add stdbool.
70229         * lib/strptime.h: Include <time.h> always. Add comments.
70230
70231 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70232
70233         * modules/strptime: New file.
70234         * lib/strptime.h: New file.
70235         * lib/strptime.c: New file.
70236         * m4/strptime.m4: New file.
70237
70238 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * MODULES.html.sh: New module mpsort.
70241         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70242
70243         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70244         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70245         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70246         All uses changed.
70247         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70248         All uses changed.
70249         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70250         to _Restrict_.
70251         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70252         the parameter matches the prototype.
70253
70254 2007-01-28  Jim Meyering  <jim@meyering.net>
70255
70256         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70257         sys/time.h here, reverting that part of the previous patch:
70258         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70259
70260 2007-01-28  Bruno Haible  <bruno@clisp.org>
70261
70262         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70263         value of $(SYS_TIME_H).
70264         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70265         remove it conditionally, too. [added by Jim Meyering]
70266         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70267         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70268         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70269         GETTIMEOFDAY_REPLACEMENT to 1.
70270
70271 2007-01-28  Bruno Haible  <bruno@clisp.org>
70272
70273         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70274         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70276         Set UNISTD_H instead of UNISTD_H2.
70277         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70278
70279 2007-01-28  Bruno Haible  <bruno@clisp.org>
70280
70281         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70282         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70283
70284 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70285
70286         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70287         (func_create_testdir): Ensure C locale for `grep' and `tr'
70288         character ranges.
70289         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70290         ACLOCAL_AMFLAGS parsing state machine.
70291
70292 2007-01-27  Bruno Haible  <bruno@clisp.org>
70293
70294         * modules/unistr/base: Update.
70295
70296 2007-01-27  Bruno Haible  <bruno@clisp.org>
70297
70298         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70299         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70300         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70301         modules/unistr/u32-mbtouc.
70302         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70303         * lib/unistr.h: Update.
70304         * lib/linebreak.c: Update.
70305         * modules/unistr/u32-mbtouc: Renamed from
70306         modules/unistr/u32-mbtouc-safe.
70307         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70308         * lib/unistr.h: Update.
70309         * lib/unistr/u32-to-u8.c: Update.
70310         * lib/unistr/u32-to-u16.c: Update.
70311
70312 2007-01-27  Bruno Haible  <bruno@clisp.org>
70313
70314         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70315         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70316         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70317         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70318         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70319         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70320         modules/unistr/u16-mbtouc.
70321         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70322         * lib/unistr.h: Update.
70323         * lib/linebreak.c: Update.
70324         * modules/linebreak: Update.
70325         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70326         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70327         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70328         * modules/unistr/u16-mbtouc: Renamed from
70329         modules/unistr/u16-mbtouc-safe.
70330         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70331         * lib/unistr.h: Update.
70332         * lib/unistr/u16-to-u8.c: Update.
70333         * modules/unistr/u16-to-u8: Update.
70334         * lib/unistr/u16-to-u32.c: Update.
70335         * modules/unistr/u16-to-u32: Update.
70336
70337 2007-01-27  Bruno Haible  <bruno@clisp.org>
70338
70339         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70340         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70341         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70342         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70343         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70344         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70345         modules/unistr/u8-mbtouc.
70346         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70347         * lib/unistr.h: Update.
70348         * lib/striconveh.c: Update.
70349         * modules/striconveh: Update.
70350         * lib/linebreak.c: Update.
70351         * modules/linebreak: Update.
70352         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70353         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70354         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70355         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70356         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70357         * lib/unistr.h: Update.
70358         * lib/striconveh.c: Update.
70359         * modules/striconveh: Update.
70360         * lib/unistr/u8-to-u16.c: Update.
70361         * modules/unistr/u8-to-u16: Update.
70362         * lib/unistr/u8-to-u32.c: Update.
70363         * modules/unistr/u8-to-u32: Update.
70364
70365 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70366
70367         Sync from Libtool.
70368         * lib/argz.c: Do not include strings.h nor memory.h, include
70369         string.h unconditionally.  Patch by Simon Josefsson.
70370
70371 2007-01-27  Bruno Haible  <bruno@clisp.org>
70372
70373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70374         from gl_HEADER_STRING_H_BODY.
70375         (gl_HEADER_STRING_H_BODY): Require it.
70376         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70377         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70378         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70379         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70380         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70381         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70383         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70384         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70385         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70386         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70387         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70388         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70389         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70390         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70391
70392 2007-01-27  Bruno Haible  <bruno@clisp.org>
70393
70394         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70395         check_PROGRAMS into noinst_PROGRAMS.
70396         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70397         check_PROGRAMS in this case.
70398         (func_import): Set for_test to false.
70399         (func_create_testdir): Set for_test to true.
70400
70401 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70402             Bruno Haible  <bruno@clisp.org>
70403
70404         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70405         (Depends-on): Add string.
70406         (Includes): Use <string.h> instead of strcasestr.h.
70407         * modules/string (Makefile.am): Also substitute the value of
70408         REPLACE_STRCASESTR.
70409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70410         assume strcasestr is declared in <string.h> not <strings.h>. Also
70411         set REPLACE_STRCASESTR.
70412         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70413         REPLACE_STRCASESTR.
70414         * lib/strcasestr.h: Remove file.
70415         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70416         * lib/string_.h (strcasestr): New declaration.
70417
70418 2007-01-27  Bruno Haible  <bruno@clisp.org>
70419
70420         * lib/string_.h: Use 'extern'.
70421
70422 2007-01-27  Jim Meyering  <jim@meyering.net>
70423
70424         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70425         of set-but-not-used local, "q".
70426
70427         * lib/mempcpy.c: Include <config.h> before <string.h>.
70428         This fixes a compilation error on HP-UX, due to the system's
70429         "restrict"-using mempcpy prototype.
70430
70431 2007-01-26  Bruno Haible  <bruno@clisp.org>
70432
70433         Small optimization.
70434         * lib/javacomp.c: Include c-strstr.h.
70435          (is_envjavac_gcj): Use c_strstr instead of strstr.
70436         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70437
70438 2007-01-26  Bruno Haible  <bruno@clisp.org>
70439
70440         * MODULES.html.sh (Unicode string functions): Add the new modules.
70441
70442         * modules/uniconv/u32-strconv-to-locale: New file.
70443         * lib/uniconv/u32-strconv-to-locale.c: New file.
70444
70445         * modules/uniconv/u16-strconv-to-locale: New file.
70446         * lib/uniconv/u16-strconv-to-locale.c: New file.
70447
70448         * modules/uniconv/u8-strconv-to-locale: New file.
70449         * lib/uniconv/u8-strconv-to-locale.c: New file.
70450
70451         * modules/uniconv/u32-strconv-from-locale: New file.
70452         * lib/uniconv/u32-strconv-from-locale.c: New file.
70453
70454         * modules/uniconv/u16-strconv-from-locale: New file.
70455         * lib/uniconv/u16-strconv-from-locale.c: New file.
70456
70457         * modules/uniconv/u8-strconv-from-locale: New file.
70458         * lib/uniconv/u8-strconv-from-locale.c: New file.
70459
70460         * modules/uniconv/u32-strconv-to-enc: New file.
70461         * lib/uniconv/u32-strconv-to-enc.c: New file.
70462         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70463         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70464
70465         * modules/uniconv/u16-strconv-to-enc: New file.
70466         * lib/uniconv/u16-strconv-to-enc.c: New file.
70467         * lib/uniconv/u-strconv-to-enc.h: New file.
70468         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70469         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70470
70471         * modules/uniconv/u8-strconv-to-enc: New file.
70472         * lib/uniconv/u8-strconv-to-enc.c: New file.
70473         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70474         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70475
70476         * modules/uniconv/u32-strconv-from-enc: New file.
70477         * lib/uniconv/u32-strconv-from-enc.c: New file.
70478         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70479         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70480
70481         * modules/uniconv/u16-strconv-from-enc: New file.
70482         * lib/uniconv/u16-strconv-from-enc.c: New file.
70483         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70484         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70485
70486         * modules/uniconv/u8-strconv-from-enc: New file.
70487         * lib/uniconv/u8-strconv-from-enc.c: New file.
70488         * lib/uniconv/u-strconv-from-enc.h: New file.
70489         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70490         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70491
70492         * modules/uniconv/u32-conv-from-enc: New file.
70493         * lib/uniconv/u32-conv-from-enc.c: New file.
70494         * modules/uniconv/u32-conv-from-enc-tests: New file.
70495         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70496
70497         * modules/uniconv/u16-conv-from-enc: New file.
70498         * lib/uniconv/u16-conv-from-enc.c: New file.
70499         * lib/uniconv/u-conv-from-enc.h: New file.
70500         * modules/uniconv/u16-conv-from-enc-tests: New file.
70501         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70502
70503         * modules/uniconv/u8-conv-from-enc: New file.
70504         * lib/uniconv/u8-conv-from-enc.c: New file.
70505         * modules/uniconv/u8-conv-from-enc-tests: New file.
70506         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70507
70508         * modules/uniconv/base: New file.
70509         * lib/uniconv.h: New file.
70510
70511 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * doc/gnulib-tool.texi (Initial import): Update to match current
70514         behavior with strdup module.
70515         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70516         * lib/memmem.h: Remove; all uses removed.  This is now done
70517         by <string.h>.
70518         * lib/mempcpy.h: Likewise.
70519         * lib/memrchr.h: Likewise.
70520         * lib/stpcpy.h: Likewise.
70521         * lib/stpncpy.h: Likewise.
70522         * lib/strcase.h: Likewise.
70523         * lib/strchrnul.h: Likewise.
70524         * lib/strdup.h: Likewise.
70525         * lib/strndup.h: Likewise.
70526         * lib/strnlen.h: Likewise.
70527         * lib/strpbrk.h: Likewise.
70528         * lib/strsep.h: Likewise.
70529         * lib/strstr.h: Likewise.
70530         * lib/strtok_r.h: Likewise.
70531         * lib/string_.h: New file.
70532         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70533         Rely on <string.h> instead.
70534         * lib/canon-host.c: Likewise.
70535         * lib/chdir-long.c: Likewise.
70536         * lib/concatpath.c: Likewise.
70537         * lib/exclude.c: Likewise.
70538         * lib/fchdir.c: Likewise.
70539         * lib/getaddrinfo.c: Likewise.
70540         * lib/getcwd.c: Likewise.
70541         * lib/getsubopt.c: Likewise.
70542         * lib/glob.c: Likewise.
70543         * lib/hard-locale.c: Likewise.
70544         * lib/iconvme.c: Likewise.
70545         * lib/javacomp.c: Likewise.
70546         * lib/mempcpy.c: Likewise.
70547         * lib/memrchr.c: Likewise.
70548         * lib/regex_internal.h: Likewise.
70549         * lib/stpncpy.c: Likewise.
70550         * lib/strcasecmp.c: Likewise.
70551         * lib/strchrnul.c: Likewise.
70552         * lib/strdup.c: Likewise.
70553         * lib/striconv.c: Likewise.
70554         * lib/striconveh.c: Likewise.
70555         * lib/striconveha.c: Likewise.
70556         * lib/strncasecmp.c: Likewise.
70557         * lib/strndup.c: Likewise.
70558         * lib/strnlen.c: Likewise.
70559         * lib/strsep.c: Likewise.
70560         * lib/strstr.c: Likewise.
70561         * lib/strtok_r.c: Likewise.
70562         * lib/userspec.c: Likewise.
70563         * lib/w32spawn.h: Likewise.
70564         * lib/xstrndup.c: Likewise.
70565         * lib/mountlist.c (strstr): Remove decl.
70566         * m4/string_h.m4: New file.
70567         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70568         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70569         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70570         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70571         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70572         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70573         Set REPLACE_STRCASECMP if necessary.
70574         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70575         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70576         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70577         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70578         HAVE_DECL_STRDUP if necessary.
70579         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70580         since gl_FUNC_STRNDUP does that now.
70581         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70582         Check for decl here...
70583         (gl_PREREQ_STRNLEN): ... not here.
70584         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70585         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70586         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70587         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70588         necessary.
70589         * modules/string: New file.
70590         * modules/memmem (Files): Remove special-purpose include file.
70591         (Depends-on): Add string.
70592         (Include): Include <string.h>, not the removed file.
70593         * modules/mempcpy: Likewise.
70594         * modules/memrchr: Likewise.
70595         * modules/stpcpy: Likewise.
70596         * modules/stpncpy: Likewise.
70597         * modules/strcase: Likewise.
70598         * modules/strchrnul: Likewise.
70599         * modules/strdup: Likewise.
70600         * modules/strndup: Likewise.
70601         * modules/strnlen: Likewise.
70602         * modules/strpbrk: Likewise.
70603         * modules/strsep: Likewise.
70604         * modules/strstr: Likewise.
70605         * modules/strtok_r: Likewise.
70606         * tests/test-dirname.c: Don't include "strdup.h", since
70607         <string.h> now suffices.
70608         * tests/test-memmem.c: Don't include "memmem.h", since
70609         <string.h> now suffices.
70610
70611 2007-01-25  Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70614         *resultp is 0.
70615
70616         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70617         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70618         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70619         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70620
70621         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70622         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70623         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70624         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70625         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70626         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70627
70628 2007-01-24  Bruno Haible  <bruno@clisp.org>
70629
70630         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70631         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70632         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70633         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70634         gl_FUNC_FTS_CORE.
70635         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70636         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70638         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70639         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70640         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70641         gl_FUNC_FCHOWNAT.
70642         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70643         gl_FUNC_STRFTIME.
70644         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70645         Reported by Ralf Wildenhues.
70646
70647 2007-01-24  Bruno Haible  <bruno@clisp.org>
70648
70649         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70650         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70651         gl_GETADDRINFO.
70652         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70653         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70654         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70655
70656 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70659         Don't use 'exit'; just return from 'main'.
70660         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70661
70662         * lib/fnmatch_.h: Readjust white space and comments to match
70663         glibc, to avoid spurious diffs.
70664
70665 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70668         2004-12-01 change by Jakub Jelinek, since this code won't compile
70669         if !LIBC.  Problem reported by Bob Proulx.
70670
70671 2007-01-23  Bruno Haible  <bruno@clisp.org>
70672
70673         * lib/striconveh.c: Include c-strcaseeq.h.
70674         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70675         * modules/striconveh (Depends-on): Add c-strcaseeq.
70676
70677 2007-01-23  Bruno Haible  <bruno@clisp.org>
70678
70679         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70680
70681         * modules/c-strcaseeq: New file.
70682         * lib/c-strcaseeq.h: New file.
70683
70684         * modules/streq: New file.
70685         * lib/streq.h: New file.
70686
70687 2007-01-23  Bruno Haible  <bruno@clisp.org>
70688
70689         * modules/striconveha-tests: New file.
70690         * tests/test-striconveha.c: New file.
70691
70692         * lib/striconveha.h: Include <stdbool.h>.
70693         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70694         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70695         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70696         (mem_iconveha): New function.
70697         (str_iconveha_notranslit): Renamed from str_iconveha.
70698         (str_iconveha): New function.
70699         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70700         c-strcase.
70701
70702 2007-01-23  Bruno Haible  <bruno@clisp.org>
70703
70704         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70705         encodings without forgiving before trying any encoding with handler.
70706         (str_iconveha): Try all encodings without forgiving before trying any
70707         encoding with handler.
70708
70709 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70710
70711         Import the following changes from libc.
70712
70713         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70714
70715         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70716
70717         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70718
70719         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70720         normal_bracket label.
70721
70722         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70723
70724         [BZ #361]
70725         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70726         to normal_bracket after fetching the next character.
70727
70728 2007-01-22  Bruno Haible  <bruno@clisp.org>
70729
70730         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70731         argument.
70732         * lib/striconveh.c (iconv_carefully_1): New function.
70733         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70734         argument.
70735         (str_cd_iconveh): Update.
70736         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70737         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70738         * tests/test-striconveh.c (MAGIC): New macro.
70739         (new_offsets): New function.
70740         (main): Test call with and without offsets.
70741
70742 2007-01-22  Bruno Haible  <bruno@clisp.org>
70743
70744         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70745         * modules/sys_select (Makefile.am): Likewise.
70746         * modules/sys_socket (Makefile.am): Likewise.
70747         * modules/sys_time (Makefile.am): Likewise.
70748
70749 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70750
70751         * modules/gettimeofday (License): Change from GPL to LGPL, since
70752         gettimeofday is a library function.
70753
70754 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70755
70756         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70757
70758 2007-01-21  Bruno Haible  <bruno@clisp.org>
70759
70760         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70761
70762 2007-01-21  Bruno Haible  <bruno@clisp.org>
70763
70764         * modules/striconveha: New file.
70765         * lib/striconveha.h: New file.
70766         * lib/striconveha.c: New file.
70767         * MODULES.html.sh (Internationalization functions): Add striconveha.
70768         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70769         string.
70770         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70771
70772 2007-01-21  Bruno Haible  <bruno@clisp.org>
70773
70774         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70775         * lib/striconveh.c (str_iconveh): Likewise.
70776
70777 2007-01-21  Bruno Haible  <bruno@clisp.org>
70778
70779         * lib/striconveh.h (mem_iconveh): New declaration.
70780         * lib/striconveh.c (mem_iconveh): New function.
70781         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70782
70783 2007-01-21  Bruno Haible  <bruno@clisp.org>
70784
70785         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70786
70787         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70788         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70789         original result buffer.
70790         (str_cd_iconveh): Update.
70791         * tests/test-striconveh.c (main): Update.
70792
70793         * lib/striconv.h (mem_cd_iconv): Change specification.
70794         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70795         result buffer.
70796         (str_cd_iconv): Update.
70797         * tests/test-striconv.c (main): Update.
70798
70799 2007-01-21  Bruno Haible  <bruno@clisp.org>
70800
70801         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70802
70803 2007-01-20  Jim Meyering  <jim@meyering.net>
70804
70805         * lib/userspec.c (parse_with_separator): If a user or group string
70806         starts with "+", skip the corresponding name-to-ID look-up, since
70807         such a look-up must fail: user and group names may not include "+".
70808
70809 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70812         since we now assume the sys_time module.
70813         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70814         check for sys/time.h; no longer needed.
70815         * modules/poll (Depends-on): Depend on sys_time.
70816
70817 2007-01-18  Bruno Haible  <bruno@clisp.org>
70818
70819         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70820         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70821
70822         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70823         gettimeofday.
70824
70825         * tests/test-gettimeofday.c: Include <time.h>.
70826         (dummy): Remove variable.
70827
70828         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70829         gl_HEADER_SYS_TIME_H.
70830         (gl_HEADER_SYS_TIME_H): New macro.
70831
70832         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70833         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70834         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70835         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70836         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70837         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70838         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70839         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70840         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70841         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70842         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70843
70844         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70845         last change; it caused a compilation error when cross-compiling to
70846         Cygwin.
70847
70848 2007-01-18  Jim Meyering  <jim@meyering.net>
70849
70850         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70851         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70852         than the race-prone "test -d sys || mkdir sys".
70853         (configure.ac): Use AC_PROG_MKDIR_P.
70854         * modules/sys_select: Likewise.
70855         * modules/sys_socket: Likewise.
70856         * modules/sys_time: Likewise.
70857
70858 2007-01-18  Eric Blake  <ebb9@byu.net>
70859
70860         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70861         replace gettimeofday.
70862         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70863         name, to avoid infinite recursion.
70864
70865 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70868         module sys_time.
70869         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70870         assume timespec.h defines struct timeval.
70871         * lib/settime.c: Likewise.
70872         * lib/utimens.c: Likewise.
70873         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70874         since we now assume the gettimeofday module.
70875         * lib/tempname.c (__gen_tempname): Likewise.
70876         * lib/gettimeofday.h: Remove.
70877         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70878         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70879         Include <time.h>, for 'time()'.
70880         (localtime_buffer_addr): Also use this workaround if
70881         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70882         to simplify the uses.  All uses changed.
70883         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70884         that #undef is inside {}, and 'const' follows type name consistently.
70885         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70886         (gettimeofday): Do not use the maximum possible value for
70887         tv->tv_usec, since that might break usages other than ls.c.
70888         Instead, we'll leave ls.c alone.  This undoes today's patch
70889         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70890         we've never observed the problem but might as well keep the
70891         canary.
70892         * lib/nanosleep.c: Include timespec.h first, for interface check.
70893         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70894         now assume the sys_time module.
70895         * lib/tempname.c: Likewise.
70896         * lib/timespec.h: Likewise.
70897         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70898         needed.
70899         * lib/strftime.c: Likewise.
70900         * lib/timespec.h: Likewise.
70901         * lib/posixtm.c: Include posixtm.h first, for interface check.
70902         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70903         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70904         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70905         * lib/sys_time_.h: New file.
70906         * lib/timespec.h (struct timespec): Use long int, not long.
70907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70908         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70909         Remove obsolescent call to AC_HEADER_TIME.
70910         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70912         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70913         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70914         Likewise.
70915         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70916         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70917         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70918         into the sys_time module.  Check for gettimeofday just once.
70919         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70920         for gettimeofday signature to just check the signature.  Merely
70921         compile it, since linking doesn't test signature.  Improve test for
70922         whether gettimeofday.o is actually needed.
70923         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70924         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70925         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70926         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70927         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70928         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70929         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70930         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70931         than worrying about sys/time.h.
70932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70933         Don't bother worrying about TIME_WITH_SYS_TIME.
70934         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70935         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70936         * m4/sys_time_h.m4: New file.
70937         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70938         Don't include sys/time.h.  Return from main rather than exiting.
70939         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70940         all uses changed.
70941         * modules/gethrxtime (Depends-on): Add sys_time.
70942         * modules/gettime (Depends-on): Likewise.
70943         * modules/gettimeofday (Depends-on): Likewise.
70944         * modules/nanosleep (Depends-on): Likewise.
70945         * modules/settime (Depends-on): Likewise.
70946         * modules/tempname (Depends-on): Likewise.
70947         * modules/utimens (Depends-on): Likewise.
70948         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70949         (Include): Change back to <sys/time.h>.
70950         (Maintainer): Add self.
70951         * modules/sys_time: New file.
70952         * modules/tempname (Depends-on): Add gettimeofday.
70953         * tests/test-gettimeofday.c: Include <sys/time.h>
70954         rather than gettimeofday.h.
70955
70956 2007-01-17  Bruno Haible  <bruno@clisp.org>
70957
70958         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70959         the license default to GPL.
70960         (func_create_testdir): Don't complain if a module is LGPL and its
70961         tests module depends on GPLed modules.
70962
70963 2007-01-17  Bruno Haible  <bruno@clisp.org>
70964
70965         * lib/gettimeofday.c (gettimeofday): Add code for the case
70966         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70967         maximum possible value for tv->tv_usec, rather than the minimum one.
70968
70969 2005-10-08  Martin Lambers  <marlam@marlam.de>
70970 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70971 2007-01-16  Bruno Haible  <bruno@clisp.org>
70972
70973         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70974         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70975         gl_FUNC_GETTIMEOFDAY.
70976         (Include): Add gettimeofday.h.
70977         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70978         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70979         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70980         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70981         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70982         * lib/gettimeofday.h: New file.
70983         * lib/gettimeofday.c: Include <sys/timeb.h>.
70984         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70985         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70986         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70987         fall back on time().
70988
70989         * tests/test-gettimeofday.c: New file.
70990         * modules/gettimeofday-tests: New file.
70991
70992 2007-01-16  Eric Blake  <ebb9@byu.net>
70993
70994         * modules/fnmatch (Depends-on): Depend on wchar.
70995         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70996         * m4/fnmatch.m4: Likewise.
70997         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70998         * m4/mbchar.m4: Likewise.
70999         * modules/mbswidth (Depends-on): Depend on wchar.
71000         * lib/mbswidth.c: Assume <wchar.h>.
71001         * m4/mbswidth.m4: Likewise.
71002         * modules/quotearg (Depends-on): Depend on wchar.
71003         * lib/quotearg.c: Assume <wchar.h>.
71004         * m4/quotearg.m4: Likewise.
71005         * modules/regex (Depends-on): Depend on wchar.
71006         * lib/regex_internal.h: Assume <wchar.h>.
71007         * m4/regex.m4: Likewise.
71008         * modules/stdint (Depends-on): Depend on wchar.
71009         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71010         * m4/stdint.m4: Likewise.
71011         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71012         * modules/strftime (Depends-on): Depend on wchar.
71013         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71014         * modules/strtol (Depends-on): Depend on wchar.
71015         * lib/strtol.c: Assume <wchar.h>.
71016         * modules/wcwidth (Depends-on): Depend on wchar.
71017         * lib/wcwidth.h: Assume <wchar.h>.
71018         * m4/wcwidth.m4: Likewise.
71019
71020 2007-01-16  Bruno Haible  <bruno@clisp.org>
71021
71022         * modules/csharpexec-script: New, created from...
71023         * modules/csharpexec: ... this.
71024
71025 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71026
71027         * modules/javaexec-script: New, created from...
71028         * modules/javaexec: ... this.
71029
71030 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71031
71032         * modules/poll (Dependencies): Add sys_select.
71033
71034 2007-01-15  Jim Meyering  <jim@meyering.net>
71035
71036         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71037         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71038         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71039         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71040
71041 2007-01-15  Bruno Haible  <bruno@clisp.org>
71042
71043         * modules/striconveh: New file.
71044         * lib/striconveh.h: New file.
71045         * lib/striconveh.c: New file.
71046         * MODULES.html.sh (Internationalization functions): Add striconveh.
71047
71048         * modules/striconveh-tests: New file.
71049         * tests/test-striconveh.c: New file.
71050
71051 2007-01-15  Bruno Haible  <bruno@clisp.org>
71052
71053         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71054         not from GNU libiconv or GNU libc.
71055
71056 2007-01-15  Bruno Haible  <bruno@clisp.org>
71057
71058         * doc/gnulib-intro.texi (Copyright): Explain the different license
71059         terms for module descriptions, autoconf macros, tests, documentation.
71060
71061 2007-01-14  Bruno Haible  <bruno@clisp.org>
71062
71063         * modules/striconv-tests: New file.
71064         * tests/test-striconv.c: New file.
71065
71066 2007-01-14  Bruno Haible  <bruno@clisp.org>
71067
71068         * modules/iconv-tests: New file.
71069         * tests/test-iconv.c: New file.
71070
71071 2007-01-14  Bruno Haible  <bruno@clisp.org>
71072
71073         * gnulib-tool (func_get_license): For test modules, use the license of
71074         the main module.
71075
71076 2007-01-14  Bruno Haible  <bruno@clisp.org>
71077
71078         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71079         if iconv is found to exist.
71080
71081 2007-01-14  Bruno Haible  <bruno@clisp.org>
71082
71083         * modules/c-ctype-tests: New file.
71084         * tests/test-c-ctype.c: New file.
71085
71086 2007-01-14  Bruno Haible  <bruno@clisp.org>
71087
71088         * modules/binary-io-tests: New file.
71089         * tests/test-binary-io.sh: New file.
71090         * tests/test-binary-io.c: New file.
71091
71092 2007-01-14  Bruno Haible  <bruno@clisp.org>
71093
71094         * modules/array-oset-tests: New file.
71095         * tests/test-array_oset.c: New file.
71096
71097 2007-01-14  Bruno Haible  <bruno@clisp.org>
71098
71099         * modules/array-list-tests: New file.
71100         * tests/test-array_list.c: New file.
71101
71102 2007-01-14  Bruno Haible  <bruno@clisp.org>
71103
71104         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71105         and make.
71106         Reported by Simon Josefsson in
71107         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71108
71109 2007-01-14  Bruno Haible  <bruno@clisp.org>
71110
71111         * modules/allocsa-tests: New file.
71112         * tests/test-allocsa.c: New file.
71113
71114 2007-01-14  Bruno Haible  <bruno@clisp.org>
71115
71116         * modules/fchdir (Depends-on): Add absolute-header.
71117         * modules/unistd (Depends-on): Likewise.
71118
71119 2006-12-30  Bruno Haible  <bruno@clisp.org>
71120
71121         * modules/fchdir: New file.
71122         * modules/unistd (Files): Add lib/unistd_.h.
71123         (Makefile.am): Generate unistd.h from unistd_.h.
71124         * lib/fchdir.c: New file.
71125         * lib/dirent_.h: New file.
71126         * lib/unistd_.h: New file.
71127         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71128         * m4/fchdir.m4: New file.
71129         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71130         (gl_HEADER_UNISTD): Invoke it.
71131         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71132         function.
71133         * lib/backupfile.c (opendir, closedir): Undefine.
71134         * lib/chown.c (open, close): Undefine.
71135         * lib/clean-temp.c (open, close): Undefine.
71136         * lib/copy-file.c (open, close): Undefine.
71137         * lib/execute.c (open, close): Undefine.
71138         * lib/fsusage.c (open, close): Undefine.
71139         * lib/gc-gnulib.c (open, close): Undefine.
71140         * lib/getcwd.c (opendir, closedir): Undefine.
71141         * lib/glob.c (opendir, closedir): Undefine.
71142         * lib/javacomp.c (open, close): Undefine.
71143         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71144         * lib/openat-proc.c (open, close): Undefine.
71145         * lib/pagealign_alloc.c (open, close): Undefine.
71146         * lib/pipe.c (open, close): Undefine.
71147         * lib/progreloc.c (open, close): Undefine.
71148         * lib/savedir.c (opendir, closedir): Undefine.
71149         * lib/utime.c (open, close): Undefine.
71150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71151
71152 2007-01-10  Bruno Haible  <bruno@clisp.org>
71153
71154         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71155
71156 2007-01-12  Eric Blake  <ebb9@byu.net>
71157
71158         Provide a robust <wchar.h>.  Further simplifications are now
71159         possible in other modules, but not included here.
71160         * modules/wchar: New module.
71161         * m4/wchar.m4: New file.
71162         * lib/wchar_.h: Likewise.
71163         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71164         of the new module.
71165         * MODULES.html.sh (Extended multibyte and wide character utilities):
71166         New section.
71167
71168 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71171         to a reasonable default for memory allocation.
71172         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71173         file system that reports garbage st_size values for symlinks.
71174         Problem reported by Liyang Hu.
71175
71176 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71177
71178         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71179         Emacs .#* auto-save files).
71180
71181 2007-01-11  Bruno Haible  <bruno@clisp.org>
71182
71183         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71184         directory.
71185
71186 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         Use @...@ consistently in lib/wctype_.h.
71189         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71190         on it being set to 1 or 0.
71191         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71192         go back to AC_SUBSTing it.
71193         * modules/wctype (Makefile.am): Undo previous change.
71194
71195 2007-01-10  Eric Blake  <ebb9@byu.net>
71196
71197         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71198         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71199         * modules/wctype (Makefile.am): Likewise.
71200         Reported by Chris McGuire.
71201
71202 2007-01-10  Jim Meyering  <jim@meyering.net>
71203
71204         fts.c: a small readability/maintainability improvement
71205         * lib/fts.c (fts_read): Make this code slightly more readable and
71206         maintainable by hoisting the "sp->fts_cur = p" assignments to
71207         immediately follow the statements that set P.  Derived from
71208         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71209
71210 2007-01-10  Eric Blake  <ebb9@byu.net>
71211
71212         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71213         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71215         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71216         Reported by Chris McGuire.
71217
71218 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71219
71220         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71221         in sed script.
71222
71223 2007-01-09  Bruno Haible  <bruno@clisp.org>
71224
71225         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71226         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71227         variables.
71228         (func_module): Use them.
71229
71230 2007-01-09  Bruno Haible  <bruno@clisp.org>
71231
71232         * modules/unistr/base: New file.
71233         * lib/unistr.h: New file.
71234
71235         * modules/unistr/u8-to-u16: New file.
71236         * lib/unistr/u8-to-u16.c: New file.
71237
71238         * modules/unistr/u8-to-u32: New file.
71239         * lib/unistr/u8-to-u32.c: New file.
71240
71241         * modules/unistr/u16-to-u8: New file.
71242         * lib/unistr/u16-to-u8.c: New file.
71243
71244         * modules/unistr/u16-to-u32: New file.
71245         * lib/unistr/u16-to-u32.c: New file.
71246
71247         * modules/unistr/u32-to-u8: New file.
71248         * lib/unistr/u32-to-u8.c: New file.
71249
71250         * modules/unistr/u32-to-u16: New file.
71251         * lib/unistr/u32-to-u16.c: New file.
71252
71253         * modules/unistr/u8-check: New file.
71254         * modules/unistr/u16-check: New file.
71255         * modules/unistr/u32-check: New file.
71256         * lib/unistr/u8-check.c: New file.
71257         * lib/unistr/u16-check.c: New file.
71258         * lib/unistr/u32-check.c: New file.
71259
71260         * modules/unistr/u8-chr: New file.
71261         * modules/unistr/u16-chr: New file.
71262         * modules/unistr/u32-chr: New file.
71263         * lib/unistr/u8-chr.c: New file.
71264         * lib/unistr/u16-chr.c: New file.
71265         * lib/unistr/u32-chr.c: New file.
71266
71267         * modules/unistr/u8-cmp: New file.
71268         * modules/unistr/u16-cmp: New file.
71269         * modules/unistr/u32-cmp: New file.
71270         * lib/unistr/u8-cmp.c: New file.
71271         * lib/unistr/u16-cmp.c: New file.
71272         * lib/unistr/u32-cmp.c: New file.
71273
71274         * modules/unistr/u8-cpy: New file.
71275         * modules/unistr/u16-cpy: New file.
71276         * modules/unistr/u32-cpy: New file.
71277         * lib/unistr/u8-cpy.c: New file.
71278         * lib/unistr/u16-cpy.c: New file.
71279         * lib/unistr/u32-cpy.c: New file.
71280         * lib/unistr/u-cpy.h: New file.
71281
71282         * modules/unistr/u8-cpy-alloc: New file.
71283         * modules/unistr/u16-cpy-alloc: New file.
71284         * modules/unistr/u32-cpy-alloc: New file.
71285         * lib/unistr/u8-cpy-alloc.c: New file.
71286         * lib/unistr/u16-cpy-alloc.c: New file.
71287         * lib/unistr/u32-cpy-alloc.c: New file.
71288         * lib/unistr/u-cpy-alloc.h: New file.
71289
71290         * modules/unistr/u8-endswith: New file.
71291         * modules/unistr/u16-endswith: New file.
71292         * modules/unistr/u32-endswith: New file.
71293         * lib/unistr/u8-endswith.c: New file.
71294         * lib/unistr/u16-endswith.c: New file.
71295         * lib/unistr/u32-endswith.c: New file.
71296         * lib/unistr/u-endswith.h: New file.
71297
71298         * modules/unistr/u8-mblen: New file.
71299         * modules/unistr/u16-mblen: New file.
71300         * modules/unistr/u32-mblen: New file.
71301         * lib/unistr/u8-mblen.c: New file.
71302         * lib/unistr/u16-mblen.c: New file.
71303         * lib/unistr/u32-mblen.c: New file.
71304
71305         * modules/unistr/u8-mbtouc: New file.
71306         * modules/unistr/u16-mbtouc: New file.
71307         * modules/unistr/u32-mbtouc: New file.
71308         * lib/unistr/u8-mbtouc.c: New file.
71309         * lib/unistr/u16-mbtouc.c: New file.
71310         * lib/unistr/u32-mbtouc.c: New file.
71311
71312         * modules/unistr/u8-mbtouc-safe: New file.
71313         * modules/unistr/u16-mbtouc-safe: New file.
71314         * modules/unistr/u32-mbtouc-safe: New file.
71315         * lib/unistr/u8-mbtouc-safe.c: New file.
71316         * lib/unistr/u16-mbtouc-safe.c: New file.
71317         * lib/unistr/u32-mbtouc-safe.c: New file.
71318
71319         * modules/unistr/u8-move: New file.
71320         * modules/unistr/u16-move: New file.
71321         * modules/unistr/u32-move: New file.
71322         * lib/unistr/u8-move.c: New file.
71323         * lib/unistr/u16-move.c: New file.
71324         * lib/unistr/u32-move.c: New file.
71325         * lib/unistr/u-move.h: New file.
71326
71327         * modules/unistr/u8-next: New file.
71328         * modules/unistr/u16-next: New file.
71329         * modules/unistr/u32-next: New file.
71330         * lib/unistr/u8-next.c: New file.
71331         * lib/unistr/u16-next.c: New file.
71332         * lib/unistr/u32-next.c: New file.
71333
71334         * modules/unistr/u8-prev: New file.
71335         * modules/unistr/u16-prev: New file.
71336         * modules/unistr/u32-prev: New file.
71337         * lib/unistr/u8-prev.c: New file.
71338         * lib/unistr/u16-prev.c: New file.
71339         * lib/unistr/u32-prev.c: New file.
71340
71341         * modules/unistr/u8-set: New file.
71342         * modules/unistr/u16-set: New file.
71343         * modules/unistr/u32-set: New file.
71344         * lib/unistr/u8-set.c: New file.
71345         * lib/unistr/u16-set.c: New file.
71346         * lib/unistr/u32-set.c: New file.
71347         * lib/unistr/u-set.h: New file.
71348
71349         * modules/unistr/u8-startswith: New file.
71350         * modules/unistr/u16-startswith: New file.
71351         * modules/unistr/u32-startswith: New file.
71352         * lib/unistr/u8-startswith.c: New file.
71353         * lib/unistr/u16-startswith.c: New file.
71354         * lib/unistr/u32-startswith.c: New file.
71355         * lib/unistr/u-startswith.h: New file.
71356
71357         * modules/unistr/u8-stpcpy: New file.
71358         * modules/unistr/u16-stpcpy: New file.
71359         * modules/unistr/u32-stpcpy: New file.
71360         * lib/unistr/u8-stpcpy.c: New file.
71361         * lib/unistr/u16-stpcpy.c: New file.
71362         * lib/unistr/u32-stpcpy.c: New file.
71363         * lib/unistr/u-stpcpy.h: New file.
71364
71365         * modules/unistr/u8-stpncpy: New file.
71366         * modules/unistr/u16-stpncpy: New file.
71367         * modules/unistr/u32-stpncpy: New file.
71368         * lib/unistr/u8-stpncpy.c: New file.
71369         * lib/unistr/u16-stpncpy.c: New file.
71370         * lib/unistr/u32-stpncpy.c: New file.
71371         * lib/unistr/u-stpncpy.h: New file.
71372
71373         * modules/unistr/u8-strcat: New file.
71374         * modules/unistr/u16-strcat: New file.
71375         * modules/unistr/u32-strcat: New file.
71376         * lib/unistr/u8-strcat.c: New file.
71377         * lib/unistr/u16-strcat.c: New file.
71378         * lib/unistr/u32-strcat.c: New file.
71379         * lib/unistr/u-strcat.h: New file.
71380
71381         * modules/unistr/u8-strchr: New file.
71382         * modules/unistr/u16-strchr: New file.
71383         * modules/unistr/u32-strchr: New file.
71384         * lib/unistr/u8-strchr.c: New file.
71385         * lib/unistr/u16-strchr.c: New file.
71386         * lib/unistr/u32-strchr.c: New file.
71387
71388         * modules/unistr/u8-strcmp: New file.
71389         * modules/unistr/u16-strcmp: New file.
71390         * modules/unistr/u32-strcmp: New file.
71391         * lib/unistr/u8-strcmp.c: New file.
71392         * lib/unistr/u16-strcmp.c: New file.
71393         * lib/unistr/u32-strcmp.c: New file.
71394
71395         * modules/unistr/u8-strcpy: New file.
71396         * modules/unistr/u16-strcpy: New file.
71397         * modules/unistr/u32-strcpy: New file.
71398         * lib/unistr/u8-strcpy.c: New file.
71399         * lib/unistr/u16-strcpy.c: New file.
71400         * lib/unistr/u32-strcpy.c: New file.
71401         * lib/unistr/u-strcpy.h: New file.
71402
71403         * modules/unistr/u8-strcspn: New file.
71404         * modules/unistr/u16-strcspn: New file.
71405         * modules/unistr/u32-strcspn: New file.
71406         * lib/unistr/u8-strcspn.c: New file.
71407         * lib/unistr/u16-strcspn.c: New file.
71408         * lib/unistr/u32-strcspn.c: New file.
71409         * lib/unistr/u-strcspn.h: New file.
71410
71411         * modules/unistr/u8-strdup: New file.
71412         * modules/unistr/u16-strdup: New file.
71413         * modules/unistr/u32-strdup: New file.
71414         * lib/unistr/u8-strdup.c: New file.
71415         * lib/unistr/u16-strdup.c: New file.
71416         * lib/unistr/u32-strdup.c: New file.
71417         * lib/unistr/u-strdup.h: New file.
71418
71419         * modules/unistr/u8-strlen: New file.
71420         * modules/unistr/u16-strlen: New file.
71421         * modules/unistr/u32-strlen: New file.
71422         * lib/unistr/u8-strlen.c: New file.
71423         * lib/unistr/u16-strlen.c: New file.
71424         * lib/unistr/u32-strlen.c: New file.
71425         * lib/unistr/u-strlen.h: New file.
71426
71427         * modules/unistr/u8-strmblen: New file.
71428         * modules/unistr/u16-strmblen: New file.
71429         * modules/unistr/u32-strmblen: New file.
71430         * lib/unistr/u8-strmblen.c: New file.
71431         * lib/unistr/u16-strmblen.c: New file.
71432         * lib/unistr/u32-strmblen.c: New file.
71433
71434         * modules/unistr/u8-strmbtouc: New file.
71435         * modules/unistr/u16-strmbtouc: New file.
71436         * modules/unistr/u32-strmbtouc: New file.
71437         * lib/unistr/u8-strmbtouc.c: New file.
71438         * lib/unistr/u16-strmbtouc.c: New file.
71439         * lib/unistr/u32-strmbtouc.c: New file.
71440
71441         * modules/unistr/u8-strncat: New file.
71442         * modules/unistr/u16-strncat: New file.
71443         * modules/unistr/u32-strncat: New file.
71444         * lib/unistr/u8-strncat.c: New file.
71445         * lib/unistr/u16-strncat.c: New file.
71446         * lib/unistr/u32-strncat.c: New file.
71447         * lib/unistr/u-strncat.h: New file.
71448
71449         * modules/unistr/u8-strncmp: New file.
71450         * modules/unistr/u16-strncmp: New file.
71451         * modules/unistr/u32-strncmp: New file.
71452         * lib/unistr/u8-strncmp.c: New file.
71453         * lib/unistr/u16-strncmp.c: New file.
71454         * lib/unistr/u32-strncmp.c: New file.
71455
71456         * modules/unistr/u8-strncpy: New file.
71457         * modules/unistr/u16-strncpy: New file.
71458         * modules/unistr/u32-strncpy: New file.
71459         * lib/unistr/u8-strncpy.c: New file.
71460         * lib/unistr/u16-strncpy.c: New file.
71461         * lib/unistr/u32-strncpy.c: New file.
71462         * lib/unistr/u-strncpy.h: New file.
71463
71464         * modules/unistr/u8-strnlen: New file.
71465         * modules/unistr/u16-strnlen: New file.
71466         * modules/unistr/u32-strnlen: New file.
71467         * lib/unistr/u8-strnlen.c: New file.
71468         * lib/unistr/u16-strnlen.c: New file.
71469         * lib/unistr/u32-strnlen.c: New file.
71470         * lib/unistr/u-strnlen.h: New file.
71471
71472         * modules/unistr/u8-strpbrk: New file.
71473         * modules/unistr/u16-strpbrk: New file.
71474         * modules/unistr/u32-strpbrk: New file.
71475         * lib/unistr/u8-strpbrk.c: New file.
71476         * lib/unistr/u16-strpbrk.c: New file.
71477         * lib/unistr/u32-strpbrk.c: New file.
71478         * lib/unistr/u-strpbrk.h: New file.
71479
71480         * modules/unistr/u8-strrchr: New file.
71481         * modules/unistr/u16-strrchr: New file.
71482         * modules/unistr/u32-strrchr: New file.
71483         * lib/unistr/u8-strrchr.c: New file.
71484         * lib/unistr/u16-strrchr.c: New file.
71485         * lib/unistr/u32-strrchr.c: New file.
71486
71487         * modules/unistr/u8-strspn: New file.
71488         * modules/unistr/u16-strspn: New file.
71489         * modules/unistr/u32-strspn: New file.
71490         * lib/unistr/u8-strspn.c: New file.
71491         * lib/unistr/u16-strspn.c: New file.
71492         * lib/unistr/u32-strspn.c: New file.
71493         * lib/unistr/u-strspn.h: New file.
71494
71495         * modules/unistr/u8-strstr: New file.
71496         * modules/unistr/u16-strstr: New file.
71497         * modules/unistr/u32-strstr: New file.
71498         * lib/unistr/u8-strstr.c: New file.
71499         * lib/unistr/u16-strstr.c: New file.
71500         * lib/unistr/u32-strstr.c: New file.
71501         * lib/unistr/u-strstr.h: New file.
71502
71503         * modules/unistr/u8-strtok: New file.
71504         * modules/unistr/u16-strtok: New file.
71505         * modules/unistr/u32-strtok: New file.
71506         * lib/unistr/u8-strtok.c: New file.
71507         * lib/unistr/u16-strtok.c: New file.
71508         * lib/unistr/u32-strtok.c: New file.
71509         * lib/unistr/u-strtok.h: New file.
71510
71511         * modules/unistr/u8-uctomb: New file.
71512         * modules/unistr/u16-uctomb: New file.
71513         * modules/unistr/u32-uctomb: New file.
71514         * lib/unistr/u8-uctomb.c: New file.
71515         * lib/unistr/u16-uctomb.c: New file.
71516         * lib/unistr/u32-uctomb.c: New file.
71517
71518         * MODULES.html.sh (Unicode string functions): Add the new modules.
71519
71520 2007-01-08  Bruno Haible  <bruno@clisp.org>
71521
71522         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71523         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71524         subdirectories.
71525
71526 2007-01-08  Karl Berry  <karl@gnu.org>
71527
71528         * doc/error.texi: mention that main() fns must set program_name
71529         when progname is used.
71530
71531 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71534         WCTYPE_H is empty, for the benefit of builds from non-distclean
71535         directories.  Problem reported by Eric Blake in
71536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71537
71538 2007-01-08  Bruno Haible  <bruno@clisp.org>
71539
71540         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71541         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71542         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71543         PROVIDE_CANONICALIZE_FILENAME_MODE.
71544         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71545
71546 2007-01-08  Bruno Haible  <bruno@clisp.org>
71547
71548         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71549         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71550         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71551         * lib/fts.c: Likewise.
71552         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71553
71554 2006-12-25  Bruno Haible  <bruno@clisp.org>
71555
71556         * modules/utf8-ucs4-safe: New file.
71557         * lib/utf8-ucs4-safe.h: New file.
71558         * lib/unistr/utf8-ucs4-safe.c: New file.
71559
71560         * modules/utf16-ucs4-safe: New file.
71561         * lib/utf16-ucs4-safe.h: New file.
71562         * lib/unistr/utf16-ucs4-safe.c: New file.
71563
71564         * MODULES.html.sh (Unicode string functions): Add the new modules.
71565
71566 2007-01-08  Bruno Haible  <bruno@clisp.org>
71567
71568         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71569         (Depends-on): Add unitypes.
71570         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71571         (u8_mbtouc_aux): Move out to separate file.
71572         (u8_mbtouc): Use ucs4_t, uint8_t types.
71573         * lib/unistr/utf8-ucs4.c: New file.
71574
71575         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71576         (Depends-on): Add unitypes.
71577         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71578         (u16_mbtouc_aux): Move out to separate file.
71579         (u16_mbtouc): Use ucs4_t, uint16_t types.
71580         * lib/unistr/utf16-ucs4.c: New file.
71581
71582         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71583         (Depends-on): Add unitypes.
71584         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71585         (u8_uctomb_aux): Move out to separate file.
71586         (u8_uctomb): Use ucs4_t, uint8_t types.
71587         * lib/unistr/ucs4-utf8.c: New file.
71588
71589         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71590         (Depends-on): Add unitypes.
71591         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71592         (u16_uctomb_aux): Move out to separate file.
71593         (u16_uctomb): Use ucs4_t, uint16_t types.
71594         * lib/unistr/ucs4-utf16.c: New file.
71595
71596 2006-12-25  Bruno Haible  <bruno@clisp.org>
71597
71598         * modules/unitypes: New file.
71599         * lib/unitypes.h: New file.
71600         * MODULES.html.sh (func_all_modules): New section "Unicode string
71601         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71602         this section. Add unitypes.
71603
71604 2007-01-08  Bruno Haible  <bruno@clisp.org>
71605
71606         Avoid variable names that conflict with those from libtool.
71607         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71608         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71609         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71610         library_names_spec to acl_library_names_spec, hardcode_* to
71611         acl_hardcode_*.
71612         Reported by Ralf Wildenhues.
71613
71614 2007-01-08  Bruno Haible  <bruno@clisp.org>
71615
71616         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71617         definition.
71618         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71619         definition.
71620         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71621         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71622         definition.
71623         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71624         definition.
71625         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71626         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71627         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71628         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71629         definition.
71630         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71631         definition.
71632         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71633         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71634         GC_USE_<algorithm>.
71635         * lib/gc-libgcrypt.c: Likewise.
71636         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71637         * modules/gc-arctwo (configure.ac): Likewise.
71638         * modules/gc-des (configure.ac): Likewise.
71639         * modules/gc-hmac-md5 (configure.ac): Likewise.
71640         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71641         * modules/gc-md2 (configure.ac): Likewise.
71642         * modules/gc-md4 (configure.ac): Likewise.
71643         * modules/gc-md5 (configure.ac): Likewise.
71644         * modules/gc-random (configure.ac): Likewise.
71645         * modules/gc-rijndael (configure.ac): Likewise.
71646         * modules/gc-sha1 (configure.ac): Likewise.
71647
71648 2007-01-08  Bruno Haible  <bruno@clisp.org>
71649
71650         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71651         macro definition.
71652         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71653         definition.
71654         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71655         definition.
71656         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71657         * modules/fcntl-safer (configure.ac): Likewise.
71658         * modules/fopen-safer (configure.ac): Likewise.
71659         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71660         GNULIB_FWRITEERROR macro definition.
71661
71662 2007-01-08  Bruno Haible  <bruno@clisp.org>
71663
71664         * m4/gnulib-common.m4: New file.
71665         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71666         (func_get_filelist): Add m4/gnulib-common.m4.
71667
71668 2007-01-08  Bruno Haible  <bruno@clisp.org>
71669
71670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71671         command.
71672
71673 2007-01-08  Jim Meyering  <jim@meyering.net>
71674
71675         Use a more robust test for a "can't happen" condition.
71676         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71677         narrowed the st_size value.  Presuming the "can't happen" condition
71678         is true, that narrowing could conceivably convert an invalid st_size
71679         value into a valid one.  Instead, use a change based on Matthew
71680         Woehlke's original patch.
71681
71682         Slight readability improvement: use an assert-like macro
71683         in place of literal "abort ()" uses.
71684         * lib/fts.c (fts_assert): Define.
71685         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71686         Use this macro instead of a bare 'abort'.
71687
71688 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71691         simply work around them.
71692         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71693         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71694         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71695         declaring.
71696         Don't bother to define as macros, since the standard doesn't require it.
71697         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71698         longer worry about IRIX 5.3.
71699         (HAVE_WCTYPE_CTMP_BUG): Remove.
71700
71701 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71702
71703         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71704         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71705         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71706         Problems reported by Georg Schwarz for IRIX 5.3.
71707
71708         * gnulib-tool (autoconf_minversion): Take the maximum version number
71709         found, not the minimum.  Problem reported by James Youngman.
71710
71711 2007-01-03  Karl Berry  <karl@gnu.org>
71712
71713         * doc/error.texi: new file, explaining interaction with progname.
71714         * doc/gnulib.texi: include it.  Update copyright.
71715
71716 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71717
71718         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71719         AC_CANONICAL_HOST, to improve autobuild outputs.
71720
71721 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71722             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71723
71724         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71725         sockets, server sockets, and other file descriptors.  Count errors
71726         to compute the return value.  Reorder the code a bit to be easier
71727         to follow.  Don't set event bits that were not requested (except
71728         POLLERR and POLLHUP).
71729
71730 2007-01-01  Bruno Haible  <bruno@clisp.org>
71731
71732         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71733
71734 2007-01-03  Jim Meyering  <jim@meyering.net>
71735
71736         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71737
71738 2007-01-02  Bruno Haible  <bruno@clisp.org>
71739
71740         * modules/settime (Include): Require timespec.h.
71741         * modules/nanosleep (Include): Likewise.
71742
71743 2007-01-01  Bruno Haible  <bruno@clisp.org>
71744
71745         * gnulib-tool (func_emit_copyright_notice): Bump year.
71746         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71747
71748 2007-01-01  Bruno Haible  <bruno@clisp.org>
71749
71750         Improve support for OpenBSD.
71751         * build-aux/config.rpath (libname_spec): Export.
71752         (library_names_spec): New variable. Export.
71753         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71754         library_names_spec from the config.rpath output. Locate shared library
71755         through the name pattern in library_names_spec.
71756
71757 2007-01-01  Eric Blake  <ebb9@byu.net>
71758
71759         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71760
71761 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71764         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71765         assume the C locale, and avoid an "eval" that could cause trouble.
71766         Problem with SORT reported by Bob Proulx.
71767
71768         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71769         Define.  Trivial patch from Henning Nielsen Lund, originally
71770         sent to bug-grep@gnu.org today.
71771
71772 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71773
71774         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71775         struct stat.  Problem reported by Henning Nielsen Lund.
71776         * lib/acl.c: Include acl.h first, to check interface.  Don't
71777         bother to include sys/types.h and sys/stat.h again.
71778
71779 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         Import the following change from libc; problem reported by
71782         Sven Verdoolaege.
71783
71784         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71785
71786         [BZ #1373]
71787         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71788
71789 2006-12-28  Jim Meyering  <jim@meyering.net>
71790
71791         * build-aux/announce-gen: Do not assume that the package
71792         builds any of tar.gz, tar.bz2, and .xdelta files.
71793         Suggestion from Simon Josefsson.
71794
71795 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71796
71797         * modules/announce-gen: New file.
71798
71799 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71802         handles its gotchas now.
71803         * lib/mbswidth.c: Likewise.
71804         * lib/wcwidth.h: Likewise.
71805         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71806         and iswcntrl; the wctype module does this stuff now.
71807         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71809         * modules/mbchar (Depends-on): Add wctype.
71810         * modules/mbswidth (Depends-on): Likewise.
71811         * modules/wcwidth (Depends-on): Likewise.
71812
71813 2006-12-27  Eric Blake  <ebb9@byu.net>
71814
71815         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71816         module uses more than what <wctype.h> is required to provide.
71817
71818 2006-12-26  Eric Blake  <ebb9@byu.net>
71819
71820         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71821
71822 2006-12-26  Eric Blake  <ebb9@byu.net>
71823
71824         * modules/absolute-header: New module.
71825         * modules/fcntl (Depends-on): Depend on it.
71826         * modules/inttypes (Depends-on): Likewise.
71827         * modules/stdint (Depends-on): Likewise.
71828         * modules/sys_stat (Depends-on): Likewise.
71829         * modules/wctype (Depends-on): Likewise.
71830         * MODULES.html.sh (Support for building libraries and
71831         executables): Document it.
71832
71833 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         * gnulib-tool (SED): Remove, undoing previous change.
71836         The problem was that it broke coreutils on Solaris, because
71837         "sed --posix" leaked into a makefile.
71838         (sed): New alias, if 'alias' and GNU sed.
71839
71840 2006-12-24  Jim Meyering  <jim@meyering.net>
71841
71842         Work around an fchownat bug in glibc-2.4:
71843         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71844         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71845         in spite of the -P option.
71846         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71847         New macros.
71848         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71849         * modules/openat (Files): Add lib/fchownat.c.
71850         * lib/openat.c (fchownat): Don't define here.  Move to...
71851         * lib/fchownat.c: ...this new file.
71852
71853 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71854
71855         Fix bug reported by Bruno Haible in
71856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71857         where quotearg.c didn't compile on Mac OS X 10.2 because it
71858         lacks <wchar.h> and wint_t.
71859         * lib/wctype_.h (__wctype_wint_t): New type.
71860         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71861         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71862         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71863         Arg is now of type __wctype_wint_t, not wint_t.
71864         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71865         substitute HAVE_WINT_T.
71866         * modules/wctype (Files): Add m4/wint_t.m4.
71867         (wctype.h): Substitute HAVE_WINT_T.
71868
71869 2006-12-23  Bruno Haible  <bruno@clisp.org>
71870
71871         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71872
71873 2006-12-23  Bruno Haible  <bruno@clisp.org>
71874
71875         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71876         S_ISLNK.
71877         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71878         mingw.
71879
71880 2006-12-22  Bruno Haible  <bruno@clisp.org>
71881
71882         * lib/copy-file.c: Include acl.h.
71883         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71884         Close the file descriptors only after being done with copy_acl.
71885         * modules/copy-file (Depends-on): Add acl.
71886
71887 2006-12-22  Bruno Haible  <bruno@clisp.org>
71888
71889         * gnulib-tool (SED): New variable.
71890         Use $SED instead of sed everywhere.
71891
71892 2006-12-22  Bruno Haible  <bruno@clisp.org>
71893
71894         * modules/no-c++: New file.
71895         * m4/no-c++.m4: New file.
71896         * MODULES.html.sh (Support for building libraries and executables):
71897         Add no-c++.
71898
71899 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71902         Include <limits.h>, and use its INT_MAX to rewrite the
71903         j loop so that it does not overflow 'int'.  Problem reported by
71904         Ralf Wildenhues in
71905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71906         Play it safe by shifting left by 1 rather than multiplying by 2,
71907         as GCC is less likely to optimize this away when the value
71908         is signed (when it assumes overflow leads to undefined behavior).
71909         Also, don't assume time_t uses two's complement.
71910
71911 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71912
71913         * MODULES.html.sh: New module wctype.
71914         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71915         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71916         <wctype.h>, since the new wctype module should fix this.
71917         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71918         the wctype module should arrange for it.
71919         * lib/regex_internal.h: Likewise.
71920         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71921         since the wctype module should handle this now.
71922         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71923         * modules/fnmatch (Depends-on): Add wctype.
71924         * modules/quotearg (Depends-on): Likewise.
71925         * modules/regex (Depends-on): Likewise.
71926
71927 2006-12-19  Bruno Haible  <bruno@clisp.org>
71928
71929         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71930         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71931
71932 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71933
71934         * modules/savewd (Depends-on): Fix dependency on fcntl.
71935
71936 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71939         conforms to C99, rather than relying on the user's environment
71940         setting of STDINT_H.
71941
71942 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71943         and Eric Blake  <ebb9@byu.net>
71944
71945         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71946         This is more consistent with the other defines here.
71947         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71948         Port to z/OS.  Problem reported by Paul Gilmartin.
71949         Change local vars to use gl_ prefix rather than ac_.
71950         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71951         with other defines.
71952         * modules/double-slash-root: New module.
71953         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71954         (Depends-on): Add double-slash-root.
71955         * MODULES.html.sh (File system functions): Mention new module.
71956
71957 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71958
71959         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71960         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71961         This is for the benefit of gzip, which doesn't do i18n.
71962
71963 2006-12-12  Jim Meyering  <jim@meyering.net>
71964
71965         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71966         Reported by Andreas Schwab <schwab@suse.de>.
71967
71968 2006-12-12  Bruno Haible  <bruno@clisp.org>
71969
71970         Merge these changes.
71971         2006-09-05  Bruno Haible  <bruno@clisp.org>
71972         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71973         iconv_alloc succeeded.
71974         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71975         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71976         test for " && dest " at the end - dest is always != NULL there. Call
71977         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71978         with 2xNULL arguments, also to flush the state storage. Handle the
71979         IRIX iconv behaviour. Realloc the final result, to throw away unused
71980         memory.
71981
71982 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71985         and fchmodat unconditionally, since glibc 2.4 has them.
71986         Problem reported by Arkadiusz Miskiewicz.
71987
71988 2006-12-10  Bruno Haible  <bruno@clisp.org>
71989
71990         * gnulib-tool (func_import): Show the include files only for those
71991         modules that are copied and specified.
71992         Reported by Karl Berry.
71993
71994 2006-12-08  Jim Meyering  <jim@meyering.net>
71995
71996         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71997         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71998
71999         * build-aux/announce-gen: Add two new options, both optional:
72000         --bootstrap-tools=TOOL_LIST
72001               a comma-separated list of tools, e.g.,
72002               autoconf,automake,bison,gnulib
72003         --gnulib-snapshot-date=DATE
72004               if gnulib is in the bootstrap tool list,
72005               then report this as the snapshot date.
72006               If not specified, use the current date/time.
72007               If you specify a date here, be sure it's UTC.
72008
72009 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72010
72011         * tests/test-argp-2.sh: Fix test to match actual output.
72012         (func_compare): Fix sed script to be portable.
72013
72014 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72017         workaround for this case.  It is not autoconfigured now; offhand
72018         it's hard to see how to autoconfigure it.
72019
72020 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72021
72022         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72023         a directory that is about to be chowned.  Such a directory's
72024         initial file permissions should permit the owner only and this
72025         should not be changed until after the chown, since the group and
72026         other bits would be incorrect if they granted permission before
72027         the chown.
72028
72029         Fix porting problem for iswctype reported by Georg Schwarz in:
72030         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72031         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72032         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72033         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72034         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72035
72036 2006-12-03  Jim Meyering  <jim@meyering.net>
72037
72038         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72039         p->fts_statp may not yet be defined.
72040         (fts_read): Instead, set it in the caller, once p->fts_statp is
72041         sure to be defined, and corresponds to a top-level directory.
72042         This bug made du -x fail.  Here's the coreutils test case:
72043         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72044         Reported by Mike Frysinger.
72045
72046 2006-12-01  Jim Meyering  <jim@meyering.net>
72047
72048         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72049         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72050         Reported by Simon Josefsson.
72051
72052 2006-11-30  Jim Meyering  <jim@meyering.net>
72053
72054         * m4/warning.m4: Use the all-permissive copyright notice
72055         recommended by RMS (rather than LGPL).
72056         * m4/vararrays.m4: Likewise.
72057         * m4/flexmember.m4: Likewise.
72058
72059 2006-11-29  Bruno Haible  <bruno@clisp.org>
72060
72061         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72062         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72063         using +=.
72064         Reported by Simon Josefsson <simon@josefsson.org>.
72065
72066 2006-11-28  James Youngman <jay@gnu.org>
72067
72068         * README: Advise users that they might find the bug-gnulib@gnu.org
72069         and autotools-announce@gnu.org mailing lists useful.
72070
72071 2006-11-28  Bruno Haible  <bruno@clisp.org>
72072
72073         * m4/ptrdiff_max.m4: Remove file.
72074
72075 2006-11-21  Bruno Haible  <bruno@clisp.org>
72076
72077         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72078         _AC_COMPUTE_INT.
72079         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72080         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72081         _AC_COMPUTE_INT.
72082         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72083         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72084         _AC_COMPUTE_INT.
72085         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72086
72087 2006-11-28  Jim Meyering  <jim@meyering.net>
72088
72089         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72090         warning from "gcc -Wshadow" about shadowing the builtin.
72091
72092 2006-11-27  Bruno Haible  <bruno@clisp.org>
72093
72094         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72095         _AC_COMPUTE_INT.
72096         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72097
72098 2006-11-27  Bruno Haible  <bruno@clisp.org>
72099             Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72102
72103 2006-11-26  Bruno Haible  <bruno@clisp.org>
72104
72105         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72106         noinst_LTLIBRARIES.
72107
72108 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72109             Bruno Haible  <bruno@clisp.org>
72110
72111         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72112         if compiling with "gcc -ansi".
72113
72114 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72115
72116         Fix some incompatibilities with gcc -ansi -pedantic.
72117         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72118         if compiling pedantically with GCC, unless it's C99 or later.
72119         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72120         it mishandles gcc -ansi -pedantic as well.
72121         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72122         if gcc -pedantic.
72123         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72124         initializers for struct if -pedantic, unless it's C99 or later.
72125
72126 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72127
72128         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72129         Don't close an fd more than once. Identical atimes indicate
72130         success, not failure.
72131
72132 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72133
72134         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72135
72136 2006-11-23  Jim Meyering  <jim@meyering.net>
72137
72138         * build-aux/announce-gen: New file.  From coreutils.
72139
72140 2006-11-22  Jim Meyering  <jim@meyering.net>
72141
72142         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72143         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72144         (fts_read): Use a temporary to narrow the overused st_size member
72145         before using it in a switch statement.  Reported by Matthew Woehlke.
72146
72147         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72148         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72149
72150 2006-11-20  Bruno Haible  <bruno@clisp.org>
72151
72152         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72153         changequote instead of pairs of brackets.
72154         Reported by Andreas Schwab <schwab@suse.de>.
72155
72156 2006-11-21  Jim Meyering  <jim@meyering.net>
72157
72158         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72159         so as to remain compatible with older compilers.
72160         Patch from Michael Deutschmann.
72161
72162 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72163
72164         * MODULES.html.sh (File system functions): Add openat.
72165
72166         * lib/openat.h (rpl_fstatat): New macro, if
72167         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72168         (fstatat): Define to rpl_fstatat under the same conditions,
72169         unless COMPILING_FSTATAT.
72170         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72171         seems to have the bug.
72172         * lib/fstatat.c: New file.
72173         * modules/openat (Files): Add it.
72174
72175 2006-11-20  Bruno Haible  <bruno@clisp.org>
72176
72177         * Makefile: New file.
72178
72179 2006-11-20  Jim Meyering  <jim@meyering.net>
72180
72181         The beginnings of syntax-related checks for gnulib.
72182         * lib/Makefile: New file.
72183         * lib/t-idcache: New script.  Ensure that the two halves of
72184         idcache.c stay in sync.
72185
72186         * lib/idcache.c: Adjust comments in user- and group- portions to
72187         be more accurate, and to be consistent with one another.
72188
72189 2006-11-20  Jim Meyering  <jim@meyering.net>
72190
72191         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72192         continue using the flexible array member (thus, this module performs
72193         half as many malloc calls), with the addition that...
72194         (getgroup, getuser): Consistently record a non-match via an empty
72195         "name" string, and map an empty string match to a NULL return value.
72196         * modules/idcache (Depends-on): Re-add flexmember.
72197
72198         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72199         (getuidbyname, getgroup, getgidbyname): Likewise.
72200
72201         Use cleaner syntax: NULL rather than 0.
72202         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72203
72204 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72207         It mishandled the case where the group was missing.
72208         Problem reported by Greg Schafer.
72209         * modules/idcache: Likewise.
72210
72211 2006-11-18  Jim Meyering  <jim@meyering.net>
72212
72213         * check-module (%exempt_header): Add exception for some
72214         conditionally-included headers.
72215
72216         * modules/i-ring (Depends-on): Add verify.
72217         (License): Change to LGPL.
72218
72219 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72222         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72223         and inttostr.h.  Use snprintf rather than uinttostr, so that
72224         LGPLed code doesn't depend on GPLed.
72225
72226 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72227
72228         * modules/inline (License): Change from GPL to LGPL.
72229
72230 2006-11-17  Jim Meyering  <jim@meyering.net>
72231
72232         * modules/d-type (License): Switch to LGPL.
72233
72234 2006-11-15  Bruno Haible  <bruno@clisp.org>
72235
72236         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72237
72238 2006-11-15  Eric Blake  <ebb9@byu.net>
72239
72240         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72241         the module dependency.
72242
72243 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72244             Bruno Haible  <bruno@clisp.org>
72245
72246         * gnulib-tool (func_create_testdir): Add license consistency check.
72247
72248 2006-11-15  Eric Blake  <ebb9@byu.net>
72249
72250         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72251         random "(cached)" in configure output.
72252
72253 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72254
72255         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72256         test for conforming inttypes.h is both announced and cached.
72257
72258         * MODULES.html.sh (seen_modules, seen_files): New variables.
72259         (func_module): Rewrite to use a few less gnulib-tool and sed
72260         invocations.  Avoid a couple of quadratic algorithms for ...
72261         (missed_modules, missed_files): ... these, with ...
72262         (func_append, func_tmpdir): ... these new functions, from
72263         gnulib-tool.  Analogously, install traps for cleanup.
72264
72265         * tests/test-gc.c (main): Remove unused variables.
72266         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72267
72268 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72269
72270         * modules/inttostr (License): Change to LGPL.
72271
72272 2006-11-14  Eric Blake  <ebb9@byu.net>
72273
72274         * modules/tempname (License): Change to LGPL.
72275
72276 2006-11-14  Eric Blake  <ebb9@byu.net>
72277
72278         * doc/functions.texi (Function Portability): *printf functions on
72279         Cygwin now understand all POSIX size specifiers.
72280
72281 2006-11-14  Bruno Haible  <bruno@clisp.org>
72282
72283         * modules/c-ctype (License): Change to LGPL.
72284
72285 2006-11-12  Bruno Haible  <bruno@clisp.org>
72286
72287         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72288         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72289         for GNOME libraries, for which the include files are installed in
72290         subdirectories of $prefix/include.
72291
72292 2006-11-12  Bruno Haible  <bruno@clisp.org>
72293
72294         * m4/lib-link.m4: Require at least autoconf-2.54.
72295         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72296         name to underscores for the --with option.
72297
72298 2006-11-13  Bruno Haible  <bruno@clisp.org>
72299
72300         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72301         the tests directory.
72302         Reported by Ralf Wildenhues.
72303
72304 2006-11-13  Bruno Haible  <bruno@clisp.org>
72305
72306         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72307         (func_emit_initmacro_end): Undo the override here.
72308         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72309         Works around the famous automake error in coreutils.
72310
72311 2006-11-13  Eric Blake  <ebb9@byu.net>
72312
72313         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72314         element, not its node.
72315
72316 2006-11-12  Bruno Haible  <bruno@clisp.org>
72317
72318         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72319         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72320
72321 2006-11-12  Bruno Haible  <bruno@clisp.org>
72322
72323         * gnulib-tool: New option --local-symlink.
72324         (func_usage): Document it.
72325         (lsymbolic): New variable.
72326         (func_import, func_create_testdir): If --symlink was not specified,
72327         test whether --local-symlink was specified and the file comes from
72328         the local_gnulib_dir.
72329
72330 2006-11-12  Bruno Haible  <bruno@clisp.org>
72331
72332         * gnulib-tool (func_ln): New function.
72333         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72334
72335 2006-11-12  Bruno Haible  <bruno@clisp.org>
72336
72337         Finish support for source files in subdirectories.
72338         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72339         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72340         AUTOMAKE_OPTIONS.
72341         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72342
72343 2006-11-12  Bruno Haible  <bruno@clisp.org>
72344
72345         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72346         EXTRA_lib_SOURCES augmentation.
72347         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72348
72349 2006-11-12  Jim Meyering  <jim@meyering.net>
72350
72351         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72352         file descriptors.  This also averts a failure on systems with
72353         native openat support when a traversed directory lacks "x" access.
72354         * lib/fts_.h: Include "i-ring.h"
72355         (struct FTS) [fts_fd_ring]: New member.
72356         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72357         (FCHDIR): Add parentheses.
72358         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72359         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72360         When descending, rather than simply closing the previous
72361         fts_cwd_fd value, push that file descriptor onto the ring.
72362         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72363         (fts_open): Initialize the new fd_ring member.
72364         (fts_close): Clear the ring.
72365         (fts_safe_changedir): When possible, use our new fd_ring to skip
72366         the diropen and fstat and dev/ino comparison that would normally
72367         accompany a virtual `chdir ("..")'.
72368
72369         * modules/fts (Depends-on): Add i-ring.
72370         * modules/i-ring: New module.
72371         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72372         * m4/i-ring.m4: New file.
72373
72374 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72375
72376         * gnulib-tool (func_create_testdir): Fix replacement of
72377         `build-aux' in configure.ac.  Run autotools in gltests
72378         subdirectory.
72379         (func_create_testdir, func_create_megatestdir, test): There is
72380         no need for '--force' in most autotool invocations in a new
72381         tree.  Actually fail the whole test if any of the tools, or the
72382         configure or make stages fail.
72383
72384         Sync from Automake.
72385         * build-aux/gnupload: Revert last change.  Add pointer to upload
72386         instructions of the GNU Maintenance Instructions.
72387         Suggestion by Karl Berry.
72388
72389 2006-11-10  Jim Meyering  <jim@meyering.net>
72390
72391         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72392
72393 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72394
72395         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72396         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72397         (bind_textdomain_codeset) [! ENABLE_NLS]:
72398         Evaluate all the arguments.  That way, callers get compatible behavior
72399         if the arguments have side effects.  Also, it avoids some GCC
72400         diagnostics in some cases; Joel E. Denny reported problems when Bison
72401         was configured with --enable-gcc-warnigs.
72402
72403 2006-11-10  Jim Meyering  <jim@meyering.net>
72404
72405         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72406         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72407         account.
72408
72409 2006-11-10  Jim Meyering  <jim@meyering.net>
72410
72411         * modules/inline: New file/module.
72412         * modules/xalloc (Files): Remove m4/inline.m4.
72413         (Depends-on): Add inline, instead.
72414         * modules/oset: Likewise.
72415         * modules/list: Likewise.
72416
72417 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72420         Problem reported by Matthew Woehlke.
72421
72422 2006-11-09  Bruno Haible  <bruno@clisp.org>
72423
72424         * lib/tempname.c (gen_tempname): Remove variant that invokes
72425         __gen_tempname.
72426         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72427         __gen_tempname.
72428
72429 2006-11-08  Bruno Haible  <bruno@clisp.org>
72430
72431         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72432         to 'yes' instead of 'cross-compiling'.
72433
72434 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72435
72436         * lib/quotearg.h (quotearg_free): New decl.
72437         * lib/quotearg.c (quotearg_free): New function.
72438         (slot0, nslots, slotvec0, slotvec):
72439         Now file-scope so that quotearg_free can get at them.
72440
72441 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72442
72443         Sync from Automake.
72444         * build-aux/gnupload: Add missing 'gnu' to example URL.
72445         Report by Karl Berry.
72446
72447 2006-11-08  Bruno Haible  <bruno@clisp.org>
72448
72449         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72450         Suggested by Paul Eggert.
72451
72452 2006-11-08  Jim Meyering  <jim@meyering.net>
72453
72454         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72455         It's already included if !_LIBC.
72456         (fts_safe_changedir): Add a comment.
72457
72458 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72459
72460         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72461         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72462         Matthew Woehlke.
72463
72464         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72465         definitions up, to avoid colliding with change below.
72466         (static_inline) [HAVE_INLINE]: New macro.
72467         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72468         Provide extern decls when !HAVE_INLINE.  Do not define unless
72469         static_inline is defined, either by us or by xmalloc.c.  Use
72470         static_inline rather than static inline.
72471         (XCALLOC): Optimize sizeof(T) = 1 case.
72472         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72473
72474 2006-11-07  Bruno Haible  <bruno@clisp.org>
72475
72476         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72477         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72478         AC_C_INLINE.
72479         * modules/xalloc (Files): Add m4/inline.m4.
72480
72481 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72482
72483         * README: Fix typo.
72484         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72485         (Miscellanous Notes): ...from this.
72486
72487 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72490         Mention that offsetof should be used instead of sizeof.
72491         From Bruno Haible.
72492
72493 2006-11-07  Bruno Haible  <bruno@clisp.org>
72494
72495         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72496
72497 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72500         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72501         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72502         (gl_tree_add_before, gl_tree_add_after):
72503         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72504         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72505         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72506         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72507         (gl_linked_add_after, gl_linked_add_at): Likewise.
72508         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72509         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72510         (gl_tree_add_before, gl_tree_add_after): Likewise.
72511         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72512         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72513         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72514
72515 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72516
72517         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72518
72519 2006-11-06  Bruno Haible  <bruno@clisp.org>
72520
72521         * m4/inline.m4: New file.
72522         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72523         * modules/list (Files): Add m4/inline.m4.
72524         * modules/oset (Files): Likewise.
72525
72526 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72527
72528         * lib/idcache.c: Include <stddef.h>, for offsetof.
72529         (struct userid.name): Change from char * to a flexible array member.
72530         All uses changed.
72531         * modules/idcache (Depends-on): Add flexmember.
72532
72533         * MODULES.html.sh (Core language properties): New module flexmember.
72534         * modules/flexmember, m4/flexmember.m4: New files.
72535
72536         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72537         inline functions that are identical with the old xnmalloc_inline,
72538         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72539         that we can avoid some unnecessary integer multiplications and
72540         divisions in the common case where the element size is known at
72541         compile time.
72542         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72543         needed.
72544         (xnboundedmalloc): Remove.
72545         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72546         arguments, for consistency with rest of this header.
72547         (xcharalloc): Rewrite using XNMALLOC.
72548         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72549         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72550         versions have been moved to lib/xalloc.h and renamed to be the
72551         non-*_inline versions.
72552         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72553         and xnrealloc functions, since those functions are now inline and
72554         now call us.
72555         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72556         renaming described above.
72557         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72558         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72559         captures the dependency in AC_C_INLINE.
72560
72561         New module canonicalize-lgpl, proposed by Charles Wilson in
72562         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72563         with a few small changes afterwards.
72564         * MODULES.html.sh (File system functions): New module
72565         canonicalize-lgpl.
72566         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72567         and canonicalize_file_name.
72568         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72569         * modules/canonicalize-lgpl: New files.
72570
72571 2006-11-05  Bruno Haible  <bruno@clisp.org>
72572
72573         * gnulib-tool (func_import, func_create_testdir): Create directories
72574         also for files in subdirectories of lib/.
72575
72576 2006-11-05  Bruno Haible  <bruno@clisp.org>
72577
72578         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72579         ANSI C compliant.
72580
72581 2006-11-03  Bruno Haible  <bruno@clisp.org>
72582
72583         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72584         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72585         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72586         (xnboundedmalloc): New inline function.
72587         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72588         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72589         xmalloc.
72590         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72591         xmalloc.
72592         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72593         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72594         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72595         xmalloc.
72596         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72597         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72598         xmalloc.
72599         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72600         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72601         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72602         xmalloc.
72603         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72604         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72605         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72606         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72607         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72608         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72609         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72610
72611 2006-11-03  Bruno Haible  <bruno@clisp.org>
72612
72613         * lib/c-ctype.h [C++]: Define functions without name mangling.
72614         * lib/fwriteerror.h [C++]: Likewise.
72615         * lib/gcd.h [C++]: Likewise.
72616         * lib/linebreak.h [C++]: Likewise.
72617
72618 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72619
72620         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72621         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72622         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72623         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72624         Check for functions and headers just once.
72625         Check for declaration of canonicalize_file_name.
72626         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72627
72628 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72629
72630         * gnulib-tool (func_import): Fix typo in actioncmd.
72631
72632 2006-11-02  Bruno Haible  <bruno@clisp.org>
72633
72634         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72635         newline sequence in the Makefile.am snippet as a space, like "make"
72636         does.
72637         Reported by Roger Persson <perrog@gmail.com>.
72638
72639 2006-11-01  Bruno Haible  <bruno@clisp.org>
72640
72641         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72642         already declared in <string.h>.
72643         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72644
72645 2006-11-01  Bruno Haible  <bruno@clisp.org>
72646
72647         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72648         * lib/strcase.h: Include <string.h>.
72649         (strcasecmp): Define to rpl_strcasecmp here.
72650
72651 2006-11-01  Bruno Haible  <bruno@clisp.org>
72652
72653         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72654
72655 2006-11-01  Eric Blake  <ebb9@byu.net>
72656
72657         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72658
72659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72660
72661 2006-10-29  Bruno Haible  <bruno@clisp.org>
72662
72663         Make it compile in C++ mode.
72664         * lib/full-write.c (full_rw): Add a cast.
72665
72666 2006-11-01  Bruno Haible  <bruno@clisp.org>
72667
72668         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72669         be POSIX compliant.
72670         Reported by Roger Persson <perrog@gmail.com>.
72671
72672 2006-11-01  Eric Blake  <ebb9@byu.net>
72673
72674         * lib/getopt_.h: Fix comments.
72675
72676 2006-10-31  Eric Blake  <ebb9@byu.net>
72677
72678         * modules/tmpdir (Depends-on): Add sys_stat.
72679         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72680         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72681         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72682         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72683         tempname.
72684
72685 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         Avoid some C++ diagnostics reported by Bruno Haible.
72688         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72689         xmalloc.
72690         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72691         (struct slotvec): Move to top level.
72692         (quotearg_n_options): Rewrite to avoid xmalloc.
72693         * lib/xalloc.h (xcharalloc): New function.
72694         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72695         [defined __cplusplus]: Add function template that provides result
72696         type propagation.  This part of the change is from Bruno Haible.
72697
72698 2006-10-29  Bruno Haible  <bruno@clisp.org>
72699
72700         Make it compile in C++ mode.
72701         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72702         * lib/strnlen1.c (strnlen1): Cast memchr result.
72703         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72704         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72705         (create_temp_dir): Rename local variable 'template'.
72706         (compile_csharp_using_sscli): Add cast.
72707         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72708         * lib/findprog.c (find_in_path): Likewise.
72709         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72710         * lib/wait-process.c (register_slave_subprocess): Likewise.
72711
72712 2006-10-22  Bruno Haible  <bruno@clisp.org>
72713
72714         * modules/tsearch: New file.
72715         * lib/tsearch.h: New file.
72716         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72717         * m4/tsearch.m4: New file.
72718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72719
72720 2006-10-29  Eric Blake  <ebb9@byu.net>
72721
72722         * lib/arcfour.c: Assume config.h.
72723         * lib/arctwo.c: Likewise.
72724         * lib/base64.c: Likewise.
72725         * lib/check-version.c: Likewise.
72726         * lib/crc.c: Likewise.
72727         * lib/des.c: Likewise.
72728         * lib/gc-gnulib.c: Likewise.
72729         * lib/gc-libgcrypt.c: Likewise.
72730         * lib/gc-pbkdf2-sha1.c: Likewise.
72731         * lib/getaddrinfo.c: Likewise.
72732         * lib/getdelim.c: Likewise.
72733         * lib/getline.c: Likewise.
72734         * lib/hmac-md5.c: Likewise.
72735         * lib/hmac-sha1.c: Likewise.
72736         * lib/iconvme.c: Likewise.
72737         * lib/md2.c: Likewise.
72738         * lib/md4.c: Likewise.
72739         * lib/memxor.c: Likewise.
72740         * lib/read-file.c: Likewise.
72741         * lib/readline.c: Likewise.
72742         * lib/rijndael-alg-fst.c: Likewise.
72743         * lib/rijndael-api-fst.c: Likewise.
72744         * lib/xgetdomainname.c: Likewise.
72745
72746 2006-10-28  Eric Blake  <ebb9@byu.net>
72747
72748         * lib/xstrndup.c: Assume config.h.
72749
72750 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72753         stat-macros.h is now for our own macros, whereas stat_h is for
72754         macros in the <sys/stat.h> name space.
72755         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72756         (STAT_MACROS_H): Remove.
72757         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72758         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72759         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72760         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72761         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72762         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72763         Move these macros to ...
72764         * lib/stat_.h: here.  Don't include stat-macros.h.
72765         * lib/canonicalize.c: Don't include stat-macros.h.
72766         * lib/chown.c: Likewise.
72767         * lib/euidaccess.c: Likewise.
72768         * lib/file-type.c: Likewise.
72769         * lib/filemode.c: Likewise.
72770         * lib/glob.c: Likewise.
72771         * lib/isapipe.c: Likewise.
72772         * lib/lchown.c: Likewise.
72773         * lib/lstat.c: Likewise.
72774         * lib/mkdir-p.c: Likewise.
72775         * lib/rmdir.c: Likewise.
72776         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72778         unless mkdir isn't declared, to speed up 'configure'.
72779         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72780         would define all the S_* symbols.
72781         * modules/canonicalize (Depends-on):
72782         Depend on sys_stat, not stat-macros.
72783         * modules/chown: Likewise.
72784         * modules/euidaccess: Likewise.
72785         * modules/filemode: Likewise.
72786         * modules/file-type: Likewise.
72787         * modules/glob: Likewise.
72788         * modules/isapipe: Likewise.
72789         * modules/lchown: Likewise.
72790         * modules/lstat: Likewise.
72791         * modules/mkancesdirs: Likewise.
72792         * modules/rmdir: Likewise.
72793         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72794         * modules/modechange: Likewise.
72795         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72796         (configure.ac): Remove gl_STAT_MACROS.
72797         * modules/sys_stat (Depends-on): Remove stat-macros.
72798
72799 2006-10-27  Bruno Haible  <bruno@clisp.org>
72800
72801         * m4/signed.m4: Remove file.
72802         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72803         invocation.
72804         * modules/vasnprintf (Files): Remove m4/signed.m4.
72805
72806 2006-10-27  Bruno Haible  <bruno@clisp.org>
72807
72808         Update to GNU gettext 0.16.
72809         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72810         m4/inttypes-h.m4, m4/signed.m4.
72811         * m4/gettext.m4: Update to GNU gettext 0.16.
72812         * m4/intl.m4: New file, from GNU gettext.
72813         * m4/intldir.m4: New file, from GNU gettext.
72814         * config/srclist.txt: Update
72815
72816 2006-10-27  Eric Blake  <ebb9@byu.net>
72817
72818         * MODULES.html.sh: Document tempname.
72819         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72820         dependencies.
72821         (Files): Move lib/tempname.c...
72822         * modules/tempname: ...to this new module.
72823         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72824         (gl_PREREQ_TEMPNAME): Move...
72825         * m4/tempname.m4: ...to this new file.
72826         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72827         * modules/sys_stat (Depends-on): Add stat-macros.
72828         * lib/stat_.h (includes): Pick up stat macros.
72829         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72830         if stat macros are broken.
72831         * lib/tempname.c (includes): No need to include "stat-macros.h".
72832         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72833         (direxists, __path_search) [!_LIBC]: Don't compile these in
72834         gnulib; the tmpdir module covers that.
72835         * lib/tempname.h: New file.
72836
72837 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72838
72839         * COPYING: Explain how gnulib-tool converts licence headers.
72840         Almost all wording by Eric Blake.
72841
72842 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72843
72844         * lib/mbchar.h (is_basic_table): Make read-only.
72845         * lib/mbchar.c (is_basic_table): Likewise.
72846         Reported by John Darrington.
72847
72848 2006-10-25  Bruno Haible  <bruno@clisp.org>
72849
72850         * lib/progname.h (set_program_name): Undefine before defining.
72851
72852 2006-10-25  Bruno Haible  <bruno@clisp.org>
72853
72854         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72855         false for non-gcc C++ compilers.
72856         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72857
72858 2006-10-24  Bruno Haible  <bruno@clisp.org>
72859
72860         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72861         iconv implementations like Irix iconv.
72862
72863 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * modules/vararrays: New file.
72866         * m4/vararrays.m4: New file, taken from diffutils.
72867         * MODULES.html.sh: New module vararrays.
72868
72869 2006-10-24  Karl Berry  <karl@gnu.org>
72870
72871         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72872         Don't call GNU Unix.
72873
72874 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72875
72876         * users.txt: Add Libtool.
72877
72878         Sync from Libtool:
72879
72880         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72881
72882         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72883         to gnulib's policy of including config.h unconditionally.
72884
72885 2006-10-24  Bruno Haible  <bruno@clisp.org>
72886
72887         * modules/wcwidth (Files): Add m4/wint_t.m4.
72888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72889         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72890
72891 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72894         to pacify GCC with some -W flags enabled.  Problem reported by
72895         Bruno Haible.
72896
72897 2006-10-24  Jim Meyering  <jim@meyering.net>
72898
72899         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72900         Reported by Karl Berry.
72901
72902 2006-10-23  Bruno Haible  <bruno@clisp.org>
72903
72904         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72905
72906 2006-10-24  Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/gl_list.h: Use C comment style, not C++ comment style.
72909
72910 2006-10-23  Eric Blake  <ebb9@byu.net>
72911
72912         * lib/getaddrinfo.c (includes): Add missing include.
72913
72914 2006-10-23  Bruno Haible  <bruno@clisp.org>
72915             Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         Ability to rename obstack_free.
72918         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72919         obstack_free.
72920         (obstack_free): Invoke the __obstack_free macro.
72921         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72922
72923 2006-10-23  Bruno Haible  <bruno@clisp.org>
72924             Paul Eggert  <eggert@cs.ucla.edu>
72925
72926         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72927         __argc, __argv from the declaration. (They are defined as macros on
72928         mingw.)
72929
72930 2006-10-22  Bruno Haible  <bruno@clisp.org>
72931
72932         * doc/gnulib-intro.texi: New file.
72933         * doc/gnulib.texi: Include it.
72934
72935 2006-10-21  Bruno Haible  <bruno@clisp.org>
72936
72937         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72938         "Introduction", "Miscellanous Notes", "Particular Modules".
72939
72940 2006-10-21  Bruno Haible  <bruno@clisp.org>
72941
72942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72943         Change mostlyclean-local rule to avoid sh syntax error from bash
72944         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72945
72946 2006-10-23  Jim Meyering  <jim@meyering.net>
72947
72948         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72949         in place of snprintf.
72950
72951         * modules/inttostr (Files): Add lib/uinttostr.c.
72952         * lib/uinttostr.c (inttostr): New file/function.
72953         * lib/inttostr.h (uinttostr): Declare.
72954         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72955         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72956         Add uinttostr.
72957         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72958
72959 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72960
72961         * lib/canonicalize.c (ELOOP): Define if not already defined.
72962         Problem reported by Bruno Haible in
72963         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72964
72965 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72966
72967         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72968         Problem reported by Perry Smith and Ville Laurikari.
72969
72970         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72971         uses.
72972
72973 2006-10-19  Bruno Haible  <bruno@clisp.org>
72974
72975         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72976         for mingw.
72977
72978 2006-10-19  Bruno Haible  <bruno@clisp.org>
72979
72980         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72981         Needed for mingw.
72982
72983 2006-10-19  Bruno Haible  <bruno@clisp.org>
72984
72985         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72986
72987 2006-10-19  Bruno Haible  <bruno@clisp.org>
72988
72989         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72990         it.
72991
72992 2006-10-19  Bruno Haible  <bruno@clisp.org>
72993
72994         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72995         invocation.
72996
72997 2006-10-19  Bruno Haible  <bruno@clisp.org>
72998
72999         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73000         mountlist by default.
73001
73002 2006-10-16  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/c-strstr.c: Include c-strstr.h.
73005
73006 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73007
73008         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73009         in a slash.
73010
73011 2006-10-18  Bruno Haible  <bruno@clisp.org>
73012
73013         * lib/lock.h [C++]: Wrap definitions in extern "C".
73014
73015 2006-10-18  Bruno Haible  <bruno@clisp.org>
73016
73017         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73018         gl_LIBOBJS list.
73019
73020 2006-10-18  Bruno Haible  <bruno@clisp.org>
73021
73022         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73023
73024 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73025
73026         * lib/xstrtol.h: Include gettext.h.
73027         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73028         Problem reported by Eric Blake.
73029         * modules/xstrtol (Depends-on): Add gettext-h.
73030
73031 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73032
73033         * lib/strftime.c (advance): New macro.
73034         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73035         incomplete type, so you can't add 0 to it.  Problem and patch
73036         reported by Eelco Dolstra for dietlibc.
73037
73038 2006-10-18  Jim Meyering  <jim@meyering.net>
73039
73040         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73041         type for a local, and rename it: s/up/user_proc/.
73042
73043 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73044
73045         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73046         READ_UTMP_USER_PROCESS.
73047         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73048
73049 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73052         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73053
73054 2006-10-17  Eric Blake  <ebb9@byu.net>
73055
73056         * lib/sigprocmask.c (sigprocmask): Fix typo.
73057
73058         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73059
73060         * modules/clean-temp (Makefile.am): Don't add to make output...
73061         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73062         config.h.
73063
73064 2006-10-17  Bruno Haible  <bruno@clisp.org>
73065
73066         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73067         differently if DEFAULT_TEXT_DOMAIN is set.
73068
73069 2006-10-16  Bruno Haible  <bruno@clisp.org>
73070
73071         * lib/clean-temp.c: Include fwriteerror.h.
73072
73073 2006-10-16  Bruno Haible  <bruno@clisp.org>
73074
73075         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73076
73077 2006-10-16  Bruno Haible  <bruno@clisp.org>
73078
73079         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73080         * lib/sigprocmask.h: Include <sys/types.h>.
73081         (sigset_t): Use the system's definition if present.
73082
73083 2006-10-17  Eric Blake  <ebb9@byu.net>
73084
73085         * lib/xvasprintf.c (includes): Assume config.h.
73086         * lib/xasprintf.c (includes): Likewise.
73087
73088 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73091         at least as wide as intmax_t.
73092
73093 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73094
73095         (Imported from Automake.)
73096         * build-aux/gnupload: Update to version 1.1 of directive file.
73097
73098 2006-10-16  Eric Blake  <ebb9@byu.net>
73099
73100         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73101         match Automake 1.10a.
73102
73103 2006-10-14  Bruno Haible  <bruno@clisp.org>
73104
73105         * modules/sigprocmask: New file.
73106         * lib/sigprocmask.h: New file.
73107         * lib/sigprocmask.c: New file.
73108         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73109         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73110         request sigprocmask.o.
73111         (gl_PREREQ_SIGPROCMASK): New macro.
73112         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73113         (Depends-on): Add sigprocmask.
73114         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73115         gt_SIGNALBLOCKING. Test for 'raise' only once.
73116         * lib/fatal-signal.c: Include sigprocmask.h.
73117         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73118         unblock_fatal_signals): Define always.
73119         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73120         sigprocmask.
73121
73122 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73123
73124         Sync from Automake.
73125         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73126         which incorrectly sets the mode of an existing destination
73127         directory.  In some cases the unpatched install-sh could do the
73128         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73129         system.  We hope this is rare in practice, but it's clearly worth
73130         fixing.  Problem reported by Alex Unleashed in
73131         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73132         Also, don't bother to check for -m bugs unless we're using -m;
73133         suggested by Stepan Kasal.
73134
73135 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73136
73137         Sync from Automake.
73138         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73139         `-c' flag, so they appear at the same position as in %FASTDEP%
73140         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73141         which ignores unknown options only after the first non-option.
73142         Bug report against M4 by Nelson H. F. Beebe.
73143
73144 2006-10-13  Jim Meyering  <jim@meyering.net>
73145
73146         Fix a bug in yesterday's change.
73147         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73148         p->fts_statp->st_dev would be used uninitialized.
73149         Ensures that we always call fts_stat on the very first entry.
73150         Miklos Szeredi reported that find -xdev stopped working.
73151
73152 2006-10-12  Bruno Haible  <bruno@clisp.org>
73153
73154         * gnulib-tool (func_get_automake_snippet): Append an automatically
73155         computed EXTRA_DIST augmentation.
73156         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73157         * modules/alloca-opt (Makefile.am): Likewise.
73158         * modules/allocsa (Makefile.am): Likewise.
73159         * modules/arcfour (Makefile.am): Likewise.
73160         * modules/arctwo (Makefile.am): Likewise.
73161         * modules/argmatch (Makefile.am): Likewise.
73162         * modules/argz (Makefile.am): Likewise.
73163         * modules/atexit (Makefile.am): Likewise.
73164         * modules/backupfile (Makefile.am): Likewise.
73165         * modules/byteswap (Makefile.am): Likewise.
73166         * modules/c-strtod (Makefile.am): Likewise.
73167         * modules/c-strtold (Makefile.am): Likewise.
73168         * modules/calloc (Makefile.am): Likewise.
73169         * modules/canon-host (Makefile.am): Likewise.
73170         * modules/canonicalize (Makefile.am): Likewise.
73171         * modules/chdir-long (Makefile.am): Likewise.
73172         * modules/chdir-safer (Makefile.am): Likewise.
73173         * modules/check-version (Makefile.am): Likewise.
73174         * modules/chown (Makefile.am): Likewise.
73175         * modules/cloexec (Makefile.am): Likewise.
73176         * modules/close-stream (Makefile.am): Likewise.
73177         * modules/closeout (Makefile.am): Likewise.
73178         * modules/crc (Makefile.am): Likewise.
73179         * modules/csharpexec (Makefile.am): Likewise.
73180         * modules/cycle-check (Makefile.am): Likewise.
73181         * modules/des (Makefile.am): Likewise.
73182         * modules/dev-ino (Makefile.am): Likewise.
73183         * modules/dirfd (Makefile.am): Likewise.
73184         * modules/dirname (Makefile.am): Likewise.
73185         * modules/dup2 (Makefile.am): Likewise.
73186         * modules/eealloc (Makefile.am): Likewise.
73187         * modules/error (Makefile.am): Likewise.
73188         * modules/euidaccess (Makefile.am): Likewise.
73189         * modules/exclude (Makefile.am): Likewise.
73190         * modules/exitfail (Makefile.am): Likewise.
73191         * modules/fcntl-safer (Makefile.am): Likewise.
73192         * modules/fcntl (Makefile.am): Likewise.
73193         * modules/file-type (Makefile.am): Likewise.
73194         * modules/fileblocks (Makefile.am): Likewise.
73195         * modules/filemode (Makefile.am): Likewise.
73196         * modules/filenamecat (Makefile.am): Likewise.
73197         * modules/fnmatch (Makefile.am): Likewise.
73198         * modules/fopen-safer (Makefile.am): Likewise.
73199         * modules/fpending (Makefile.am): Likewise.
73200         * modules/fprintftime (Makefile.am): Likewise.
73201         * modules/free (Makefile.am): Likewise.
73202         * modules/fsusage (Makefile.am): Likewise.
73203         * modules/ftruncate (Makefile.am): Likewise.
73204         * modules/fts (Makefile.am): Likewise.
73205         * modules/gc-arcfour (Makefile.am): Likewise.
73206         * modules/gc-des (Makefile.am): Likewise.
73207         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73208         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73209         * modules/gc-md4 (Makefile.am): Likewise.
73210         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73211         * modules/gc-sha1 (Makefile.am): Likewise.
73212         * modules/gc (Makefile.am): Likewise.
73213         * modules/getaddrinfo (Makefile.am): Likewise.
73214         * modules/getcwd (Makefile.am): Likewise.
73215         * modules/getdelim (Makefile.am): Likewise.
73216         * modules/getdomainname (Makefile.am): Likewise.
73217         * modules/getgroups (Makefile.am): Likewise.
73218         * modules/gethostname (Makefile.am): Likewise.
73219         * modules/gethrxtime (Makefile.am): Likewise.
73220         * modules/getline (Makefile.am): Likewise.
73221         * modules/getloadavg (Makefile.am): Likewise.
73222         * modules/getlogin_r (Makefile.am): Likewise.
73223         * modules/getndelim2 (Makefile.am): Likewise.
73224         * modules/getopt (Makefile.am): Likewise.
73225         * modules/getpagesize (Makefile.am): Likewise.
73226         * modules/getpass-gnu (Makefile.am): Likewise.
73227         * modules/getpass (Makefile.am): Likewise.
73228         * modules/getsubopt (Makefile.am): Likewise.
73229         * modules/gettime (Makefile.am): Likewise.
73230         * modules/gettimeofday (Makefile.am): Likewise.
73231         * modules/getugroups (Makefile.am): Likewise.
73232         * modules/getusershell (Makefile.am): Likewise.
73233         * modules/glob (Makefile.am): Likewise.
73234         * modules/group-member (Makefile.am): Likewise.
73235         * modules/hard-locale (Makefile.am): Likewise.
73236         * modules/hash (Makefile.am): Likewise.
73237         * modules/hmac-md5 (Makefile.am): Likewise.
73238         * modules/hmac-sha1 (Makefile.am): Likewise.
73239         * modules/human (Makefile.am): Likewise.
73240         * modules/idcache (Makefile.am): Likewise.
73241         * modules/imaxabs (Makefile.am): Likewise.
73242         * modules/imaxdiv (Makefile.am): Likewise.
73243         * modules/inet_ntop (Makefile.am): Likewise.
73244         * modules/inet_pton (Makefile.am): Likewise.
73245         * modules/intprops (Makefile.am): Likewise.
73246         * modules/inttostr (Makefile.am): Likewise.
73247         * modules/inttypes (Makefile.am): Likewise.
73248         * modules/isapipe (Makefile.am): Likewise.
73249         * modules/javaversion (Makefile.am): Likewise.
73250         * modules/lchmod (Makefile.am): Likewise.
73251         * modules/lchown (Makefile.am): Likewise.
73252         * modules/localcharset (Makefile.am): Likewise.
73253         * modules/long-options (Makefile.am): Likewise.
73254         * modules/lstat (Makefile.am): Likewise.
73255         * modules/malloc (Makefile.am): Likewise.
73256         * modules/mathl (Makefile.am): Likewise.
73257         * modules/mbchar (Makefile.am): Likewise.
73258         * modules/md2 (Makefile.am): Likewise.
73259         * modules/md4 (Makefile.am): Likewise.
73260         * modules/md5 (Makefile.am): Likewise.
73261         * modules/memcasecmp (Makefile.am): Likewise.
73262         * modules/memchr (Makefile.am): Likewise.
73263         * modules/memcmp (Makefile.am): Likewise.
73264         * modules/memcoll (Makefile.am): Likewise.
73265         * modules/memcpy (Makefile.am): Likewise.
73266         * modules/memmem (Makefile.am): Likewise.
73267         * modules/memmove (Makefile.am): Likewise.
73268         * modules/mempcpy (Makefile.am): Likewise.
73269         * modules/memrchr (Makefile.am): Likewise.
73270         * modules/memset (Makefile.am): Likewise.
73271         * modules/memxor (Makefile.am): Likewise.
73272         * modules/mkancesdirs (Makefile.am): Likewise.
73273         * modules/mkdir-p (Makefile.am): Likewise.
73274         * modules/mkdir (Makefile.am): Likewise.
73275         * modules/mkdtemp (Makefile.am): Likewise.
73276         * modules/mkstemp (Makefile.am): Likewise.
73277         * modules/mktime (Makefile.am): Likewise.
73278         * modules/modechange (Makefile.am): Likewise.
73279         * modules/mountlist (Makefile.am): Likewise.
73280         * modules/nanosleep (Makefile.am): Likewise.
73281         * modules/obstack (Makefile.am): Likewise.
73282         * modules/openat (Makefile.am): Likewise.
73283         * modules/pagealign_alloc (Makefile.am): Likewise.
73284         * modules/pathmax (Makefile.am): Likewise.
73285         * modules/physmem (Makefile.am): Likewise.
73286         * modules/poll (Makefile.am): Likewise.
73287         * modules/posixtm (Makefile.am): Likewise.
73288         * modules/posixver (Makefile.am): Likewise.
73289         * modules/putenv (Makefile.am): Likewise.
73290         * modules/quote (Makefile.am): Likewise.
73291         * modules/quotearg (Makefile.am): Likewise.
73292         * modules/raise (Makefile.am): Likewise.
73293         * modules/read-file (Makefile.am): Likewise.
73294         * modules/readline (Makefile.am): Likewise.
73295         * modules/readlink (Makefile.am): Likewise.
73296         * modules/readtokens (Makefile.am): Likewise.
73297         * modules/readutmp (Makefile.am): Likewise.
73298         * modules/realloc (Makefile.am): Likewise.
73299         * modules/regex (Makefile.am): Likewise.
73300         * modules/rename-dest-slash (Makefile.am): Likewise.
73301         * modules/rename (Makefile.am): Likewise.
73302         * modules/rijndael (Makefile.am): Likewise.
73303         * modules/rmdir (Makefile.am): Likewise.
73304         * modules/rpmatch (Makefile.am): Likewise.
73305         * modules/safe-read (Makefile.am): Likewise.
73306         * modules/safe-write (Makefile.am): Likewise.
73307         * modules/same-inode (Makefile.am): Likewise.
73308         * modules/same (Makefile.am): Likewise.
73309         * modules/save-cwd (Makefile.am): Likewise.
73310         * modules/savedir (Makefile.am): Likewise.
73311         * modules/setenv (Makefile.am): Likewise.
73312         * modules/settime (Makefile.am): Likewise.
73313         * modules/sha1 (Makefile.am): Likewise.
73314         * modules/sig2str (Makefile.am): Likewise.
73315         * modules/snprintf (Makefile.am): Likewise.
73316         * modules/stat-macros (Makefile.am): Likewise.
73317         * modules/stat-time (Makefile.am): Likewise.
73318         * modules/stdbool (Makefile.am): Likewise.
73319         * modules/stdint (Makefile.am): Likewise.
73320         * modules/stdlib-safer (Makefile.am): Likewise.
73321         * modules/stpcpy (Makefile.am): Likewise.
73322         * modules/stpncpy (Makefile.am): Likewise.
73323         * modules/strcase (Makefile.am): Likewise.
73324         * modules/strcasestr (Makefile.am): Likewise.
73325         * modules/strchrnul (Makefile.am): Likewise.
73326         * modules/strcspn (Makefile.am): Likewise.
73327         * modules/strdup (Makefile.am): Likewise.
73328         * modules/strerror (Makefile.am): Likewise.
73329         * modules/strftime (Makefile.am): Likewise.
73330         * modules/strndup (Makefile.am): Likewise.
73331         * modules/strnlen (Makefile.am): Likewise.
73332         * modules/strpbrk (Makefile.am): Likewise.
73333         * modules/strsep (Makefile.am): Likewise.
73334         * modules/strstr (Makefile.am): Likewise.
73335         * modules/strtod (Makefile.am): Likewise.
73336         * modules/strtoimax (Makefile.am): Likewise.
73337         * modules/strtok_r (Makefile.am): Likewise.
73338         * modules/strtol (Makefile.am): Likewise.
73339         * modules/strtoll (Makefile.am): Likewise.
73340         * modules/strtoul (Makefile.am): Likewise.
73341         * modules/strtoull (Makefile.am): Likewise.
73342         * modules/strtoumax (Makefile.am): Likewise.
73343         * modules/strverscmp (Makefile.am): Likewise.
73344         * modules/sys_socket (Makefile.am): Likewise.
73345         * modules/sys_stat (Makefile.am): Likewise.
73346         * modules/sysexits (Makefile.am): Likewise.
73347         * modules/time_r (Makefile.am): Likewise.
73348         * modules/timegm (Makefile.am): Likewise.
73349         * modules/timespec (Makefile.am): Likewise.
73350         * modules/tmpfile-safer (Makefile.am): Likewise.
73351         * modules/trim (Makefile.am): Likewise.
73352         * modules/unistd-safer (Makefile.am): Likewise.
73353         * modules/unlinkdir (Makefile.am): Likewise.
73354         * modules/unlocked-io (Makefile.am): Likewise.
73355         * modules/userspec (Makefile.am): Likewise.
73356         * modules/utime (Makefile.am): Likewise.
73357         * modules/utimecmp (Makefile.am): Likewise.
73358         * modules/utimens (Makefile.am): Likewise.
73359         * modules/vasnprintf (Makefile.am): Likewise.
73360         * modules/vasprintf (Makefile.am): Likewise.
73361         * modules/vsnprintf (Makefile.am): Likewise.
73362         * modules/xalloc (Makefile.am): Likewise.
73363         * modules/xgetcwd (Makefile.am): Likewise.
73364         * modules/xnanosleep (Makefile.am): Likewise.
73365         * modules/xreadlink (Makefile.am): Likewise.
73366         * modules/xstrtod (Makefile.am): Likewise.
73367         * modules/xstrtol (Makefile.am): Likewise.
73368         * modules/xstrtold (Makefile.am): Likewise.
73369         * modules/yesno (Makefile.am): Likewise.
73370         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73371
73372 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         * modules/error (Makefile.am): Distribute files through
73375         EXTRA_DIST, not lib_SOURCES.
73376
73377 2006-10-12  Eric Blake  <ebb9@byu.net>
73378
73379         * modules/error (Makefile.am): Distribute files in /lib.
73380         * modules/obstack (Makefile.am): Likewise.
73381
73382 2006-10-12  Bruno Haible  <bruno@clisp.org>
73383
73384         * modules/acl (Makefile.am): Distribute all files in lib/ through
73385         EXTRA_DIST.
73386         * modules/arcfour (Makefile.am): Likewise.
73387         * modules/arctwo (Makefile.am): Likewise.
73388         * modules/argmatch (Makefile.am): Likewise.
73389         * modules/argz (Makefile.am): Likewise.
73390         * modules/atexit (Makefile.am): Likewise.
73391         * modules/backupfile (Makefile.am): Likewise.
73392         * modules/c-strtod (Makefile.am): Likewise.
73393         * modules/c-strtold (Makefile.am): Likewise.
73394         * modules/calloc (Makefile.am): Likewise.
73395         * modules/canon-host (Makefile.am): Likewise.
73396         * modules/canonicalize (Makefile.am): Likewise.
73397         * modules/chdir-long (Makefile.am): Likewise.
73398         * modules/chdir-safer (Makefile.am): Likewise.
73399         * modules/check-version (Makefile.am): Likewise.
73400         * modules/chown (Makefile.am): Likewise.
73401         * modules/cloexec (Makefile.am): Likewise.
73402         * modules/close-stream (Makefile.am): Likewise.
73403         * modules/closeout (Makefile.am): Likewise.
73404         * modules/crc (Makefile.am): Likewise.
73405         * modules/cycle-check (Makefile.am): Likewise.
73406         * modules/des (Makefile.am): Likewise.
73407         * modules/dirfd (Makefile.am): Likewise.
73408         * modules/dirname (Makefile.am): Likewise.
73409         * modules/dup2 (Makefile.am): Likewise.
73410         * modules/euidaccess (Makefile.am): Likewise.
73411         * modules/exclude (Makefile.am): Likewise.
73412         * modules/exitfail (Makefile.am): Likewise.
73413         * modules/fcntl-safer (Makefile.am): Likewise.
73414         * modules/file-type (Makefile.am): Likewise.
73415         * modules/fileblocks (Makefile.am): Likewise.
73416         * modules/filemode (Makefile.am): Likewise.
73417         * modules/filenamecat (Makefile.am): Likewise.
73418         * modules/fnmatch (Makefile.am): Likewise.
73419         * modules/fopen-safer (Makefile.am): Likewise.
73420         * modules/fpending (Makefile.am): Likewise.
73421         * modules/fprintftime (Makefile.am): Likewise.
73422         * modules/free (Makefile.am): Likewise.
73423         * modules/fsusage (Makefile.am): Likewise.
73424         * modules/ftruncate (Makefile.am): Likewise.
73425         * modules/fts (Makefile.am): Likewise.
73426         * modules/gc (Makefile.am): Likewise.
73427         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73428         * modules/getaddrinfo (Makefile.am): Likewise.
73429         * modules/getcwd (Makefile.am): Likewise.
73430         * modules/getdelim (Makefile.am): Likewise.
73431         * modules/getdomainname (Makefile.am): Likewise.
73432         * modules/getgroups (Makefile.am): Likewise.
73433         * modules/gethostname (Makefile.am): Likewise.
73434         * modules/gethrxtime (Makefile.am): Likewise.
73435         * modules/getline (Makefile.am): Likewise.
73436         * modules/getloadavg (Makefile.am): Likewise.
73437         * modules/getlogin_r (Makefile.am): Likewise.
73438         * modules/getopt (Makefile.am): Likewise.
73439         * modules/getpass (Makefile.am): Likewise.
73440         * modules/getpass-gnu (Makefile.am): Likewise.
73441         * modules/getsubopt (Makefile.am): Likewise.
73442         * modules/gettime (Makefile.am): Likewise.
73443         * modules/gettimeofday (Makefile.am): Likewise.
73444         * modules/getugroups (Makefile.am): Likewise.
73445         * modules/getusershell (Makefile.am): Likewise.
73446         * modules/glob (Makefile.am): Likewise.
73447         * modules/group-member (Makefile.am): Likewise.
73448         * modules/hard-locale (Makefile.am): Likewise.
73449         * modules/hash (Makefile.am): Likewise.
73450         * modules/hmac-md5 (Makefile.am): Likewise.
73451         * modules/hmac-sha1 (Makefile.am): Likewise.
73452         * modules/human (Makefile.am): Likewise.
73453         * modules/idcache (Makefile.am): Likewise.
73454         * modules/imaxabs (Makefile.am): Likewise.
73455         * modules/imaxdiv (Makefile.am): Likewise.
73456         * modules/inet_ntop (Makefile.am): Likewise.
73457         * modules/inet_pton (Makefile.am): Likewise.
73458         * modules/inttostr (Makefile.am): Likewise.
73459         * modules/isapipe (Makefile.am): Likewise.
73460         * modules/lchown (Makefile.am): Likewise.
73461         * modules/long-options (Makefile.am): Likewise.
73462         * modules/lstat (Makefile.am): Likewise.
73463         * modules/malloc (Makefile.am): Likewise.
73464         * modules/mathl (Makefile.am): Likewise.
73465         * modules/mbchar (Makefile.am): Likewise.
73466         * modules/md2 (Makefile.am): Likewise.
73467         * modules/md4 (Makefile.am): Likewise.
73468         * modules/md5 (Makefile.am): Likewise.
73469         * modules/memcasecmp (Makefile.am): Likewise.
73470         * modules/memchr (Makefile.am): Likewise.
73471         * modules/memcmp (Makefile.am): Likewise.
73472         * modules/memcoll (Makefile.am): Likewise.
73473         * modules/memcpy (Makefile.am): Likewise.
73474         * modules/memmem (Makefile.am): Likewise.
73475         * modules/memmove (Makefile.am): Likewise.
73476         * modules/mempcpy (Makefile.am): Likewise.
73477         * modules/memrchr (Makefile.am): Likewise.
73478         * modules/memset (Makefile.am): Likewise.
73479         * modules/memxor (Makefile.am): Likewise.
73480         * modules/mkancesdirs (Makefile.am): Likewise.
73481         * modules/mkdir (Makefile.am): Likewise.
73482         * modules/mkdir-p (Makefile.am): Likewise.
73483         * modules/mkdtemp (Makefile.am): Likewise.
73484         * modules/mkstemp (Makefile.am): Likewise.
73485         * modules/mktime (Makefile.am): Likewise.
73486         * modules/modechange (Makefile.am): Likewise.
73487         * modules/mountlist (Makefile.am): Likewise.
73488         * modules/nanosleep (Makefile.am): Likewise.
73489         * modules/openat (Makefile.am): Likewise.
73490         * modules/pagealign_alloc (Makefile.am): Likewise.
73491         * modules/physmem (Makefile.am): Likewise.
73492         * modules/poll (Makefile.am): Likewise.
73493         * modules/posixtm (Makefile.am): Likewise.
73494         * modules/posixver (Makefile.am): Likewise.
73495         * modules/putenv (Makefile.am): Likewise.
73496         * modules/quote (Makefile.am): Likewise.
73497         * modules/quotearg (Makefile.am): Likewise.
73498         * modules/raise (Makefile.am): Likewise.
73499         * modules/read-file (Makefile.am): Likewise.
73500         * modules/readline (Makefile.am): Likewise.
73501         * modules/readlink (Makefile.am): Likewise.
73502         * modules/readtokens (Makefile.am): Likewise.
73503         * modules/readutmp (Makefile.am): Likewise.
73504         * modules/realloc (Makefile.am): Likewise.
73505         * modules/regex (Makefile.am): Likewise.
73506         * modules/rename (Makefile.am): Likewise.
73507         * modules/rename-dest-slash (Makefile.am): Likewise.
73508         * modules/rijndael (Makefile.am): Likewise.
73509         * modules/rmdir (Makefile.am): Likewise.
73510         * modules/rpmatch (Makefile.am): Likewise.
73511         * modules/safe-read (Makefile.am): Likewise.
73512         * modules/safe-write (Makefile.am): Likewise.
73513         * modules/same (Makefile.am): Likewise.
73514         * modules/save-cwd (Makefile.am): Likewise.
73515         * modules/savedir (Makefile.am): Likewise.
73516         * modules/setenv (Makefile.am): Likewise.
73517         * modules/settime (Makefile.am): Likewise.
73518         * modules/sha1 (Makefile.am): Likewise.
73519         * modules/sig2str (Makefile.am): Likewise.
73520         * modules/snprintf (Makefile.am): Likewise.
73521         * modules/stdlib-safer (Makefile.am): Likewise.
73522         * modules/stpcpy (Makefile.am): Likewise.
73523         * modules/stpncpy (Makefile.am): Likewise.
73524         * modules/strcase (Makefile.am): Likewise.
73525         * modules/strcasestr (Makefile.am): Likewise.
73526         * modules/strchrnul (Makefile.am): Likewise.
73527         * modules/strcspn (Makefile.am): Likewise.
73528         * modules/strdup (Makefile.am): Likewise.
73529         * modules/strerror (Makefile.am): Likewise.
73530         * modules/strftime (Makefile.am): Likewise.
73531         * modules/strndup (Makefile.am): Likewise.
73532         * modules/strnlen (Makefile.am): Likewise.
73533         * modules/strpbrk (Makefile.am): Likewise.
73534         * modules/strsep (Makefile.am): Likewise.
73535         * modules/strstr (Makefile.am): Likewise.
73536         * modules/strtod (Makefile.am): Likewise.
73537         * modules/strtoimax (Makefile.am): Likewise.
73538         * modules/strtok_r (Makefile.am): Likewise.
73539         * modules/strtol (Makefile.am): Likewise.
73540         * modules/strtoll (Makefile.am): Likewise.
73541         * modules/strtoul (Makefile.am): Likewise.
73542         * modules/strtoull (Makefile.am): Likewise.
73543         * modules/strtoumax (Makefile.am): Likewise.
73544         * modules/strverscmp (Makefile.am): Likewise.
73545         * modules/time_r (Makefile.am): Likewise.
73546         * modules/timegm (Makefile.am): Likewise.
73547         * modules/tmpfile-safer (Makefile.am): Likewise.
73548         * modules/unistd-safer (Makefile.am): Likewise.
73549         * modules/unlinkdir (Makefile.am): Likewise.
73550         * modules/userspec (Makefile.am): Likewise.
73551         * modules/utime (Makefile.am): Likewise.
73552         * modules/utimecmp (Makefile.am): Likewise.
73553         * modules/utimens (Makefile.am): Likewise.
73554         * modules/vasnprintf (Makefile.am): Likewise.
73555         * modules/vasprintf (Makefile.am): Likewise.
73556         * modules/vsnprintf (Makefile.am): Likewise.
73557         * modules/xalloc (Makefile.am): Likewise.
73558         * modules/xgetcwd (Makefile.am): Likewise.
73559         * modules/xnanosleep (Makefile.am): Likewise.
73560         * modules/xreadlink (Makefile.am): Likewise.
73561         * modules/xstrtod (Makefile.am): Likewise.
73562         * modules/xstrtol (Makefile.am): Likewise.
73563         * modules/xstrtold (Makefile.am): Likewise.
73564         * modules/yesno (Makefile.am): Likewise.
73565
73566 2006-10-12  Jim Meyering  <jim@meyering.net>
73567
73568         * m4/getloadavg.m4: Revert the change below.
73569
73570         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73571         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73572         fail with a symlink, which is what coreutils' ./bootstrap now
73573         creates by default.
73574
73575 2006-10-12  Bruno Haible  <bruno@clisp.org>
73576
73577         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73578         mingw.
73579         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73580         MSVC and mingw explicitly.
73581
73582 2006-10-11  Simon Josefsson  <jas@extundo.com>
73583             Bruno Haible  <bruno@clisp.org>
73584
73585         Add support for multiple gnulib-tool invocations in the scope of a
73586         single configure.ac file.
73587         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73588         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73589         with the same contents as the _LIBADD variable.
73590         (func_emit_initmacro_start, func_emit_initmacro_end,
73591         func_emit_initmacro_done): New functions.
73592         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73593         gl_LIBOBJS and gl_LTLIBOBJS.
73594
73595 2006-10-11  Bruno Haible  <bruno@clisp.org>
73596
73597         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73598         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73599         autoreconf. Instead, invoke autopoint explicitly but move back the
73600         *.m4 files from gnulib.
73601
73602 2006-10-11  Bruno Haible  <bruno@clisp.org>
73603
73604         * gnulib-tool (func_usage): Make module names after --create-testdir
73605         optional.
73606         (func_create_testdir): If no module was specified, use nearly all
73607         modules.
73608
73609 2006-10-12  Jim Meyering  <jim@meyering.net>
73610
73611         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73612         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73613         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73614         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73615         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73616         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73617         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73618         (fts_set_stat_required): New function.
73619         (fts_open): Defer the calls to fts_stat, if possible or requested.
73620         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73621         into fts_stat itself.
73622         (fts_read): Perform any required (deferred) fts_stat call.
73623         (fts_build): Likewise, for the directory we're about to open and read.
73624         In the readdir loop, carefully decide whether each entry will require
73625         an eventual call to fts_stat, using dirent.d_type info if available.
73626         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73627         a command line argument into this function.  Update all callers.
73628         Map a return value of FTS_DOT to FTS_D for a command line argument.
73629         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73630         Thanks to Miklos Szeredi for his tenacity and for the initial
73631         bug report about "find" failing on a FUSE-based file system.
73632
73633         * lib/fts.c (fts_open): Use consistent indentation.
73634
73635 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73638         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73639         reported by Jim Meyering.  All uses of cache variables renamed
73640         to match Autoconf's.
73641         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73642         the other one.
73643
73644         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73645         Fix misspelling in diagnostic.
73646
73647 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73648
73649         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73650         defined.  Problem reported by Matthew Woehlke.
73651
73652         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73653         Add support for Tandem NonStop R series.
73654         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73655         Use new macro.
73656
73657         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73658         (has_trailing_slash): Omit size arg; all callers changed.
73659         Omit 'inline', since it doesn't help performance and we'd
73660         need to configure it.
73661         Don't count //, ///, etc. as having a trailing slash.
73662         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73663         (rpl_rename_dest_slash): On failure, use rename's errno rather
73664         than (in some cases) an incorrect or junk errno.
73665         Simplify code by removing need to compute length; this does
73666         cause it to make two passes instead of one over the file name,
73667         but it's worth it.
73668
73669         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73670         change, since Autoconf's version may no longer be appropriate now
73671         that we are using CVS Autoconf's version.  Add support for Tandem.
73672
73673 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73674             Bruno Haible  <bruno@clisp.org>
73675
73676         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73677         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73678         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73679         gl_AC_TYPE_LONG_LONG.
73680
73681         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73682         instead of HAVE_LONG_LONG.
73683         * lib/printf-args.c (printf_fetchargs): Likewise.
73684         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73685         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73686         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73687         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73688         gl_AC_TYPE_LONG_LONG.
73689
73690 2006-10-11  Bruno Haible  <bruno@clisp.org>
73691
73692         * m4/longlong.m4: Add comments.
73693         * m4/ulonglong.m4: Likewise.
73694
73695 2006-10-10  Bruno Haible  <bruno@clisp.org>
73696
73697         Make it possible to #define stpcpy, strdup to aliases.
73698         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73699         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73700
73701 2006-10-10  Bruno Haible  <bruno@clisp.org>
73702
73703         Make it possible to #define gcd to an alias.
73704         * lib/gcd.c: Include config.h.
73705
73706 2006-10-10  Bruno Haible  <bruno@clisp.org>
73707
73708         Make it possible to #define c_isascii to an alias.
73709         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73710         defined. Undefine the macros before defining them, to avoid gcc
73711         warnings.
73712         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73713         define NO_C_CTYPE_MACROS early.
73714
73715 2006-10-10  Bruno Haible  <bruno@clisp.org>
73716
73717         Make it possible to #define set_program_name to an alias.
73718         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73719         ENABLE_RELOCATABLE early.
73720
73721 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73724         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73725         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73726         More generally, don't assume that 64-bit signed int is available
73727         if unsigned int is, and vice versa.
73728         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73729         unsigned symbols, not on their signed counterparts.
73730         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73731         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73732         (UINT64_C, UINTMAX_C):
73733         Likewise.
73734         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73735         unsigned counterparts.
73736         (Have_long_long, Unsigned): New macros.
73737         (Int): Renamed from INT.
73738         (strtoimax): Use the new macros.
73739         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73740         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73741         * modules/inttypes (inttypes.h): Substitute
73742         HAVE_UNSIGNED_LONG_LONG_INT.
73743         * modules/stdint (stdint.h): Likewise.
73744         (Files): Add m4/ulonglong.m4.
73745
73746 2006-10-10  Bruno Haible  <bruno@clisp.org>
73747
73748         Fix a gcc -Wshadow warning.
73749         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73750         to 'bucket'.
73751         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73752         gl_linked_indexof_from_to): Likewise.
73753         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73754         Likewise.
73755         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73756         Likewise.
73757         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73758         Reported by Eric Blake.
73759
73760 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73761
73762         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73763         for NetBSD.  Problem reported by Bruno Haible.
73764
73765 2006-10-09  Jim Meyering  <jim@meyering.net>
73766
73767         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73768         Patch from Bruno Haible.
73769
73770 2006-10-09  Jim Meyering  <jim@meyering.net>
73771
73772         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73773         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73774         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73775
73776 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         Don't include <config.h> twice; this doesn't work in some cases,
73779         e.g., when config.h has "#define intmax_t long long int" and
73780         we include <config.h>, <inttypes.h>, <config.h> in that order.
73781         Problem reported by Matthew Woehlke in:
73782         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73783         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73784         * lib/fts-cycle.c: Don't include config.h.
73785         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73786         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73787         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73788         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73789         inttypes.h.
73790         * lib/xstrtoumax.c: Likewise.
73791         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73792         __strtol and the like, so that this module is more like its siblings.
73793         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73794         Remove; no longer needed now that we assume gnulib inttypes.h.
73795
73796 2006-10-08  Bruno Haible  <bruno@clisp.org>
73797
73798         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73799         option.
73800
73801 2006-10-07  Jim Meyering  <jim@meyering.net>
73802
73803         * modules/inttypes (inttypes.h): Revert what seems to have been
73804         an inadvertent part of today's change: use "|", not "/" in the
73805         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73806
73807 2006-10-07  Bruno Haible  <bruno@clisp.org>
73808
73809         * modules/sublist: New file.
73810
73811 2006-10-07  Bruno Haible  <bruno@clisp.org>
73812
73813         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73814         * modules/argz (argz.h): Likewise.
73815         * modules/arpa_inet (arpa/inet.h): Likewise.
73816         * modules/byteswap (byteswap.h): Likewise.
73817         * modules/configmake (configmake.h): Likewise.
73818         * modules/fcntl (fcntl.h): Likewise.
73819         * modules/fnmatch (fnmatch.h): Likewise.
73820         * modules/getopt (getopt.h): Likewise.
73821         * modules/glob (glob.h): Likewise.
73822         * modules/inttypes (inttypes.h): Likewise.
73823         * modules/netinet_in (netinet/in.h): Likewise.
73824         * modules/poll (poll.h): Likewise.
73825         * modules/stdbool (stdbool.h): Likewise.
73826         * modules/stdint (stdint.h): Likewise.
73827         * modules/sys_select (sys/select.h): Likewise.
73828         * modules/sys_socket (sys/socket.h): Likewise.
73829         * modules/sys_stat (sys/stat.h): Likewise.
73830         * modules/sysexits (sysexits.h): Likewise.
73831         * modules/unistd (unistd.h): Likewise.
73832         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73833         Add a "DO NOT EDIT" comment to the generated file.
73834         (func_import): Likewise for gnulib-comp.m4.
73835
73836 2006-10-07  Bruno Haible  <bruno@clisp.org>
73837
73838         * lib/gl_sublist.h: New file.
73839         * lib/gl_sublist.c: New file.
73840
73841 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73844         name (relative to the original working directory) and the file
73845         name component (relative to the temporary working directory).  All
73846         callers changed.
73847         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73848         * lib/mkdir-p.c (make_dir_parents): Likewise.
73849         * lib/mkdir-p.h (make_dir_parents): Likewise.
73850
73851 2006-10-06  Eric Blake  <ebb9@byu.net>
73852
73853         Define several macros for use by the clean-temp module.
73854         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73855         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73856         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73857
73858         * lib/clean-temp.h (close_stream_temp): New declaration.
73859         * lib/clean-temp.c (includes): Pull in headers according to what
73860         other modules are in use.
73861         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73862
73863 2006-10-06  Bruno Haible  <bruno@clisp.org>
73864
73865         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73866         instead of fopen, fwriteerror.
73867
73868 2006-10-06  Bruno Haible  <bruno@clisp.org>
73869
73870         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73871         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73872         int.
73873         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73874         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73875         Return an error indicator.
73876         Suggested by Eric Blake.
73877
73878 2006-10-06  Bruno Haible  <bruno@clisp.org>
73879
73880         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73881         Reported by Eric Blake.
73882
73883 2006-10-06  Bruno Haible  <bruno@clisp.org>
73884
73885         * modules/closeout (Description): Mention stderr too.
73886
73887 2006-10-06  Bruno Haible  <bruno@clisp.org>
73888         and Paul Eggert  <eggert@cs.ucla.edu>
73889
73890         * lib/closeout.c (close_stdout): Also close stderr.
73891         * lib/closeout.h: Update comment.
73892
73893 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73896         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73897         * lib/dirchownmod.c: Include lchown.h.
73898         * lib/lchown.c: Don't include files that lchown.h now includes.
73899         Don't declare chown, since lchown.h now does that.
73900         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73901         (lchown): Define to rpl_chown if lchown is declared but
73902         does not exist.  Declare using a prototype if lchown is not
73903         declared.  Add a copyright notice.
73904         * lib/mkstemp.h: Include <unistd.h>.
73905         * lib/openat.c: Include lchown.h.
73906
73907         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73908         we now test for that separately.
73909         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73910         rather than O_NOFOLLOW, when testing whether it's possible to
73911         avoid a race condition reliably.
73912         * lib/savewd.c (savewd_chdir): Likewise.
73913
73914         Remove macros that are no longer needed now that stdint.h is
73915         reliable.
73916         * lib/fsusage.c (UINTMAX_MAX): Remove.
73917         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73918         * lib/utimecmp.c (SIZE_MAX): Remove.
73919
73920         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73921
73922         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73923         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73924         O_NOATIME works.
73925
73926 2006-10-05  Bruno Haible  <bruno@clisp.org>
73927
73928         * lib/gl_list.h (gl_sortedlist_search_from_to,
73929         gl_sortedlist_indexof_from_to): New declarations.
73930         (gl_list_implementation): New fields sortedlist_search_from_to,
73931         sortedlist_indexof_from_to.
73932         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73933         inline functions.
73934         * lib/gl_list.c (gl_sortedlist_search_from_to,
73935         gl_sortedlist_indexof_from_to): New functions.
73936         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73937         function.
73938         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73939         (gl_array_sortedlist_search_from_to): New function.
73940         (gl_array_list_implementation): Update.
73941         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73942         function.
73943         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73944         (gl_carray_sortedlist_search_from_to): New function.
73945         (gl_carray_list_implementation): Update.
73946         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73947         gl_linked_sortedlist_indexof_from_to): New functions.
73948         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73949         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73950         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73951         gl_tree_sortedlist_indexof_from_to): New functions.
73952         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73953         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73954         Update.
73955         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73956         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73957         Update.
73958
73959 2006-10-05  Bruno Haible  <bruno@clisp.org>
73960
73961         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73962         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73963         (struct gl_list_implementation): Add fields search_from_to,
73964         indexof_from_to. Remove fields search, indexof.
73965         (gl_list_search): Use the search_from_to method.
73966         (gl_list_search_from, gl_list_search_from_to): New functions.
73967         (gl_list_indexof): Use the indexof_from_to method.
73968         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73969         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73970         (gl_list_search_from, gl_list_search_from_to): New functions.
73971         (gl_list_indexof): Use the indexof_from_to method.
73972         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73973         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73974         gl_array_indexof. Add start_index, end_index arguments.
73975         (gl_array_search_from_to): Renamed from gl_array_search. Add
73976         start_index, end_index arguments.
73977         (gl_array_remove, gl_array_list_implementation): Update.
73978         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73979         gl_carray_indexof. Add start_index, end_index arguments.
73980         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73981         start_index, end_index arguments.
73982         (gl_carray_remove, gl_carray_list_implementation): Update.
73983         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73984         gl_linked_search. Add start_index, end_index arguments.
73985         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73986         start_index, end_index arguments.
73987         (gl_linked_remove): Update.
73988         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73989         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73990         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73991         field to 'size_t'.
73992         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73993         gl_tree_search. Add start_index, end_index arguments.
73994         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73995         start_index, end_index arguments.
73996         (gl_tree_remove): Update.
73997         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73998         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73999         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74000         function.
74001         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74002         gl_tree_search. Add start_index, end_index arguments.
74003         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74004         start_index, end_index arguments.
74005         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74006         Update.
74007         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74008
74009 2006-10-05  Bruno Haible  <bruno@clisp.org>
74010
74011         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74012
74013         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74014         fwriteerror_temp): New declarations.
74015         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74016         (descriptors): New variable.
74017         (cleanup): First, close the descriptors.
74018         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74019         fclose_temp, fwriteerror_temp): New functions.
74020
74021 2006-10-04  Jim Meyering  <jim@meyering.net>
74022
74023         * lib/fts.c (fts_open): Tiny comment change.
74024
74025 2006-10-04  Bruno Haible  <bruno@clisp.org>
74026
74027         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74028         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74029         gl_LOCK_BODY.
74030         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74031         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74032         gl_LOCK_EARLY_BODY.
74033         (gl_LOCK): Require gl_LOCK_BODY.
74034
74035 2006-10-04  Bruno Haible  <bruno@clisp.org>
74036
74037         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74038         (gl_oset_search_atleast): New declaration.
74039         (struct gl_oset_implementation): Add field 'search_atleast'.
74040         (gl_oset_search_atleast): New inline function.
74041         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74042         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74043         (gl_array_oset_implementation): Update.
74044         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74045         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74046         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74047
74048 2006-10-04  Bruno Haible  <bruno@clisp.org>
74049
74050         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74051
74052 2006-10-03  Bruno Haible  <bruno@clisp.org>
74053
74054         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74055         from gl_avltreehash_list_implementation.
74056
74057 2006-10-03  Bruno Haible  <bruno@clisp.org>
74058
74059         * lib/gl_oset.c (gl_oset_add): Fix return type.
74060
74061 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74062
74063         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74064
74065 2006-10-02  Eric Blake  <ebb9@byu.net>
74066
74067         * modules/strnlen (Depends-on): Add extensions.
74068
74069 2006-10-02  Eric Blake  <ebb9@byu.net>
74070
74071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74072         definition in 2.60+.
74073
74074 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74075
74076         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74077         checks.
74078
74079 2006-10-02  Bruno Haible  <bruno@clisp.org>
74080
74081         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74082         to the AUTOMAKE_OPTIONS.
74083         Reported by Jim Meyering.
74084
74085 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         Work around bug in Solaris 10 /proc file system:
74088         /proc/self/fd/NNN/.. isn't the parent directory of
74089         the directory whose file descriptor is NNN.  This needs to
74090         be worked around at run time, not compile time, since a
74091         program might be built on Solaris 8, where things work, and
74092         run on Solaris 10.
74093         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74094         to use the following interface instead:
74095         (OPENAT_BUFFER_SIZE): New macro.
74096         (openat_proc_name): New function.
74097         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74098         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74099         Likewise.
74100         * lib/openat-proc.c: New file.
74101         * modules/openat (Files): Add lib/openat-proc.c.
74102         (Depends-on): Add same-inode, stdbool.
74103         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74104
74105 2006-09-29  Bruno Haible  <bruno@clisp.org>
74106
74107         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74108         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74109         argument. Set stdout_closed before testing for ferror, not after.
74110         (fwriteerror, fwriteerror_no_ebadf): New functions.
74111
74112 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74113
74114         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74115
74116 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74117
74118         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74119         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74120
74121 2006-09-28  Jim Meyering  <jim@meyering.net>
74122
74123         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74124         Include <unistd.h>.
74125
74126 2006-09-28  Bruno Haible  <bruno@clisp.org>
74127
74128         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74129         * modules/linkedhash-list (Depends-on): Likewise.
74130         * modules/rbtreehash-list (Depends-on): Likewise.
74131
74132 2006-09-28  Bruno Haible  <bruno@clisp.org>
74133
74134         * lib/strndup.h: Simplify the redefinition of strndup.
74135         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74136         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74137
74138 2006-09-28  Bruno Haible  <bruno@clisp.org>
74139
74140         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74141         * lib/gl_linkedhash_list.c: Likewise.
74142         * lib/gl_rbtreehash_list.c: Likewise.
74143
74144 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74147         getaddrinfo.
74148
74149         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74150         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74151         it causes <stdio_ext.h> to cause a compile-time error.
74152         Problem reported by Nelson H. F. Beebe.
74153         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74154         of HAVE_DECL___PENDING.
74155
74156         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74157         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74158         declaration.
74159
74160 2006-09-27  Jim Meyering  <jim@meyering.net>
74161
74162         This file could end up with a definition for a function
74163         named __strndup, rather than rpl_strndup on a system with
74164         incomplete weak_alias support.
74165         * lib/strndup.c (strndup): Rename from __strndup.
74166         Remove #defines that used to map __strndup to strndup.
74167         Don't use K&R prototypes.
74168         Remove LIBC-related code, since this file is not sync'd with glibc.
74169         * lib/strndup.h: Revamp, accordingly.
74170         * m4/strndup.m4: Modernize.
74171
74172 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74173
74174         * modules/savewd (Depends-on): Add 'raise'.
74175         * lib/savewd.c: Include <signal.h>, for 'raise'.
74176
74177 2006-09-26  Jim Meyering  <jim@meyering.net>
74178
74179         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74180         when we detect Darwin 8.7.0's acl_get_file bug.
74181         Rearrange to perform the new (below) run-test while $LIBS
74182         contains any acl-related library.  Set USE_ACL at the end.
74183         (gl_ACL_GET_FILE): New function.
74184
74185 2006-09-26  Eric Blake  <ebb9@byu.net>
74186
74187         * lib/verror.c: Include <config.h> unconditionally.
74188
74189 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * modules/clock-time (Maintainer): Add self.
74192         * modules/getlogin_r (Depends-on): Add extensions.
74193
74194 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74195
74196         * modules/clock-time: New module.
74197         * modules/nanosleep (Depends-on): Add clock-time.
74198         * modules/gethrxtime (Depends-on): Likewise.
74199         * modules/gettime (Depends-on): Likewise.
74200         * modules/settime (Depends-on): Likewise.
74201
74202         * modules/fts-lgpl: Depend on openat.
74203         * modules/mkancesdirs: Depend on savewd.
74204         * modules/mkdir-p: Likewise.
74205
74206 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74207
74208         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74209
74210         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74211         `gl_have_arbitrary_file_name_length_limit' to
74212         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74213         actually works between configure runs.
74214
74215 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74216             Bruno Haible  <bruno@clisp.org>
74217
74218         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74219
74220 2006-09-25  Jim Meyering  <jim@meyering.net>
74221
74222         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74223         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74224
74225 2006-09-25  Eric Blake  <ebb9@byu.net>
74226
74227         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74228         exec's in 2006-09-18 patch when shuffling fds.
74229
74230 2006-09-25  Bruno Haible  <bruno@clisp.org>
74231
74232         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74233         Reported by Jim Meyering.
74234
74235 2006-09-24  Jim Meyering  <jim@meyering.net>
74236
74237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74238         compare a pointer against a literal "0".  That caused failures with
74239         at least HP-UX's hpcc.
74240
74241 2006-09-22  Simon Josefsson  <jas@extundo.com>
74242
74243         * modules/gc-sha1:
74244         * modules/gc-md4:
74245         * modules/gc-hmac-sha1:
74246         * modules/gc-hmac-md5:
74247         * modules/gc-des:
74248         * modules/gc-arcfour: Distribute more files.
74249
74250 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74251
74252         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74253         (gl_linked_iterator_from_to): Initialize struct completely.
74254         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74255         (gl_tree_iterator_from_to): Likewise
74256         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74257         * lib/gl_array_list.c [lint] (gl_array_iterator)
74258         (gl_array_iterator_from_to): Likewise.
74259         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74260         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74261         (gl_carray_iterator_from_to): Likewise.
74262
74263         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74264         * lib/md4.c (md4_process_block): Remove unused variable.
74265         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74266         parentheses for clarity.
74267
74268 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74269
74270         * modules/bison-i18n (Depends-on): Add gettext.
74271
74272 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74273
74274         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74275         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74276         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74277         also add missing comma that caused broken test.
74278         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74279         stdlib.h, for `abort'.
74280         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74281         variables.
74282         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74283         include unistd.h if present, for `rmdir'.
74284         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74285         variables.
74286         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74287         in the process include standard headers for prototypes.
74288         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74289         gets declared on GNU/Linux.
74290         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74291         unistd.h, for `rmdir'.
74292         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74293
74294         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74295         always true.
74296         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74297
74298         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74299
74300 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74301
74302         * gnulib-tool (func_version): Create output all at once.  This
74303         may help avoid triggering unnecessary SIGPIPEs, and at any
74304         rate it doesn't hurt.
74305
74306 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74307             Bruno Haible  <bruno@clisp.org>
74308
74309         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74310         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74311         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74312
74313         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74314         (gl_FUNC_VASPRINTF): Invoke it.
74315
74316 2006-09-22  Bruno Haible  <bruno@clisp.org>
74317
74318         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74319         getloadavg.c as first argument.
74320
74321 2006-09-22  Bruno Haible  <bruno@clisp.org>
74322
74323         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74324         at the beginning of the gl_INIT macro.
74325         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74326         gl_GETLOADAVG.
74327
74328 2006-09-22  Bruno Haible  <bruno@clisp.org>
74329
74330         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74331         module.
74332         Suggested by Ralf Wildenhues.
74333
74334 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         Import this patch from libc:
74337
74338         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74339
74340         * lib/regex_internal.c (re_string_reconstruct): Handle
74341         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74342         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74343         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74344         re_string_context_at.
74345
74346         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74347         now requires it.
74348         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74349         gl_REGEX now does it for us.
74350         (gl_REGEX): Add test taken from
74351         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74352
74353         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74354         Check that large offsets work.  Modernize Autoconf usages.
74355         Prefer "yes" to mean a good thing rather than a bad.
74356         Don't put "#define mkstemp" in config.h, as this might interfere
74357         with standard system headers that "#define mkstemp mkstemp64".
74358
74359         * modules/mkstemp (Depends-on): Add extensions, so that
74360         mkstemp is visible on some platforms.
74361         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74362         (Include): Change to "mkstemp.h" from <stdlib.h>.
74363         (Files): Add mkstemp.h.
74364
74365         * lib/mkstemp.h: New file, since some standard headers
74366         #define mkstemp.
74367         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74368         Include "mkstemp.h".
74369         Make the _LIBC code resemble glibc original more,
74370         e.g., use K&R style.
74371         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74372         (mkstemp): Remove, since mkstemp.h does this for us.
74373         * lib/stdlib--.h: Include mkstemp.h.
74374
74375         Import this patch from libc:
74376
74377         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74378
74379         * lib/tempname.c (__gen_tempname): Change attempts_min
74380         into a macro.  Use preprocessor to decide how to initialize
74381         attempts [Coverity CID 67].
74382
74383 2006-09-20  Bruno Haible  <bruno@clisp.org>
74384
74385         * lib/mkdtemp.c: Import from libc.
74386         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74387                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74388                 attempts_min into a macro.  Use preprocessor to decide how to
74389                 initialize attempts [Coverity CID 67].
74390         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74391                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74392                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74393
74394 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74395
74396         * gnulib-tool (func_exit): New function, to allow to pass the
74397         exit status portably through the trap.  Use everywhere.
74398         (--help, --version): Signal a write error.
74399         (trap): catch SIGPIPE, for write errors.
74400         Exit at the end of the trap, with the correct exit status.
74401
74402 2006-09-19  Karl Berry  <karl@gnu.org>
74403
74404         * doc/gnulib.texi: note about the license texinfo files.
74405
74406 2006-09-19  Eric Blake  <ebb9@byu.net>
74407
74408         * gnulib-tool: Avoid space-tab.
74409
74410 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74411
74412         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74413         that prevented coreutils 6.1 from building.  Problem reported
74414         by Petter Reinholdtsen.
74415
74416 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74417
74418         * gnulib-tool (avoidlist): Fix typo that broke options like
74419         --avoid=lock that are used by coreutils bootstrap.
74420
74421 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74422
74423         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74424         more systematically.
74425
74426 2006-09-18  Jim Meyering  <jim@meyering.net>
74427
74428         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74429
74430 2006-09-18  Bruno Haible  <bruno@clisp.org>
74431
74432         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74433
74434 2006-09-18  Bruno Haible  <bruno@clisp.org>
74435
74436         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74437         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74438         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74439         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74440         * m4/gettext.m4: Require autoconf >= 2.52.
74441         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74442         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74443         of gl_cv_header_inttypes_h.
74444
74445 2006-09-18  Bruno Haible  <bruno@clisp.org>
74446
74447         * lib/javaversion.c: Include configmake.h.
74448
74449 2006-09-18  Bruno Haible  <bruno@clisp.org>
74450
74451         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74452         avoid that the while loops be executed in a subshell.
74453
74454 2006-09-18  Bruno Haible  <bruno@clisp.org>
74455
74456         * MODULES.html.sh (func_module): Break long lines.
74457         Suggested by Bruce Korb <bkorb@gnu.org>.
74458
74459 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74460
74461         Speed up by a factor of 1.12.
74462         * gnulib-tool (nl): New variable.
74463         (func_import): Rewrite include directive extraction to only read each
74464         directive once.
74465
74466 2006-09-17  Bruno Haible  <bruno@clisp.org>
74467
74468         * modules/javaversion (Makefile.am): Remove DEFS setting.
74469         (Depends-on): Add configmake, for PKGDATADIR definition.
74470
74471 2006-09-17  Bruno Haible  <bruno@clisp.org>
74472
74473         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74474
74475 2006-09-17  Bruno Haible  <bruno@clisp.org>
74476
74477         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74478         (func_modules_transitive_closure, func_modules_add_dummy,
74479         func_modules_to_filelist, func_import, func_create_testdir,
74480         func_create_megatestdir, ...): Use it wherever possible.
74481         Suggested by Ralf Wildenhues.
74482
74483 2006-09-16  Karl Berry  <karl@gnu.org>
74484
74485         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74486         to avoid sectioning errors.
74487         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74488         [ifinfo]: blank line after @center-ed titles.
74489         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74490         Spell FSF address consistently with others.
74491         (These changes approved by rms.)
74492
74493 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74494
74495         Speed up by a factor of 1.61.
74496         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74497         already checked module names again.
74498
74499 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74500
74501         Speed up by a factor of 1.13.
74502         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74503         for new_files, and the input to func_add_or_update.
74504
74505 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74506
74507         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74508         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74509
74510 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         * modules/mkancesdirs (Depends-on): Add fcntl.
74513         * modules/savewd: New file.
74514         * MODULES.html.sh (File system functions): Add savewd.
74515
74516         * modules/configmake (Makefile.am): Add support for the
74517         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74518
74519 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * m4/savewd.m4: New file.
74522
74523 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74524
74525         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74526         (dirchownmod): New arg FD.  All callers changed.
74527         Use FD rather than opening the directory ourself, as opening is
74528         now the caller's responsibility.
74529         * lib/dirchownmod.h: Likewise.
74530         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74531         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74532         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74533         (test_dir): Remove.
74534         (mkancesdirs): Return length of prefix of FILE that has already
74535         been made, or -2 if there is a child doing the work.  Redo
74536         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74537         ".", and treat ".." specially since it might stray back into
74538         already-created areas.  Use a subprocess if necessary.  New arg
74539         WD; all users changed.  MAKE_DIR function should now return 1
74540         if it creates a directory that is not readable.  Return -2 if
74541         a child process is spun off.
74542         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74543         Adjust signature to match code.
74544         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74545         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74546         all users changed.
74547         * lib/savewd.c, lib/savewd.h: New files.
74548
74549 2006-09-15  Jim Meyering  <jim@meyering.net>
74550
74551         * modules/rename-dest-slash: New module.
74552         * MODULES.html.sh (posix_compat): Add it here.
74553
74554         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74555
74556 2006-09-15  Jim Meyering  <jim@meyering.net>
74557
74558         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74559         file.
74560
74561         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74562
74563 2006-09-15  Jim Meyering  <jim@meyering.net>
74564
74565         * lib/rename-dest-slash.c (has_trailing_slash): Use
74566         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74567         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74568         test before testing whether SRC is a directory.
74569         Suggestions from Bruno Haible.
74570
74571         Avoid a warning about an unused variable.
74572         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74573         into the #ifdef block where it's used.
74574
74575         * lib/rename-dest-slash.c: New file.
74576
74577 2006-09-14  Bruno Haible  <bruno@clisp.org>
74578
74579         * lib/allocsa.c: Include <config.h> unconditionally.
74580         * lib/asnprintf.c: Likewise.
74581         * lib/asprintf.c: Likewise.
74582         * lib/c-strcasecmp.c: Likewise.
74583         * lib/c-strcasestr.c: Likewise.
74584         * lib/c-strncasecmp.c: Likewise.
74585         * lib/c-strstr.c: Likewise.
74586         * lib/classpath.c: Likewise.
74587         * lib/clean-temp.c: Likewise.
74588         * lib/concatpath.c: Likewise.
74589         * lib/copy-file.c: Likewise.
74590         * lib/csharpcomp.c: Likewise.
74591         * lib/csharpexec.c: Likewise.
74592         * lib/execute.c: Likewise.
74593         * lib/fatal-signal.c: Likewise.
74594         * lib/findprog.c: Likewise.
74595         * lib/fwriteerror.c: Likewise.
74596         * lib/gl_array_list.c: Likewise.
74597         * lib/gl_array_oset.c: Likewise.
74598         * lib/gl_avltree_list.c: Likewise.
74599         * lib/gl_avltree_oset.c: Likewise.
74600         * lib/gl_avltreehash_list.c: Likewise.
74601         * lib/gl_carray_list.c: Likewise.
74602         * lib/gl_linked_list.c: Likewise.
74603         * lib/gl_linkedhash_list.c: Likewise.
74604         * lib/gl_list.c: Likewise.
74605         * lib/gl_oset.c: Likewise.
74606         * lib/gl_rbtree_list.c: Likewise.
74607         * lib/gl_rbtree_oset.c: Likewise.
74608         * lib/gl_rbtreehash_list.c: Likewise.
74609         * lib/imaxabs.c: Likewise.
74610         * lib/imaxdiv.c: Likewise.
74611         * lib/javacomp.c: Likewise.
74612         * lib/javaexec.c: Likewise.
74613         * lib/javaversion.c: Likewise.
74614         * lib/linebreak.c: Likewise.
74615         * lib/localcharset.c: Likewise.
74616         * lib/lock.c: Likewise.
74617         * lib/mbchar.c: Likewise.
74618         * lib/mbswidth.c: Likewise.
74619         * lib/mkdtemp.c: Likewise.
74620         * lib/pipe.c: Likewise.
74621         * lib/printf-args.c: Likewise.
74622         * lib/printf-parse.c: Likewise.
74623         * lib/progname.c: Likewise.
74624         * lib/progreloc.c: Likewise.
74625         * lib/readlink.c: Likewise.
74626         * lib/sh-quote.c: Likewise.
74627         * lib/stpcpy.c: Likewise.
74628         * lib/stpncpy.c: Likewise.
74629         * lib/strcasecmp.c: Likewise.
74630         * lib/strcasestr.c: Likewise.
74631         * lib/strcspn.c: Likewise.
74632         * lib/striconv.c: Likewise.
74633         * lib/strncasecmp.c: Likewise.
74634         * lib/strnlen1.c: Likewise.
74635         * lib/strstr.c: Likewise.
74636         * lib/strtok_r.c: Likewise.
74637         * lib/tls.c: Likewise.
74638         * lib/tmpdir.c: Likewise.
74639         * lib/unicodeio.c: Likewise.
74640         * lib/unsetenv.c: Likewise.
74641         * lib/vasnprintf.c: Likewise.
74642         * lib/vasprintf.c: Likewise.
74643         * lib/wait-process.c: Likewise.
74644         * lib/xallocsa.c: Likewise.
74645         * lib/xsetenv.c: Likewise.
74646         * lib/xstriconv.c: Likewise.
74647
74648 2006-09-13  Simon Josefsson  <jas@extundo.com>
74649
74650         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74651         that internally, suggested by Ralf Wildenhues
74652         <Ralf.Wildenhues@gmx.de>.
74653
74654 2006-09-13  Simon Josefsson  <jas@extundo.com>
74655
74656         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74657         @LIBOBJS@.
74658         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74659
74660 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74663         longer worry about uses that don't define HAVE_CONFIG_H.
74664         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74665         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74666         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74667         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74668         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74669         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74670         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74671         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74672         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74673         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74674         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74675         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74676         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74677         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74678         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74679         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74680         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74681         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74682         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74683         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74684         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74685         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74686         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74687         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74688         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74689         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74690         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74691         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74692         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74693         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74694         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74695         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74696         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74697         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74698         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74699         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74700         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74701         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74702         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74703         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74704         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74705         Likewise.
74706
74707 2006-09-13  Eric Blake  <ebb9@byu.net>
74708
74709         * lib/getopt.c: Fix typo in last commit.
74710
74711 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74712
74713         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74714         dgettext.
74715
74716 2006-09-12  Jim Meyering  <jim@meyering.net>
74717
74718         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74719         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74720         Reported by Nelson H. F. Beebe.
74721
74722 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74723
74724         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74725         program_invocation_name and program_invocation_short_name are
74726         initialized.
74727         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74728         and program_invocation_short_name to argp.h, so they are visible
74729         to user programs.
74730         * lib/argp.h: Likewise
74731
74732 2006-09-10  Bruno Haible  <bruno@clisp.org>
74733
74734         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74735         m4/inttypes_h.m4, m4/uintmax_t.m4.
74736
74737 2006-09-10  Bruno Haible  <bruno@clisp.org>
74738
74739         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74740         gl_AC_TYPE_UINTMAX_T.
74741
74742 2006-09-10  Bruno Haible  <bruno@clisp.org>
74743
74744         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74745
74746 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74747
74748         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74749         convention.  Text proposed by Bruno Haible.
74750         (struct argp_option): Document the use of N_() wrappers.
74751
74752         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74753         '\v', and translate the two parts separately, instead of feeding
74754         the whole string to gettext.  This allows to exclude
74755         '\v' from the strings visible to the translator by writing doc
74756         strings as N_("..") "\v" N_("..").
74757
74758 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * config/srclist.txt: Undo latest change; the bug was fixed.
74761
74762 2006-09-09  Bruno Haible  <bruno@clisp.org>
74763
74764         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74765         assignments if building a library without libtool.
74766         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74767         in func_emit_lib_Makefile_am.
74768         (func_import): When building a static library libfoo.a, arrange to
74769         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74770         (func_create_testdir): Likewise.
74771         * modules/gc (configure.ac, Makefile.am): If building statically,
74772         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74773         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74774         * modules/striconv (configure.ac, Makefile.am): Likewise.
74775         Based on a suggestion by Ralf Wildenhues.
74776
74777 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74778
74779         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74780         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74781         Also:
74782
74783         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74784         Add year_2050_test to catch glibc bug 2821
74785         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74786
74787         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74788         Prefer #ifdef to #if.
74789
74790         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74791         Return from 'main' instead of calling 'exit'.
74792
74793 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74796         returned the maximum time_t value rather than (time_t) -1.
74797         Problem originally reported by William Bardwell
74798         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74799
74800         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74801         Moved to here ...
74802         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74803         ... from here.
74804
74805 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74806
74807         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74808         2821 is fixed.
74809
74810 2006-09-08  Jim Meyering  <jim@meyering.net>
74811
74812         Don't make generated files read-only.  That would bother too many
74813         people.  However, do retain the ability to work when targets are
74814         read-only: remove the destination and temporary files before writing
74815         them (when generated via sed or echo), or by using the -f option for
74816         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74817         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74818         * modules/byteswap, modules/configmake, modules/fcntl:
74819         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74820         * modules/localcharset, modules/netinet_in, modules/poll:
74821         * modules/stdbool, modules/stdint, modules/sys_select:
74822         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74823
74824 2006-09-08  Jim Meyering  <jim@meyering.net>
74825
74826         Avoid new build failure on FreeBSD 6.0.
74827         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74828         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74829         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74830
74831 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74832
74833         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74834
74835 2006-09-07  Jim Meyering  <jim@meyering.net>
74836
74837         Fix global typo in last change: use chmod u-w, not chmod u-x.
74838         Spotted by Paul Eggert and Bruce Korb.
74839         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74840         * modules/byteswap, modules/configmake, modules/fcntl:
74841         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74842         * modules/localcharset, modules/netinet_in, modules/poll:
74843         * modules/stdbool, modules/stdint, modules/sys_select:
74844         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74845
74846 2006-09-06  Jim Meyering  <jim@meyering.net>
74847
74848         Make generated files be read-only.
74849         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74850         Ensure that each generated file is now read-only.
74851         * modules/argz: Likewise.
74852         * modules/arpa_inet: Likewise.
74853         * modules/byteswap: Likewise.
74854         * modules/configmake: Likewise.
74855         * modules/fcntl: Likewise.
74856         * modules/fnmatch: Likewise.
74857         * modules/getopt: Likewise.
74858         * modules/glob: Likewise.
74859         * modules/inttypes: Likewise.
74860         * modules/netinet_in: Likewise.
74861         * modules/poll: Likewise.
74862         * modules/stdbool: Likewise.
74863         * modules/stdint: Likewise.
74864         * modules/sys_select: Likewise.
74865         * modules/sys_socket: Likewise.
74866         * modules/sys_stat: Likewise.
74867         * modules/sysexits: Likewise.
74868         * modules/localcharset: Same as above, but continue using temporary
74869         file named "t-$@" (why different?) rather than the "$@-t" used
74870         everywhere else.
74871
74872         * modules/sysexits (Makefile.am): Replace literal occurrences
74873         of "sysexit.h" more readable, and more consistent, "$@".
74874
74875 2006-09-06  Bruno Haible  <bruno@clisp.org>
74876
74877         * modules/striconv: New file.
74878         * modules/xstriconv: New file.
74879         * MODULES.html.sh (Internationalization functions): Add striconv,
74880         xstriconv.
74881
74882 2006-09-06  Bruno Haible  <bruno@clisp.org>
74883
74884         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74885         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74886         not using libtool correctly.
74887
74888 2006-09-06  Bruno Haible  <bruno@clisp.org>
74889
74890         * lib/striconv.h: New file.
74891         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74892         iconvstring.c.
74893         * lib/xstriconv.h: New file.
74894         * lib/xstriconv.c: New file.
74895
74896 2006-09-06  Bruno Haible  <bruno@clisp.org>
74897
74898         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74899         lib_..._LDFLAGS.
74900
74901 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74902
74903         * lib/argz_.h: Sync from Libtool.
74904
74905         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74906                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74907
74908         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74909
74910 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74911
74912         * modules/trim: New file.
74913
74914 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74915
74916         * lib/trim.h: New file.
74917         * lib/trim.c: New file.
74918
74919 2006-09-05  Bruno Haible  <bruno@clisp.org>
74920
74921         * MODULES.html.sh (String handling): Add trim.
74922
74923 2006-09-04  Karl Berry  <karl@gnu.org>
74924
74925         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74926         until next release.
74927
74928 2006-09-03  Bruno Haible  <bruno@clisp.org>
74929
74930         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74931         correctly.
74932
74933 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74934
74935         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74936         not gl_GETLOADAVG.  Omit unneeded semicolons.
74937         Problems reported by Ralf Wildenhues in
74938         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74939         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74940         at the end, which is the usual gnulib style.
74941
74942         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74943         of doing all the work ourselves.
74944         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74945         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74946
74947 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74950         Problem reported by Ralf Wildenhues in
74951         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74952
74953         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74954         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74955
74956 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74957
74958         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74959         yesterday's patch by changing test -n to test -z.
74960
74961 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74962
74963         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74964         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74965         the former is now obsolescent.
74966
74967         * modules/chdir-long (Depends-on): Add fcntl.
74968
74969 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74972         obsolescent, and programs should use gnulib instead.
74973         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74974         but with prefixes changed.
74975
74976 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74977
74978         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74979         or stdbool.h, because they might not exist while configuring.
74980
74981         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74982         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74983         does that for us.
74984         (O_DIRECTORY): Remove.
74985
74986 2006-08-31  Eric Blake  <ebb9@byu.net>
74987
74988         * gnulib-tool: Don't let emacs change spaces to TAB.
74989
74990 2006-08-31  Bruno Haible  <bruno@clisp.org>
74991
74992         * gnulib-tool: When calling func_import more than once, do it in a
74993         subshell.
74994         Reported by Eric Blake <ebb9@byu.net>.
74995
74996 2006-08-31  Bruno Haible  <bruno@clisp.org>
74997
74998         * gnulib-tool (nl): Remove variable.
74999         (sed_transform_lib_file): Use more robust test for config-h module.
75000         (func_import): Fix typo in 2006-08-25 patch.
75001
75002 2006-08-31  Bruno Haible  <bruno@clisp.org>
75003
75004         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75005         specified, augment Makefile.am variables instead of assigning them.
75006
75007 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         Work around a bug in both the Linux and SunOS 64-bit kernels:
75010         nanosleep mishandles sleeps for longer than 2**31 seconds.
75011         Problem reported by Frank v Waveren in
75012         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75014         Check for nanosleep bug.
75015         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75016
75017 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         Work around a bug in both the Linux and SunOS 64-bit kernels:
75020         nanosleep mishandles sleeps for longer than 2**31 seconds.
75021         Problem reported by Frank v Waveren in
75022         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75023         * lib/nanosleep.c (BILLION): New constant.
75024         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75025         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75026         implementation.
75027
75028 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * modules/nanosleep (Depends-on): Add gettime.
75031
75032 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75033         and Simon Josefsson  <jas@extundo.com>
75034         and Oskar Liljeblad  <oskar@osk.mine.nu>
75035
75036         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75037         * gnulib-tool (func_import): New license type 'unmodifiable license
75038         text'.
75039         * modules/fdl: Use it.  Longer description.
75040         * module/gpl, module/lgpl: New files.
75041
75042 2006-08-30  Jim Meyering  <jim@meyering.net>
75043
75044         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75045         shadowing the parameter.
75046
75047 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75048
75049         Sync from Libtool:
75050
75051         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75052
75053         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75054         sharing with gnulib.  Report by Eric Blake.
75055
75056 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         * modules/isapipe: New file.
75059         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75060
75061 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75062
75063         * modules/configmake (Makefile.am): Add a comment, and omit
75064         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75065         by Bruno Haible.
75066
75067 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * m4/isapipe.m4: New file.
75070
75071 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75072
75073         * lib/isapipe.c, lib/isapipe.h: New files.
75074
75075 2006-08-29  Jim Meyering  <jim@meyering.net>
75076
75077         * modules/configmake (Makefile.am): Make configmake.h depend on
75078         Makefile.  Otherwise, a stale configmake.h could hang around.
75079
75080 2006-08-29  Eric Blake  <ebb9@byu.net>
75081
75082         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75083         resolution of upstream bug 3044.
75084
75085 2006-08-29  Bruno Haible  <bruno@clisp.org>
75086
75087         * modules/localcharset (Depends-on): Add configmake.
75088         (Makefile.am): Remove setting of LIBDIR through DEFS.
75089
75090 2006-08-29  Bruno Haible  <bruno@clisp.org>
75091
75092         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75093         defined.
75094
75095 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75096
75097         * modules/fcntl: New file.
75098         * modules/chdir-safer (Depends-on): Add fcntl.
75099         * modules/fts: Likewise.
75100         * modules/mkdir-p: Likewise.
75101
75102         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75103         This undoes the most recent change, since we're now addressing the
75104         problem in a different way.
75105
75106         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75107         into output, since the output might be called Makefile.am even
75108         if $makefile_name is something different.
75109         (func_import): Use $makefile_am rather than
75110         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75111         empty.
75112
75113         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75114
75115 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75118         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75119         recent change to stdint.m4, since we're now addressing the problem in a
75120         different way.
75121
75122 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75123
75124         * m4/fcntl_h.m4: New file.
75125
75126 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         * lib/fcntl_.h: New file.
75129         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75130         the fcntl module.
75131         * lib/dirchownmod.c: Likewise.
75132         * lib/fts.c: Likewise.
75133
75134         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75135         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75136         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75137         just before including <inttypes.h>, to avoid circular inclusion.
75138
75139 2006-08-28  Jim Meyering  <jim@meyering.net>
75140
75141         * doc/visibility.texi: Actually read and correct the grammar of the
75142         sentence affected by yesterday's change.
75143
75144 2006-08-28  Eric Blake  <ebb9@byu.net>
75145
75146         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75147         needs wrapper.
75148
75149 2006-08-28  Eric Blake  <ebb9@byu.net>
75150
75151         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75152
75153 2006-08-28  Eric Blake  <ebb9@byu.net>
75154
75155         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75156
75157 2006-08-28  Bruno Haible  <bruno@clisp.org>
75158
75159         * modules/c-strstr: New file, from GNU gettext.
75160         * MODULES.html.sh (String handling): Add c-strstr.
75161
75162 2006-08-28  Bruno Haible  <bruno@clisp.org>
75163
75164         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75165         macros.
75166         Reported by Eric Blake.
75167
75168 2006-08-28  Bruno Haible  <bruno@clisp.org>
75169
75170         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75171         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75172         * lib/vasprintf.c: Include errno.h, limits.h.
75173         (EOVERFLOW): New fallback definition.
75174         (vasprintf): Test here whether the string length is > INT_MAX.
75175         * lib/vsnprintf.c: Include errno.h, limits.h.
75176         (EOVERFLOW): New fallback definition.
75177         (vsnprintf): Fix bug when generated string was too long for the buffer.
75178         Test here whether the string length is > INT_MAX.
75179
75180 2006-08-28  Bruno Haible  <bruno@clisp.org>
75181
75182         * lib/inttypes_.h (SCNX*): Remove definitions.
75183         Reported by Eric Blake.
75184
75185 2006-08-28  Bruno Haible  <bruno@clisp.org>
75186
75187         * lib/c-strstr.h: New file, from GNU gettext.
75188         * lib/c-strstr.c: New file, from GNU gettext.
75189
75190 2006-08-28  Bruno Haible  <bruno@clisp.org>
75191
75192         * gnulib-tool: Reorder some statements.
75193
75194 2006-08-28  Bruno Haible  <bruno@clisp.org>
75195
75196         * gnulib-tool: New option --makefile-name.
75197         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75198         $makefile_name.
75199         (func_import): Write $makefile_name to the cache file, and read it from
75200         there unless explicitly specified. Use $makefile_name as file name
75201         instead of Makefile.am. Adjust the recommendations accordingly.
75202
75203 2006-08-28  Bruno Haible  <bruno@clisp.org>
75204
75205         * gnulib-tool (func_verify_module): Check against misapplying patch.
75206
75207 2006-08-28  Bruno Haible  <bruno@clisp.org>
75208
75209         * gnulib-tool (func_relativize, func_relconcat): New functions.
75210         Give an error if --local-dir is given with --update.
75211         Remove trailing slashes from $local_gnulib_dir.
75212         (func_import): Store the relativized $local_gnulib_dir in
75213         gnulib-cache.m4, and read it from there if not specified explicitly.
75214
75215 2006-08-28  Bruno Haible  <bruno@clisp.org>
75216
75217         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75218         is the current directory. Respect also $local_gnulib_dir.
75219
75220 2006-08-28  Bruno Haible  <bruno@clisp.org>
75221             Simon Josefsson  <jas@extundo.com>
75222
75223         BeOS portability.
75224         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75225
75226 2006-08-27  Jim Meyering  <jim@meyering.net>
75227
75228         * doc/visibility.texi: Remove duplicate word: "pointer".
75229
75230 2006-08-26  Bruno Haible  <bruno@clisp.org>
75231
75232         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75233         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75234         (Makefile.am): Create inttypes.h from inttypes_.h.
75235         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75236
75237         * modules/imaxabs: New file.
75238
75239         * modules/imaxdiv: New file.
75240
75241 2006-08-26  Bruno Haible  <bruno@clisp.org>
75242
75243         * m4/inttypes.m4: New file.
75244         * m4/_inttypes_h.m4: Remove file.
75245         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75246         PRI_MACROS_BROKEN.
75247         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75248
75249         * m4/imaxabs.m4: New file.
75250
75251         * m4/imaxdiv.m4: New file.
75252
75253 2006-08-26  Bruno Haible  <bruno@clisp.org>
75254
75255         * lib/inttypes_.h: New file.
75256         * lib/inttypes.h: Remove file.
75257         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75258
75259         * lib/imaxabs.c: New file.
75260
75261         * lib/imaxdiv.c: New file.
75262
75263 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75264
75265         New config-h module, so that "make" output needn't be cluttered
75266         by -DHAVE_CONFIG_H.
75267         * MODULES.html.sh (Support for building libraries and executables):
75268         Add config-h.
75269         * modules/config-h: New file.
75270         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75271         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75272         the config-h module is used.
75273
75274         New configmake module, so that "make" output needn't be cluttered
75275         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75276         * MODULES.html.sh (Support for building libraries and executables):
75277         Add configmake.
75278         * modules/configmake: New file.
75279
75280 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * m4/config-h.m4: New file.
75283
75284 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         * config/srclist.txt: Add elisp-comp.
75287
75288 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75289
75290         * MODULES.html.sh (Support for building libraries and executables):
75291         Add elisp-comp.
75292         * build-aux/elisp-comp: New file.
75293         * modules/elisp-comp: New file.
75294
75295 2006-08-24  Bruno Haible  <bruno@clisp.org>
75296
75297         * gnulib-tool (func_create_testdir): Use non-default values of
75298         sourcebase and m4base.
75299
75300 2006-08-24  Bruno Haible  <bruno@clisp.org>
75301
75302         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75303         HTML structure.
75304
75305 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75306
75307         * modules/openat (Depends-on): Add lchown.
75308
75309 2006-08-23  Bruno Haible  <bruno@clisp.org>
75310
75311         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75312         of gl_LOCK_EARLY instead of gl_LOCK.
75313
75314 2006-08-23  Bruno Haible  <bruno@clisp.org>
75315
75316         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75317         on OSF/1 to no.
75318         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75319
75320 2006-08-23  Bruno Haible  <bruno@clisp.org>
75321
75322         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75323         as unusable.
75324
75325         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75326         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75327         (gl_LOCK): New macro.
75328
75329 2006-08-22  Simon Josefsson  <jas@extundo.com>
75330
75331         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75332         to md5 module.
75333
75334 2006-08-22  Simon Josefsson  <jas@extundo.com>
75335
75336         * MODULES.html.sh: Add "Support for maintaining and release
75337         projects".
75338
75339         * build-aux/gnupload: New file, from coreutils.
75340
75341 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         Avoid the need for AC_LIBSOURCES in m4 macros.
75344         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75345         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75346         * modules/check-version (EXTRA_DIST): Add check-version.h.
75347         * modules/crc (EXTRA_DIST): Add crc.h.
75348         * modules/des (EXTRA_DIST): Add des.h.
75349         * modules/gc (EXTRA_DIST): Add gc.h.
75350         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75351         * modules/getline (EXTRA_DIST): Add getline.h.
75352         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75353         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75354         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75355         * modules/md2 (EXTRA_DIST): Add md2.h.
75356         * modules/md4 (EXTRA_DIST): Add md4.h.
75357         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75358         * modules/read-file (EXTRA_DIST): Add read-file.h.
75359         * modules/readline (EXTRA_DIST): Add readline.h.
75360         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75361         rijndael-api-fst.h.
75362
75363 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * m4/rijndael.m4 (gl_ARCFOUR):
75366         * m4/arctwo.m4 (gl_ARCTWO):
75367         * m4/check-version.m4 (gl_CHECK_VERSION):
75368         * m4/crc.m4 (gl_CRC):
75369         * m4/des.m4 (gl_DES):
75370         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75371         * m4/gc.m4 (gl_GC):
75372         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75373         * m4/getline.m4 (gl_FUNC_GETLINE):
75374         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75375         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75376         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75377         * m4/md2.m4 (gl_MD2):
75378         * m4/md4.m4 (gl_MD4):
75379         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75380         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75381         * m4/readline.m4 (gl_FUNC_READLINE):
75382         * m4/rijndael.m4 (gl_RIJNDAEL):
75383         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75384         to get the necessary .h files and whatnot.
75385
75386 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75387
75388         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75389         gnulib rather than the other way around.
75390         * config/srclistvars.sh (COREUTILS): Remove.
75391
75392 2006-08-22  Jim Meyering  <jim@meyering.net>
75393
75394         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75395
75396         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75397
75398 2006-08-22  Eric Blake  <ebb9@byu.net>
75399
75400         * modules/regexprops-generic: New file.
75401         * MODULES.html.sh (Support for building documentation): List it.
75402
75403 2006-08-22  Eric Blake  <ebb9@byu.net>
75404
75405         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75406         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75407         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75408         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75409
75410 2006-08-22  Bruno Haible  <bruno@clisp.org>
75411
75412         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75413         and lib_LTLIBRARIES like the other lib_* variables.
75414
75415 2006-08-22  Bruno Haible  <bruno@clisp.org>
75416
75417         * build-aux/x-to-1.in: New file, from GNU gettext.
75418
75419 2006-08-22  Bruno Haible  <bruno@clisp.org>
75420
75421         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75422         <utmpx.h> exists.
75423
75424 2006-08-22  Bruno Haible  <bruno@clisp.org>
75425
75426         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75427         <utmpx.h> exists.
75428
75429 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         BeOS portability.
75432         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75433         exist.
75434         Problem reported by Bruno Haible.
75435
75436 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         Avoid the need for AC_LIBSOURCES in m4 macros.
75439         * modules/acl (EXTRA_DIST): Add acl.h.
75440         * modules/argmatch (Files): Add m4/argmatch.m4.
75441         (configure.ac): Add gl_ARGMATCH.
75442         (EXTRA_DIST): Renamed from lib_SOURCES, for
75443         consistency with the other modules.  Remove argmatch.c.
75444         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75445         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75446         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75447         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75448         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75449         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75450         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75451         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75452         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75453         * modules/closeout (EXTRA_DIST): Add closeout.h.
75454         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75455         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75456         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75457         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75458         dirname.h; remove basename.c and stripslash.c.
75459         * modules/exclude (EXTRA_DIST): Add exclude.h.
75460         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75461         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75462         * modules/file-type (EXTRA_DIST): Add file-type.h.
75463         * modules/filemode (EXTRA_DIST): Add filemode.h.
75464         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75465         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75466         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75467         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75468         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75469         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75470         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75471         * modules/getdate (EXTRA_DIST): Add getdate.c.
75472         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75473         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75474         * modules/getpass (EXTRA_DIST): Add getpass.h.
75475         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75476         * modules/group-member (EXTRA_DIST): Add group-member.h.
75477         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75478         * modules/hash (EXTRA_DIST): Add hash.h.
75479         * modules/human (EXTRA_DIST): Add human.h.
75480         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75481         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75482         * modules/lchown (EXTRA_DIST): Add lchown.h.
75483         * modules/long-options (EXTRA_DIST): Add long-options.h.
75484         * modules/lstat (EXTRA_DIST): Add lstat.h.
75485         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75486         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75487         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75488         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75489         * modules/memxor (EXTRA_DIST): Add memxor.h.
75490         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75491         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75492         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75493         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75494         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75495         * modules/physmem (EXTRA_DIST): Add physmem.h.
75496         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75497         * modules/posixver (EXTRA_DIST): Add posixver.h.
75498         * modules/quote (EXTRA_DIST): Add quote.h.
75499         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75500         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75501         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75502         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75503         regex_internal.h regexec.c.
75504         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75505         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75506         * modules/same (EXTRA_DIST): Add same.h.
75507         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75508         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75509         * modules/savedir (EXTRA_DIST): Add savedir.h.
75510         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75511         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75512         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75513         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75514         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75515         * modules/strdup (EXTRA_DIST): Add strdup.h.
75516         * modules/strftime (EXTRA_DIST): Add strftime.h.
75517         * modules/strndup (EXTRA_DIST): Add strndup.h.
75518         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75519         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75520         * modules/time_r (EXTRA_DIST): Add time_r.h.
75521         * modules/timespec (EXTRA_DIST): Add timespec.h.
75522         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75523         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75524         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75525         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75526         * modules/userspec (EXTRA_DIST): Add userspec.h.
75527         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75528         * modules/utimens (EXTRA_DIST): Add utimens.h.
75529         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75530         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75531         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75532         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75533         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75534         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75535         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75536         * modules/yesno (EXTRA_DIST): Add yesno.h.
75537
75538 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75539
75540         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75541
75542         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75543         * m4/dev-ino.m4, same-inode.m4: Remove.
75544
75545         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75546         * m4/acl.m4 (AC_FUNC_ACL):
75547         * m4/backupfile.m4 (gl_BACKUPFILE):
75548         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75549         * m4/canon-host.m4 (gl_CANON_HOST):
75550         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75551         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75552         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75553         * m4/cloexec.m4 (gl_CLOEXEC):
75554         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75555         * m4/closeout.m4 (gl_CLOSEOUT):
75556         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75557         * m4/dirname.m4 (gl_DIRNAME):
75558         * m4/exclude.m4 (gl_EXCLUDE):
75559         * m4/exitfail.m4 (gl_EXITFAIL):
75560         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75561         * m4/file-type.m4 (gl_FILE_TYPE):
75562         * m4/filemode.m4 (gl_FILEMODE):
75563         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75564         * m4/fpending.m4 (gl_FUNC_FPENDING):
75565         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75566         * m4/fts.m4 (gl_FUNC_FTS):
75567         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75568         * m4/getdate.m4 (gl_GETDATE):
75569         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75570         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75571         * m4/getpass.m4 (gl_FUNC_GETPASS):
75572         * m4/gettime.m4 (gl_GETTIME):
75573         * m4/getugroups.m4 (gl_GETUGROUPS):
75574         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75575         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75576         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75577         * m4/hash.m4 (gl_HASH):
75578         * m4/idcache.m4 (gl_IDCACHE):
75579         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75580         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75581         * m4/long-options.m4 (gl_LONG_OPTIONS):
75582         * m4/lstat.m4 (gl_FUNC_LSTAT):
75583         * m4/md5.m4 (gl_MD5):
75584         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75585         * m4/memcoll.m4 (gl_MEMCOLL):
75586         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75587         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75588         * m4/memxor.m4 (gl_MEMXOR):
75589         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75590         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75591         * m4/modechange.m4 (gl_MODECHANGE):
75592         * m4/mountlist.m4 (gl_MOUNTLIST):
75593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75594         * m4/openat.m4 (gl_FUNC_OPENAT):
75595         * m4/pathmax.m4 (gl_PATHMAX):
75596         * m4/physmem.m4 (gl_PHYSMEM):
75597         * m4/posixtm.m4 (gl_POSIXTM):
75598         * m4/posixver.m4 (gl_POSIXVER):
75599         * m4/quote.m4 (gl_QUOTE):
75600         * m4/quotearg.m4 (gl_QUOTEARG):
75601         * m4/readtokens.m4 (gl_READTOKENS):
75602         * m4/readutmp.m4 (gl_READUTMP):
75603         * m4/regex.m4 (gl_REGEX):
75604         * m4/safe-read.m4 (gl_SAFE_READ):
75605         * m4/safe-write.m4 (gl_SAFE_WRITE):
75606         * m4/same.m4 (gl_SAME):
75607         * m4/save-cwd.m4 (gl_SAVE_CWD):
75608         * m4/savedir.m4 (gl_SAVEDIR):
75609         * m4/settime.m4 (gl_SETTIME):
75610         * m4/sha1.m4 (gl_SHA1):
75611         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75612         * m4/stat-macros.m4 (gl_STAT_MACROS):
75613         * m4/stat-time.m4 (gl_STAT_TIME):
75614         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75615         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75616         * m4/strdup.m4 (gl_FUNC_STRDUP):
75617         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75618         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75619         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75620         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75621         * m4/time_r.m4 (gl_TIME_R):
75622         * m4/timespec.m4 (gl_TIMESPEC):
75623         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75624         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75625         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75626         * m4/userspec.m4 (gl_USERSPEC):
75627         * m4/utimecmp.m4 (gl_UTIMECMP):
75628         * m4/utimens.m4 (gl_UTIMENS):
75629         * m4/xalloc.m4 (gl_XALLOC):
75630         * m4/xgetcwd.m4 (gl_XGETCWD):
75631         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75632         * m4/xreadlink.m4 (gl_XREADLINK):
75633         * m4/xstrtod.m4 (gl_XSTRTOD):
75634         * m4/yesno.m4 (gl_YESNO):
75635         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75636         to get the necessary .h files and whatnot.
75637
75638 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75639             Bruno Haible  <bruno@clisp.org>
75640
75641         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75642         /bin/sh understanding of '!' conditional negation.
75643
75644 2006-08-21  Jim Meyering  <jim@meyering.net>
75645
75646         * modules/openat (Depends-on): Really alphabetize.
75647
75648         * modules/acl (Depends-on): Add error and quote.
75649
75650         * check-module (find_included_lib_files): Add at-func.c to the
75651         ok-to-include-more-than-once white list.
75652
75653         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75654
75655 2006-08-21  Bruno Haible  <bruno@clisp.org>
75656
75657         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75658         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75659         Reported by Martin Lambers <marlam@marlam.de>.
75660
75661 2006-08-21  Bruno Haible  <bruno@clisp.org>
75662
75663         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75664         specify an installation location, don't emit a noinst_LIBRARIES or
75665         noinst_LTLIBRARIES assignment.
75666
75667 2006-08-21  Bruno Haible  <bruno@clisp.org>
75668
75669         BeOS portability.
75670         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75671         BeOS has mbrtowc() but no <wctype.h>.
75672
75673 2006-08-21  Bruno Haible  <bruno@clisp.org>
75674
75675         BeOS portability.
75676         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75677         exist.
75678
75679 2006-08-21  Bruno Haible  <bruno@clisp.org>
75680
75681         BeOS portability.
75682         * lib/mbchar.h: Include <wctype.h> only if it exists.
75683
75684 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         Remove files that are no longer needed by their respective modules.
75687         * m4/obstack.m4: Remove.
75688         * m4/strerror_r.m4: Remove.
75689         * m4/uint32_t.m4: Remove.
75690         * m4/uintptr_t.m4: Remove.
75691         * m4/ullong_max.m4: Remove.
75692         * m4/xstrtoimax.m4: Remove.
75693         * m4/xstrtoumax.m4: Remove.
75694
75695         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75696         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75697         dependencies now capture this.
75698
75699         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75700         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75701         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75702         * m4/human.m4 (gl_HUMAN): Likewise.
75703         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75704         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75705
75706         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75707
75708         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75709         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75710         stdint.
75711         * m4/human.m4 (gl_HUMAN): Likewise.
75712         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75713         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75714         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75715         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75716         * m4/xstrtol (gl_XSTRTOL): Likewise.
75717
75718         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75719         AC_TYPE_LONG_LONG_INT.
75720         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75721         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75722         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75723         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75724
75725         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75726         on stdbool.
75727
75728         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75729         (gl_PREREQ_XSTRTOUL): Remove.
75730
75731         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75732
75733         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75734         mode.
75735
75736 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75737
75738         Add and change modules to make it easier for coreutils to use
75739         gnulib-tool.
75740         * modules/backupfile (Files): Remove m4/d-ino.m4.
75741         (Depends-on): Add d-ino.
75742         * modules/cycle-check (Depends-on): Add stdint.
75743         (lib_SOURCES): Add cycle-check.h.
75744         * modules/d-ino: New module.
75745         * modules/d-type: New module.
75746         * modules/error (Files): Remove m4/strerror_r.m4.
75747         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75748         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75749         m4/inttypes_h.m4, m4/uintmax_t.m4.
75750         (Depends-on): Add stdint.
75751         (lib_SOURCES): Add fsusage.h.
75752         * modules/getcwd (Files): Remove d-ino.m4.
75753         (Depends-on): Add d-ino.
75754         * modules/getndelim2 (Depends-on): Add stdint.
75755         * modules/glob (Files): Remove m4/d-type.m4.
75756         (Depends-on): Add d-type.
75757         * modules/host-os: New module.
75758         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75759         m4/inttypes_h.m4, m4/uintmax_t.m4.
75760         * Depends-on: Add stdint.
75761         (lib_SOURCES): Add human.h.
75762         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75763         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75764         m4/uintmax_t.m4, m4/ulonglong.m4.
75765         (Depends-on): Add stdint.
75766         (EXTRA_DIST): Add inttostr.h.
75767         * modules/lchmod: New module.
75768         * modules/link-follow: New module.
75769         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75770         (Depends-on): Add lchmod.
75771         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75772         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75773         (Depends-on): Add stdint.
75774         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75775         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75776         (Depends-on): Add stdint.
75777         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75778         * modules/perl: New module.
75779         * modules/regex (Depends-on): Add stdint.
75780         * modules/rmdir-errno: New module.
75781         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75782         m4/intmax_t.m4.
75783         (Depends-on): Add stdint.
75784         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75785         m4/uintmax_t.m4.
75786         (Depends-on): Add stdint.
75787         * modules/unlink-busy: New module.
75788         * modules/utimecmp (Depends-on): Add stdint.
75789         * modules/uptime: New module.
75790         * modules/winsz-ioctl: New module.
75791         * modules/winsz-termios: New module.
75792         * modules/xnanosleep (Depends-on): Add nanosleep.
75793         * modules/ullong_max: Remove.
75794         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75795         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75796         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75797         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75798         (Depends-on): Add inttypes.
75799         (lib_SOURCES): Add xstrtol.h.
75800         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75801         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75802         * MODULES.html.sh: Move 'assert' into the assert section.
75803         Move 'dummy' into the linking section.
75804         Remove ullong_max.
75805         Add section for compatibility checks for POSIX:2001 functions,
75806         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75807         winsz-ioctl, and winsz-termios into it.
75808         Add lchmod.
75809         Add top-level Misc section and put host-os, perl, and uptime
75810         into it.
75811
75812 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75813
75814         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75815         now assume the stdint module.  Do not include inttypes.h.
75816         * lib/fsusage.h: Likewise.
75817         * lib/getndelim2.c: Likewise.
75818         * lib/human.h: Likewise.
75819         * lib/inttostr.h: Likewise.
75820         * lib/obstack.c: Likewise.
75821         * lib/regex_internal.h: Likewise.
75822         * lib/tempname.c: Likewise.
75823         * lib/utimecmp.c: Likewise.
75824         * lib/xstrtol.h: Likewise.
75825
75826         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75827
75828         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75829         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75830         * lib/xtime.h: Likewise.
75831
75832 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * modules/openat (Files): Add lib/fchmodat.c.
75835         Fixes problem reported by Jay Youngman.
75836
75837 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75840         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75841
75842 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75843             Bruno Haible  <bruno@clisp.org>
75844
75845         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75846         and is a script that invokes bison. Tighten the code. Add comments.
75847
75848 2006-08-18  Jim Meyering  <jim@meyering.net>
75849
75850         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75851         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75852         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75853         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75854
75855 2006-08-18  Bruno Haible  <bruno@clisp.org>
75856
75857         * modules/bison-i18n: New file.
75858         * MODULES.html.sh (Internationalization functions): Add it.
75859
75860 2006-08-18  Bruno Haible  <bruno@clisp.org>
75861
75862         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75863         sys/statvfs.h. When getmntinfo was found, check its declaration and
75864         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75865
75866 2006-08-18  Bruno Haible  <bruno@clisp.org>
75867
75868         * m4/bison-i18n.m4: New file, from bison.
75869
75870 2006-08-18  Bruno Haible  <bruno@clisp.org>
75871
75872         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75873         (ME_DUMMY): Treat "kernfs" as a dummy.
75874         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75875
75876 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75877
75878         Update from coreutils.
75879
75880         2006-08-15  Jim Meyering  <jim@meyering.net>
75881
75882         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75883
75884         2006-01-17  Jim Meyering  <jim@meyering.net>
75885
75886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75887
75888         2006-01-11  Jim Meyering  <jim@meyering.net>
75889
75890         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75891         Check for the lchmod function.
75892
75893 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75894
75895         Update from coreutils.
75896
75897         * lib/__fpending.h: Add copyright notice.
75898         * lib/fprintftime.h: Likewise.
75899         * lib/savedir.c: Use (C) in copyright notice.
75900         * lib/savedir.h: Likewise.
75901
75902         2006-08-15  Jim Meyering  <jim@meyering.net>
75903
75904         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75905         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75906         in support of the EXPECTED_ERRNO macro.
75907         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75908         definitions.  Instead, define the appropriate symbols and include
75909         "at-func.c".
75910         * lib/mkdirat.c (mkdirat): Likewise.
75911         * lib/fchmodat.c (fchmodat): Likewise.
75912         (ENOSYS): Remove definition.
75913         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75914         it.  Don't include "unistd--.h" -- it wasn't ever used.
75915
75916         2006-01-17  Jim Meyering  <jim@meyering.net>
75917
75918         Rewrite fts.c not to change the current working directory,
75919         by using openat, fstatat, fdopendir, etc..
75920
75921         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75922         (HAVE_OPENAT_SUPPORT): Define.
75923         [_LIBC] (fchdir): Don't undef or define; no longer used.
75924         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75925         Now, this `function' always succeeds, and consumes its file descriptor
75926         parameter -- so callers must not close such FDs.  Update callers.
75927         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75928         (diropen): Add parameter, SP.  Adjust all callers.
75929         Implement using diropen_fd, rather than open.
75930         (fts_open): Initialize new member, fts_cwd_fd.
75931         Remove fts_rft-setting code.
75932         (fts_close): Close fts_cwd_fd, if necessary.
75933         (__opendir2): Define in terms of opendir or opendirat,
75934         depending on whether the FST_NOCHDIR flag is set.
75935         (fts_build): Since fts_safe_changedir consumes its FD, and since
75936         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75937         and close the dup'd file descriptor upon failure.
75938         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75939         (fts_safe_changedir): Tweak semantics to reflect that this function
75940         now calls cwd_advance_fd and hence consumes its FD argument.
75941         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75942         [struct FTS] (fts_rft): Remove now-unused member.
75943         [struct FTS] (fts_cycle.state): Improve comment.
75944
75945         * lib/openat.c (openat_needs_fchdir): New function.
75946         * lib/openat.h (openat_needs_fchdir): Declare it.
75947
75948 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75951         Problem and fix reported by Pádraig Brady in
75952         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75953
75954 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75957
75958 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         * lib/memcoll.c (memcoll): Optimize for the common case where the
75961         arguments are bytewise equal.
75962
75963 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         * doc/regexprops-generic.texi: Add a copyright notice.
75966
75967 2006-08-15  Bruno Haible  <bruno@clisp.org>
75968
75969         * modules/tmpdir (License): Change to LGPL.
75970
75971 2006-08-15  Bruno Haible  <bruno@clisp.org>
75972
75973         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75974         module.
75975
75976 2006-08-14  Simon Josefsson  <jas@extundo.com>
75977
75978         * config/srclist.txt: Add gnupload.
75979
75980 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         Change copyright notice from LGPL 2 to GPL 2, since that's the
75983         standard form used in the gnulib repository.
75984         * tests/test-lock.c: Likewise.
75985         * tests/test-stdint.c: Likewise.
75986         * tests/test-tls.c: Likewise.
75987
75988         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75989         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75990         Add copyright notice.
75991
75992         * check-module: Add copyright notice.  Output a copyright
75993         notice if "--version" is specified.
75994         * modules/COPYING: New file.
75995         * tests/test-getaddrinfo.c: Add copyright notice.
75996         * tests/test-verify.c: Likewise.
75997
75998 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         Change copyright notice from LGPL 2 to GPL 2, since that's the
76001         standard form used in the gnulib repository.
76002         * lib/lock.c: LGPL -> GPL.
76003         * lib/lock.h: Likewise.
76004         * lib/strnlen1.c: Likewise.
76005         * lib/strnlen1.h: Likewise.
76006         * lib/tls.c: Likewise.
76007         * lib/tls.h: Likewise.
76008         * lib/tmpdir.c: Likewise.
76009
76010         * lib/TODO: Remove; this belongs only in coreutils.
76011
76012 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76013
76014         Add copyright notices to long-enough files that lack them, since
76015         otherwise the files aren't clearly free.  Use the same notice that
76016         getdate.texi already uses.
76017         * doc/alloca-opt.texi: Add copyright notice.
76018         * doc/alloca.texi: Likewise.
76019         * doc/ctime.texi: Likewise.
76020         * doc/functions.texi: Likewise.
76021         * doc/gcd.texi: Likewise.
76022         * doc/gnulib-tool.texi: Likewise.
76023         * doc/inet_ntoa.texi: Likewise.
76024         * doc/visibility.texi: Likewise.
76025
76026         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76027         * doc/quote.texi: Add copyright notice.
76028
76029         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76030         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76031         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76032         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76033         is now obsolete, and give a pointer to the Sun list.
76034         Add copyright notice.
76035
76036 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         * config/srclistvars.sh: Add copyright notice.
76039
76040 2006-08-14  Eric Blake  <ebb9@byu.net>
76041
76042         Import the following change from libc:
76043
76044         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76045
76046         Upstream bug 2997.
76047         * lib/misc/error.c: Add space between program name and message if file
76048         name is missing.
76049
76050 2006-08-12  Karl Berry  <karl@gnu.org>
76051
76052         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76053         remove, these originate in gnulib now.
76054
76055 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76056
76057         * doc/Makefile (standards.info standards.html standards.dvi):
76058         Also depend on make-stds.texi.
76059
76060 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76061
76062         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76063         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76064
76065         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76066         in wchar_t.  Problem reported by Eric Blake.
76067
76068         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76069         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76070         Also, help the compiler to keep LEN in a register.
76071
76072 2006-08-11  Eric Blake  <ebb9@byu.net>
76073
76074         * users.txt: Sort.  Add tar.
76075
76076 2006-08-11  Bruno Haible  <bruno@clisp.org>
76077
76078         * users.txt: New file.
76079
76080 2006-08-11  Bruno Haible  <bruno@clisp.org>
76081
76082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76083         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76084
76085 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * modules/snprintf (Depends-on): Remove minmax.
76088         (Maintainer): Add self and Bruno.
76089
76090 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76093         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76094         (EOVERFLOW): Define if the system does not.
76095         Do not include "minmax.h"; it wasn't used.
76096         (snprintf): Don't assume size_t promotes to an unsigned type.
76097         Fix bug when generated string was too long for the buffer: the
76098         buffer's contents are supposed to be the initial prefix of the
76099         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76100         exceeds INT_MAX; do the check ourselves.
76101
76102         Import the following changes from libc:
76103
76104         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76105
76106         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76107         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76108         set wc to the byte which couldn't be converted.
76109         (re_string_reconstruct): Don't clear valid_raw_len before calling
76110         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76111         tip_context using re_string_context_at.
76112
76113         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76114
76115         * lib/posix/regex.h: g++ still cannot handled [restrict].
76116
76117         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76118
76119         * lib/posix/regex.h: Remove special handling for VMS.
76120
76121 2006-08-10  Jim Meyering  <jim@meyering.net>
76122
76123         * modules/same-inode: New module.
76124         * modules/dev-ino: New module.
76125         * modules/cycle-check: Depend on these modules, rather than simply
76126         including their .h files.
76127         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76128         required via m4/cycle-check.m4.
76129         * modules/same: Depend on new same-inode module, rather than
76130         including same-inode.h.
76131         * modules/chdir-safer: New file.
76132
76133         * modules/chown (Depends-on): Add stat-macros.
76134
76135 2006-08-10  Jim Meyering  <jim@meyering.net>
76136
76137         * m4/cycle-check.m4: New file.
76138         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76139         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76140
76141 2006-08-10  Eric Blake  <ebb9@byu.net>
76142
76143         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76144         in from original proposal.
76145
76146 2006-08-10  Eric Blake  <ebb9@byu.net>
76147         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76148
76149         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76150         namespace.
76151
76152 2006-08-10  Bruno Haible  <bruno@clisp.org>
76153
76154         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76155         as well.
76156
76157 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         Sync from coreutils.
76160
76161         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76162
76163         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76164         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76165
76166 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         * modules/restrict: Remove; no longer needed now that we assume
76169         Autoconf 2.59 or later.
76170         * MODULES.html.sh: Remove 'restrict'.
76171         * modules/argp (Depends-on): Remove 'restrict'.
76172         * modules/base64 (Depends-on): Likewise.
76173         * modules/gc (Depends-on): Likewise.
76174         * modules/getaddrinfo (Depends-on): Likewise.
76175         * modules/glob (Depends-on): Likewise.
76176         * modules/inet_ntop (Depends-on): Likewise.
76177         * modules/inet_pton (Depends-on): Likewise.
76178         * modules/memxor (Depends-on): Likewise.
76179         * modules/regex (Depends-on): Likewise.
76180         * modules/strtok_r (Depends-on): Likewise.
76181         * modules/time_r (Depends-on): Likewise.
76182
76183 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76186         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76187         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76188         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76189         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76190         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76191         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76192         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76193
76194         Merge from coreutils.
76195         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76196         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76197         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76198         * m4/time_r.m4 (gl_TIME_R): Likewise.
76199
76200 2006-08-09  Karl Berry  <karl@gnu.org>
76201
76202         * config/srclist.txt: no more gettext-tools, per Bruno.
76203
76204 2006-08-08  Eric Blake  <ebb9@byu.net>
76205
76206         * modules/verror: New module.
76207         * MODULES.html.sh: Document it.
76208
76209 2006-08-08  Eric Blake  <ebb9@byu.net>
76210
76211         * lib/verror.h, lib/verror.c: New files.
76212
76213 2006-08-08  Eric Blake  <ebb9@byu.net>
76214
76215         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76216         verror_at_line output complies with GNU Coding Standards even when
76217         file is NULL.
76218
76219 2006-08-07  Bruno Haible  <bruno@clisp.org>
76220
76221         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76222         versions of AIX.
76223         Reported by Ralf Wildenhues.
76224
76225 2006-08-07  Bruno Haible  <bruno@clisp.org>
76226
76227         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76228         in an AC_DEFUN. Needed so that the autoconf snippets can use
76229         AC_REQUIRE.
76230
76231 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76232
76233         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76234         Initialize pkgdata_DATA.
76235         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76236         overriding it.
76237
76238 2006-08-06  Eric Blake  <ebb9@byu.net>
76239
76240         * lib/error.h: Fold in some upstream changes from glibc.
76241         * lib/error.c: Likewise.
76242
76243 2006-08-04  Bruno Haible  <bruno@clisp.org>
76244
76245         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76246         Make the mostlyclean-local rule depend on mostlyclean-generic.
76247         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76248
76249 2006-07-31  Bruno Haible  <bruno@clisp.org>
76250
76251         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76252         <stdlib.h>, <string.h>.
76253
76254 2006-07-30  Bruno Haible  <bruno@clisp.org>
76255
76256         * modules/readlink (License): Change to LGPL.
76257
76258 2006-07-30  Bruno Haible  <bruno@clisp.org>
76259
76260         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76261         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76262         set PKGDATADIR to point to it.
76263
76264 2006-07-30  Bruno Haible  <bruno@clisp.org>
76265
76266         * modules/csharpexec (configure.ac): Comment out macro invocation.
76267         * modules/javaexec (configure.ac): Likewise.
76268         * modules/javacomp-script (configure.ac): Likewise.
76269
76270         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76271
76272 2006-07-30  Bruno Haible  <bruno@clisp.org>
76273
76274         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76275         linked-list.
76276
76277 2006-07-30  Bruno Haible  <bruno@clisp.org>
76278
76279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76280
76281 2006-07-30  Bruno Haible  <bruno@clisp.org>
76282
76283         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76284         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76285         get removed.
76286
76287 2006-07-29  Bruno Haible  <bruno@clisp.org>
76288
76289         Make it possible for gnulib-tool to work with locally modified or
76290         augmented gnulib repositories.
76291         * gnulib-tool (func_usage): Document --local-dir option.
76292         (local_gnulib_dir): New variable.
76293         Handle --local-dir option.
76294         (func_lookup_file): New function.
76295         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76296         (func_get_description, func_get_filelist, func_get_description,
76297         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76298         func_get_automake_snippet, func_get_include_directive,
76299         func_get_license, func_get_maintainer): Use func_lookup_file.
76300         (func_import, func_create_testdir): Use func_lookup_file.
76301
76302 2006-07-29  Bruno Haible  <bruno@clisp.org>
76303
76304         * modules/setenv (Depends-on): Add unistd.
76305
76306 2006-07-29  Bruno Haible  <bruno@clisp.org>
76307
76308         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76309
76310 2006-07-29  Bruno Haible  <bruno@clisp.org>
76311
76312         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76313
76314 2006-07-29  Bruno Haible  <bruno@clisp.org>
76315
76316         * gnulib-tool (import, update): If there is no Makefile.am, look at
76317         aclocal.m4, instead of bailing out.
76318
76319 2006-07-29  Bruno Haible  <bruno@clisp.org>
76320
76321         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76322         Categorize the options by when they are useful.
76323
76324 2006-07-29  Bruno Haible  <bruno@clisp.org>
76325
76326         * gnulib-tool (func_usage): Document option --no-libtool.
76327         Handle option --no-libtool.
76328         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76329         for changed semantics of $libtool variable.
76330         (func_import): Likewise. If libtool is not used, show this through
76331         an option --no-libtool.
76332         (func_create_testdir): Update.
76333
76334 2006-07-29  Bruno Haible  <bruno@clisp.org>
76335
76336         * gnulib-tool (func_import): Extend error message about missing
76337         --doc-base.
76338
76339 2006-07-29  Bruno Haible  <bruno@clisp.org>
76340
76341         * gnulib-tool (func_import): Don't create the $docbase directory if
76342         there is no file to store there.
76343
76344 2006-07-29  Bruno Haible  <bruno@clisp.org>
76345
76346         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76347         relevant, look for configure.ac there, not in the current directory.
76348         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76349
76350 2006-07-29  Bruno Haible  <bruno@clisp.org>
76351
76352         * gnulib-tool (SORT): New variable.
76353         (func_usage): Undocument --assume-autoconf option.
76354         Remove --assume-autoconf option handling.
76355         (autoconf_minversion): Determine from the contents of configure.ac.
76356         (func_import): Remove autoconf_minversion handling.
76357         Suggested by Eric Blake.
76358
76359 2006-07-29  Bruno Haible  <bruno@clisp.org>
76360
76361         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76362
76363 2006-07-29  Bruno Haible  <bruno@clisp.org>
76364
76365         * config/srclist.txt (*setenv.[ch]): Remove rules.
76366
76367 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76368
76369         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76370
76371 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76372
76373         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76374         arpa/inet.h.
76375
76376 2006-07-28  Simon Josefsson  <jas@extundo.com>
76377
76378         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76379         * modules/inet_pton (Depends-on): Likewise.
76380
76381 2006-07-28  Simon Josefsson  <jas@extundo.com>
76382
76383         * m4/netinet_in_h.m4: New file.
76384
76385 2006-07-28  Simon Josefsson  <jas@extundo.com>
76386
76387         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76388         #include's.
76389
76390 2006-07-28  Simon Josefsson  <jas@extundo.com>
76391
76392         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76393         #include's.
76394
76395 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76398         setgid on directories only if they set these bits.
76399         * lib/modechange.h: Remove obsolete comment about masks.
76400
76401 2006-07-28  Eric Blake  <ebb9@byu.net>
76402
76403         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76404         macro expansion.
76405
76406 2006-07-28  Bruno Haible  <bruno@clisp.org>
76407
76408         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76409
76410 2006-07-28  Bruno Haible  <bruno@clisp.org>
76411
76412         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76413
76414 2006-07-28  Bruno Haible  <bruno@clisp.org>
76415
76416         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76417         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76418         Define fallbacks.
76419         Avoids link error on FreeBSD 4.x.
76420         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76421
76422         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76423         encoding.
76424         * lib/mbswidth.c (iswcntrl): Likewise.
76425
76426 2006-07-27  Bruno Haible  <bruno@clisp.org>
76427
76428         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76429         test.
76430
76431 2006-07-27  Bruno Haible  <bruno@clisp.org>
76432
76433         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76434         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76435         defined.
76436
76437 2006-07-26  Eric Blake  <ebb9@byu.net>
76438
76439         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76440
76441 2006-07-26  Eric Blake  <ebb9@byu.net>
76442
76443         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76444         like mingw that lack mkstemp.
76445         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76446         avoid compilation warning on mingw.
76447
76448 2006-07-26  Bruno Haible  <bruno@clisp.org>
76449
76450         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76451         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76452         INT_FAST*_MIN, INTPTR_MIN.
76453
76454 2006-07-25  Bruno Haible  <bruno@clisp.org>
76455
76456         * modules/version-etc (Depends-on): Add stdarg.
76457
76458 2006-07-25  Bruno Haible  <bruno@clisp.org>
76459
76460         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76461         complex commands.
76462
76463 2006-07-25  Bruno Haible  <bruno@clisp.org>
76464
76465         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76466         defined in <stdarg.h> or config.h.
76467
76468 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76471         (gl_STDIO_SAFER): Remove.
76472
76473 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76474
76475         * MODULES.html.sh (File stream based Input/Output):
76476         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76477         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76478         * modules/fopen-safer, modules/tmpfile-safer: New files.
76479         * modules/stdio-safer: Remove.
76480
76481 2006-07-24  Bruno Haible  <bruno@clisp.org>
76482
76483         * modules/tmpdir: New file.
76484         * MODULES.html.sh (File system functions): Add it.
76485
76486 2006-07-24  Bruno Haible  <bruno@clisp.org>
76487
76488         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76489         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76490
76491 2006-07-24  Bruno Haible  <bruno@clisp.org>
76492
76493         * modules/clean-temp: New file.
76494
76495 2006-07-24  Bruno Haible  <bruno@clisp.org>
76496
76497         * m4/tmpdir.m4: New file, from GNU gettext.
76498
76499 2006-07-24  Bruno Haible  <bruno@clisp.org>
76500
76501         * lib/tmpdir.h: New file, from GNU gettext.
76502         * lib/tmpdir.c: New file, from GNU gettext.
76503
76504 2006-07-24  Bruno Haible  <bruno@clisp.org>
76505
76506         * lib/clean-temp.h: New file, from GNU gettext.
76507         * lib/clean-temp.c: New file, from GNU gettext.
76508
76509 2006-07-23  Eric Blake  <ebb9@byu.net>
76510
76511         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76512         (Depends-on): Add binary-io.
76513
76514 2006-07-23  Eric Blake  <ebb9@byu.net>
76515
76516         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76517
76518 2006-07-23  Eric Blake  <ebb9@byu.net>
76519
76520         * lib/tmpfile-safer.c: New file.
76521         * lib/stdio-safer.h (fopen_safer): Add prototype.
76522         * lib/stdio--.h (tmpfile): Make safer.
76523
76524 2006-07-23  Bruno Haible  <bruno@clisp.org>
76525
76526         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76527         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76528         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76529         gl_linked_remove_at): Use it.
76530
76531 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76532         and Simon Josefsson <jas@extundo.com>
76533
76534         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76535
76536         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76537
76538 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76539
76540         * modules/close-stream: New file.
76541         * modules/closeout (Description): Make it clear that it exits
76542         with a diagnostic on error.
76543         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76544         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76545
76546 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76547
76548         * m4/close-stream.m4: New file.
76549
76550 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         * lib/close-stream.c, lib/close-stream.h: New files.
76553
76554 2006-07-22  Bruno Haible  <bruno@clisp.org>
76555
76556         Merge from GNU gettext 0.15.
76557
76558         2006-05-01  Bruno Haible  <bruno@clisp.org>
76559
76560                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76561
76562         2006-07-22  Bruno Haible  <bruno@clisp.org>
76563
76564                 * modules/javaversion: New file.
76565                 * MODULES.html.sh (Java): Add javaversion.
76566
76567         2006-03-12  Bruno Haible  <bruno@clisp.org>
76568
76569                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76570
76571         2005-12-04  Bruno Haible  <bruno@clisp.org>
76572
76573                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76574                 (untested).
76575
76576         2006-06-21  Bruno Haible  <bruno@clisp.org>
76577
76578                 Avoid warnings from recent versions of mcs.
76579                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76580                 -o, -L, -r any more. Use options documented since mcs-1.0
76581                 instead. Similarly for -g.
76582
76583         2005-12-04  Bruno Haible  <bruno@clisp.org>
76584
76585                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76586                 .resources, not .resource.
76587
76588         2005-07-09  Bruno Haible  <bruno@clisp.org>
76589
76590                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76591                 add a .dll suffix.
76592                 Reported by Mark Junker <mjscod@gmx.de>.
76593
76594         2006-07-22  Bruno Haible  <bruno@clisp.org>
76595
76596                 * modules/gettext: Upgrade to gettext-0.15.
76597                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76598                 m4/visibility.m4.
76599                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76600
76601 2006-07-22  Bruno Haible  <bruno@clisp.org>
76602
76603         Merge from GNU gettext 0.15.
76604
76605         2006-03-25  Bruno Haible  <bruno@clisp.org>
76606
76607                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76608
76609         2006-07-21  Bruno Haible  <bruno@clisp.org>
76610
76611                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76612                 "1.1".
76613
76614         2006-05-09  Bruno Haible  <bruno@clisp.org>
76615
76616                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76617                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76618                 for the conftestver execution.
76619
76620         2006-05-01  Bruno Haible  <bruno@clisp.org>
76621
76622                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76623                 optional target-version argument. Verify that the compiler
76624                 groks source of the specified source-version, or add -source
76625                 option as necessary. Verify that the compiler produces
76626                 bytecode in the specified target-version, or add -target and
76627                 -source options as necessary. Make the result of the test
76628                 available as variable CONF_JAVAC. Also log error output in
76629                 config.log.
76630
76631         2006-03-11  Bruno Haible  <bruno@clisp.org>
76632
76633                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76634
76635         2006-05-09  Bruno Haible  <bruno@clisp.org>
76636
76637                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76638                 CLASSPATH_SEPARATOR to a semicolon.
76639
76640         2006-03-12  Bruno Haible  <bruno@clisp.org>
76641
76642                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76643                 available as variable CONF_JAVA, for subsequent autoconf
76644                 tests. Also log error output in config.log.
76645
76646         2006-07-19  Bruno Haible  <bruno@clisp.org>
76647
76648                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76649                 that getline works on glibc2 systems. Needed to avoid trouble
76650                 in relocatable.c.
76651                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76652
76653         2005-12-04  Bruno Haible  <bruno@clisp.org>
76654
76655                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76656                 launcher (untested).
76657
76658         2005-12-04  Bruno Haible  <bruno@clisp.org>
76659
76660                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76661
76662         2006-07-22  Bruno Haible  <bruno@clisp.org>
76663
76664                 * gettext.m4: Update from GNU gettext-0.15.
76665                 * nls.m4: Likewise.
76666                 * po.m4: Likewise.
76667                 * inttypes-pri.m4: Likewise.
76668                 * inttypes-h.m4: Renamed from inttypes.m4.
76669                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76670
76671 2006-07-22  Bruno Haible  <bruno@clisp.org>
76672
76673         Merge from GNU gettext 0.15.
76674
76675         2005-07-05  Bruno Haible  <bruno@clisp.org>
76676
76677                 * printf-args.c (printf_fetchargs): Work around broken
76678                 definition of wint_t on mingw.
76679
76680         2005-02-12  Bruno Haible  <bruno@clisp.org>
76681
76682                 * xallocsa.h: Add extern "C" for C++.
76683
76684         2006-05-17  Bruno Haible  <bruno@clisp.org>
76685
76686                 Cygwin portability.
76687                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76688
76689         2006-04-30  Bruno Haible  <bruno@clisp.org>
76690
76691                 * progreloc.c: Include <mach-o/dyld.h> if available.
76692                 (find_executable): Use _NSGetExecutablePath when possible.
76693
76694         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76695
76696                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76697                 function.
76698
76699         2005-12-29  Bruno Haible  <bruno@clisp.org>
76700
76701                 * progreloc.c (set_program_name_and_installdir): Fix
76702                 compilation error.
76703
76704         2005-12-04  Bruno Haible  <bruno@clisp.org>
76705
76706                 Cygwin portability.
76707                 * progreloc.c: Include <windows.h> also on Cygwin.
76708                 (find_executable): Add support for Cygwin.
76709                 (set_program_name_and_installdir): Handle also platforms with
76710                 nonempty EXEEXT.
76711
76712         2006-07-11  Bruno Haible  <bruno@clisp.org>
76713
76714                 * javacomp.c: Fix a comment.
76715                 Reported by Jim Meyering.
76716
76717         2006-04-30  Bruno Haible  <bruno@clisp.org>
76718
76719                 * javacomp.h (compile_java_class): Add source_version,
76720                 target_version arguments.
76721                 * javacomp.c: Rewritten to choose only a compiler that
76722                 respects the specified source_version and target_version.
76723
76724         2006-06-27  Bruno Haible  <bruno@clisp.org>
76725
76726                 Assume correct S_ISDIR macro.
76727                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76728
76729         2006-07-22  Bruno Haible  <bruno@clisp.org>
76730
76731                 * javaversion.h: New file, from GNU gettext.
76732                 * javaversion.c: New file, from GNU gettext.
76733                 * javaversion.java: New file, from GNU gettext.
76734                 * javaversion.class: New file, from GNU gettext.
76735
76736         2006-05-17  Bruno Haible  <bruno@clisp.org>
76737
76738                 Cygwin portability.
76739                 * javaexec.c (execute_java_class): Test for jview program
76740                 also on Cygwin.
76741
76742         2006-04-09  Bruno Haible  <bruno@clisp.org>
76743
76744                 * fatal-signal.c: Don't include string.h.
76745                 (at_fatal_signal): Use a copying loop instead of memcpy.
76746
76747         2005-12-04  Bruno Haible  <bruno@clisp.org>
76748
76749                 * csharpexec.c: Add support for 'clix' launcher (untested).
76750                 (execute_csharp_using_sscli): New function.
76751                 (execute_csharp_program): Call it.
76752
76753         2006-06-21  Bruno Haible  <bruno@clisp.org>
76754
76755                 Avoid warnings from recent versions of mcs.
76756                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76757                 -o, -L, -r any more. Use options documented since mcs-1.0
76758                 instead. Similarly for -g.
76759
76760         2005-07-09  Bruno Haible  <bruno@clisp.org>
76761
76762                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76763                 add a .dll suffix.
76764                 Reported by Mark Junker <mjscod@gmx.de>.
76765
76766         2006-06-17  Bruno Haible  <bruno@clisp.org>
76767
76768                 * config.charset: Update for NetBSD 3.0.
76769
76770         2006-05-17  Bruno Haible  <bruno@clisp.org>
76771
76772                 Cygwin portability.
76773                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76774
76775         2006-05-16  Bruno Haible  <bruno@clisp.org>
76776
76777                 * localcharset.c [CYGWIN]: Include <windows.h>.
76778                 (get_charset_aliases): For Cygwin, return the same CPxxx
76779                 aliases list as under WIN32.
76780                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76781                 the environment variables. Fall back to GetACP().
76782
76783         2006-04-05  Bruno Haible  <bruno@clisp.org>
76784
76785                 * config.charset: Update Juan Manuel Guerrero's address.
76786
76787         2005-02-12  Bruno Haible  <bruno@clisp.org>
76788
76789                 * allocsa.h: Add extern "C" for C++.
76790
76791         2005-02-10  Bruno Haible  <bruno@clisp.org>
76792
76793                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76794                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76795
76796         2006-07-22  Bruno Haible  <bruno@clisp.org>
76797
76798                 * gettext.h: Update to GNU gettext-0.15.
76799
76800 2006-07-22  Bruno Haible  <bruno@clisp.org>
76801
76802         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76803         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76804         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76805
76806 2006-07-21  Eric Blake  <ebb9@byu.net>
76807
76808         * modules/stdlib-safer: New file.
76809         * MODULES.html.sh (File stream based Input/Output): Add
76810         stdlib-safer.
76811
76812 2006-07-21  Eric Blake  <ebb9@byu.net>
76813
76814         * lib/stdlib-safer.h: New file from coreutils, required by
76815         stdlib--.h.
76816
76817 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76818
76819         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76820
76821 2006-07-20  Bruno Haible  <bruno@clisp.org>
76822
76823         * gnulib-tool: Recognize new option --assume-autoconf.
76824         (autoconf_minversion): New variable.
76825         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76826
76827 2006-07-20  Bruno Haible  <bruno@clisp.org>
76828
76829         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76830
76831 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76832
76833         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76834         Reindent and repaginate.
76835
76836 2006-07-19  Derek Price  <derek@ximbiot.com>
76837
76838         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76839         Correct grammar.
76840
76841 2006-07-17  Bruno Haible  <bruno@clisp.org>
76842
76843         * modules/list: New file.
76844         * modules/array-list: New file.
76845         * modules/carray-list, modules/carray-list-tests: New files.
76846         * modules/linked-list, modules/linked-list-tests: New files.
76847         * modules/avltree-list, modules/avltree-list-tests: New files.
76848         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76849         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76850         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76851         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76852         * modules/oset: New file.
76853         * modules/array-oset: New file.
76854         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76855         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76856         * tests/test-carray_list.c: New file.
76857         * tests/test-linked_list.c: New file.
76858         * tests/test-avltree_list.c: New file.
76859         * tests/test-rbtree_list.c: New file.
76860         * tests/test-linkedhash_list.c: New file.
76861         * tests/test-avltreehash_list.c: New file.
76862         * tests/test-rbtreehash_list.c: New file.
76863         * tests/test-avltree_oset.c: New file.
76864         * tests/test-rbtree_oset.c: New file.
76865         * MODULES.html.sh (Container data structures): New section.
76866
76867 2006-07-17  Bruno Haible  <bruno@clisp.org>
76868
76869         * m4/gl_list.m4: New file.
76870
76871 2006-07-17  Bruno Haible  <bruno@clisp.org>
76872
76873         * lib/gl_list.h: New file.
76874         * lib/gl_list.c: New file.
76875         * lib/gl_array_list.h: New file.
76876         * lib/gl_array_list.c: New file.
76877         * lib/gl_carray_list.h: New file.
76878         * lib/gl_carray_list.c: New file.
76879         * lib/gl_linked_list.h: New file.
76880         * lib/gl_linked_list.c: New file.
76881         * lib/gl_anylinked_list1.h: New file.
76882         * lib/gl_anylinked_list2.h: New file.
76883         * lib/gl_avltree_list.h: New file.
76884         * lib/gl_avltree_list.c: New file.
76885         * lib/gl_anyavltree_list1.h: New file.
76886         * lib/gl_anyavltree_list2.h: New file.
76887         * lib/gl_rbtree_list.h: New file.
76888         * lib/gl_rbtree_list.c: New file.
76889         * lib/gl_anyrbtree_list1.h: New file.
76890         * lib/gl_anyrbtree_list2.h: New file.
76891         * lib/gl_anytree_list1.h: New file.
76892         * lib/gl_anytree_list2.h: New file.
76893         * lib/gl_linkedhash_list.h: New file.
76894         * lib/gl_linkedhash_list.c: New file.
76895         * lib/gl_anyhash_list1.h: New file.
76896         * lib/gl_anyhash_list2.h: New file.
76897         * lib/gl_avltreehash_list.h: New file.
76898         * lib/gl_avltreehash_list.c: New file.
76899         * lib/gl_rbtreehash_list.h: New file.
76900         * lib/gl_rbtreehash_list.c: New file.
76901         * lib/gl_anytreehash_list1.h: New file.
76902         * lib/gl_anytreehash_list2.h: New file.
76903
76904         * lib/gl_oset.h: New file.
76905         * lib/gl_oset.c: New file.
76906         * lib/gl_array_oset.h: New file.
76907         * lib/gl_array_oset.c: New file.
76908         * lib/gl_avltree_oset.h: New file.
76909         * lib/gl_avltree_oset.c: New file.
76910         * lib/gl_rbtree_oset.h: New file.
76911         * lib/gl_rbtree_oset.c: New file.
76912         * lib/gl_anytree_oset.h: New file.
76913
76914 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * m4/mkancesdirs.m4: New file.
76917         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76918         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76919         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76920         it.
76921
76922 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76925         * lib/mkancesdirs.h: New files.
76926         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76927         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76928         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76929         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76930         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76931         callers changed.  Revamp internals significantly, by not
76932         attempting to create directories that are temporarily more
76933         permissive than the final results.  Do not attempt to use
76934         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76935         This removes some race conditions, fixes some bugs, and simplifies
76936         things.  Use new dirchownmod function to do owner and mode changes.
76937         * lib/mkdir-p.h: Likewise.
76938         * lib/modechange.c (octal_to_mode): New function.
76939         (struct mode_change): New member mentioned.
76940         (make_node_op_equals): New arg mentioned.  All callers changed.
76941         (mode_compile): Keep track of which mode bits the user has explicitly
76942         mentioned.
76943         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76944         New arg PMODE_BITS, to keep track of which mode bits the user
76945         mentioned; it treats S_ISUID and S_ISGID speciall.
76946         All callers changed.
76947         * lib/modechange.h: Likewise.
76948
76949 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76950
76951         * MODULES.html.sh: Add mkancestors.
76952         * modules/mkancesdirs: New module.
76953         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76954         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76955         The chdir-safer and afs files are now orphans; I'll remove them
76956         unless someone speaks up.
76957         Add lib/dirchownmod.c, lib/dirchownmod.h.
76958         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76959         Add lchown, mkancesdirs.
76960         (Maintainer): Add self.
76961
76962 2006-07-15  Karl Berry  <karl@gnu.org>
76963
76964         * gnulib-tool: help message wording/arrangement.
76965
76966 2006-07-14  Simon Josefsson  <jas@extundo.com>
76967
76968         * doc/gnulib.texi (Libtool and Windows): New section.
76969
76970 2006-07-12  Simon Josefsson  <jas@extundo.com>
76971
76972         * modules/gendocs (License): Fix license, approved by Karl.
76973
76974 2006-07-12  Eric Blake  <ebb9@byu.net>
76975
76976         * MODULES.html.sh: Add gendocs.
76977
76978 2006-07-11  Eric Blake  <ebb9@byu.net>
76979
76980         * modules/fdl: New module, to install doc/fdl.texi.
76981         * MODULES.html.sh: Add new section for documentation modules.
76982         * gnulib-tool: Avoid space-tab.
76983         (--doc-base): New option, to manage files from doc.
76984
76985 2006-07-11  Eric Blake  <ebb9@byu.net>
76986
76987         * m4/absolute-header.m4: Fix comments to match recent change.
76988
76989 2006-07-11  Eric Blake  <ebb9@byu.net>
76990
76991         * gnulib-tool: List --doc-base before --tests-base.
76992
76993 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76994
76995         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76996
76997 2006-07-11  Bruno Haible  <bruno@clisp.org>
76998
76999         * README: Mention where to put documentation.
77000
77001 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77002
77003         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77004
77005 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77008         to stdint.m4.
77009
77010 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77011
77012         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77013         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77014         "no/such/file/stdint.h" when there is no such file, so that
77015         the resulting C code can be parsed by dodgy compilers.
77016         Problems reported by Bob Proulx.
77017
77018 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77019
77020         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77021         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77022         macros into the GNU _D_EXACT_NAMLEN.
77023         * lib/savedir.c:  Likewise.
77024         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77025
77026 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77027         and Paul Eggert  <eggert@cs.ucla.edu>
77028
77029         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77030         * m4/savedir.m4:
77031         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77032         macros into the GNU _D_EXACT_NAMLEN.
77033
77034 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77037         around the absolute name, to work around a problem with the HP-UX
77038         11.23 native C compiler, reported by Bob Proulx.
77039
77040 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77041
77042         * doc/maintain.texi, make-stds.texi: Sync from
77043         <http://savannah.gnu.org/projects/gnustandards>.
77044
77045 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77048
77049 2006-07-09  Jim Meyering  <jim@meyering.net>
77050
77051         * m4/glob.m4: Remove a doubled word in a comment.
77052
77053 2006-07-09  Jim Meyering  <jim@meyering.net>
77054
77055         * lib/argp-pv.c: Remove a doubled word in a comment.
77056         * lib/check-version.c (check_version): Likewise.
77057         * lib/javacomp.c (compile_java_class): Likewise.
77058
77059 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77062         for the benefit of people using Autoconf 2.60.  If you want to
77063         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77064         (or m4/onceonly.m4, if pre-2.57) manually.
77065
77066 2006-07-08  Jim Meyering  <jim@meyering.net>
77067
77068         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77069         comment.
77070         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77071         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77072         comment.
77073
77074 2006-07-08  Jim Meyering  <jim@meyering.net>
77075
77076         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77077
77078 2006-07-07  Simon Josefsson  <jas@extundo.com>
77079
77080         * tests/test-crc.c: Change expected crc value, the test vector
77081         were probably computed using the old broken crc.c?
77082
77083 2006-07-06  Simon Josefsson  <jas@extundo.com>
77084
77085         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77086         now the canonical place for the M4 file).
77087
77088         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77089         from the sys_socket dependency now.
77090
77091         * modules/inet_pton (Files): Ditto.
77092
77093         * modules/inet_ntop (Files): Ditto.
77094
77095 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77096
77097         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77098         not gl_PREREQ_GETUSERSHELL.
77099
77100 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77101
77102         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77103         with only one argument, for Autoconf 2.60.
77104         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77105         expand to nothing, so add a shell command to avoid syntax error.
77106         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77107
77108 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77109
77110         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77111
77112 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77113
77114         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77115         no longer needed.  Check for isblank decl.
77116         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77117         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77118         of existence.
77119
77120 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * lib/getloadavg.c: Use __VMS, not VMS.
77123         * lib/getopt.c: Likewise.
77124         * lib/getpagesize.h: Likewise.
77125         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77126         and probably does not work.
77127
77128 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77129
77130         * lib/.cppi-disable: Add wcwidth.
77131         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77132         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77133         (ISGRAPH): Remove.  All uses changed to isgraph.
77134         (FOLD) [!defined _LIBC]: Remove special case.
77135         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77136         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77137         HAVE_ISBLANK.
77138         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77139         case.
77140
77141 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77142
77143         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77144         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77145         brackets.  Other minor changes to suppress some compiler
77146         warnings.
77147
77148 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77149         and Paul Eggert  <eggert@cs.ucla.edu>
77150
77151         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77152         of invoking obsolescent AC_HEADER_DIRENT macro.
77153         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77154         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77155         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77156         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77157         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77158         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77159         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77160         * m4/readdir.m4: Remove; no longer needed.
77161
77162 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77163         and Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77166         Don't worry about this obsolete case any more.
77167         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77168         directories.
77169         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77170         worry about this obsolete case any more.
77171         * lib/fts.c: Likewise.
77172         * lib/getcwd.c: Likewise.
77173         * lib/glob.h: Likewise.
77174         * lib/savedir.c: Likewise.
77175
77176 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77179         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77180         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77181         needed.
77182         All uses removed.
77183         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77184         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77185         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77186         needed.
77187         * m4/getdate.m4 (gl_GETDATE): Likewise.
77188         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77189         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77190         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77191         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77192         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77193         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77194         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77195         needed.
77196
77197 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * lib/memcasecmp.c: Include <limits.h>.
77200         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77201         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77202         Don't assume isdigit succeeds only on '0' through '9'.
77203
77204 2006-07-05  Eric Blake  <ebb9@byu.net>
77205
77206         * modules/getaddrinfo (Depends-on): Add snprintf.
77207
77208 2006-07-05  Eric Blake  <ebb9@byu.net>
77209
77210         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77211         to avoid 'header present but could not be compiled' on cygwin.
77212
77213 2006-07-05  Eric Blake  <ebb9@byu.net>
77214
77215         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77216         missing from netdb.h.
77217         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77218
77219 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77220
77221         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77222         no longer needed.
77223         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77224         * m4/getdate.m4 (gl_GETDATE): Likewise.
77225         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77226         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77227         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77228         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77229         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77230
77231 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77232
77233         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77234         All uses of is_space replaced by isspace.
77235         * lib/exit.h: Don't talk about STDC_HEADERS.
77236         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77237         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77238         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77239         replaced by isprint etc.
77240         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77241         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77242         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77243         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77244         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77245         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77246
77247 2006-07-05  Bruno Haible  <bruno@clisp.org>
77248
77249         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77250         the function exists, before testing against AIX.
77251         Reported by Martin Lambers <marlam@marlam.de>.
77252
77253 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77254
77255         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77256         From Mark D. Baushke.
77257
77258 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77259
77260         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77261         to the absolute name, not just one, to bypass Sun C 5.8's
77262         "warning: #include of /usr/include/... may be non-portable".
77263
77264 2006-07-04  Eric Blake  <ebb9@byu.net>
77265
77266         * modules/dirname-tests: New test module.
77267         * tests/test-dirname.c: New file, replacing dirname.c
77268         TEST_DIRNAME section that was recently deleted.
77269
77270 2006-07-04  Bruno Haible  <bruno@clisp.org>
77271
77272         Assume ANSI C header files and <ctype.h> functions.
77273         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77274         (mbsnwidth): Use isprint, iscntrl instead.
77275
77276 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         Merge from coreutils.
77279         * MODULES.html.sh: Add xstrtold.
77280         * modules/xstrtold: New file.
77281         * modules/cycle-check (Files): Add lib/same-inode.h.
77282         * modules/dirname (Files): Add m4/double-slash-root.m4.
77283         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77284         * modules/mkdir-p (Files): Add lib/same-inode.h.
77285         * modules/same (Files): Add lib/same-inode.h.
77286
77287 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77290         This is to keep the terminology clean; POSIX talks about
77291         "absolute pathnames", not "full pathnames", but the GNU
77292         Coding Standards say to use "path" for something else;
77293         so use "absolute" to keep both sides happy.
77294         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77295         Set gl_absolute_header, not gl_full_header_path.
77296         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77297         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77298         All uses changed.
77299
77300         Merge from coreutils.
77301
77302         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77303
77304         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77305         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77306         want to require the building of c-strtod.o.
77307         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77308         needs -lm directly.
77309         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77310
77311         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77312
77313         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77314         --as-needed option if available.  Problem reported by Albert Chin in
77315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77316         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77317         cc merely issues a bunch of annoying warnings for --as-needed
77318         (this problem was reported by Bob Proulx).  Also, try linking with
77319         -lm to detect a bug in binutils 2.16 (this problem was reported
77320         by Ralf Wildenhues).
77321
77322         2006-06-18  Jim Meyering  <jim@meyering.net>
77323
77324         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77325         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77326         macro.
77327         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77328         also check for glibc-2.4's abort-inducing bug.
77329
77330         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77331         Low-probability clean-up should be to use rmdir to get rid of
77332         the just-created directory, not unlink.
77333
77334         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77335         configure fail, and request a bug report to inform us about it.
77336         Add a comment that, barring reports to the contrary, in 2007 we'll
77337         assume ftruncate is universally available.
77338
77339         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77340
77341         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77342
77343         2006-03-12  Jim Meyering  <jim@meyering.net>
77344
77345         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77346         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77347         * m4/same.m4 (gl_SAME): Likewise.
77348         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77349
77350         2006-03-11  Eric Blake  <ebb9@byu.net>
77351
77352         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77353         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77354         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77355         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77356
77357 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77358
77359         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77360         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77361         reported by Mark D. Baushke, one in
77362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77363
77364         Merge from coreutils.
77365
77366         * lib/.cppi-disable: Add stdint_.h.
77367         * lib/.cvsignore: Add stdint.h.
77368
77369         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77370
77371         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77372         both double and long double versions.
77373         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77374         * lib/xstrtold.c: New file.
77375         * lib/xstrtod.h (xstrtold): New decl.
77376
77377         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77378
77379         * lib/filemode.c (setst): Remove.
77380         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77381         (arguably) clearer, and the generated code is a bit smaller on my
77382         Debian GNU/Linux stable x86 host.
77383
77384         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77385
77386         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77387         Assume that filemode.h includes sys/types.h and sys/stat.h.
77388         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77389         (ftypelet): Reorder to put common cases first, for efficiency.
77390         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77391         to do 'M'.
77392         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77393         of 10, for compatibility with FreeBSD.  All callers changed.
77394         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77395         types that can't be deduced solely from st_mode.  First arg is now a
77396         const pointer.
77397         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77398         (strmode): Renamed from mode_string.
77399         (filemodestring): New decl.
77400         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77401         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77402         needed.
77403         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77404
77405         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77406
77407         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77408         fsusage.h now does that.  Include fsusage.h first, to test interface.
77409         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77410         at most one method (the old code could have generated decls that
77411         didn't conform to C89, not that this was ever exercised).
77412         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77413
77414         2006-03-19  Jim Meyering  <jim@meyering.net>
77415
77416         Work even in a chroot where d_ino values for entries in "/"
77417         don't match the stat.st_ino values for the same names.
77418         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77419         number, iterate through all entries again, using lstat instead.
77420         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77421         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77422
77423         * lib/getcwd.c (__getcwd): Clarify a comment.
77424         Use memcpy in place of a call to strcpy.
77425
77426         2006-03-12  Jim Meyering  <jim@meyering.net>
77427
77428         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77429         matches that of the current directory (which we're about to chdir ".."
77430         out of), then save the dev-ino of the parent, instead.
77431
77432         * lib/same-inode.h (SAME_INODE): New file/macro.
77433         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77434         Include "same-inode.h", instead.
77435         * lib/same.c: Likewise.
77436         * lib/cycle-check.h: Include "same-inode.h".
77437         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77438         * lib/cycle-check.c (SAME_INODE): Remove definition.
77439         * lib/root-dev-ino.h: Include "same-inode.h".
77440
77441         2006-03-11  Eric Blake  <ebb9@byu.net>
77442
77443         * lib/same.c (same_name): s/base_name/last_component/
77444         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77445         * lib/filenamecat.c (file_name_concat): Likewise.
77446
77447         2006-03-11  Eric Blake  <ebb9@byu.net>,
77448                     Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77451         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77452         drive prefix.
77453         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77454         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77455         (last_component): New method.
77456         * lib/dirname.c (dir_len): Determine when drive letters need a
77457         subsequent slash.  Preserve // when it is special.
77458         (dir_name): Don't append dot when drive letter is absolute.
77459         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77460         * lib/basename.c (base_name): New semantics - malloc the result.
77461         Preserve // when it is special.  Preserve relative files that look
77462         like drive letters.
77463         (base_len): Preserve // when it is special.
77464         (last_component): New method, similar to old base_name semantics.
77465         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77466         base_name.  Strip redundant slashes from ///.
77467
77468 2006-07-03  Jim Meyering  <jim@meyering.net>
77469
77470         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77471         macro is used before the first cycle_check call.
77472
77473 2006-07-03  Eric Blake  <ebb9@byu.net>
77474
77475         * modules/dirname (Depends-on): Add xstrndup.
77476
77477 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77480         test cases, so that config.log is a bit easier to follow.
77481
77482 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77483
77484         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77485         both are 64 bits, since this seems to be the tradition, and this
77486         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77487         we ever run into a host that prefers long long to long in this
77488         case, we'll need another configure-time test.  Problem reported by
77489         Jim Meyering.
77490
77491 2006-07-02  Eric Blake  <ebb9@byu.net>
77492
77493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77494
77495 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         * modules/inttypes (Depends-on): No longer depends on stdint.
77498         * modules/stdint (Description): Say more about assumptions.
77499         Say that the fast types might differ.  Say macros are used.
77500         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77501         (Makefile.am): Revise list of substituted symbols to match
77502         new stdint.m4.
77503         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77504         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77505         * tests/test-stdint.c (verify_same_types)
77506         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77507         the code conforms to C99/C89.
77508         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77509         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77510
77511 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77514         but fix a bug, by requiring at least 64 bits.
77515         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77516         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77517         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77518         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77519
77520         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77521         changes.  Make 2.59 a prerequisite.  Check and substitute for
77522         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77523         inttypes.h.  Do not use special include files; just use the
77524         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77525         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77526         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77527         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77528         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77529         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77530         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77531         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77532         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77533         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77534         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77535         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77536         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77537         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77538         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77539         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77540         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77541         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77542         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77543         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77544         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77545         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77546         not check for things that C99 does not require, e.g., int8_t.  If
77547         a test isn't needed unless <stdint.h> isn't working, and is
77548         unlikely to be needed for any other reason, then don't do it
77549         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77550         size_t, since we assume C89 freestanding at least.  Do not check
77551         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77552         the right thing even if the types are not defined.  Instead use:
77553         (gl_STDINT_TYPE_PROPERTIES): New macro.
77554         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77555         testing whether <sys/types.h> clashes, as Autoconf does this for
77556         us now.  All uses removed.
77557         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77558         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77559         (gl_CHECK_TYPE_SAME):
77560         Remove; no longer needed.
77561         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77562         exists, since we'll return 0 anyway in that case.
77563         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77564
77565 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77566
77567         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77568         possible collision with system files.
77569         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77570         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77571         WCHAR_MIN and WCHAR_MAX in this case.
77572         (<stddef.h>): Do not include; no longer needed.
77573         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77574         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77575         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77576         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77577         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77578         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77579         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77580         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77581         !defined(__c99))]: Include in this case too, since it's harmless
77582         now.
77583         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77584         dangerous to do so.
77585         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77586         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77587         (_STDINT_MIN, _STDINT_MAX): New macros.
77588         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77589         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77590         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77591         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77592         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77593         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77594         macros, not typedefs; this simplifies things quite a bit.
77595         Use long int for all types narrower than int64_t.
77596         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77597         Define in terms of long long int or int64_t or long int,
77598         not int64_t or int32_t.  This saves some compile-time testing.
77599         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77600         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77601         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77602         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77603         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77604         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77605         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77606         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77607         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77608         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77609         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77610         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77611         undef any previous version and define our own version, for
77612         simplicity and consistency with the new macros for types.
77613         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77614         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77615         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77616         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77617         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77618         @WINT_T_SUFFIX@ to keep things simple here.
77619         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77620         Simplify by assuming typical 8/16/32/64 host, since we're
77621         already doing that elsewhere anyway.
77622         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77623         and assume long long int is 64 bits if available.  This
77624         speeds up 'configure'.
77625
77626 2006-07-01  Eric Blake  <ebb9@byu.net>
77627
77628         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77629         Reported by Andreas Buening.
77630
77631 2006-07-01  Eric Blake  <ebb9@byu.net>
77632
77633         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77634
77635 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77636
77637         * lib/getaddrinfo.c: fixed typo
77638
77639 2006-06-29  Jim Meyering  <jim@meyering.net>
77640
77641         * modules/strftime (Maintainer): Add my name, since with the
77642         FPRINTFTIME changes strftime.c has forked from glibc.
77643
77644 2006-06-29  Eric Blake  <ebb9@byu.net>
77645
77646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77647
77648 2006-06-29  Eric Blake  <ebb9@byu.net>
77649
77650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77651
77652 2006-06-29  Eric Blake  <ebb9@byu.net>
77653
77654         * lib/stat_.h: New file.
77655
77656 2006-06-29  Eric Blake  <ebb9@byu.net>
77657
77658         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77659         unused static function.
77660
77661 2006-06-29  Eric Blake  <ebb9@byu.net>
77662
77663         * doc/functions.texi (Function Portability): Document missing lstat
77664         on mingw.
77665
77666 2006-06-29  Eric Blake  <ebb9@byu.net>
77667
77668         * MODULES.html.sh: Add sys_stat.
77669         * modules/sys_stat: New module.
77670         * modules/mkstemp (Depends-on): Add sys_stat.
77671
77672 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77673
77674         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77675
77676 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77677
77678         * m4/c-bs-a.m4: Removed.
77679
77680 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77681
77682         * lib/strftime.c: Assume strftime() exists.
77683
77684 2006-06-29  Derek Price  <derek@ximbiot.com>
77685
77686         * modules/c-bs-a: Removed - \a is C89.
77687         * MODULES.html.sh: Remove c-bs-a.
77688
77689 2006-06-29  Bruno Haible  <bruno@clisp.org>
77690
77691         * modules/wcwidth (License): Change to LGPL.
77692
77693 2006-06-28  Simon Josefsson  <jas@extundo.com>
77694
77695         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77696         on _WIN32.
77697
77698         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77699         getnameinfo.
77700
77701 2006-06-28  Simon Josefsson  <jas@extundo.com>
77702
77703         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77704
77705 2006-06-28  Simon Josefsson  <jas@extundo.com>
77706
77707         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77708         functions there.  It will succeed on Windows XP, but on Windows
77709         2000 and (presumably) earlier, it will fail, and use the internal
77710         re-implementation.
77711         (use_win32_p): New function.
77712         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77713         Support AI_NUMERICSERV to disable getservbyname.
77714         (getnameinfo): New function, only supports
77715         NI_NUMERICHOST|NI_NUMERICSERV for now.
77716
77717         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77718         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77719         getnameinfo.
77720
77721 2006-06-28  Eric Blake  <ebb9@byu.net>
77722
77723         * modules/wcwidth: New file.
77724         * modules/mbchar (Depends-on): Add wcwidth.
77725         * modules/mbswidth (Depends-on): Add wcwidth.
77726         * MODULES.html.sh: Add wcwidth.
77727
77728 2006-06-28  Eric Blake  <ebb9@byu.net>
77729
77730         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77732
77733 2006-06-28  Eric Blake  <ebb9@byu.net>
77734
77735         * lib/xvasprintf.h: Fix comments.
77736
77737 2006-06-28  Eric Blake  <ebb9@byu.net>
77738
77739         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77740         * lib/mbswidth.c (wcwidth): Move from here...
77741         * lib/wcwidth.h: ...to this new file.
77742
77743 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77744
77745         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77746
77747         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77748         it's obsolete.
77749         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77750
77751 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77752
77753         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77754         Autoconf 2.60 says this stuff was obsolete.
77755
77756 2006-06-28  Bruno Haible  <bruno@clisp.org>
77757
77758         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77759
77760 2006-06-28  Bruno Haible  <bruno@clisp.org>
77761
77762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77763         gt_TYPE_WCHAR_T.
77764
77765 2006-06-28  Bruno Haible  <bruno@clisp.org>
77766
77767         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77768         declaration for wcwidth.
77769         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77770
77771 2006-06-28  Bruno Haible  <bruno@clisp.org>
77772
77773         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77774         (mkdir): Define using _mkdir.
77775
77776 2006-06-28  Bruno Haible  <bruno@clisp.org>
77777
77778         * lib/getaddrinfo.h: Fix POSIX URL.
77779         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77780         _WIN32.
77781         (use_win32_p): Make static.
77782         (getaddrinfo): Reject service name if it is empty or does not consist
77783         solely of decimal digits, or if its value is > 65535.
77784         (getnameinfo): Remove useless casts.
77785
77786 2006-06-27  Simon Josefsson  <jas@extundo.com>
77787
77788         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77789         Eggert and Martin Lambers.
77790
77791 2006-06-27  Simon Josefsson  <jas@extundo.com>
77792
77793         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77794         Eggert and Martin Lambers.
77795
77796 2006-06-27  Bruno Haible  <bruno@clisp.org>
77797
77798         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77799         result to 0, not to empty.
77800         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77801
77802 2006-06-27  Bruno Haible  <bruno@clisp.org>
77803
77804         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77805
77806 2006-06-26  Simon Josefsson  <jas@extundo.com>
77807
77808         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77809         present.
77810
77811 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77812
77813         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77814         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77815         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77816
77817 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77818
77819         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77820
77821 2006-06-26  Bruno Haible  <bruno@clisp.org>
77822
77823         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77824
77825 2006-06-26  Bruno Haible  <bruno@clisp.org>
77826
77827         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77828
77829 2006-06-26  Bruno Haible  <bruno@clisp.org>
77830
77831         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77832         SGI C compiler in pre-C99 mode.
77833         Suggested by Mark D. Baushke and Larry Jones.
77834
77835 2006-06-26  Bruno Haible  <bruno@clisp.org>
77836
77837         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77838         WCHAR_MAX.
77839         Reported by Mark D. Baushke and Larry Jones.
77840
77841 2006-06-26  Bruno Haible  <bruno@clisp.org>
77842
77843         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77844         in pre-C99 mode.
77845         Suggested by Mark D. Baushke and Larry Jones.
77846
77847 2006-06-23  Simon Josefsson  <jas@extundo.com>
77848             Bruno Haible  <bruno@clisp.org>
77849
77850         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77851         Emit mostlyclean-local rule.
77852         (func_emit_tests_Makefile_am): Likewise.
77853         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77854
77855 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77856
77857         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77858
77859 2006-06-23  Bruno Haible  <bruno@clisp.org>
77860
77861         * tests/test-stdint.c: Update to match ISO C 99 Technical
77862         Corrigendum 1.
77863
77864 2006-06-23  Bruno Haible  <bruno@clisp.org>
77865
77866         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77867
77868 2006-06-23  Bruno Haible  <bruno@clisp.org>
77869
77870         * lib/stdint_.h: Treat IRIX like OpenBSD.
77871
77872 2006-06-23  Bruno Haible  <bruno@clisp.org>
77873
77874         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77875         ISO C 99 Technical Corrigendum 1.
77876
77877 2006-06-22  Simon Josefsson  <jas@extundo.com>
77878
77879         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77880         MinGW.
77881
77882 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77885         needed.  Some compiler complained about some of them.  Problem reported
77886         by Larry Jones in
77887         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77888
77889 2006-06-21  Simon Josefsson  <jas@extundo.com>
77890
77891         * tests/test-getaddrinfo.c: New file.
77892
77893         * modules/getaddrinfo-tests: New file.
77894
77895         * MODULES.html.sh: Add inet_pton.
77896
77897         * modules/inet_pton: New file.
77898
77899 2006-06-21  Simon Josefsson  <jas@extundo.com>
77900
77901         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77902         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77903         of using the (limited) gnulib implementation on Windows XP.
77904
77905         * m4/inet_pton.m4: New file.
77906
77907 2006-06-21  Simon Josefsson  <jas@extundo.com>
77908
77909         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77910         variable.
77911
77912         * lib/socket_.h: Don't define WINVER.
77913
77914         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77915         slightly modified to work in gnulib.
77916
77917 2006-06-21  Simon Josefsson  <jas@extundo.com>
77918
77919         * doc/gnulib.texi (Windows sockets): Add.
77920
77921 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         * lib/read-file.c (fread_file): Start with buffer allocation of
77924         0 bytes rather than 1 byte; this simplifies the code.
77925         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77926         code to free buffer and save/restore errno.
77927         (internal_read_file): Remove unused local.
77928
77929 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77930
77931         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77932         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77933         Problem reported by Denis Excoffier in
77934         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77935
77936 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77937
77938         * modules/sys_socket, modules/socklen: Include sys/types since
77939         FreeBSD 4.x's sys/socket.h needs it.
77940
77941 2006-06-19  Simon Josefsson  <jas@extundo.com>
77942
77943         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77944
77945 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77948
77949 2006-06-19  Bruno Haible  <bruno@clisp.org>
77950
77951         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77952         and FULL_PATH_INTTYPES_H in angle brackets.
77953         Reported by Mark D. Baushke <mdb@gnu.org>.
77954
77955 2006-06-17  Eric Blake  <ebb9@byu.net>
77956
77957         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77958         errno.
77959
77960 2006-06-17  Bruno Haible  <bruno@clisp.org>
77961
77962         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77963         <sys/inttypes.h>.
77964
77965 2006-06-17  Bruno Haible  <bruno@clisp.org>
77966
77967         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77968         whether errno is declared. Assume <errno.h> declares errno.
77969
77970 2006-06-17  Bruno Haible  <bruno@clisp.org>
77971
77972         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77973
77974 2006-06-17  Bruno Haible  <bruno@clisp.org>
77975
77976         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77977         problem on Solaris 2.5.1.
77978
77979 2006-06-16  Eric Blake  <ebb9@byu.net>
77980
77981         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77982         * lib/unicodeio.c [!defined errno]: Likewise.
77983         * lib/strtol.c [!defined errno]: Likewise.
77984         * lib/strtod.c [!defined errno]: Likewise.
77985
77986 2006-06-15  Eric Blake  <ebb9@byu.net>
77987
77988         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77989
77990 2006-06-15  Eric Blake  <ebb9@byu.net>
77991
77992         * config/srclist.txt (ssize_t.m4): Lose sync.
77993
77994 2006-06-15  Bruno Haible  <bruno@clisp.org>
77995
77996         * modules/stdint (Files): Include m4/full-header-path.m4,
77997         m4/size_max.m4, m4/wchar_t.m4.
77998         (Makefile.am): Many more substitutions.
77999         * modules/stdint-tests: New file.
78000         * tests/test-stdint.c: New file.
78001
78002 2006-06-15  Bruno Haible  <bruno@clisp.org>
78003
78004         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78005         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78006         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78007         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78008         gl_CHECK_TYPE_SAME): New macros.
78009
78010 2006-06-15  Bruno Haible  <bruno@clisp.org>
78011
78012         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78013
78014 2006-06-15  Bruno Haible  <bruno@clisp.org>
78015
78016         * lib/stdint_.h: Rewritten to be fully auto-configured.
78017         Fixes bug on HP-UX/IA64.
78018
78019 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         * lib/getdate.y (__attribute__): Don't define if already defined.
78022         Problem reported by Larry Jones.
78023         * lib/utimens.c (__attribute__): Likewise.
78024
78025 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78028         reported by Andreas Schwab.
78029
78030 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78031             Bruno Haible  <bruno@clisp.org>
78032
78033         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78034         check for the declaration of strnlen and a run test that exposes the
78035         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78036         rpl_strndup.
78037
78038 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78039             Bruno Haible  <bruno@clisp.org>
78040
78041         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78042
78043 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78044
78045         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78046         compile test, for Tru64 4.0D.
78047
78048 2006-05-28  Karl Berry  <karl@gnu.org>
78049
78050         * config/srclist.txt (printf-args.c): lose sync.
78051
78052 2006-05-26  Martin Lambers  <marlam@marlam.de>
78053
78054         * lib/getpass.c: Updates the test for the native W32 API, and adds
78055         missing includes, thus fixing compilation warnings.
78056
78057 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78058
78059         * lib/exclude.c (exclude_fnmatch): New function.
78060         (excluded_file_name): Call exclude_fnmatch.
78061         * lib/exclude.h (excluded_file_name): New prototype
78062
78063 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * lib/tempname.c (small_open, large_open): New macros.
78066         (__open, __open64) [!_LIBC]: Remove.
78067         (__gen_tempname): Use small_open and large_open instead of __open
78068         and __open64.  This fixes a portability bug on HP-UX 11.11i
78069         reported by Simon Wing-Tang in
78070         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78071
78072 2006-05-24  Bruno Haible  <bruno@clisp.org>
78073
78074         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78075         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78076         Reported by Thorsten Maerz <torte@netztorte.de> via
78077         Aaron Stone <aaron@serendipity.cx>.
78078
78079 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78080
78081         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78082         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78083         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78084         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78085         not really conditional on the cache.
78086         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78087
78088 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78091         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78092         (my_usleep): Don't mishandle maximum value.
78093
78094 2006-05-19  Jim Meyering  <jim@meyering.net>
78095
78096         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78097
78098 2006-05-17  Bruno Haible  <bruno@clisp.org>
78099
78100         Cygwin portability.
78101         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78102
78103 2006-05-17  Bruno Haible  <bruno@clisp.org>
78104
78105         * lib/stdint_.h: Fix recognition of Cygwin.
78106
78107 2006-05-15  Bruno Haible  <bruno@clisp.org>
78108
78109         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78110         on libtool patch by Ralf Wildenhues.
78111
78112 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78115         test for C99 conformance; (bool) 0.5 is an integer constant
78116         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78117         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78118
78119 2006-05-11  Simon Josefsson  <jas@extundo.com>
78120
78121         * m4/xvasprintf.m4: Fix obvious typo.
78122
78123 2006-05-11  Jim Meyering  <jim@meyering.net>
78124
78125         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78126         James Lemley.
78127
78128 2006-05-10  Simon Josefsson  <jas@extundo.com>
78129
78130         * lib/md4.c: Typo fix, update copyright years.
78131         (K1, K2): Don't use L because it turn computations into 64-bit on
78132         64-bit platforms.
78133
78134 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78135
78136         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78137         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78138         unwanted sign propagation, e.g., on hosts with 64-bit int.
78139         There still are some problems with reeelly weird theoretical hosts
78140         (e.g., 33-bit int) but it's not worth worrying about now.
78141         * lib/sha1.c (rol): Likewise.
78142         (K1, K2, K3, K4): Remove unnecessary L suffix.
78143
78144 2006-05-10  Bruno Haible  <bruno@clisp.org>
78145
78146         * lib/des.c: Cast to avoid warnings.
78147
78148 2006-05-09  Bruno Haible  <bruno@clisp.org>
78149
78150         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78151         (Depends-on): Depend also on xsize, stdarg.
78152         (configure.ac): Add gl_XVASPRINTF.
78153
78154 2006-05-09  Bruno Haible  <bruno@clisp.org>
78155
78156         * m4/xvasprintf.m4: New file.
78157
78158 2006-05-09  Bruno Haible  <bruno@clisp.org>
78159
78160         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78161         (EOVERFLOW): Define fallback value.
78162         (xstrcat): New function.
78163         (xvasprintf): Recognize the special case of a string concatenation.
78164
78165 2006-05-08  Eric Blake  <ebb9@byu.net>
78166
78167         * gnulib-tool (func_version): Base copyright year on CVS date.
78168         (func_emit_copyright_notice): New function.
78169         (func_emit_lib_Makefile_am): Use it.
78170         (func_emit_tests_Makefile_am): Likewise.
78171         (func_import): Likewise.
78172
78173 2006-05-08  Bruno Haible  <bruno@clisp.org>
78174
78175         * modules/stdarg: New file.
78176         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78177
78178 2006-05-08  Bruno Haible  <bruno@clisp.org>
78179
78180         * m4/stdarg.m4: New file, from GNU gettext.
78181
78182 2006-05-08  Bruno Haible  <bruno@clisp.org>
78183
78184         * config/srclist.txt (build-aux/config.rpath): different from latest
78185         release.
78186
78187 2006-05-08  Bruno Haible  <bruno@clisp.org>
78188
78189         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78190
78191 2006-05-05  Jim Meyering  <jim@meyering.net>
78192
78193         * m4/warning.m4: New file, derived from bison's file by the same name.
78194
78195 2006-05-03  Bruno Haible  <bruno@clisp.org>
78196
78197         * lib/stdint_.h: Shorter URL.
78198         * lib/inttypes.h: Likewise.
78199
78200 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78201
78202         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78203
78204 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * lib/verify.h: Document the internals better.  Most of this change
78207         was written by Bruno Haible.
78208
78209 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * doc/verify.texi: New file, partly based on a proposal by
78212         Bruno Haible.
78213
78214 2006-05-02  Bruno Haible  <bruno@clisp.org>
78215
78216         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78217         test from here...
78218         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78219
78220 2006-04-29  Bruno Haible  <bruno@clisp.org>
78221
78222         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78223         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78224
78225 2006-04-29  Bruno Haible  <bruno@clisp.org>
78226
78227         * gnulib-tool: Make --update option actually work.
78228
78229 2006-04-29  Bruno Haible  <bruno@clisp.org>
78230
78231         * doc/gcd.texi: New file.
78232         * doc/gnulib.texi: Include it.
78233
78234 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         * lib/getdate.y (get_date): When adding relative date, start with the
78237         initial time, not with the result of the first mktime call.
78238
78239 2006-04-25  Bruno Haible  <bruno@clisp.org>
78240
78241         * gnulib-tool (func_import): Output the include directives in three
78242         blocks, sorted separately.
78243         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78244
78245 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78246
78247         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78248         to define main with arguments, for C++.  Reported by Eric Blake.
78249         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78250         Prefer 'int main ()' to 'int main (void)', for C++.
78251         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78253         for 'main', for C99 and C++.
78254
78255 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78258         Don't assume that exit status -1 is valid.
78259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78260         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78261         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78262         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78263         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78264         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78265         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78266         functions can be used without declaring them, or that you can
78267         exit with status -1.
78268         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78269
78270 2006-04-24  Karl Berry  <karl@gnu.org>
78271
78272         * config/srclist.txt (longdouble.m4): sync lost.
78273
78274 2006-04-24  Eric Blake  <ebb9@byu.net>
78275
78276         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78277
78278 2006-04-24  Bruno Haible  <bruno@clisp.org>
78279
78280         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78281         poll() implementation in AIX.
78282         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78283
78284 2006-04-24  Bruno Haible  <bruno@clisp.org>
78285
78286         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78287         assigned exactly once.
78288
78289 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78290             Bruno Haible  <bruno@clisp.org>
78291
78292         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78293         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78294         for AM_CPPFLAGS.
78295
78296 2006-04-23  Bruno Haible  <bruno@clisp.org>
78297
78298         * modules/copy-file: Depend on unistd.
78299         * modules/execute: Likewise.
78300         * modules/fatal-signal: Likewise.
78301         * modules/findprog: Likewise.
78302         * modules/mkdtemp : Likewise.
78303         * modules/pipe: Likewise.
78304         * modules/wait-process: Likewise.
78305
78306 2006-04-23  Bruno Haible  <bruno@clisp.org>
78307
78308         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78309         condition was already detected.
78310         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78311
78312 2006-04-23  Bruno Haible  <bruno@clisp.org>
78313
78314         * lib/copy-file.c: Include <unistd.h> unconditionally.
78315         * lib/execute.c: Likewise.
78316         * lib/fatal-signal.c: Likewise.
78317         * lib/findprog.c: Likewise.
78318         * lib/mkdtemp.c: Likewise.
78319         * lib/pipe.h: Likewise.
78320         * lib/pipe.c: Likewise.
78321         * lib/wait-process.h: Likewise.
78322
78323 2006-04-23  Bruno Haible  <bruno@clisp.org>
78324
78325         * gnulib-tool (func_usage): Fix --import description. Document
78326         --update.
78327         (func_import): Create temporary file in a temporary directory, if
78328         --dry-run is specified. Silence errors from 'grep' when there are no
78329         m4 files in $m4dir.
78330         (func_create_testdir): Silence errors from 'grep' when there are no
78331         m4 files in $m4dir.
78332         Reported by Karl Berry <karl@freefriends.org>.
78333
78334 2006-04-20  Bruno Haible  <bruno@clisp.org>
78335
78336         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78337         one argument, so that the code will be portable to Autoconf 2.60.
78338         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78339         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78340         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78341
78342 2006-04-19  Derek Price  <derek@ximbiot.com>
78343             Eric Blake  <ebb9@byu.net>
78344
78345         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78346         rather than "/full/path.h".  Update comment to match.  Shorten &
78347         generalize m4_translit call via AS_TR_CPP.
78348
78349 2006-04-19  Derek Price  <derek@ximbiot.com>
78350             Eric Blake  <ebb9@byu.net>
78351
78352         * lib/inttypes.h: Correct grammar in comment.
78353
78354 2006-04-18  Derek Price  <derek@ximbiot.com>
78355             Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * modules/inttypes: New file.
78358         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78359
78360 2006-04-18  Derek Price  <derek@ximbiot.com>
78361             Paul Eggert  <eggert@cs.ucla.edu>
78362
78363         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78364         New files.
78365
78366 2006-04-18  Derek Price  <derek@ximbiot.com>
78367             Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         * lib/inttypes.h: New file.
78370         * lib/strtoimax.c: Assume <inttypes.h>.
78371
78372 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78375         isn't mounted.  Problem reported by Kir Kolyshkin.
78376
78377 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78378
78379         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78380         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78381         Derek R. Price.
78382         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78383         implementation.
78384
78385 2006-04-12  Eric Blake  <ebb9@byu.net>
78386
78387         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78388         is now done automatically by the corresponding Autoconf macro.
78389
78390 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78393         time_r.h.
78394
78395 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         Merge regex changes from libc, removing some of our
78398         POSIX-conformance changes that were rejected and redoing them in a
78399         less-intrusive way.
78400
78401         * lib/regcomp.c (re_compile_internal, init_dfa):
78402         Length arg is now size_t, not Idx.  All uses changed.
78403         (peek_token): Forward decl now says internal_function.
78404         (__re_error_msgid, __re_error_msgid_idx):
78405         Now static rather than extern with attribute_hidden.
78406         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78407         For some reason libc prefers K&R style defns for external functions.
78408         (regerror) [!defined _LIBC]: Likewise.
78409         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78410         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78411         (build_range_exp, build_collating_symbol):
78412         Use K&R-style defn.
78413         (re_compile_fastmap): Use '\0' to memset, not 0.
78414         (utf8_sb_map): Make the calculations more obvious.
78415         (init_dfa, parse_bracket_exp, build_charclass_op):
78416         Call calloc and cast result, as glibc does.
78417         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78418         (build_range_exp, build_collating_symbol):
78419         Now internal functions.
78420
78421         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78422
78423         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78424         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78425         Don't depend on VMS; depend on __VMS instead, for POSIX
78426         namespace cleanness.
78427         (regoff_t): Define to ssize_t, not long int.
78428
78429         Remove the REG_ macros named below.  Instead, make the old names
78430         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78431         __USE_GNU_REGEX.
78432         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78433         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78434         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78435         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78436         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78437         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78438         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78439         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78440         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78441         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78442         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78443         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78444         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78445         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78446         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78447         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78448         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78449         (REG_NREGS):
78450         Remove.  All uses replaced by the old RE_* names.
78451         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78452         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78453         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78454         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78455         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78456         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78457         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78458         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78459         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78460         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78461         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78462         Don't bother having these macros be independent of each others'
78463         values, since they no longer exist in the POSIX name space.
78464
78465         Rename the following member names back to their old names,
78466         unless !__USE_GNU_REGEX.  All uses changed back.
78467         (buffer): Renamed from re_buffer.
78468         (allocated): Renamed from re_allocated.
78469         (used): Renamed from re_used.
78470         (syntax): Renamed from re_syntax.
78471         (fastmap): Renamed from re_fastmap.
78472         (translate): Renamed from re_translate.
78473         (can_be_null): Renamed from re_can_be_null.
78474         (regs_allocated): Renamed from re_regs_allocated.
78475         (fastmap_accurate): Renamed from re_fastmap_accurate.
78476         (no_sub): Renamed from re_no_sub.
78477         (not_bol): Renamed from re_not_bol.
78478         (not_eol): Renamed from re_not_eol.
78479         (newline_anchor): Renamed from re_newline_anchor.
78480         (num_regs): Renamed from rm_num_regs.
78481         (start): Renamed from rm_start.
78482         (end): Renamed from rm_end.
78483
78484         (free_state): Move up a bit.
78485
78486         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78487         #define to be empty.
78488         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78489         when that is what is intended.
78490         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78491         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78492         (MAX): New macro.
78493         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78494         All uses changed back to re_malloc, etc.  It's now the caller's
78495         responsibility to check for overflow; all callers changed.
78496         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78497         (re_x2nrealloc): Remove.
78498         (free_state): Remove decl.
78499
78500         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78501         (re_set_registers, re_exec):
78502         Use K&R-style defn.
78503
78504         2006-01-31  Roland McGrath  <roland@redhat.com>
78505
78506         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78507         Reported by Mike Frysinger <vapier@gentoo.org>.
78508
78509         2006-01-15  Andreas Jaeger  <aj@suse.de>
78510
78511         [BZ #1950]
78512         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78513         build_wcs_upper_buffer change.
78514         (build_wcs_upper_buffer): Change return type.
78515
78516         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78517
78518         * lib/regex_internal.h: Include <stdint.h> if available.
78519
78520         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78521
78522         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78523
78524         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78525
78526         * lib/regcomp.c: Adjust for changed secondary hash function.
78527
78528         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78529
78530         * lib/regex.h: Pretty printing.
78531         Clean up namespace a bit.
78532
78533         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78534
78535         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78536         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78537
78538         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78539                     Ulrich Drepper  <drepper@redhat.com>
78540
78541         [BZ #1302]
78542         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78543         changed.
78544         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78545
78546         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78547
78548         [BZ #281]
78549         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78550         * lib/regcomp.c: Remove unnecessary uses of
78551         unsigned RE_TRANSLATE_TYPE.
78552         * lib/regex_internal.h: Likewise.
78553         * lib/regex_internal.c: Likewise.
78554         * lib/regexec.c: Likewise.
78555         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78556
78557         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78558
78559         * lib/regexec.c (find_recover_state): Remove unnecessary
78560         initialization.
78561         (transit_state_bkref): Make DFA a const pointer.
78562         (get_subexp): Likewise.
78563         (check_arrival): Likewise.
78564         (update_cur_sifted_state): Likewise.
78565         (re_search_internal): Likewise.
78566         (prune_impossible_nodes): Likewise.
78567         (acquire_init_state_context): Likewise.
78568         (proceed_next_node): Likewise.
78569         (set_regs): Likewise.
78570         (free_fail_stack_return): Likewise.
78571         (check_arrival_expand_ecl): Mark DFA parameter as const.
78572         (check_arrival_expand_ecl_sub): Likewise.
78573         (check_subexp_limits): Likewise.
78574         (sub_epsilon_src_nodes):  Likewise.
78575         (add_epsilon_src_nodes):  Likewise.
78576         (merge_state_array): Likewise.
78577         (update_regs): Likewise.
78578         (build_trtable): Likewise.
78579         (sift_states_backward): Mark MCTX parameter as const.
78580         (build_sifted_states): Likewise.
78581         (update_cur_sifted_state): Likewise.
78582         (sift_states_mkref): Likewise.
78583         (check_arrival_expand_ecl): Mark eclosure as const.
78584         (check_dst_limits_calc_pos_1): Likewise.
78585         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78586         pointer.
78587
78588         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78589
78590         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78591         (transit_state_sb): Likewise.
78592         (transit_state_mb): Likewise.
78593         (sift_states_iter_mb): Likewise.
78594         (check_arrival_add_next_nodes): Likewise.
78595         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78596         [_LIBC] (re_search_2_stub): Use mempcpy.
78597
78598         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78599         mbrtowc for very simple UTF-8 case.
78600
78601         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78602         a pointer-to-const.
78603         (re_acquire_state_context): Likewise.
78604         * lib/regex_internal.h: Adjust prototypes.
78605
78606         * lib/regex.c: Prevent using C++ compilers.
78607
78608         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78609         (re_acquire_state_context): Likewise.
78610
78611 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * modules/regex (Depends-on): Add ssize_t.
78614
78615 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78616
78617         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78618         translation table.
78619
78620 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78623
78624 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78625             Bruno Haible  <bruno@clisp.org>
78626
78627         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78628         <sys/types.h> and <inttypes.h>.
78629
78630 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78631
78632         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78633         `__error_t_defined', so argp.h will not typedef the former.
78634
78635 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78636
78637         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78638         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78639         glibc names.  Even if glibc is changed to conform to POSIX, the
78640         traditional names will be available anyway, since regex depends on
78641         the extensions module.  Also, fix a longstanding typo in the
78642         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78643         reported by Emanuele Giaquinta.  Also, change sense of cached
78644         variable, so that the message makes sense.
78645
78646 2006-03-24  Simon Josefsson  <jas@extundo.com>
78647
78648         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78649         including some doc fixes.
78650         (base64_encode_alloc): Fix +1 bug on allocation failures.
78651
78652 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78653
78654         * lib/base64.c (base64_encode): Do not read past end of array with
78655         unsanitized input on systems with CHAR_BIT > 8.
78656
78657 2006-03-24  Eric Blake  <ebb9@byu.net>
78658
78659         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78660
78661 2006-03-22  Karl Berry  <karl@gnu.org>
78662
78663         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78664         * config/srclistvars.sh (COREUTILS): new var.
78665
78666 2006-03-17  Jim Meyering  <jim@meyering.net>
78667
78668         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78669         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78670
78671 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78674         no longer needs it.  Instead, check that regoff_t is as least
78675         as wide as ptrdiff_t.
78676
78677         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78678         so that our regex.h stays compatible with the installed regex.
78679         This is helpful for installers who configure --without-included-regex.
78680         Problem reported by Emanuele Giaquinta.
78681
78682 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78685         Typedef to long int, not to off_, as POSIX will likely change
78686         in that direction.
78687
78688 2006-03-15  Eric Blake  <ebb9@byu.net>
78689
78690         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78691
78692 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78693
78694         * lib/argp-help.c (validate_uparams): Fix typo
78695         * lib/argp-parse.c (argp_default_options): Consistently begin help
78696         messages with a lowercase letter.
78697
78698 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78699
78700         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78701         overrun buffers and shouldn't be used (much as gets shouldn't be
78702         used).
78703         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78704
78705 2006-03-08  Simon Josefsson  <jas@extundo.com>
78706
78707         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78708         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78709
78710 2006-03-08  Simon Josefsson  <jas@extundo.com>
78711
78712         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78713         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78714
78715 2006-03-08  Simon Josefsson  <jas@extundo.com>
78716
78717         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78718         signal that configure disabled the device.
78719
78720 2006-03-08  Simon Josefsson  <jas@extundo.com>
78721
78722         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78723         languages.
78724
78725 2006-03-07  Simon Josefsson  <jas@extundo.com>
78726
78727         * modules/getopt (Depends-on): Add unistd.
78728
78729         * modules/unistd: New file.
78730
78731 2006-03-07  Simon Josefsson  <jas@extundo.com>
78732
78733         * modules/gc-random: New file.
78734
78735 2006-03-07  Simon Josefsson  <jas@extundo.com>
78736
78737         * m4/unistd_h.m4: New file.
78738
78739 2006-03-07  Simon Josefsson  <jas@extundo.com>
78740
78741         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78742         test to be side-effect free by storing the result in the cache
78743         variable gl_cv_lib_readline, and moving the assignment of
78744         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78745         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78746
78747 2006-03-07  Simon Josefsson  <jas@extundo.com>
78748
78749         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78750         error on missing devices (the functions will return an error).
78751
78752         * m4/gc.m4: Move random stuff to gc-random.m4
78753
78754 2006-03-07  Simon Josefsson  <jas@extundo.com>
78755
78756         * lib/unistd_.h: New file.
78757
78758 2006-03-07  Simon Josefsson  <jas@extundo.com>
78759
78760         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78761
78762 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78765         Problem reported by Juan Manuel Guerrero.
78766
78767 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78770         the unistd module.
78771         * lib/getlogin_r.c: Likewise.
78772         * lib/getlogin_r.h: Likewise.
78773         * lib/glob.c: Likewise.
78774         * lib/pagealign_alloc.c: Likewise.
78775         * lib/unistd_.h: Remove; no longer needed.
78776
78777 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78780         Add unistd.
78781         * modules/c-stack (Depends-on): Add unistd.
78782         * modules/getlogin_r: Likewise.
78783         * modules/glob: Likewise.
78784         * modules/pagealign_alloc: Likewise.
78785         * modules/unistd (Files): Remove lib/unistd_.h.
78786         (EXTRA_DIST): Remove.
78787         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78788         need unistd_.h.
78789         (MOSTLYCLEANFILES): Remove unistd.h-t.
78790
78791 2006-03-03  Simon Josefsson  <jas@extundo.com>
78792
78793         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78794
78795 2006-03-03  Simon Josefsson  <jas@extundo.com>
78796
78797         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78798         libidn and bison.
78799
78800 2006-03-03  Simon Josefsson  <jas@extundo.com>
78801
78802         * build-aux/maint.mk: Add indent target.
78803
78804 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78805
78806         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78807         our replacement poll.h in any case, to avoid a differing
78808         declaration from a system header.  Seen on AIX.
78809
78810 2006-03-01  Simon Josefsson  <jas@extundo.com>
78811
78812         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78813         <kasal@ucw.cz>.
78814
78815 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * modules/gettime (Depends-on): Add extensions module.
78818         * modules/nanosleep (Depends-on): Likewise.
78819         * modules/settime (Depends-on): Likewise.
78820
78821 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78824         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78825         pedantically.
78826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78827         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78828
78829         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78830         not "==".  Reported by Ralf Wildenhues.
78831
78832 2006-03-01  Karl Berry  <karl@gnu.org>
78833
78834         * doc/Copyright/request-*: new files, synced from gnuorg.
78835
78836 2006-03-01  Karl Berry  <karl@gnu.org>
78837
78838         * config/srclist.txt (Copyright/*): new entries.
78839
78840 2006-02-28  Simon Josefsson  <jas@extundo.com>
78841
78842         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78843
78844 2006-02-27  Simon Josefsson  <jas@extundo.com>
78845
78846         * lib/base64.h: Indent #define's.  From Jim Meyering
78847         <jim@meyering.net>.
78848
78849 2006-02-27  Jim Meyering  <jim@meyering.net>
78850
78851         Revert the change of 2006-02-24, so these files can continue
78852         to be sync'd from gettext.
78853         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78854         of `config.h'.
78855
78856 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         * modules/intprops: New file.
78859         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78860         Add intprops.
78861         * modules/getloadavg (Files): Remove lib/intprops.h.
78862         (Depends-on): Add intprops.
78863         * modules/human: Likewise.
78864         * modules/inttostr: Likewise.
78865         * modules/openat: Likewise.
78866         * modules/sig2str: Likewise.
78867         * modules/userspec: Likewise.
78868         * modules/utimecmp: Likewise.
78869         * modules/xnanosleep: Likewise.
78870         * modules/xstrtol: Likewise.
78871
78872 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78873
78874         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78875         * modules/lock-tests (TESTS): Use $(EXEEXT).
78876         * modules/tls-tests: Likewise.
78877         * modules/argp-tests: Likewise.
78878         (check_PROGRAMS): New var, replacing...
78879         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78880
78881 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78882
78883         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78884         `config.h'.
78885
78886 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78887
78888         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78889
78890 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78891
78892         Sync from coreutils.
78893         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78894         gl_CHDIR_SAFER.
78895
78896 2006-02-22  Jim Meyering  <jim@meyering.net>
78897
78898         Sync from coreutils.
78899         * m4/chdir-safer.m4: New file.
78900
78901 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78904         AT_FDCWD exceeds INT_MAX.
78905         * lib/openat.h (AT_FDCWD): Likewise.
78906
78907 2006-02-17  Eric Blake  <address@hidden>
78908
78909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78910
78911 2006-02-16  Simon Josefsson  <jas@extundo.com>
78912
78913         * modules/getaddrinfo (Depends-on): Add sys_socket.
78914
78915 2006-02-15  Simon Josefsson  <jas@extundo.com>
78916
78917         * build-aux/maint.mk: Add dsyntax-check rule.
78918
78919 2006-02-15  Eric Blake  <ebb9@byu.net>
78920
78921         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78922         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78923         'present but cannot compile' warnings on cygwin.
78924         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78925         use ws2tcpip.h if sys/socket.h works.
78926         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78927         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78928
78929 2006-02-14  Simon Josefsson  <jas@extundo.com>
78930
78931         * modules/maintainer-makefile (Files): Rename.
78932
78933         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78934         and (the local) Makefile.cfg to maint-cfg.mk.
78935
78936         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78937         to the latter.
78938
78939         * modules/maintainer-makefile: New module.
78940
78941         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78942         severaly stripped to make it possible to build it up from scratch
78943         with reliable tests.
78944
78945         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78946         fixes to permit overriding the default actions when configure and
78947         makefile are not available.
78948
78949 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78950
78951         Sync from coreutils.
78952         * modules/lstat (Depends-on): Don't depend on xalloc.
78953         (License): Change from GPL to LGPL, since this is now simply a
78954         replacement for a libc function.
78955
78956 2006-02-14  Jim Meyering  <jim@meyering.net>
78957
78958         Sync from coreutils.
78959
78960         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78961         failure on deficient systems, and simplify gnulib lgpl dependencies.
78962         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78963         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78964
78965         * lib/xalloc-die.c: Remove unused definition of N_.
78966
78967 2006-02-14  Jim Meyering  <jim@meyering.net>
78968
78969         Sync from coreutils.
78970         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78971         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78972         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78973         double-quote uses of that variable, to accommodate the rare case in
78974         which getmntent is available in none of the libraries checked.  This
78975         happens at least on FreeBSD 5.0.
78976
78977 2006-02-13  Simon Josefsson  <jas@extundo.com>
78978
78979         * gnulib-tool (Usage): Fix --import, from
78980         karl@freefriends.org (Karl Berry).
78981
78982 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78983
78984         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78985
78986 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78987
78988         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78989         "autoupdate" on 2005-12-12.
78990
78991 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         * modules/closeout (Depends-on): Remove atexit.
78994
78995 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78998         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78999
79000 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79001
79002         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79003         __EXTENSIONS__ if this causes compilation to fail.  Problem
79004         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79005         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79006
79007 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79010         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79012         All uses changed.
79013
79014 2006-01-26  Simon Josefsson  <jas@extundo.com>
79015
79016         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79017         prototype is visible on mingw32.
79018
79019         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79020         for mingw32.
79021
79022         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79023         mingw32).
79024
79025 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79026
79027         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79028         attempt to open for write; this always fails, at least on POSIX
79029         hosts.  This reinstates the 2006-01-09 change, which was
79030         inadvertently removed.
79031
79032 2006-01-26  Bruno Haible  <bruno@clisp.org>
79033
79034         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79035         Reported by Paul Eggert.
79036
79037 2006-01-26  Bruno Haible  <bruno@clisp.org>
79038             Paul Eggert  <eggert@cs.ucla.edu>
79039
79040         * lib/stdbool_.h (_Bool)
79041         [(! (defined __cplusplus || defined __BEOS__)
79042           && !defined __GNUC__
79043           && !(defined __HP_cc || defined __xlc__
79044                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79045                || defined __sgi))]:
79046         #define to signed char in these cases too; this simplifies
79047         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79048         etc., separately) and makes it more conservative.
79049
79050 2006-01-25  Simon Josefsson  <jas@extundo.com>
79051
79052         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79053         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79054         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79055
79056 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79057
79058         * lib/argp-namefrob.h: Bugfix. Remove stray #
79059
79060 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79061
79062         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79063         so that we test the test.
79064         Check for yet another HP-UX cc bug involving *bool |= bool.
79065
79066 2006-01-25  Karl Berry  <karl@gnu.org>
79067
79068         * config/srclist.txt (vasnprintf.c): sync lost.
79069
79070 2006-01-25  Jim Meyering  <jim@meyering.net>
79071
79072         Sync from the stable (b5) branch of coreutils:
79073
79074         * lib/fts.c (fts_children): Don't let close() clobber errno from
79075         failed fchdir().
79076
79077         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79078         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79079         a dangling symlink.  That can also happen at least for ELOOP.
79080         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79081         FYI, this bug predates the inclusion of fts.c in coreutils.
79082
79083         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79084         in their own block, so pre-c99 compilers don't object.
79085
79086         Avoid the double-free (first in fts_read, second in fts_close) that
79087         would occur when an `active' directory is made inaccessible (e.g.,
79088         via chmod a-x) during a traversal.
79089         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79090         before returning.  Reproduce this failure by
79091         mkdir -p a/b; cd a; chmod a-x . b
79092         Reported by Stavros Passas.
79093
79094 2006-01-25  Jim Meyering  <jim@meyering.net>
79095
79096         * lib/fileblocks.c: Remove more useless parentheses.
79097         * lib/readutmp.h: Likewise.
79098
79099 2006-01-25  Bruno Haible  <bruno@clisp.org>
79100
79101         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79102         warnings.
79103         Reported by Paul Eggert.
79104
79105 2006-01-25  Bruno Haible  <bruno@clisp.org>
79106
79107         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79108         rid of a trap command. For Solaris sh.
79109         Reported by Mark D. Baushke <mdb@gnu.org>.
79110
79111 2006-01-24  Simon Josefsson  <jas@extundo.com>
79112
79113         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79114         Bruno.
79115
79116 2006-01-24  Karl Berry  <karl@gnu.org>
79117
79118         * config/srclist.txt (argp-namefrob.h): sync lost.
79119
79120 2006-01-24  Jim Meyering  <jim@meyering.net>
79121
79122         * modules/openat (Files): Add lib/intprops.h.
79123         From Mark D. Baushke.
79124
79125 2006-01-24  Jim Meyering  <jim@meyering.net>
79126
79127         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79128         Reported by Mark D. Baushke.
79129
79130 2006-01-24  Jim Meyering  <jim@meyering.net>
79131
79132         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79133
79134 2006-01-24  Bruno Haible  <bruno@clisp.org>
79135
79136         * modules/strnlen (Maintainer): Change from glibc to all.
79137
79138 2006-01-24  Bruno Haible  <bruno@clisp.org>
79139
79140         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79141         Patch by Paul Eggert.
79142
79143 2006-01-24  Bruno Haible  <bruno@clisp.org>
79144
79145         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79146         already has it.
79147         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79148         2005-11-26.
79149
79150         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79151         'signed char' to avoid problems with the built-in _Bool type.
79152         Reported by Paul Eggert on 2005-11-26.
79153
79154 2006-01-24  Bruno Haible  <bruno@clisp.org>
79155
79156         * gnulib-tool (func_import): Avoid constructing complicated sed
79157         expressions inside backquote.
79158         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79159
79160 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79161
79162         These changes imported from libc.
79163         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79164         test and two separate function calls.
79165         * lib/strndup.c (__strndup): Add libc_hidden_def.
79166
79167 2006-01-23  Simon Josefsson  <jas@extundo.com>
79168
79169         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79170         Remove the test_*_SOURCES variable: automake infers it by default.
79171         * modules/tls-tests: Likewise.
79172
79173 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79174
79175         Work around porting bugs reported by Dieter in
79176         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79177         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79178         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79179         Include "getopt.h" first, to check interface.
79180         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79181         !HAVE_DECL_GETENV.
79182         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79183         (__strndup): Revert to K&R-style function dfns, the glibc style.
79184         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79185         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79186         Include strnlen.h first, to get prototype properly.
79187         (strnlen): Renamed from __strnlen.
79188         Remove weak alias.
79189
79190 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79193
79194 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * config/srclist.txt: Adjust to reflect glibc reorganization.
79197         This affects only comments.
79198
79199 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79200
79201          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79202          Reported by Bruce Korb <bkorb@gnu.org>.
79203
79204 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79207         to pacify gcc -Wswitch-default.
79208
79209 2006-01-22  Bruno Haible  <bruno@clisp.org>
79210
79211         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79212         temporary buffer for sprintf, take into account the precision also
79213         for 'd', 'i', 'u', 'o', 'x', 'X'.
79214
79215 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79216
79217         * modules/argp-tests: New module
79218         * tests/test-argp.c: New file
79219         * tests/test-argp-2.sh: New file
79220
79221 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79222
79223         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79224         (__argp_base_name): Removed
79225         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79226         typo.
79227         (__argp_base_name): Provide macro definition or extern declaration
79228         depending on the configuration
79229
79230 2006-01-20  Simon Josefsson  <jas@extundo.com>
79231
79232         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79233
79234 2006-01-20  Simon Josefsson  <jas@extundo.com>
79235
79236         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79237
79238 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79241         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79242         Suggested by Bruno Haible.
79243
79244 2006-01-20  Karl Berry  <karl@gnu.org>
79245
79246         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79247         until changes propagate, I guess.
79248
79249 2006-01-19  Simon Josefsson  <jas@extundo.com>
79250
79251         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79252
79253 2006-01-19  Simon Josefsson  <jas@extundo.com>
79254
79255         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79256
79257 2006-01-19  Simon Josefsson  <jas@extundo.com>
79258
79259         * gnulib-tool: Set check_PROGRAMS.
79260
79261         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79262         modules/des-tests, modules/gc-arcfour-tests,
79263         modules/gc-arctwo-tests, modules/gc-des-tests,
79264         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79265         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79266         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79267         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79268         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79269         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79270         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79271         test_*_SOURCES.
79272
79273 2006-01-18  Simon Josefsson  <jas@extundo.com>
79274
79275         * modules/socklen (Depends-on): Depend on sys_socket.
79276
79277 2006-01-18  Simon Josefsson  <jas@extundo.com>
79278
79279         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79280         modules/des-tests, modules/gc-arcfour-tests,
79281         modules/gc-arctwo-tests, modules/gc-des-tests,
79282         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79283         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79284         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79285         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79286         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79287         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79288         $(EXEEXT) to automake TESTS variable, for mingw32.
79289
79290 2006-01-17  Simon Josefsson  <jas@extundo.com>
79291
79292         * modules/socklen (Include): Need sys/socket.h.
79293
79294 2006-01-17  Bruno Haible  <bruno@clisp.org>
79295
79296         * modules/ssize_t (Include): Add <sys/types.h>.
79297
79298 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79299
79300         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79301         it's not portable and it doesn't work with cross-compiles.
79302         Problem reported by Bruno Haible.  Fix missing-$ typo in
79303         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79304         -zignore from being used with Sun's C compiler.
79305
79306 2006-01-12  Simon Josefsson  <jas@extundo.com>
79307
79308         * lib/base64.c: Fix warning, reported by Bruno Haible
79309         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79310
79311 2006-01-12  Bruno Haible  <bruno@clisp.org>
79312
79313         * modules/ldd: New file.
79314         * build-aux/ldd.sh.in: New file.
79315         * MODULES.html.sh (Support for building libraries and executables): Add
79316         ldd.
79317
79318 2006-01-12  Bruno Haible  <bruno@clisp.org>
79319
79320         * m4/ldd.m4: New file.
79321
79322 2006-01-12  Bruno Haible  <bruno@clisp.org>
79323
79324         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79325         endless loop while replacing $auxdir with build-aux.
79326
79327 2006-01-11  Simon Josefsson  <jas@extundo.com>
79328
79329         * lib/stdint_.h (SIZE_MAX): Add missing (.
79330
79331 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         Sync from coreutils.
79334         * lib/md5.c: Fix commentary typos.
79335         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79336         * lib/md5.h (__attribute__): Remove; unused.
79337         * lib/sha1.c: Fix commentary to match md5 better.
79338         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79339         so that we don't need to worry about alignment.  All uses changed.
79340         This merges the 2005-10-28 md5 change into sha1.
79341
79342 2006-01-11  Jim Meyering  <jim@meyering.net>
79343
79344         Sync from coreutils.
79345         * lib/md5.c (OP): Fix spacing.
79346
79347 2006-01-11  Bruno Haible  <bruno@clisp.org>
79348
79349         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79350         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79351         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79352
79353 2006-01-11  Bruno Haible  <bruno@clisp.org>
79354
79355         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79356         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79357         the "early" section as well.
79358
79359 2006-01-11  Bruno Haible  <bruno@clisp.org>
79360
79361         Avoid "ar: no archive members specified" error on MacOS X.
79362         * gnulib-tool (func_modules_add_dummy): New function.
79363         (func_import, func_create_testdir): Invoke it.
79364
79365 2006-01-11  Bruno Haible  <bruno@clisp.org>
79366
79367         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79368         with $auxdir in AC_CONFIG_FILES statements.
79369
79370 2006-01-11  Bruno Haible  <bruno@clisp.org>
79371
79372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79373         Initialize also noinst_HEADERS to empty.
79374
79375 2006-01-11  Bruno Haible  <bruno@clisp.org>
79376
79377         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79378         variables.
79379         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79380         autoreconf.
79381
79382 2006-01-11  Bruno Haible  <bruno@clisp.org>
79383
79384         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79385         overridable by the user.
79386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79387
79388 2006-01-10  Simon Josefsson  <jas@extundo.com>
79389
79390         * modules/sys_socket: New file.
79391
79392 2006-01-10  Simon Josefsson  <jas@extundo.com>
79393
79394         * m4/sys_socket_h.m4: New file.
79395
79396 2006-01-10  Simon Josefsson  <jas@extundo.com>
79397
79398         * lib/socket_.h: New file.
79399
79400 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79401
79402         * modules/readutmp (Maintainer): Add myself.
79403
79404 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79407         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79408         People who are still concerned with buggy memcmp implementations
79409         can invoke gl_FUNC_MEMCMP themselves.
79410
79411 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79412
79413         * lib/regex_internal.h (BITSET_WORD_BITS):
79414         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79415         preprocessor mishandles large unsigned values as if they were signed.
79416         Problem reported by Claudio Fontana in
79417         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79418
79419 2006-01-10  Jim Meyering  <jim@meyering.net>
79420
79421         Avoid the double-free (first in fts_read, second in fts_close) that
79422         would occur when an `active' directory is made inaccessible (e.g.,
79423         via chmod a-x) during a traversal.
79424         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79425         before returning.  Reproduce this failure by
79426         mkdir -p a/b; cd a; chmod a-x . b
79427         Reported by Stavros Passas.
79428
79429         Sync from coreutils.
79430         * lib/sha1.c: Tweak grammar in a comment.
79431
79432 2006-01-10  Jim Meyering  <jim@meyering.net>
79433
79434         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79435         Patch by Joerg Sonnenberger.
79436
79437 2006-01-10  Bruno Haible  <bruno@clisp.org>
79438
79439         * modules/readutmp: Depend on module free.
79440         * modules/strtok_r: Depend on module restrict.
79441
79442 2006-01-10  Bruno Haible  <bruno@clisp.org>
79443
79444         * modules/gettext (configure.ac): Add an invocation of
79445         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79446
79447 2006-01-10  Bruno Haible  <bruno@clisp.org>
79448
79449         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79450         Reported by Werner Lemberg <wl@gnu.org>.
79451
79452 2006-01-10  Bruno Haible  <bruno@clisp.org>
79453
79454         * lib/localcharset.c: Update from GNU gettext.
79455
79456 2006-01-10  Bruno Haible  <bruno@clisp.org>
79457
79458         * lib/argp.h (__const): Remove macro. Use const instead.
79459         * lib/argp-fmtstream.h (__const): Likewise.
79460         * lib/glob_.h (__const): Remove macro.
79461         * lib/glob-libc.h: Use const instead of __const.
79462
79463 2006-01-10  Bruno Haible  <bruno@clisp.org>
79464
79465         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79466         variable.
79467         Needed to avoid an automake error regarding the 'gettext' module.
79468
79469 2006-01-09  Simon Josefsson  <jas@extundo.com>
79470
79471         * modules/inet_ntop (Depends-on): Add restrict.
79472
79473 2006-01-09  Simon Josefsson  <jas@extundo.com>
79474
79475         * modules/gc-rijndael-tests (License): Put under LGPL.
79476
79477         * modules/gc-des-tests (License): Likewise.
79478
79479         * modules/gc-arcfour-tests (License): Likewise.
79480
79481         * modules/gc-arctwo-tests (License): Likewise.
79482
79483         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79484
79485         * modules/gc-hmac-sha1-tests (Files): Likewise.
79486
79487         * modules/gc-hmac-md5-tests (License): Likewise.
79488
79489         * modules/gc-sha1-tests (License): Likewise.
79490
79491         * modules/gc-md5-tests (License): Likewise.
79492
79493         * modules/gc-md4-tests (License): Likewise.
79494
79495         * modules/gc-md2-tests (License): Likewise.
79496
79497         * modules/gc-tests (License): Likewise.
79498
79499         * modules/des-tests (License): Likewise.
79500
79501         * modules/md4-tests (License): Likewise.
79502
79503         * modules/md2-tests (License): Likewise.
79504
79505 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         Sync from coreutils:
79508
79509         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79510         * modules/lib-ignore: New file.
79511         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79512         chdir-safer.m4, lchmod.m4.
79513         * modules/openat: Add mkdirat.c, openat-priv.h.
79514
79515 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79516
79517         Sync from coreutils.
79518         * m4/lib-ignore.m4: New file.
79519         * m4/lchmod.m4: New file.
79520
79521 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         Sync from coreutils.
79524         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79525         for write access: POSIX says that must fail.
79526         * lib/fts.c (diropen): Likewise.
79527         * lib/save-cwd.c (save_cwd): Likewise.
79528         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79529         well, for minor improvements on hosts that lack O_DIRECTORY.
79530         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79531         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79532         Fall back on chown if open failed with EACCES.
79533
79534         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79535         Report an error at compile-time if only a 1-second nominal clock
79536         resolution is found.
79537
79538         * lib/lchmod.h: New file.
79539         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79540         (make_dir_parents): Use lchown rather than chown, and
79541         lchmod rather than chmod.
79542
79543         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79544         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79545         "proc" reported by n0dalus.
79546
79547         * lib/mountlist.c: Include <limits.h>.
79548         (dev_from_mount_options)
79549         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79550         New function.  It no longer assumes "dev=" has the System V meaning
79551         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79552         (read_file_system_list)
79553         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79554         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79555         dev= in that case.
79556
79557         * lib/posixtm.h (PDS_PRE_2000): New macro.
79558         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79559         allow_century.  All usages changed.  Reject dates outside the range
79560         1969-1999 if PDS_PRE_2000 is used.
79561
79562 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         Sync from coreutils.
79565         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79566         (Time of day items): Mention the possibility of leap seconds.
79567         Problem reported by Dr. David Alan Gilbert.
79568
79569 2006-01-09  Jim Meyering  <jim@meyering.net>
79570
79571         Sync from coreutils.
79572
79573         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79574
79575         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79576
79577         * lib/modechange.c (mode_compile): Reject an invalid mode string
79578         that starts with an octal digit.  From Andreas Gruenbacher.
79579
79580         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79581         and dup to open_safer and dup_safer, respectively.
79582         (openat_permissive): Fix typo in comment.
79583
79584         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79585         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79586         (_): Remove; no longer needed.
79587         (openat): Renamed from rpl_openat; no need for rpl_openat
79588         since openat.h renames openat for us.
79589         Replace most of the body with a call to openat_permissive,
79590         to avoid duplicate code.
79591         Port to (probably hypothetical) environments were mode_t is
79592         wider than int.
79593         (openat_permissive): Require mode arg, so that we can check
79594         types better.  Put it just after flags.  Change cwd failure
79595         indicator from pointer-to-bool to pointer-to-errno-value.
79596         All callers changed.
79597         Invoke openat_save_fail and/or openat_restore_fail if
79598         cwd_errno is null, so that openat can call us.
79599         (openat_permissive, fdopendir, fstatat, unlinkat):
79600         Simplify errno handling to avoid some duplicate code,
79601         as it's OK to set errno on success.
79602         * lib/openat.h: Revamp code so that function macros depend on
79603         __OPENAT_PREFIX only, not also on AT_FDCWD.
79604         (openat_ro): Remove.  Caller changed to use openat_permissive.
79605         (openat_permissive): Now a macro, if not a function.
79606         (openat_restore_fail, openat_save_fail): Now always functions,
79607         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79608
79609         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79610         and openat.c.
79611         * lib/mkdirat.c: Include openat-priv.h.
79612         Remove definitions of macros defined therein.
79613         * lib/openat.c: Likewise.
79614
79615         * lib/mkdirat.c (mkdirat): New file and function.
79616         * lib/openat.h (mkdirat): Declare.
79617
79618         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79619
79620         * lib/openat.h (openat_permissive): Declare.
79621         (openat_ro): Define.
79622
79623         * lib/openat.c (EXPECTED_ERRNO): New macro.
79624         (openat_permissive): New function -- used in remove.c rewrite.
79625         (all functions): Set errno just before returning, only if there
79626         was an actual failure.
79627         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79628
79629         Emulate openat-family functions using Linux's procfs, if possible.
79630         Idea and some code based on Ulrich Drepper's glibc changes.
79631
79632         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79633         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79634         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79635         before falling back on save_cwd and restore_cwd.
79636         (fdopendir, fstatat, unlinkat): Likewise.
79637
79638         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79639         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79640
79641         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79642         as second argument to va_arg.  Otherwise, some versions of gcc
79643         warn that `if this code is reached, the program will abort'.
79644
79645 2006-01-09  Jim Meyering  <jim@meyering.net>
79646
79647         Sync from coreutils.
79648         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79649         Require openat-priv.h.
79650
79651 2006-01-09  Bruno Haible  <bruno@clisp.org>
79652
79653         * modules/strnlen (Include): Use strnlen.h.
79654
79655 2006-01-09  Bruno Haible  <bruno@clisp.org>
79656
79657         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79658
79659 2006-01-09  Bruno Haible  <bruno@clisp.org>
79660
79661         * lib/sysexit_.h (EX_OK): New macro.
79662         Suggested by Martin Lambers <marlam@marlam.de>.
79663
79664 2006-01-09  Bruno Haible  <bruno@clisp.org>
79665
79666         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79667         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79668
79669 2006-01-09  Bruno Haible  <bruno@clisp.org>
79670
79671         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79672         numbers.
79673
79674 2006-01-09  Bruno Haible  <bruno@clisp.org>
79675
79676         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79677         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79678         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79679         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79680
79681 2006-01-09  Bruno Haible  <bruno@clisp.org>
79682
79683         * build-aux/javacomp.sh.in: New file, moved from lib/.
79684         * modules/javacomp-script (Files): Update.
79685         (configure.ac): Add AC_CONFIG_FILES invocation.
79686         (EXTRA_DIST): Remove variable.
79687
79688         * build-aux/javaexec.sh.in: New file, moved from lib/.
79689         * modules/javaexec (Files): Update.
79690         (configure.ac): Add AC_CONFIG_FILES invocation.
79691         (EXTRA_DIST): Remove javaexec.sh.in.
79692
79693         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79694         * modules/csharpcomp-script (Files): Update.
79695         (configure.ac): Add AC_CONFIG_FILES invocation.
79696         (EXTRA_DIST): Remove variable.
79697
79698         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79699         * modules/csharpexec (Files): Update.
79700         (configure.ac): Add AC_CONFIG_FILES invocation.
79701         (EXTRA_DIST): Remove csharpexec.sh.in.
79702
79703 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79704
79705         Sync from coreutils.
79706
79707         Add POSIX ACL support
79708         * lib/acl.h (copy_acl, set_acl): Add declarations.
79709         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79710         systems other than Linux.
79711         (chmod_or_fchmod): New function: use fchmod when possible,
79712         and chmod otherwise.
79713         (file_has_acl): Add a POSIX ACL implementation, with a
79714         Linux-specific subcase.
79715         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79716         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79717         acls are unsupported.
79718         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79719         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79720         are unsupported.
79721
79722 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79723
79724         Sync from coreutils.
79725         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79726
79727 2006-01-07  Bruno Haible  <bruno@clisp.org>
79728
79729         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79730         gl_EARLY.
79731
79732 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79733
79734         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79735         Problem reported for Mingw by Mark Junker.
79736
79737 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79738
79739         * README: Gnulib normally doesn't generate a tarball.
79740
79741 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79744         long int, not int, for nanosecond counts, so that people who are
79745         used to POSIX struct timespec won't be surprised.  Reported by Jim
79746         Meyering.
79747
79748 2005-12-28  Bruno Haible  <bruno@clisp.org>
79749
79750         * build-aux/config.rpath: Update from GNU gettext.
79751
79752 2005-12-16  Jim Meyering  <jim@meyering.net>
79753
79754         * modules/fprintftime: New module.
79755         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79756
79757 2005-12-16  Jim Meyering  <jim@meyering.net>
79758
79759         * m4/fprintftime.m4: New file.
79760
79761 2005-12-16  Jim Meyering  <jim@meyering.net>
79762
79763         * lib/fprintftime.c, lib/fprintftime.h: New files.
79764
79765 2005-12-15  Simon Josefsson  <jas@extundo.com>
79766
79767         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79768         new m4/socklen.m4.
79769
79770 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79771
79772         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79773         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79774
79775 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79776
79777         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79778         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79779         struct uparams is valid. Fall back to the default values if it is
79780         not.
79781
79782 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79783
79784         * modules/argp (Files): Add argp-pin.c
79785         (Depends-on): dirname
79786         (lib_SOURCES): Add argp-pin.c
79787
79788 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79789
79790         * m4/argp.m4:  Check if program_invocation_name and
79791         program_invocation_short_name are declared and define appropriate
79792         macros if they are not.
79793
79794 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79795
79796         * lib/argp-help.c (__argp_base_name): New function
79797         (__argp_short_program_name): Rewrite using __argp_base_name
79798         * lib/argp-namefrob.h: Define program_invocation_name and
79799         program_invocation_short_name if requested
79800         (__argp_base_name): Add prototype
79801         * lib/argp-parse.c (argp_def): Use gettext wrappers
79802         (argp_default_parser): Use __argp_base_name
79803         * lib/argp-pin.c: New file. Defines program_invocation_name and
79804         program_invocation_short_name on systems that lack them.
79805
79806 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79807
79808         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79809         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79810         porting problem reported by Georg Schwarz in
79811         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79812
79813 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79816         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79817         porting problem reported by Georg Schwarz in
79818         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79819
79820 2005-12-05  Bruno Haible  <bruno@clisp.org>
79821
79822         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79823         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79824         Reported by Mark Junker <mjscod@gmx.de>.
79825
79826 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79829         Use implementation from Albert Chin, with some
79830         comments/corrections by Stepan Kasal and myself.
79831
79832 2005-12-02  Bruno Haible  <bruno@clisp.org>
79833
79834         * gnulib-tool (func_import): Accept GPLed build tool modules when
79835         --lgpl is given.
79836         * modules/csharpcomp-script: New file.
79837         * modules/csharpcomp: Depend on it.
79838         * modules/javacomp-script: New file.
79839         * modules/javacomp: Depend on it.
79840         Suggested by Simon Josefsson.
79841
79842 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79843
79844         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79845         statement, to work around an HP-UX 10.20 compiler bug reported by
79846         Peter O'Gorman.
79847
79848 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79849
79850         * modules/savedir (Depends-on): Add openat.
79851
79852 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79853
79854         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79855         (uintmax_t) [defined uintmax_t]: Do not declare.
79856         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79857         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79858         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79859         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79860         sake of portability to weird hosts that C allows (though we don't
79861         know of any practical examples).
79862
79863         * lib/savedir.h (fdsavedir): New decl.
79864         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79865         contains most of the former guts of savedir.
79866         (savedir): Use savedirstream.
79867         Include "openat.h".
79868
79869 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79870
79871         * modules/obstack (Files): Add m4/ulonglong.m4.
79872         Problem reported by Davide Angelocola.
79873
79874 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79877         coreutils no longer futzes with rounding modes.
79878
79879 2005-11-14  Jim Meyering  <jim@meyering.net>
79880
79881         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79882         replacement of mkstemp.
79883
79884 2005-11-10  Simon Josefsson  <jas@extundo.com>
79885
79886         * lib/readline.c: Remove EOL.
79887
79888 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * modules/gethrxtime (Depends-on): Add gettime.
79891
79892 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79895         or gettimeofday; no longer needed.
79896
79897 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79900         time business.
79901         (gethrxtime) [! (HAVE_NANOUPTIME
79902         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79903         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79904         our own approximation.
79905
79906 2005-11-08  Eric Blake  <ebb9@byu.net>
79907
79908         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79909
79910 2005-11-08  Eric Blake  <ebb9@byu.net>
79911
79912         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79913
79914 2005-11-04  Bruno Haible  <bruno@clisp.org>
79915
79916         * gnulib-tool: Implement --update mode.
79917
79918 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79919
79920         Fix porting problem reported by Theodoros V. Kalamatianos.
79921         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79922         Don't assume that futimes failing means we must fail.
79923
79924 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79925
79926         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79927         variables to suggest the intended function of the PATH_MAX check.
79928
79929 2005-10-30  Kean Johnston  <jkj@sco.com>
79930
79931         Trivial changes to support SCO systems.
79932         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79933         as PATH_MAX.
79934         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79935         where __ptr is null when no I/O is pending.
79936
79937 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79938
79939         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79940         leave errno alone.  Problem reported by Dmitry V. Levin.
79941
79942 2005-10-28  Simon Josefsson  <jas@extundo.com>
79943
79944         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79945         Test more.
79946
79947         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79948
79949         * modules/md2, modules/md2-tests: New files.
79950
79951 2005-10-28  Simon Josefsson  <jas@extundo.com>
79952
79953         * m4/inet_ntop.m4: More tests.
79954
79955         * m4/gc-md2.m4, md2.m4: New file.
79956
79957 2005-10-28  Simon Josefsson  <jas@extundo.com>
79958
79959         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79960         "restrict" keywords, as per POSIX.  Protect the function
79961         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79962         Don't use K&R prototypes.  Check the sprintf return values.
79963         Re-define EAFNOSUPPORT if not present.  Indent.
79964
79965         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79966         suggested by Bruno Haible <bruno@clisp.org>.
79967
79968         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79969
79970         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79971
79972         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79973         libgcrypt).
79974
79975         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79976
79977         * lib/md2.h, lib/md2.c: New files.
79978
79979 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79980
79981         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79982         errno alone.  Problem reported by Frederic Jolliton.
79983
79984 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79985
79986         * modules/verify (License): Change from GPL to LGPL.  This is a
79987         tiny module and there are apparently near-equivalents that are
79988         under the BSD license.
79989
79990 2005-10-24  Simon Josefsson  <jas@extundo.com>
79991
79992         * modules/sha1: Relicense to LGPL.
79993
79994 2005-10-24  Simon Josefsson  <jas@extundo.com>
79995
79996         * lib/md4.h: Shrink buffer size, now that we changed the type.
79997
79998 2005-10-23  Simon Josefsson  <jas@extundo.com>
79999
80000         * gnulib-tool (func_import): Fix --tests-base.
80001
80002 2005-10-22  Simon Josefsson  <jas@extundo.com>
80003
80004         * modules/arcfour (Depends-on): Need stdint.
80005
80006 2005-10-22  Simon Josefsson  <jas@extundo.com>
80007
80008         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80009         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80010
80011 2005-10-22  Simon Josefsson  <jas@extundo.com>
80012
80013         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80014         suggested by Bruno Haible <bruno@clisp.org>.
80015
80016 2005-10-22  Simon Josefsson  <jas@extundo.com>
80017
80018         * lib/crc.h: Include stddef.h, for size_t.
80019
80020 2005-10-22  Simon Josefsson  <jas@extundo.com>
80021
80022         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80023         arcfour_context struct (simplify test vector testing in GNU
80024         Shishi).
80025
80026 2005-10-21  Simon Josefsson  <jas@extundo.com>
80027
80028         * modules/des, modules/des-tests: New files.
80029
80030         * modules/gc-des, modules/gc-des-tests: New files.
80031
80032         * tests/test-des.c, tests/test-gc-des.c: New file.
80033
80034 2005-10-21  Simon Josefsson  <jas@extundo.com>
80035
80036         * modules/arctwo, modules/arctwo-tests: New files.
80037
80038         * tests/test-arctwo.c: New file.
80039
80040         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80041
80042         * tests/test-gc-arctwo.c: New file.
80043
80044 2005-10-21  Simon Josefsson  <jas@extundo.com>
80045
80046         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80047         Bruno Haible <bruno@clisp.org>.
80048
80049         * m4/gc-des.m4: New file.
80050
80051 2005-10-21  Simon Josefsson  <jas@extundo.com>
80052
80053         * m4/arctwo.m4: New file.
80054
80055         * m4/gc-arctwo.m4: New file.
80056
80057 2005-10-21  Simon Josefsson  <jas@extundo.com>
80058
80059         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80060         block.
80061
80062 2005-10-21  Simon Josefsson  <jas@extundo.com>
80063
80064         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80065         <bruno@clisp.org>.
80066
80067         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80068
80069         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80070         Bruno Haible <bruno@clisp.org>.
80071
80072         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80073         <bruno@clisp.org>.
80074
80075 2005-10-21  Simon Josefsson  <jas@extundo.com>
80076
80077         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80078
80079 2005-10-21  Simon Josefsson  <jas@extundo.com>
80080
80081         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80082
80083 2005-10-21  Simon Josefsson  <jas@extundo.com>
80084
80085         * lib/des.h, lib/des.c: New files.
80086
80087         * lib/gc-gnulib.c: Support DES.c
80088
80089 2005-10-21  Simon Josefsson  <jas@extundo.com>
80090
80091         * lib/arctwo.h, lib/arctwo.c: New files.
80092
80093         * lib/gc-gnulib.c: Support ARCTWO.
80094
80095 2005-10-21  Simon Josefsson  <jas@extundo.com>
80096
80097         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80098         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80099
80100 2005-10-21  Simon Josefsson  <jas@extundo.com>
80101
80102         * gnulib-tool (func_import, func_create_testdir): Define automake
80103         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80104         Makefile.am snippet),
80105         suggested by Bruno Haible <bruno@clisp.org>.
80106
80107         * modules/gc (Makefile.am): Use it.
80108
80109 2005-10-21  Bruno Haible  <bruno@clisp.org>
80110
80111         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80112         patch.
80113
80114 2005-10-19  Simon Josefsson  <jas@extundo.com>
80115
80116         * tests/test-gc-rijndael.c: New file.
80117
80118         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80119
80120 2005-10-19  Simon Josefsson  <jas@extundo.com>
80121
80122         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80123         interface too.
80124
80125 2005-10-19  Simon Josefsson  <jas@extundo.com>
80126
80127         * tests/test-gc-arcfour.c: New file.
80128
80129         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80130
80131 2005-10-19  Simon Josefsson  <jas@extundo.com>
80132
80133         * modules/gc-md4, modules/gc-md4-tests: New file.
80134
80135         * tests/test-gc-md4.c: New file.
80136
80137 2005-10-19  Simon Josefsson  <jas@extundo.com>
80138
80139         * m4/gc-md4.m4: New file.
80140
80141 2005-10-19  Simon Josefsson  <jas@extundo.com>
80142
80143         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80144         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80145         <kasal@ucw.cz>.
80146
80147 2005-10-19  Simon Josefsson  <jas@extundo.com>
80148
80149         * m4/gc-arcfour.m4: New file.
80150
80151         * m4/gc-rijndael.m4: New file.
80152
80153 2005-10-19  Simon Josefsson  <jas@extundo.com>
80154
80155         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80156
80157 2005-10-19  Simon Josefsson  <jas@extundo.com>
80158
80159         * lib/gc-gnulib.c: Support ARCFOUR.
80160
80161 2005-10-19  Simon Josefsson  <jas@extundo.com>
80162
80163         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80164         support.
80165
80166         * lib/gc.h: Add ECB enum type.
80167
80168         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80169
80170 2005-10-18  Simon Josefsson  <jas@extundo.com>
80171
80172         * tests/test-md5.c: New file.
80173
80174         * modules/md5-tests: New file.
80175
80176 2005-10-18  Simon Josefsson  <jas@extundo.com>
80177
80178         * tests/test-md4.c: New file.
80179
80180         * modules/md4, modules/md4-tests: New files.
80181
80182 2005-10-18  Simon Josefsson  <jas@extundo.com>
80183
80184         * m4/md4.m4: New file.
80185
80186 2005-10-18  Simon Josefsson  <jas@extundo.com>
80187
80188         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80189
80190 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80191
80192         * gnulib-tool (func_create_testdir): Omit the second check whether
80193         BUILT_SOURCES in nonempty.
80194
80195 2005-10-17  Simon Josefsson  <jas@extundo.com>
80196
80197         * tests/test-rijndael.c: New file.
80198
80199 2005-10-17  Simon Josefsson  <jas@extundo.com>
80200
80201         * modules/sha1: Depend on stdint instead of md5.
80202
80203         * modules/md5: Depend on stdint, remove uint32_t.
80204
80205 2005-10-17  Simon Josefsson  <jas@extundo.com>
80206
80207         * modules/gc-sha1-tests: New file.
80208
80209         * tests/test-gc-sha1.c: New file.
80210
80211 2005-10-17  Simon Josefsson  <jas@extundo.com>
80212
80213         * m4/md5.m4: Remove call to uint32_t.m4.
80214
80215 2005-10-17  Simon Josefsson  <jas@extundo.com>
80216
80217         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80218
80219         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80220         md5.h.
80221
80222         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80223
80224         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80225
80226 2005-10-17  Simon Josefsson  <jas@extundo.com>
80227
80228         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80229
80230 2005-10-17  Simon Josefsson  <jas@extundo.com>
80231
80232         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80233
80234 2005-10-17  Simon Josefsson  <jas@extundo.com>
80235
80236         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80237
80238         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80239
80240 2005-10-17  Bruno Haible  <bruno@clisp.org>
80241
80242         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80243         that it can also be used in a test.
80244
80245 2005-10-16  Bruno Haible  <bruno@clisp.org>
80246
80247         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80248         TESTS_ENVIRONMENT, so that individual tests can augment it.
80249
80250         * gnulib-tool (func_create_testdir): Use an intermediate target for
80251         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80252         macros, like $(ALLOCA_H), which cannot be passed through the command
80253         line.
80254
80255 2005-10-15  Simon Josefsson  <jas@extundo.com>
80256
80257         * modules/rijndael-tests: New file.
80258
80259         * modules/rijndael: New file.
80260
80261 2005-10-15  Simon Josefsson  <jas@extundo.com>
80262
80263         * m4/rijndael.m4: New file.
80264
80265 2005-10-15  Simon Josefsson  <jas@extundo.com>
80266
80267         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80268
80269         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80270
80271 2005-10-14  Simon Josefsson  <jas@extundo.com>
80272
80273         * tests/test-arcfour.c: New file.
80274
80275         * modules/arcfour, modules/arcfour-tests: New files.
80276
80277 2005-10-14  Simon Josefsson  <jas@extundo.com>
80278
80279         * m4/arcfour.m4: New file.
80280
80281 2005-10-14  Simon Josefsson  <jas@extundo.com>
80282
80283         * lib/arcfour.h, lib/arcfour.c: New files.
80284
80285 2005-10-14  Roland McGrath  <roland@redhat.com>
80286
80287         Import from libc.  [BZ #1331]
80288         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80289         macro argument.
80290         Reported by Matej Vela <vela@debian.org>.
80291
80292 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80293
80294         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80295         include <wchar.h>; no longer needed.
80296
80297 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80298
80299         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80300
80301 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80302         and  Ulrich Drepper  <drepper@redhat.com>
80303
80304         Import from libc.
80305         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80306         instead of inline stream orientation test and two separate
80307         function calls.  Pay no attention to USE_IN_LIBIO.
80308
80309 2005-10-13  Simon Josefsson  <jas@extundo.com>
80310
80311         * modules/gc-hmac-md5-tests: New file.
80312
80313         * tests/test-gc-hmac-sha1.c: New file.
80314
80315         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80316
80317         * modules/gc-hmac-md5-tests: New file.
80318
80319         * tests/test-gc-md5.c: New file.
80320
80321         * modules/gc-md5-tests: New file.
80322
80323 2005-10-13  Simon Josefsson  <jas@extundo.com>
80324
80325         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80326         Move memory allocation outside of loop.
80327
80328 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80329
80330         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80331         intermediate directory is in a read-only file system.  Problem
80332         reported by Eric Blake.
80333
80334 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80335
80336         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80337
80338 2005-10-12  Simon Josefsson  <jas@extundo.com>
80339
80340         * tests/test-hmac-sha1.c: New file.
80341
80342         * modules/hmac-sha1-tests: New file.
80343
80344         * modules/hmac-sha1: New file.
80345
80346 2005-10-12  Simon Josefsson  <jas@extundo.com>
80347
80348         * modules/gc-sha1: New file.
80349
80350 2005-10-12  Simon Josefsson  <jas@extundo.com>
80351
80352         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80353
80354         * tests/test-gc-pbkdf2-sha1.c: New file.
80355
80356 2005-10-12  Simon Josefsson  <jas@extundo.com>
80357
80358         * modules/gc-md5, modules/gc-hmac-md5: New files.
80359
80360         * modules/gc (Files): Remove md5, memxor and hmac files.
80361
80362 2005-10-12  Simon Josefsson  <jas@extundo.com>
80363
80364         * m4/gc-pbkdf2-sha1.m4: New file.
80365
80366         * m4/gc-hmac-sha1.m4: New file.
80367
80368         * m4/gc-sha1: New file.
80369
80370         * m4/hmac-sha1.m4: New file.
80371
80372 2005-10-12  Simon Josefsson  <jas@extundo.com>
80373
80374         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80375
80376         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80377
80378 2005-10-12  Simon Josefsson  <jas@extundo.com>
80379
80380         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80381         suggested by Bruno Haible <bruno@clisp.org>.
80382
80383 2005-10-12  Simon Josefsson  <jas@extundo.com>
80384
80385         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80386
80387 2005-10-12  Simon Josefsson  <jas@extundo.com>
80388
80389         * lib/gc-pbkdf2-sha1.c: New file.
80390
80391         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80392
80393 2005-10-12  Simon Josefsson  <jas@extundo.com>
80394
80395         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80396
80397         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80398
80399 2005-10-12  Simon Josefsson  <jas@extundo.com>
80400
80401         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80402         GC_USE_HMAC_MD5, respectively.
80403
80404         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80405         (gc_md5): Fix typo.
80406
80407         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80408
80409         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80410
80411         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80412
80413 2005-10-12  Bruno Haible  <bruno@clisp.org>
80414
80415         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80416         Reported by Stepan Kasal <kasal@ucw.cz>.
80417
80418 2005-10-11  Simon Josefsson  <jas@extundo.com>
80419
80420         * tests/test-crc.c: New file.
80421
80422         * modules/crc, modules/crc-tests: New files.
80423
80424 2005-10-11  Simon Josefsson  <jas@extundo.com>
80425
80426         * m4/crc.m4: New file.
80427
80428 2005-10-11  Simon Josefsson  <jas@extundo.com>
80429
80430         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80431
80432         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80433
80434         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80435
80436 2005-10-11  Simon Josefsson  <jas@extundo.com>
80437
80438         * lib/crc.h, lib/crc.c: New files.
80439
80440         * lib/gc.h (gc_hash_buffer): Add doc.
80441
80442 2005-10-11  Bruno Haible  <bruno@clisp.org>
80443
80444         * modules/c-strcasestr: New file.
80445         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80446
80447 2005-10-11  Bruno Haible  <bruno@clisp.org>
80448
80449         * modules/c-strcase: New file.
80450         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80451
80452 2005-10-11  Bruno Haible  <bruno@clisp.org>
80453
80454         * lib/strcasecmp.c: Include limits.h.
80455         (strcasecmp): Avoid integer overflow on exotic platforms.
80456         * lib/strncasecmp.c: Include limits.h.
80457         (strncasecmp): Avoid integer overflow on exotic platforms.
80458         Reported by Paul Eggert.
80459
80460 2005-10-11  Bruno Haible  <bruno@clisp.org>
80461
80462         * lib/c-strcasestr.h: New file, from GNU gettext.
80463         * lib/c-strcasestr.c: New file, from GNU gettext.
80464
80465 2005-10-11  Bruno Haible  <bruno@clisp.org>
80466
80467         * lib/c-strcase.h: New file, from GNU gettext.
80468         * lib/c-strcasecmp.c: New file, from GNU gettext.
80469         * lib/c-strncasecmp.c: New file, from GNU gettext.
80470
80471 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80472
80473         * modules/mempcpy (License): GPL -> LGPL.
80474         * modules/strchrnul (License): Likewise.
80475         * modules/sysexits (License): Likewise.
80476
80477 2005-10-08  Simon Josefsson  <jas@extundo.com>
80478
80479         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80480
80481 2005-10-07  Simon Josefsson  <jas@extundo.com>
80482
80483         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80484
80485 2005-10-06  Simon Josefsson  <jas@extundo.com>
80486
80487         * tests/test-hmac-md5.c: New file.
80488
80489         * modules/hmac-md5-tests: New file.
80490
80491         * modules/hmac-md5: New file.
80492
80493 2005-10-06  Simon Josefsson  <jas@extundo.com>
80494
80495         * m4/hmac-md5.m4: New file.
80496
80497         * m4/memxor.m4: Require gl_C_RESTRICT.
80498
80499 2005-10-06  Simon Josefsson  <jas@extundo.com>
80500
80501         * lib/memxor.c (memxor): Avoid casts and warnings.
80502
80503 2005-10-06  Simon Josefsson  <jas@extundo.com>
80504
80505         * lib/hmac-md5.c: New file.
80506
80507         * lib/hmac.h: New file.
80508
80509 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80510
80511         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80512         promotes to int, not unsigned int, to catch the AIX 5.3
80513         compiler bug.
80514
80515 2005-10-05  Simon Josefsson  <jas@extundo.com>
80516
80517         * modules/memxor: New file.
80518
80519         * modules/iconv (Files): Move config.rpath to havelib, it is used
80520         there.
80521
80522         * modules/havelib (Files): Add config.rpath.
80523
80524 2005-10-05  Simon Josefsson  <jas@extundo.com>
80525
80526         * m4/memxor.m4: New file.
80527
80528 2005-10-05  Simon Josefsson  <jas@extundo.com>
80529
80530         * lib/memxor.c (memxor): Fix compiler error.
80531
80532         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80533         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80534
80535         * lib/memxor.h, lib/memxor.c: New files.
80536
80537         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80538         we assume all systems have it, suggested by Jim Meyering
80539         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80540         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80541         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80542         same reasons.
80543
80544 2005-10-05  Simon Josefsson  <jas@extundo.com>
80545
80546         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80547
80548 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80549
80550         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80551         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80552         needed, since the source code now assumes these .h files.
80553
80554 2005-10-05  Derek Price  <derek@ximbiot.com>
80555
80556         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80557
80558 2005-10-05  Bruno Haible  <bruno@clisp.org>
80559
80560         * modules/stdint (License): Change to LGPL.
80561
80562 2005-10-04  Simon Josefsson  <jas@extundo.com>
80563
80564         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80565         D. Baushke" <mdb@gnu.org>.
80566
80567 2005-10-04  Bruno Haible  <bruno@clisp.org>
80568
80569         * lib/verify.h (verify_true): Provide alternative definition for C++.
80570
80571 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80572
80573         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80574         (SSIZE_MAX): New macro, if not already defined.
80575         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80576         than 2 GiB.
80577
80578 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80579
80580         Sync from coreutils.
80581         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80582         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80583         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80584         ULLONG_MAX doesn't work with 2.7.2.1.
80585
80586 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80587
80588         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80589         From Ben Pfaff.
80590
80591         * modules/exclude (Depends-on): Depend on verify.
80592         * modules/strtoimax (Depends-on): Likewise.
80593         * modules/utimecmp (Depends-on): Likewise.
80594
80595 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * lib/exclude.c: Include verify.h.
80598         (verify): Remove.  All callers changed to use verify.h's version.
80599         * lib/strtoimax.c: Likewise.
80600         * lib/utimecmp.c: Likewis.e
80601
80602         Sync from coreutils.
80603         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80604         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80605         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80606         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80607         bother returning ENOSYS if settimeofday or stime fails; just let
80608         them return whatever errno they want to return.
80609         * lib/utimens.c: Include unistd.h, for dup2.
80610         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80611         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80612
80613 2005-10-02  Jim Meyering  <jim@meyering.net>
80614
80615         Sync from coreutils.
80616         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80617         from glibc-2.2.5 that fails for read-only files.
80618
80619 2005-10-02  Jim Meyering  <jim@meyering.net>
80620
80621         Sync from coreutils.
80622         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80623         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80624         `#if HAVE_CONFIG_H'.
80625         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80626         Remove AT_FDCWD test.
80627         Do not consume the fd unless successful.
80628         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80629         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80630         block, so that we don't even try to compile it if settimeofday is
80631         available.  This works around a compilation failure on OSF1 V5.1,
80632         due to stime requiring a `long int*' while tv_sec is `int'.
80633
80634 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80635
80636         Sync from coreutils.
80637         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80638         against `yes', rather than just testing for nonempty.
80639
80640 2005-10-01  Simon Josefsson  <jas@extundo.com>
80641
80642         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80643         and Darwin.
80644
80645         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80646         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80647         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80648         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80649         Check if struct addrinfo is declared.
80650
80651 2005-10-01  Simon Josefsson  <jas@extundo.com>
80652
80653         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80654         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80655         AI_* and EAI_* definitions.  Protect function declarations.
80656
80657 2005-10-01  Jim Meyering  <jim@meyering.net>
80658
80659         Sync from coreutils.
80660
80661         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80662         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80663         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80664         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80665         in the inet and nsl libraries.  Required on Solaris 5.7.
80666
80667 2005-10-01  Jim Meyering  <jim@meyering.net>
80668
80669         Sync from coreutils.
80670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80671         in the inet and nsl libraries.  Required on Solaris 5.7.
80672
80673 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80674
80675         * lib/getdelim.c (getdelim): Remove unused variables.
80676
80677 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80680         so that the code works even with ancient cpp.  Portability problem
80681         with GCC 2.7.2.1 reported by Thomas M.Ott.
80682
80683 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80684
80685         * modules/regex (Depends-on): Add strcase.
80686
80687         * modules/gethostname (Licence): Change from GPL to LGPL, since
80688         gethostname.c is a trivial implementation of a standard library
80689         function.
80690         * modules/poll (License): Change from GPL to LGPL, since it's
80691         derived from LGPL code.
80692
80693 2005-09-27  Jim Meyering  <jim@meyering.net>
80694
80695         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80696         HAVE_CONFIG_H.
80697
80698         * lib/intprops.h (signed_type_or_expr__): Define.
80699         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80700         for unsigned types.
80701
80702 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80703
80704         * lib/verify.h (verify_expr): Remove, replacing with:
80705         (verify_true): New macro that returns true instead of void.
80706         (verify_type__): Remove.
80707         (verify): Use verify_true rather than verify_type__.
80708
80709 2005-09-26  Bruno Haible  <bruno@clisp.org>
80710
80711         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80712         is necessary.
80713         (lib_SOURCES): Remove mbchar.c.
80714         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80715         (Files): Add m4/mbrtowc.m4.
80716         * modules/mbiter: Likewise.
80717         * modules/mbuiter: Likewise.
80718
80719 2005-09-26  Bruno Haible  <bruno@clisp.org>
80720
80721         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80722         compile mbchar.c if they are not both present.
80723         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80724         * m4/mbiter.m4 (gl_MBITER): Likewise.
80725         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80726         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80727         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80728
80729 2005-09-25  Jim Meyering  <jim@meyering.net>
80730
80731         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80732         also uses socklen_t.
80733
80734 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * lib/utimens.c (ENOSYS): Define if not already defined.
80737         (futimens): Support having a null PATH if the file descriptor
80738         is nonnegative.
80739
80740         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80741         Remove.
80742         (__attribute): Define to empty unless GCC 3.1 or later.
80743         This works around a core dump on OpenBSD 3.4, which has GCC
80744         2.95.3, which dumps core when given __attribute__(()).  It also
80745         simplifies other tests, since we really don't want to bother with
80746         worrying about which ancient version of GCC supported what.
80747         Original problem reported by Yoann Vandoorselaere, with part of
80748         the fix suggested by Derek Price.
80749
80750 2005-09-24  Jim Meyering  <jim@meyering.net>
80751
80752         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80753         so we can once again use a positive bitfield width of 1 -- now we
80754         don't have to explain why we were using a bitfield width of 2.
80755
80756 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80759         and similarly for the other external symbols.  Problem reported
80760         by James Gallager.
80761
80762         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80763         bug reported by Jim Meyering.
80764
80765         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80767         not needed, since socklen is a prerequisite module.
80768
80769 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80770
80771         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80772         Problem reported by Eric Blake.
80773         (getaddrinfo): Initialize se so that it's not garbage.
80774         Redo internal storage allocation so that it doesn't make unportable
80775         assumptions about alignment.
80776         Fix a memory leak.
80777
80778         * lib/utimens.c (futimens): Use futimesat if available.
80779         Prefer it to futimes since it doesn't have the futimes bug.
80780
80781         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80782         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80783         Instead, declare a function that returns a pointer to an array,
80784         and use verify_type__ to declare the size of the array.
80785         Problem and germ of a solution reported by Bruno Haible.
80786         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80787         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80788
80789 2005-09-23  Jim Meyering  <jim@meyering.net>
80790
80791         Sync from coreutils.
80792         Correct build failure (socklen_t not defined) on at least
80793         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80794         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80795
80796 2005-09-23  Jim Meyering  <jim@meyering.net>
80797
80798         * modules/getaddrinfo (Depends-on): Add socklen.
80799
80800 2005-09-23  Bruno Haible  <bruno@clisp.org>
80801
80802         * tests/test-verify.c: New file.
80803
80804 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80805
80806         Sync from coreutils.
80807
80808         * modules/argmatch (Depends-on): Add verify.
80809         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80810         unistd-safer.
80811         * modules/save-cwd (Depends-on): Likewise.
80812
80813         * modules/openat (Files): Add lib/openat-die.c.
80814         (Depends-on): Remove error, exitfail.
80815         Add dirname.
80816
80817         * modules/verify: New file.
80818         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80819         with "verify" module.
80820
80821 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         Sync from coreutils.
80824
80825         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80826         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80827         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80828         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80829         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80830         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80831         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80832         Don't bother checking for string.h, stdlib.h, unistd.h.
80833         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80834         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80835         module's job.
80836         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80837         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80838
80839         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80840         (gl_GETDATE): Use it.
80841
80842         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80843
80844 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80845
80846         Sync from coreutils.
80847
80848         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80849         stat-time.h.
80850         * lib/argmatch.h: Include verify.h
80851         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80852         (ARGMATCH_ASSERT): Remove; unused.
80853         * lib/canonicalize.c: Assume STDC_HEADERS.
80854         * lib/exclude.c: Include "strcase.h".
80855         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80856         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80857         and stdio-safer.h.
80858         (getusershell): Call fopen, not fopen_safer.
80859         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80860         Do not include unistd-safer.h.
80861         (save_cwd): Don't call fd_safer; no longer needed
80862         now that we include fcntl--.h.
80863
80864         * lib/getdate.y (relative_time): New type.
80865         (RELATIVE_TIME_0): New constant.
80866         (parser_control): Use relative_time instead of doing it ourselves.
80867         (%union): Add new relative_time rel member.
80868         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80869         Now typeless.
80870         (relunit, relunit_snumber): Now of type rel.
80871         (zone, rel, relunit, get_date): Adjust to above changes.
80872
80873         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80874         Do not include unistd-safer.h.
80875         (getloadavg): Don't call fd_safer; no longer needed
80876         now that we include fcntl--.h.
80877
80878         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80879         (make_dir_parents): Treat ENOSYS like EEXIST.
80880
80881         Improve quality of diagnostics on restore_cwd failure.
80882         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80883         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80884         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80885         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80886         each time through the loop.  Do not diagnose restore_cwd failure;
80887         that is the caller's job (and perhaps the caller does not care).
80888
80889         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80890         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80891         If the file already exists but is not a directory, don't bother
80892         to try to make its parents.
80893         Close potential file descriptor leak if we can't chdir("/") (!).
80894         Don't always return true if chdir($PWD) fails; return true only
80895         if the requested action was done successfully (except for the
80896         chdir($PWD)).
80897         Don't log final directory unless we actually made it.
80898         Refactor to avoid duplicate code to fix up permissions.
80899         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80900
80901         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80902         to make it a bit faster and (I hope) clearer.
80903         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80904         Fix bug in formats like %2N.
80905
80906         * lib/verify.h: New file.
80907
80908 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80909
80910         Sync from coreutils.
80911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80912
80913 2005-09-22  Jim Meyering  <jim@meyering.net>
80914
80915         Sync from coreutils.
80916
80917         * m4/lstat.m4 (gl_FUNC_LSTAT):
80918         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80919         Remove obsolete comment.
80920         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80921         * m4/xstrtod.m4: Likewise.
80922
80923         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80924
80925 2005-09-22  Jim Meyering  <jim@meyering.net>
80926
80927         Sync from coreutils.
80928
80929         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80930
80931         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80932         the .tm_year member, since otherwise gcc-4.0 would now warn about
80933         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80934
80935         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80936         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80937
80938         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80939         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80940         when run in a time zone for which daylight savings time is in effect
80941         for the starting date.
80942
80943         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80944         stop us from restricting permissions of just-created absolute-named
80945         directories.
80946         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80947         to restore initial working directory.
80948         * lib/mkdir-p.c (make_dir_parents): New parameter:
80949         different_working_dir, to tell caller if/when we change the working
80950         directory and are unable to return to the initial one.
80951         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80952         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80953         `return false'.  This fixes a bug introduced on 2004-07-30.
80954
80955         * lib/openat.c (fdopendir): Be sure to close the supplied
80956         file descriptor before returning.  This makes our replacement
80957         implementation a little closer to Solaris's, where fdopendir
80958         ties the file descriptor to the returned DIR* pointer.
80959         * lib/openat.c (unlinkat): New function.
80960         * lib/openat.h (unlinkat): Add prototype.
80961         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80962         (openat_restore_fail): Rename from openat_restore_die.
80963         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80964
80965         Provide an alternative to exiting immediately upon save_cwd or
80966         restore_cwd failure.  Now, an application can arrange e.g.,
80967         to perform a longjump in that case.
80968         * lib/openat.c: Include dirname.h.
80969         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80970         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80971         and openat_restore_die rather than calling error directly.
80972         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80973
80974         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80975         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80976         define.
80977
80978         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80979         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80980                             int utc, int nanoseconds);
80981         Background:
80982         date should not have to allocate a megabyte of virtual memory to
80983         handle a format argument like +%1048575T.  When implemented with
80984         strftime, it must allocate such a buffer, use strftime to fill it
80985         in, print it, then free it.
80986         With fprintftime, it simply prints everything and exits.
80987         With no need for memory allocation, that's one fewer way to fail.
80988         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80989         optional field width, not before, so we accept %9:z, not %:9z.
80990         (my_strftime): Be sure to use L_('x') for literals.
80991
80992         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80993         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80994         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80995         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80996         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80997         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80998         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80999         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81000         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81001         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81002         * lib/xgethostname.c, lib/xreadlink.c:
81003         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81004
81005         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81006         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81007         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81008         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81009         and don't include <sys/file.h>).
81010
81011 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81012
81013         Sync from coreutils.
81014
81015         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81016         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81017         [!LDAV_DONE]: Avoid unused variable warning.
81018
81019 2005-09-21  Bruno Haible  <bruno@clisp.org>
81020
81021         * lib/unicodeio.h (unicode_to_mb): New declaration.
81022
81023 2005-09-20  Derek Price  <derek@ximbiot.com>
81024
81025         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81026         getaddrinfo.h.
81027
81028 2005-09-20  Bruno Haible  <bruno@clisp.org>
81029
81030         * gnulib-tool: Remove trailing slashes from the values specified for
81031         --source-base, --m4-base, --tests-base, --aux-dir.
81032         Suggested by Simon Josefsson <jas@extundo.com>.
81033
81034 2005-09-20  Bruno Haible  <bruno@clisp.org>
81035
81036         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81037         func_modules_to_filelist, func_import, func_create_testdir): Make all
81038         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81039         change when gnulib-tool is invoked in a different locale.
81040
81041 2005-09-19  Simon Josefsson  <jas@extundo.com>
81042
81043         * m4/socklen.m4: Fix typo.
81044
81045 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81046
81047         Use a consistent style for including <config.h>.
81048         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81049         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81050         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81051         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81052         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81053         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81054         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81055         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81056         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81057         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81058         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81059         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81060         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81061         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81062         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81063         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81064         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81065         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81066         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81067         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81068         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81069         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81070         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81071         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81072         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81073         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81074         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81075         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81076         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81077         lib/xstrtoumax.c, lib/yesno.c:
81078         Standardize inclusion of config.h.
81079         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81080         lib/inttostr.h:  Removed inclusion of config.h from header files.
81081         * lib/inttostr.c:  Adjusted in-tree users.
81082         * lib/timespec.h: Remove superfluous warning to include config.h.
81083         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81084         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81085         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81086         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81087         config.h with HAVE_CONFIG_H.
81088
81089 2005-09-19  Jim Meyering  <jim@meyering.net>
81090
81091         * modules/pathmax (License): Change to LGPL.
81092
81093 2005-09-19  Derek Price  <derek@ximbiot.com>
81094
81095         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81096
81097 2005-09-19  Bruno Haible  <bruno@clisp.org>
81098
81099         * gnulib-tool (import): Provide default for --tests-base.
81100
81101 2005-09-19  Bruno Haible  <bruno@clisp.org>
81102
81103         * doc/quote.texi: New file, extracted from gnulib.texi.
81104         * doc/ctime.texi: New file, extracted from gnulib.texi.
81105         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81106         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81107         * doc/gnulib.texi: Include them.
81108
81109 2005-09-18  Bruno Haible  <bruno@clisp.org>
81110
81111         Portability fix.
81112         * gnulib-tool (func_readlink): New function.
81113         (func_ln_if_changed): Use it.
81114
81115 2005-09-18  Bruno Haible  <bruno@clisp.org>
81116
81117         * gnulib-tool: Support --with-tests also with --import.
81118         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81119         (func_import): Use variables $testsbase and $inctests. Emit a
81120         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81121         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81122         SUBDIRS += $testsdir.
81123         (func_create_testdir): Update.
81124
81125 2005-09-18  Bruno Haible  <bruno@clisp.org>
81126
81127         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81128         instead of $dry_run.
81129         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81130         (func_ln_if_changed): Don't handle dry-run here.
81131         (func_import): In dry-run mode, detect more precisely which actions
81132         would be performed, and don't use "...ing" verbs.
81133
81134 2005-09-18  Bruno Haible  <bruno@clisp.org>
81135
81136         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81137         (func_import): Use join on two temporary files instead of three nested
81138         loops, in order to determine which files are new or old.
81139
81140 2005-09-18  Bruno Haible  <bruno@clisp.org>
81141
81142         * gnulib-tool (func_import): Comment out code that spits out the
81143         new files with --dry-run.
81144
81145 2005-09-18  Bruno Haible  <bruno@clisp.org>
81146
81147         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81148
81149 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81150
81151         * lib/stat-time.h: New file.
81152         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81153         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81154         in a different way.
81155         (timespec_cmp): New function.
81156         * lib/utimecmp.c: Include stat-time.h.
81157         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81158         members exist, not on the obsolescent ST_MTIM_NSEC.
81159         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81160
81161 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81164
81165 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * MODULES.html.sh (File system functions): Add stat-time.
81168         * modules/stat-time: New file.
81169         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81170         is now done in a different way, by the stat-time module.
81171         * modules/utimecmp (Depends-on): Add stat-time.
81172
81173 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         * m4/st_mtim.m4: Remove.  Superseded by...
81176         * m4/stat-time.m4: New file.
81177         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81178         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81179
81180 2005-09-15  Derek Price  <derek@ximbiot.com>
81181
81182         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81183
81184 2005-09-15  Derek Price  <derek@ximbiot.com>
81185
81186         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81187         * lib/regex_internal.c: Ditto, using this...
81188         (__GNUC_PREREQ): ...new macro.
81189         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81190         using...
81191         (__GNUC_PREREQ): ...this new macro.
81192
81193         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81194
81195 2005-09-15  Derek Price  <derek@ximbiot.com>
81196             Paul Eggert  <eggert@cs.ucla.edu>
81197
81198         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81199         changes, consolidating in...
81200         * lib/regex_internal.h: ...this file.
81201
81202 2005-09-13  Jim Meyering  <jim@meyering.net>
81203
81204         * lib/canon-host.c: Filter through gnu indent and reword comments
81205         slightly.
81206         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81207
81208 2005-09-13  Derek Price  <derek@ximbiot.com>
81209
81210         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81211         failure.
81212         Reported by Jim Meyering  <jim@meyering.net>.
81213
81214 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81215
81216         * lib/base64.c: Typo.
81217         (base64_encode): Put b64str in initialized data section.
81218
81219 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         Merge glibc and coreutils changes into gnulib, plus a few
81222         extra fixes.
81223         * lib/md5.c: Use #error rather than a string.
81224         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81225         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81226         (__attribute__): Define to empty for non recent-GCC.
81227         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81228         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81229         Renamed from their non-__ counterparts, with new macros replacing
81230         them if not _LIBC.  Add __THROW attribute.
81231         (rol): Remove.
81232         (struct md5_ctx): Align buffer if using GCC.
81233         * lib/sha1.h (struct sha1_ctx): Likewise.
81234         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81235         The old name was backwards.
81236         (NOTSWAP): Remove; not used.
81237         (rol): New macro, moved here from md5.h.
81238         (sha1_process_block): Remove a FIXME that doesn't make sense.
81239
81240 2005-09-12  Derek Price  <derek@ximbiot.com>
81241
81242         Return usable errors from canon-host.
81243         * lib/canon-host.h: New file.
81244         * lib/canon-host.c (canon_host): Wrap...
81245         (canon_host_r): ...this new function, which now relies exclusively on
81246         getaddrinfo.
81247         (ch_strerror): New function.
81248         (last_cherror): New global.
81249         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81250         interface.
81251         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81252         void *.
81253         (freeaddrinfo): Free ai->ai_canonname when set.
81254
81255 2005-09-12  Derek Price  <derek@ximbiot.com>
81256
81257         Make canon-host require getaddrinfo.
81258         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81259         AC_LIBSOURCE canon-host.h.  Call...
81260         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81261         gl_GETADDRINFO.
81262         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81263
81264 2005-09-12  Derek Price  <derek@ximbiot.com>
81265
81266         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81267         LGPL.
81268         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81269
81270 2005-09-12  Derek Price  <derek@ximbiot.com>
81271
81272         * lib/gai_strerror.c: Include config.h when available.  Include
81273         getaddrinfo.h before other headers to test interface.
81274         Reported by Larry Jones <lawrence.jones@ugs.com>.
81275
81276 2005-09-12  Derek Price  <derek@ximbiot.com>
81277             Paul Eggert  <eggert@cs.ucla.edu>
81278
81279         * modules/glob (Files): Add glob-libc.h.
81280
81281 2005-09-12  Derek Price  <derek@ximbiot.com>
81282             Paul Eggert  <eggert@cs.ucla.edu>
81283
81284         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81285         glob_.h, glob-libc.h.
81286         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81287
81288 2005-09-12  Derek Price  <derek@ximbiot.com>
81289             Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81292         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81293         protecting things that should be done only in gnulib contexts.
81294         * lib/glob_.h: New file, containing only the glob things needed for
81295         gnulib.
81296         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81297         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81298         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81299         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81300         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81301         and to respect the namespace rules better.
81302
81303 2005-09-08  Simon Josefsson  <jas@extundo.com>
81304
81305         * modules/socklen: New file.
81306
81307 2005-09-08  Simon Josefsson  <jas@extundo.com>
81308
81309         * m4/socklen.m4: New file.
81310
81311 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81312
81313         * modules/utimens (Files): Add m4/utimbuf.m4, since
81314         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81315         Reported by Sergey Poznyakoff.
81316
81317 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81318
81319         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81320         definitions, since that's the preferred style in glibc.
81321         Fix a minor spacing issue, and update copyright notice to match
81322         glibc's.
81323
81324 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81325
81326         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81327
81328 2005-09-06  Simon Josefsson  <jas@extundo.com>
81329
81330         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81331         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81332
81333 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81336         warning.
81337
81338 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81339
81340         * config/srclist.txt: Add glibc bug 1302.
81341
81342 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81343
81344         Change bitset word type from unsigned int to unsigned long int,
81345         as this has better performance on typical 64-bit hosts.
81346         Port bitset code to hosts with unusual word sizes.
81347         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81348         (build_collating_symbol):
81349         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81350         argument is a bitset.  This is merely a style issue, but it makes
81351         it clearer that an entire array is expected.
81352         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81353         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81354         Port to the case where bitset_word is not the same as unsigned int.
81355         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81356         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81357         Likewise.
81358         * lib/regexec.c (check_dst_limits_calc_pos_1,
81359         check_subexp_matching_top):
81360         (build_trtable, group_nodes_into_DFAstates):
81361         Likewise.
81362         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81363         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81364         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81365         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81366         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81367         * lib/regcomp.c (optimize_subexps, lower_subexp):
81368         Work even if bitset_word has holes in its bitwise representation.
81369         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81370         * lib/regexec.c (check_dst_limits_calc_pos_1,
81371         check_subexp_matching_top):
81372         Likewise.
81373         * lib/regex_internal.c (re_string_reconstruct):
81374         Don't assume UCHAR_MAX == 255.
81375         * lib/regex_internal.h (bitset_set_all): Likewise.
81376         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81377         All uses changed.
81378         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81379         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81380         All uses changed.
81381         (BITSET_WORD_MAX): New macro.
81382         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81383         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81384         (bitset_empty, bitset_copy):
81385         Prefer sizeof (bitset) to multiplying it out ourselves.
81386         (bitset_not_merge): Remove; unused.
81387         (bitset_contain): Return bool, not unsigned int with one bit on.
81388         All callers changed.
81389         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81390         alignment than re_node_set; do this by defining a new internal
81391         type struct dests_alloc and using it to allocate memory.
81392
81393 2005-09-05  Bruno Haible  <bruno@clisp.org>
81394
81395         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81396         links.
81397
81398 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81399
81400         * modules/size_max (Makefile.am): Add size_max.h
81401
81402 2005-09-04  Derek Price  <derek@ximbiot.com>
81403
81404         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81405
81406 2005-09-03  Simon Josefsson  <jas@extundo.com>
81407
81408         * gnulib-tool: Fix typo.
81409
81410 2005-09-03  Simon Josefsson  <jas@extundo.com>
81411
81412         * config/srclist.txt: Add glibc bug 1293.
81413
81414 2005-09-03  Derek Price  <derek@ximbiot.com>
81415
81416         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81417         From Larry Jones <lawrence.jones@ugs.com>.
81418
81419 2005-09-02  Simon Josefsson  <jas@extundo.com>
81420
81421         * modules/socklen: New file.
81422
81423 2005-09-02  Simon Josefsson  <jas@extundo.com>
81424
81425         * modules/havelib: New module.
81426
81427         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81428         Use havelib.
81429
81430 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81431
81432         Check for arithmetic overflow when calculating sizes, to prevent
81433         some buffer-overflow issues.  These patches are conservative, in the
81434         sense that when I couldn't determine whether an overflow was possible,
81435         I inserted a run-time check.
81436         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81437         macros.
81438         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81439         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81440         (re_xnrealloc, re_x2nrealloc): New inline functions.
81441         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81442         parse_bracket_exp):
81443         (build_equiv_class, build_charclass): Check for arithmetic overflow
81444         in size expression calculations.
81445         * lib/regex_internal.c (re_string_realloc_buffers):
81446         (build_wcs_upper_buffer, re_node_set_add_intersect):
81447         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81448         (re_dfa_add_node, register_state): Likewise.
81449         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81450         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81451         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81452         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81453
81454 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81455
81456         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81457         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81458
81459 2005-09-02  Bruno Haible  <bruno@clisp.org>
81460
81461         Support for lib vs. lib64 distinction on biarch platforms.
81462         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81463         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81464         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81465
81466 2005-09-02  Bruno Haible  <bruno@clisp.org>
81467
81468         * gnulib-tool (import): In the other first-use case, provide defaults
81469         as well.
81470
81471 2005-09-02  Bruno Haible  <bruno@clisp.org>
81472
81473         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81474         patches not yet found in the latest gettext release.
81475
81476 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81477
81478         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81479         to avoid a collision with bits/local_lim.h in glibc.
81480         All uses changed.  Problem reported by Dmitry V. Levin in
81481         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81482
81483         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81484         bugs in int versus size_t comparisons.
81485         (re_string_context_at): Fix bug where the code assumed that
81486         Idx is signed.
81487
81488         Use bool where appropriate.
81489         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81490         All callers changed.
81491         (calc_eclosure_iter): Likewise, for ROOT arg.
81492         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81493         (build_charclass_op): Likewise, for NON_MATCH arg.
81494         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81495         (re_string_construct_common): Likewise, for ICASE arg.
81496         * lib/regexec.c (re_search_2_stub, re_search_stub):
81497         Likewise, for RET_LEN arg.
81498         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81499         (set_regs): Likewise, for FL_BACKTRACK arg.
81500         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81501         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81502         (calc_eclosure_iter, parse_bracket_exp):
81503         Use bool for internal variables that are booleans.
81504         * lib/regexec.c (re_search_internal, check_matching,
81505         proceed_next_node):
81506         (set_regs, build_sifted_states, sift_states_bkref):
81507         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81508         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81509         (find_collation_sequence_value):
81510         Likewise.
81511         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81512         (re_node_set_compare):
81513         Return bool, not int. All callers changed.
81514         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81515         (build_trtable, check_node_accept): Likewise.
81516         * lib/regex_internal.h: Include stdbool.h.
81517
81518         Fix bugs uncovered when converting to bool.
81519         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81520         failure instead of charging ahead blindly.
81521         * lib/regex_internal.c (register_state): Likewise.
81522         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81523         for freeing internal storage.
81524         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81525         bitset pieces used as boolean, to avoid undefined behavior
81526         on hosts that do int overflow checking.
81527
81528 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81529
81530         * config/srclist.txt: Add glibc bugs 1285-1287.
81531
81532 2005-09-01  Jim Meyering  <jim@meyering.net>
81533
81534         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81535         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81536         Require gl_STAT_MACROS, too.
81537
81538 2005-09-01  Bruno Haible  <bruno@clisp.org>
81539
81540         * gnulib-tool (import): In the first-use case, provide defaults.
81541
81542 2005-09-01  Bruno Haible  <bruno@clisp.org>
81543
81544         * gnulib-tool (func_import): Remove the .tmp files.
81545
81546 2005-09-01  Bruno Haible  <bruno@clisp.org>
81547
81548         * gnulib-tool (func_import): Fix handling of symbolic links.
81549
81550 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81551
81552         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81553         old glibc regex code mishandles strings longer than 2**31 bytes.
81554         This patch fixes this when the regex code is used in gnulib
81555         (i.e., outside glibc).
81556
81557         This patch should not affect the use of the regex code inside
81558         glibc.  No doubt this problem also needs to be handled for glibc
81559         as well, but the result will be an incompatible change to the
81560         glibc ABI, and the old ABI will have to be supported too.  That
81561         can be the the subject for another patch.
81562
81563         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81564         governing whether the rest of this patch is active.  By default,
81565         the macro is disabled and the patch has no effect.
81566         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81567         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81568         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81569         (re_match_2, re_set_registers): Use the new types.
81570         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81571         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81572         New macros.
81573         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81574         (re_string_context_at, bin_tree_t, re_dfastate_t):
81575         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81576         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81577         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81578         (re_string_char_size_at, re_string_wchar_at):
81579         (re_string_elem_size_at):
81580         Use the new types and macros to port to 64-bit hosts.
81581         Use unsigned types for internal values, so that the code
81582         mostly works even for arrays larger than SSIZE_MAX.
81583         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81584         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81585         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81586         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81587         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81588         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81589         (calc_inveclosure, parse_dup_op, build_range_exp):
81590         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81591         (fetch_number, create_token_tree, mark_opt_subexp):
81592         Likewise.
81593         * lib/regex_internal.c (re_string_construct_common,
81594         create_ci_newstate):
81595         (create_cd_newstate, re_string_allocate, re_string_construct):
81596         (re_string_realloc_buffers, build_wcs_upper_buffer):
81597         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81598         (re_string_reconstruct, re_string_peek_byte_case):
81599         (re_string_fetch_byte_case, re_string_context_at):
81600         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81601         (re_node_set_init_copy, re_node_set_add_intersect):
81602         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81603         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81604         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81605         (re_acquire_state, re_acquire_state_context, register_state):
81606         Likewise.
81607         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81608         search_cur_bkref_entry):
81609         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81610         (re_search_internal, re_search_2_stub, re_search_stub)
81611         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81612         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81613         (update_cur_sifted_state, check_dst_limits):
81614         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81615         (check_subexp_limits, sift_states_bkref, merge_state_array):
81616         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81617         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81618         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81619         (expand_bkref_cache, check_node_accept_bytes):
81620         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81621         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81622         (acquire_init_state_context, check_halt_node_context):
81623         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81624         (sift_states_backward, clean_state_log_if_needed):
81625         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81626         (find_recover_state, transit_state_sb, transit_state_mb):
81627         (transit_state_bkref, build_trtable, match_ctx_clean):
81628         Likewise.
81629         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81630         to work around an assumption that REG_MISSING is negative.
81631
81632         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81633         (seek_collating_symbol_entry) [defined _LIBC]:
81634         (lookup_collation_sequence_value) [defined _LIBC]:
81635         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81636         Use prototypes rather than old-style function definitions.
81637         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81638         (transit_state_sb) [0]:
81639         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81640
81641         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81642         rm_eo.
81643
81644         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81645         (optimize_subexps, lower_subexp):
81646         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81647         since the signed shift might overflow.  Use 1u<<31 instead.
81648         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81649         Likewise.
81650         * lib/regexec.c (check_dst_limits_calc_pos_1,
81651         check_subexp_matching_top): Likewise.
81652
81653         * lib/regcomp.c (optimize_subexps, lower_subexp):
81654         Use CHAR_BIT rather than 8, for clarity.
81655         * lib/regexec.c (check_dst_limits_calc_pos_1):
81656         (check_subexp_matching_top): Likewise.
81657         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81658         have to worry about portability issues when shifting it left.
81659         Remove no-longer-needed test for table_size > 0.
81660         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81661         in a word, as the resulting behavior is undefined.
81662         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81663         in one case, a <= should have been an <, and in another case the
81664         whole test was missing.
81665         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81666         the standard name CHAR_BIT.
81667         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81668         this is not true on one's complement and signed-magnitude hosts.
81669
81670         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81671         next_last_offset.
81672         (struct re_dfa_t): Remove unused member states_alloc.
81673         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81674
81675 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81676
81677         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81678         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81679         and large-file glibc and in 32-bit large-file Solaris.
81680
81681 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81684         lengths fit in regoff_t; this isn't true if regoff_t is the same
81685         width as size_t.
81686         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81687         (= START + RANGE) instead of RANGE.  This avoids overflow
81688         problems when regoff_t is the same width as size_t.
81689         All callers changed.
81690         (re_search_2_stub): Check for overflow when adding the
81691         sizes of the two strings.
81692         (re_search_stub): Check for overflow when adding START
81693         to RANGE; if it occurs, substitute the extreme value.
81694
81695 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81696
81697         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81698
81699 2005-08-31  Jim Meyering  <jim@meyering.net>
81700
81701         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81702         a pointer-to-const.
81703         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81704         (register_state): Likewise.
81705         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81706         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81707         (group_nodes_into_DFAstates): Likewise.
81708
81709 2005-08-31  Jim Meyering  <jim@meyering.net>
81710
81711         * check-module: Add a FIXME comment.
81712
81713 2005-08-31  Eric Blake  <ebb9@byu.net>
81714
81715         * modules/unistd-safer (Files): Add unistd--.h.
81716         * modules/stdio-safer (Files): Add stdio--.h.
81717
81718 2005-08-31  Derek Price  <derek@ximbiot.com>
81719
81720         * lib/getdelim.c (getdelim): Return EOF on EOF.
81721         Reported by Larry Jones <lawrence.jones@ugs.com>.
81722
81723 2005-08-31  Bruno Haible  <bruno@clisp.org>
81724
81725         Avoid unnecessary diffs in the generated lib/Makefile.am.
81726         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81727         the generated files.
81728         (func_import): Don't set cmd.
81729
81730 2005-08-31  Bruno Haible  <bruno@clisp.org>
81731
81732         * lib/strstr.c: Include <stddef.h>, for NULL.
81733         * lib/strcasestr.c: Likewise.
81734         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81735
81736 2005-08-31  Bruno Haible  <bruno@clisp.org>
81737
81738         * gnulib-tool: New option --macro-prefix.
81739         (func_import): Use macro_prefix.
81740         (import): Handle option --macro-prefix.
81741
81742 2005-08-31  Bruno Haible  <bruno@clisp.org>
81743
81744         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81745         Also use new variables cached_lgpl, cached_libtool.
81746
81747 2005-08-31  Bruno Haible  <bruno@clisp.org>
81748
81749         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81750         always instantiating them.
81751
81752 2005-08-31  Bruno Haible  <bruno@clisp.org>
81753
81754         * gnulib-tool (func_import): Read the previous cached settings
81755         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81756         earlier added by gnulib but are now dropped. Warn when a gnulib file
81757         overwrites a non-gnulib file.
81758
81759 2005-08-31  Bruno Haible  <bruno@clisp.org>
81760
81761         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81762         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81763         projects that don't keep autogenerated files in CVS. Put into
81764         actioncmd only the specified modules, not the transitive closure.
81765
81766 2005-08-31  Bruno Haible  <bruno@clisp.org>
81767
81768         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81769         Create directories that shall be filled.
81770         (import): Don't look for gl_* macros in configure.ac. Recurse across
81771         all directories containing a gnulib-cache.m4 files, if meaningful.
81772
81773 2005-08-31  Bruno Haible  <bruno@clisp.org>
81774
81775         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81776         (import): Set seen_libtool when we see gl_LIBTOOL.
81777
81778 2005-08-31  Bruno Haible  <bruno@clisp.org>
81779
81780         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81781         declaration macro definitions from generated gnulib.m4.
81782
81783 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81784
81785         * lib/iconvme.h: Add prototype for iconv_alloc.
81786
81787 2005-08-29  Simon Josefsson  <jas@extundo.com>
81788
81789         * lib/iconvme.c: Fix errno.
81790
81791 2005-08-29  Bruno Haible  <bruno@clisp.org>
81792
81793         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81794         that it works when the directory contains spaces.
81795
81796 2005-08-29  Bruno Haible  <bruno@clisp.org>
81797
81798         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81799
81800 2005-08-29  Bruno Haible  <bruno@clisp.org>
81801
81802         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81803         Emit more advice.
81804
81805 2005-08-29  Bruno Haible  <bruno@clisp.org>
81806         and Stepan Kasal  <kasal@ucw.cz>
81807
81808         * check-module: If more parameters are given, check each of them
81809         separately; add more exceptions, as noted by Jim Meyering.
81810         (check_module): New procedure.
81811         (%exempt_header): Now contains all exceptions.
81812
81813 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81814
81815         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81816
81817 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81818
81819         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81820
81821 2005-08-28  Bruno Haible  <bruno@clisp.org>
81822
81823         * m4/gnulib-tool.m4: New file.
81824
81825 2005-08-27  Jim Meyering  <jim@meyering.net>
81826
81827         * modules/unistd-safer (Files): Add pipe-safer.c.
81828         * modules/fcntl-safer (Files): Add creat-safer.c.
81829
81830 2005-08-27  Jim Meyering  <jim@meyering.net>
81831
81832         * m4/stdlib-safer.m4: New file.  From coreutils.
81833         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81834         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81835         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81836         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81837         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81838
81839 2005-08-27  Jim Meyering  <jim@meyering.net>
81840
81841         * lib/fopen-safer.c: Merge minor changes from coreutils.
81842         * lib/dup-safer.c: Likewise.
81843         * lib/fd-safer.c: Likewise.
81844
81845         Merge from coreutils.
81846         * lib/stdio--.h: New file.
81847         * lib/stdlib--.h: New file.
81848         * lib/mkstemp-safer.c: New file.
81849
81850         GNU tar needs these.
81851         * lib/pipe-safer.c: New file.
81852         * lib/creat-safer.c: New file.
81853         * lib/fcntl--.h (creat): Define to creat_safer.
81854         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81855         * lib/unistd--.h (pipe): Define to pipe_safer.
81856         * lib/unistd-safer.h: Declare pipe_safer.
81857
81858 2005-08-26  Simon Josefsson  <jas@extundo.com>
81859
81860         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81861         Haible <bruno@clisp.org>.
81862
81863 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         * lib/regex_internal.h: Remove all references to
81866         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81867         or better.
81868         (bitset_not, bitset_merge, bitset_not_merge):
81869         (bitset_mask, re_string_allocate, re_string_construct):
81870         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81871         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81872         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81873         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81874         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81875         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81876         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81877         (re_acquire_state_context):
81878         Remove unnecessary forward decls.
81879         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81880         Put __attribute at function definition,
81881         now that the function decl has been removed.
81882         * lib/regex_internal.c (re_string_peek_byte_case):
81883         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81884         Likewise.
81885
81886 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81887
81888         * m4/regex.m4: Add AC_PREREQ(2.50).
81889         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81890
81891 2005-08-25  Simon Josefsson  <jas@extundo.com>
81892
81893         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81894         __fsetlocking.
81895
81896 2005-08-25  Simon Josefsson  <jas@extundo.com>
81897
81898         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81899         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81900         GLIBC specific code.
81901
81902 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81903
81904         Make regex safe for g++.  This fixes one real bug (an "err"
81905         that should have been "*err").  g++ problem reported by
81906         Sam Steingold.
81907         * lib/regex_internal.h (re_calloc): New macro, consistent with
81908         re_malloc etc.  All callers of calloc changed to use re_calloc.
81909         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81910         not int.  All callers changed.
81911         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81912         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81913         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81914         (find_recover_state): Change "err" to "*err"; this fixes what
81915         appears to be a real bug.
81916         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81917         versus int.
81918
81919 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81920
81921         * modules/regex (Depends-on): Add malloc, since the code
81922         assumes that !malloc(0) means failure.
81923
81924 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81925
81926         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81927
81928         alloca modernization/simplification for regex.
81929         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81930         needs to be at the start of the file, and can be moved into
81931         regex_internal.h and simplified.
81932         * lib/regex_internal.h: Include <alloca.h>.
81933         (__libc_use_alloca) [!defined _LIBC]: New macro.
81934         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81935         now works outside glibc.
81936
81937 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81938
81939         * config/srclist.txt: Add glibc bugs 1241, 1245.
81940
81941 2005-08-25  Jim Meyering  <jim@meyering.net>
81942
81943         * lib/open-safer.c: Include <config.h>.
81944         Otherwise, we'd lose LARGEFILE support in any file using
81945         e.g. "fcntl--.h"
81946
81947 2005-08-25  Bruno Haible  <bruno@clisp.org>
81948
81949         * m4/minmax.m4: Require autoconf 2.52.
81950         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81951         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81952         alternatives of translit over the alphabet.
81953         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81954
81955 2005-08-24  Simon Josefsson  <jas@extundo.com>
81956
81957         * tests/test-getpass.c: New file.
81958
81959 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81960
81961         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81962         for GNU regex features.
81963
81964 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81967         * lib/regex.h (regerror): Likewise.
81968
81969         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81970         requires this.  (The code never needed it.)
81971
81972         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81973         All uses of recently-renamed identifiers changed to use the new,
81974         POSIX-compliant names.  The code will build and run just fine
81975         without these changes, but it's better to eat our own dog food
81976         and use the standard-conforming names.
81977
81978         * lib/regex.h: Fix a multitude of POSIX name space violations.
81979         These changes have an effect only for programs that define
81980         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81981         do not change anything for programs compiled in the normal way.
81982         Also, there is no effect on the ABI.
81983
81984         (_REGEX_SOURCE): New macro.
81985         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81986         defined and _GNU_SOURCE is not; this fixes a name space violation.
81987
81988         Rename the following macros to obey POSIX requirements.
81989         The old names are still visible as macros if _REGEX_SOURCE is defined.
81990         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81991         RE_BACKSLASH_ESCAPE_IN_LISTS.
81992         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81993         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81994         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81995         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81996         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81997         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81998         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81999         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82000         (REG_INTERVALS): renamed from RE_INTERVALS.
82001         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82002         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82003         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82004         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82005         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82006         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82007         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82008         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82009         RE_UNMATCHED_RIGHT_PAREN_ORD.
82010         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82011         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82012         (REG_DEBUG): renamed from RE_DEBUG.
82013         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82014         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82015         unusual, since we can't clash with the POSIX REG_ICASE.
82016         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82017         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82018         (REG_NO_SUB): renamed from RE_NO_SUB.
82019         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82020         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82021         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82022         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82023         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82024         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82025         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82026         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82027         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82028         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82029         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82030         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82031         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82032         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82033         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82034         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82035         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82036         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82037         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82038         (REG_FIXED): Renamed from REGS_FIXED.
82039         (REG_NREGS): Renamed from RE_NREGS.
82040
82041         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82042         of other REG_* macros, since POSIX says the user is allowed to
82043         #undef these macros selectively.
82044
82045         (reg_errcode_t): Update comment stating what other tables need
82046         to be consistent.
82047
82048         Rename the following enum values to obey POSIX requirements.
82049         The old names are still visible as macros.
82050         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82051         is not defined, since GNU is supposed to be a superset of POSIX as
82052         much as possible, and since we want reg_errcode_t to be a signed
82053         type for implementation consistency.
82054         (_REG_NOERROR): Renamed from REG_NOERROR.
82055         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82056         (_REG_BADPAT): Renamed from REG_BADPAT.
82057         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82058         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82059         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82060         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82061         (_REG_EBRACK): Renamed from REG_EBRACK.
82062         (_REG_EPAREN): Renamed from REG_EPAREN.
82063         (_REG_EBRACE): Renamed from REG_EBRACE.
82064         (_REG_BADBR): Renamed from REG_BADBR.
82065         (_REG_ERANGE): Renamed from REG_ERANGE.
82066         (_REG_ESPACE): Renamed from REG_ESPACE.
82067         (_REG_BADRPT): Renamed from REG_BADRPT.
82068         (_REG_EEND): Renamed from REG_EEND.
82069         (_REG_ESIZE): Renamed from REG_ESIZE.
82070         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82071         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82072         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82073         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82074         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82075
82076         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82077         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82078         changed.  But support the old name if the new one is not defined
82079         and if _REGEX_SOURCE.
82080
82081         Change the following member names in struct re_pattern_buffer.
82082         The old names are still supported if !_REGEX_SOURCE.
82083         The new names are always supported, regardless of _REGEX_SOURCE.
82084         (re_buffer): Renamed from buffer.
82085         (re_allocated): Renamed from allocated.
82086         (re_used): Renamed from used.
82087         (re_syntax): Renamed from syntax.
82088         (re_fastmap): Renamed from fastmap.
82089         (re_translate): Renamed from translate.
82090         (re_can_be_null): Renamed from can_be_null.
82091         (re_regs_allocated): Renamed from regs_allocated.
82092         (re_fastmap_accurate): Renamed from fastmap_accurate.
82093         (re_no_sub): Renamed from no_sub.
82094         (re_not_bol): Renamed from not_bol.
82095         (re_not_eol): Renamed from not_eol.
82096         (re_newline_anchor): Renamed from newline_anchor.
82097
82098         Change the following member names in struct re_registers.
82099         The old names are still supported if !_REGEX_SOURCE.
82100         The new names are always supported, regardless of _REGEX_SOURCE.
82101         (rm_num_regs): Renamed from num_regs.
82102         (rm_start): Renamed from start.
82103         (rm_end): Renamed from end.
82104
82105         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82106         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82107         Prepend __ to parameter names.
82108
82109         Undo yesterday's changes.
82110
82111 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82112
82113         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82114         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82115         lib/regex.c.
82116
82117 2005-08-24  Jim Meyering  <jim@meyering.net>
82118
82119         Sync from coreutils.
82120         * m4/fcntl-safer.m4: New file.
82121
82122         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82123         and object files for this module.
82124
82125 2005-08-24  Jim Meyering  <jim@meyering.net>
82126
82127         Sync from coreutils.
82128         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82129
82130 2005-08-24  Jim Meyering  <jim@meyering.net>
82131
82132         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82133         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82134
82135 2005-08-24  Jim Meyering  <jim@meyering.net>
82136
82137         * modules/fcntl-safer: New module.
82138         * modules/fts (Depends-on): Add fcntl-safer.
82139         * MODULES.html.sh (File descriptor based Input/Output):
82140         Add fcntl-safer.
82141
82142 2005-08-24  Bruno Haible  <bruno@clisp.org>
82143
82144         Support for unit test modules.
82145         * modules/README: Mention tests modules.
82146         * modules/TEMPLATE-TESTS: New file.
82147         * gnulib-tool: New options --extract-tests-module, --with-tests and
82148         --tests-base (unused for the moment).
82149         (testsbase, inctests): New variables.
82150         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82151         (func_verify_module): Exclude TEMPLATE-TESTS.
82152         (func_verify_nontests_module, func_verify_tests_module): New functions.
82153         (func_get_dependencies): Add implicit dependency for tests modules.
82154         (func_get_tests_module): New function.
82155         (func_modules_transitive_closure): When --with-tests was specified,
82156         include the unit tests as well, unless explicitly avoided.
82157         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82158         (func_emit_tests_Makefile_am): New function.
82159         (func_create_testdir): When --with-tests was specified, emit a
82160         tests/ directory.
82161         * MODULES.html.sh (Future developments): Update.
82162
82163 2005-08-24  Bruno Haible  <bruno@clisp.org>
82164
82165         * modules/tls-tests: New file.
82166         * tests/test-tls.c: New file, from GNU gettext.
82167
82168 2005-08-24  Bruno Haible  <bruno@clisp.org>
82169
82170         * modules/lock-tests: New file.
82171         * tests/test-lock.c: New file, from GNU gettext.
82172
82173 2005-08-24  Bruno Haible  <bruno@clisp.org>
82174
82175         * lib/lock.h: Add multiple inclusion guard.
82176         * lib/tls.h: Add multiple inclusion guard.
82177
82178 2005-08-24  Bruno Haible  <bruno@clisp.org>
82179
82180         * gnulib-tool: Add support for the --aux-dir option to
82181         --create-testdir, --create-megatestdir, --test, --megatest.
82182         (func_create_testdir, func_create_megatestdir): Optionally emit a
82183         AC_CONFIG_AUX_DIR directive.
82184         (create-testdir, create-megatestdir, test, megatest): Provide a
82185         default value for $auxdir.
82186
82187 2005-08-24  Bruno Haible  <bruno@clisp.org>
82188
82189         * gnulib-tool (import): Use compound statement instead of subshell
82190         where possible.
82191
82192 2005-08-24  Bruno Haible  <bruno@clisp.org>
82193
82194         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82195
82196 2005-08-24  Bruno Haible  <bruno@clisp.org>
82197
82198         * gnulib-tool (func_version): Update.
82199
82200 2005-08-24  Bruno Haible  <bruno@clisp.org>
82201
82202         * gnulib-tool (func_import, func_create_testdir,
82203         func_create_megatestdir): Quote all autoconf macro arguments.
82204
82205 2005-08-24  Bruno Haible  <bruno@clisp.org>
82206
82207         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82208         option --force, because --force causes the aclocal.m4 of each
82209         subdirectory to be newer than the corresponding config.h.in.
82210
82211 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82212
82213         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82214         All contents moved to gl_REGEX.
82215         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82216         assume that it does.
82217
82218 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82219
82220         * lib/regex.h (REG_NOSYS)
82221         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82222         Define, since POSIX requires it as of 2001.
82223         (_REG_ENOSYS)
82224         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82225         New private symbol, used to keep the enum signed in all cases.
82226         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82227         Youngman in
82228         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82229
82230         * lib/regex_internal.c (re_string_skip_chars, register_state):
82231         (calc_state_hash):
82232         Remove forward decls; no longer needed now that we use prototypes.
82233         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82234         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82235         (clean_state_log_if_needed): Likewise.
82236
82237 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82238
82239         * config/srclist.txt: Add glibc bugs 1231-1233.
82240
82241 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82242
82243         Fix problems reported by Sam Steingold in
82244         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82245         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82246         assumed that reg_errcode_t is a signed type, which is not
82247         necessarily true if _XOPEN_SOURCE is not defined.
82248         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82249         since some compilers warn about it otherwise.
82250
82251 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82252
82253         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82254         (init_word_char, create_initial_state, duplicate_node_closure):
82255         (fetch_token, peek_token_bracket, build_range_exp):
82256         (build_collating_symbol): Remove forward decls; no longer needed
82257         now that we use prototypes.
82258
82259         * lib/regcomp.c:
82260         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82261         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82262         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82263         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82264         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82265         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82266         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82267         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82268         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82269         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82270         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82271         (build_charclass, build_charclass_op, fetch_number, create_tree):
82272         (create_token_tree, mark_opt_subexp, duplicate_tree):
82273         Use prototypes rather than old-style definitions.
82274
82275         * lib/regex_internal.c:
82276         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82277         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82278         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82279         (re_string_reconstruct, re_string_peek_byte_case):
82280         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82281         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82282         (re_node_set_init_copy, re_node_set_add_intersect):
82283         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82284         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82285         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82286         (re_acquire_state, re_acquire_state_context, register_state):
82287         (create_ci_newstate, create_cd_newstate, free_state):
82288         Likewise.
82289         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82290         re_search_2):
82291         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82292         (re_search_internal, prune_impossible_nodes):
82293         (acquire_init_state_context, check_matching, static):
82294         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82295         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82296         (update_regs, sift_states_backward, build_sifted_states):
82297         (clean_state_log_if_needed, merge_state_array):
82298         (update_cur_sifted_state, add_epsilon_src_nodes):
82299         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82300         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82301         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82302         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82303         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82304         (check_arrival, check_arrival_add_next_nodes):
82305         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82306         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82307         (check_node_accept_bytes, check_node_accept, extend_buffers):
82308         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82309         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82310         (sift_ctx_init):
82311         Likewise.
82312
82313         * lib/regex_internal.h:
82314         (re_string_allocate, re_string_construct, re_string_reconstruct):
82315         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82316         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82317         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82318         (re_string_context_at, re_string_peek_byte_case):
82319         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82320         is defined, since we now use prototypes always.
82321
82322         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82323         C89 or better.  All uses removed.
82324
82325 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82326
82327         * config/srclist.txt: Add glibc bugs 1220-1227.
82328
82329 2005-08-20  Jim Meyering  <jim@meyering.net>
82330
82331         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82332         of unused local, dfa.
82333
82334 2005-08-20  Bruno Haible  <bruno@clisp.org>
82335
82336         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82337
82338 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82341         (re_node_set_insert_last, re_dfa_add_node):
82342         Rename local variables to avoid GCC shadowing warnings.
82343
82344 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82345
82346         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82347         [defined lint]: Suppress bogus uninitialized-variable warnings.
82348
82349         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82350         and let the caller return REG_ESPACE if out of space.  This
82351         removes an uninitialied-variable warning with GCC 4.0.1, and also
82352         avoids taking the address of a local variable.  All callers
82353         changed.
82354
82355 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82356
82357         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82358         $LIBCSRC/posix/regexec.c.
82359         Add glibc bug 1217 for regcomp.c.
82360
82361 2005-08-19  Jim Meyering  <jim@meyering.net>
82362
82363         * lib/regexec.c (proceed_next_node): Redo local variables to
82364         avoid GCC shadowing warnings.
82365
82366 2005-08-18  Bruno Haible  <bruno@clisp.org>
82367
82368         * lib/strstr.c (strstr): Fix return value in multibyte case.
82369         * lib/strcasestr.c (strcasestr): Likewise.
82370
82371 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82372
82373         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82374
82375 2005-08-17  Jim Meyering  <jim@meyering.net>
82376
82377         Make the %s format (seconds since the epoch) work for a negative
82378         number and when used with a zero-padded field width, e.g. %015s.
82379
82380         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82381         label so that it precedes the code to set `digits'.  Otherwise,
82382         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82383         print `00-22'.  Now, it prints `-0022', as it should.
82384
82385 2005-08-17  Bruno Haible  <bruno@clisp.org>
82386
82387         * modules/strstr (Files): Add m4/mbrtowc.m4.
82388         (Depends-on): Add mbuiter.
82389
82390 2005-08-17  Bruno Haible  <bruno@clisp.org>
82391
82392         * modules/strcasestr: New file.
82393         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82394         strcasestr.
82395
82396 2005-08-17  Bruno Haible  <bruno@clisp.org>
82397
82398         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82399
82400 2005-08-17  Bruno Haible  <bruno@clisp.org>
82401
82402         * modules/mbuiter: New file.
82403         * MODULES.html.sh (Extended multibyte and wide character utilities):
82404         Add mbuiter.
82405
82406 2005-08-17  Bruno Haible  <bruno@clisp.org>
82407
82408         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82409         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82410
82411 2005-08-17  Bruno Haible  <bruno@clisp.org>
82412
82413         * m4/strcasestr.m4: New file.
82414
82415 2005-08-17  Bruno Haible  <bruno@clisp.org>
82416
82417         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82418         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82419
82420 2005-08-17  Bruno Haible  <bruno@clisp.org>
82421
82422         * lib/strcasestr.h: New file.
82423         * lib/strcasestr.c: New file.
82424
82425 2005-08-17  Bruno Haible  <bruno@clisp.org>
82426
82427         * lib/strcasecmp.c: Use mbuiter.h.
82428
82429 2005-08-17  Bruno Haible  <bruno@clisp.org>
82430
82431         * lib/mbuiter.h: New file.
82432
82433 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82434
82435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82436         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82437         and gl_GETOPT are both invoked via different paths (as happens
82438         with GNU tar CVS because it uses both argp and getopt), the former
82439         wins.
82440
82441 2005-08-16  Bruno Haible  <bruno@clisp.org>
82442
82443         * modules/tls: New file.
82444         * MODULES.html.sh (Multithreading): Add tls.
82445
82446 2005-08-16  Bruno Haible  <bruno@clisp.org>
82447
82448         * modules/strnlen1: New file.
82449         * MODULES.html.sh (String handling): Add strnlen1.
82450
82451 2005-08-16  Bruno Haible  <bruno@clisp.org>
82452
82453         * modules/strcase (Files): Add m4/mbrtowc.m4.
82454         (Depends-on): Add strnlen1, mbchar.
82455
82456 2005-08-16  Bruno Haible  <bruno@clisp.org>
82457
82458         * modules/mbiter: New file.
82459         * MODULES.html.sh (Extended multibyte and wide character utilities):
82460         Add mbiter.
82461
82462 2005-08-16  Bruno Haible  <bruno@clisp.org>
82463
82464         * modules/mbfile: New file.
82465         * MODULES.html.sh (Extended multibyte and wide character utilities):
82466         Add mbfile.
82467
82468 2005-08-16  Bruno Haible  <bruno@clisp.org>
82469
82470         * modules/mbchar: New file.
82471         * MODULES.html.sh (Extended multibyte and wide character utilities):
82472         New section.
82473
82474 2005-08-16  Bruno Haible  <bruno@clisp.org>
82475
82476         * m4/tls.m4: New file, from GNU gettext.
82477
82478 2005-08-16  Bruno Haible  <bruno@clisp.org>
82479
82480         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82481         always.
82482         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82483
82484 2005-08-16  Bruno Haible  <bruno@clisp.org>
82485
82486         * m4/mbiter.m4: New file.
82487
82488 2005-08-16  Bruno Haible  <bruno@clisp.org>
82489
82490         * m4/mbfile.m4: New file.
82491
82492 2005-08-16  Bruno Haible  <bruno@clisp.org>
82493
82494         * m4/mbchar.m4: New file.
82495
82496 2005-08-16  Bruno Haible  <bruno@clisp.org>
82497
82498         * lib/tls.h: New file, from GNU gettext.
82499         * lib/tls.c: New file, from GNU gettext.
82500
82501 2005-08-16  Bruno Haible  <bruno@clisp.org>
82502
82503         * lib/strnlen1.h: New file.
82504         * lib/strnlen1.c: New file.
82505
82506 2005-08-16  Bruno Haible  <bruno@clisp.org>
82507
82508         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82509         (mbi_init): Update.
82510         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82511         NUL byte, not after it.
82512
82513 2005-08-16  Bruno Haible  <bruno@clisp.org>
82514
82515         * lib/strcase.h (strcasecmp): Add note in comments.
82516         * lib/strncasecmp.c: Use code from strcasecmp.c.
82517         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82518         (strcasecmp): Work correctly in multibyte locales.
82519
82520 2005-08-16  Bruno Haible  <bruno@clisp.org>
82521
82522         * lib/mbiter.h: New file.
82523
82524 2005-08-16  Bruno Haible  <bruno@clisp.org>
82525
82526         * lib/mbfile.h: New file.
82527
82528 2005-08-16  Bruno Haible  <bruno@clisp.org>
82529
82530         * lib/mbchar.h: New file.
82531         * lib/mbchar.c: New file.
82532
82533 2005-08-16  Bruno Haible  <bruno@clisp.org>
82534
82535         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82536         the valid ones. Makes the comparison operations transitive:
82537         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82538         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82539
82540 2005-08-15  Simon Josefsson  <jas@extundo.com>
82541
82542         * modules/ssize_t (License): Change to 'unlimited'.
82543
82544         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82545
82546 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82549         Add comments for each pending glibc patch.
82550
82551 2005-08-15  Bruno Haible  <bruno@clisp.org>
82552
82553         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82554         __cplusplus is defined.
82555
82556 2005-08-14  Jim Meyering  <jim@meyering.net>
82557
82558         Sync from coreutils.
82559
82560         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82561         Use the hash-table-based cycle-detection code not just when
82562         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82563         Reported by James Youngman in
82564         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82565         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82566         FTS_TIGHT_CYCLE_CHECK.
82567         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82568         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82569         once again.
82570         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82571         * lib/fts.c (fd_safer): Remove decl.
82572         Include fcntl--.h rather than unistd-safer.h
82573         (fts_safe_changedir): Don't call fd_safer; no longer needed
82574         now that we include fcntl--.h.
82575
82576 2005-08-12  Simon Josefsson  <jas@extundo.com>
82577
82578         * modules/getndelim2: Use ssize_t module.
82579         * modules/getnline: Likewise.
82580         * modules/safe-read: Likewise.
82581         * modules/xreadlink: Likewise.
82582
82583         * modules/ssize_t: New file.
82584
82585 2005-08-12  Simon Josefsson  <jas@extundo.com>
82586
82587         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82588
82589 2005-08-12  Simon Josefsson  <jas@extundo.com>
82590
82591         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82592         ssize_t.
82593
82594 2005-08-12  Simon Josefsson  <jas@extundo.com>
82595
82596         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82597         readline, getdelim and check_version.
82598         (Support for systems lacking ISO C 99: Sizes of integer types):
82599         Add size_max.
82600
82601 2005-08-12  Bruno Haible  <bruno@clisp.org>
82602
82603         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82604
82605 2005-08-11  Simon Josefsson  <jas@extundo.com>
82606
82607         * modules/readline: New file.
82608
82609         * modules/strnlen (Files): Add strnlen.h.
82610
82611 2005-08-11  Simon Josefsson  <jas@extundo.com>
82612
82613         * m4/readline.m4: New file.
82614
82615 2005-08-11  Simon Josefsson  <jas@extundo.com>
82616
82617         * lib/readline.h, readline.c: New file.
82618
82619 2005-08-11  Simon Josefsson  <jas@extundo.com>
82620
82621         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82622         gl_AVOID.
82623
82624 2005-08-11  Bruno Haible  <bruno@clisp.org>
82625
82626         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82627
82628 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82629
82630         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82631
82632 2005-08-10  Simon Josefsson  <jas@extundo.com>
82633
82634         * tests/test-iconvme.c: New file.
82635
82636 2005-08-10  Simon Josefsson  <jas@extundo.com>
82637
82638         * m4/strnlen.m4: New file.
82639
82640         * m4/strndup.m4: Don't check for strnlen declaration, done in
82641         strnlen.m4.
82642
82643 2005-08-10  Simon Josefsson  <jas@extundo.com>
82644
82645         * lib/strndup.c: Use strnlen.h.
82646
82647         * lib/strnlen.h: New file.
82648
82649 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82650
82651         * README: Typos.
82652
82653 2005-08-02  Simon Josefsson  <jas@extundo.com>
82654
82655         * modules/readline: New file.
82656
82657 2005-08-02  Simon Josefsson  <jas@extundo.com>
82658
82659         * modules/getdelim: New file.
82660
82661         * modules/getline: Rewrite, don't use getndelim2.
82662
82663 2005-08-02  Simon Josefsson  <jas@extundo.com>
82664
82665         * m4/getline.m4: Separate out getdelim stuff into separate module.
82666
82667         * m4/getdelim.m4: New file.
82668
82669 2005-08-02  Simon Josefsson  <jas@extundo.com>
82670
82671         * lib/getline.h, getline.c: Rewrite.
82672
82673         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82674
82675 2005-07-31  Bruno Haible  <bruno@clisp.org>
82676
82677         * lib/lock.h (gl_lock_initializer): New macro.
82678         (gl_lock_define_initialized): Use it.
82679         (gl_rwlock_initializer): New macro.
82680         (gl_rwlock_define_initialized): Use it.
82681         (gl_recursive_lock_initializer): New macro.
82682         (gl_recursive_lock_define_initialized): Use it.
82683
82684 2005-07-30  Karl Berry  <karl@gnu.org>
82685
82686         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82687         Report from Ben Pfaff, regarding getopt.
82688
82689 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82690
82691         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82692         normal way.
82693         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82694         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82695         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82696         (gl_GETOPT): Use the new macros.  Most of the implementation
82697         is moved to the new macros.  This is for programs like Emacs
82698         that don't want all the functionality of gl_GETOPT.
82699
82700 2005-07-26  Bruno Haible  <bruno@clisp.org>
82701
82702         * m4/lock.m4: Update from GNU gettext.
82703
82704 2005-07-26  Bruno Haible  <bruno@clisp.org>
82705
82706         * lib/lock.h: Update from GNU gettext.
82707         * lib/lock.c: Update from GNU gettext.
82708
82709 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82710
82711         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82712         obsolescent AC_TRY_RUN.  Include the default includes files, for
82713         'exit'.
82714
82715 2005-07-24  Bruno Haible  <bruno@clisp.org>
82716
82717         * modules/visibility: New file.
82718         * MODULES.html.sh (Misc): Add visibility.
82719
82720 2005-07-24  Bruno Haible  <bruno@clisp.org>
82721
82722         * m4/visibility.m4: New file.
82723
82724 2005-07-24  Bruno Haible  <bruno@clisp.org>
82725
82726         * doc/visibility.texi: New file.
82727
82728 2005-07-22  Bruno Haible  <bruno@clisp.org>
82729
82730         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82731         $(ALLOCA_H), redundant through BUILT_SOURCES.
82732         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82733         redundant through BUILT_SOURCES.
82734         * modules/byteswap (Makefile.am): Remove explicit dependency on
82735         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82736         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82737         $(FNMATCH_H), redundant through BUILT_SOURCES.
82738         * modules/getopt (Makefile.am): Remove explicit dependency on
82739         $(GETOPT_H), redundant through BUILT_SOURCES.
82740         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82741         redundant through BUILT_SOURCES.
82742         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82743         redundant through BUILT_SOURCES.
82744         * modules/stdbool (Makefile.am): Remove explicit dependency on
82745         $(STDBOOL_H), redundant through BUILT_SOURCES.
82746         * modules/stdint (Makefile.am): Remove explicit dependency on
82747         $(STDINT_H), redundant through BUILT_SOURCES.
82748         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82749         Remove explicit dependency on $(SYSEXITS_H).
82750         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82751
82752 2005-07-18  Simon Josefsson  <jas@extundo.com>
82753
82754         * lib/check-version.c (check_version): Accept identical versions too.
82755
82756 2005-07-18  Bruno Haible  <bruno@clisp.org>
82757
82758         * modules/lock: New file.
82759         * MODULES.html.sh (Multithreading): New section.
82760
82761 2005-07-18  Bruno Haible  <bruno@clisp.org>
82762
82763         * m4/lock.m4: New file, from GNU gettext.
82764
82765 2005-07-18  Bruno Haible  <bruno@clisp.org>
82766
82767         * lib/lock.h: New file, from GNU gettext.
82768         * lib/lock.c: New file, from GNU gettext.
82769
82770 2005-07-18  Bruno Haible  <bruno@clisp.org>
82771
82772         * lib/lock.h (gl_once_t): New type.
82773         (gl_once_define, gl_once): New macros.
82774         * lib/lock.c (fresh_once): New variable.
82775         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82776         functions.
82777
82778 2005-07-16  Simon Josefsson  <jas@extundo.com>
82779
82780         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82781         workaround, suggested by Bruno.
82782
82783 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         * modules/xalloc (Depends-on): Add xalloc-die.
82786         * modules/xvasprintf (Depends-on): Add xalloc-die.
82787
82788 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82789
82790         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82791         with a minor change.
82792
82793 2005-07-15  Bruno Haible  <bruno@clisp.org>
82794
82795         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82796         When using lib/poll.c, define poll as rpl_poll.
82797
82798 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82799
82800         * modules/argp (Depends-on): Remove unlocked-io.
82801
82802 2005-07-14  Derek Price  <derek@ximbiot.com>
82803
82804         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82805         for glob symlink bug.
82806
82807 2005-07-14  Bruno Haible  <bruno@clisp.org>
82808
82809         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82810         Instead, test for *_unlocked function declarations directly.
82811
82812 2005-07-11  Simon Josefsson  <jas@extundo.com>
82813
82814         * modules/size_max: New file.
82815
82816         * modules/xsize: Depend on size_max module for size_max.m4.
82817
82818 2005-07-11  Simon Josefsson  <jas@extundo.com>
82819
82820         * lib/size_max.h: New file.
82821
82822 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82823
82824         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82825         copyright symbol and the year.
82826         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82827         (version_etc_va): Use parameterized copyright notice.
82828         Reword to conform to the current GNU coding standards.
82829
82830 2005-07-11  Karl Berry  <karl@gnu.org>
82831
82832         * doc/gnulib.texi (Quoting): new node.
82833         (Initial import): more info, from Patrice.
82834
82835 2005-07-11  Bruno Haible  <bruno@clisp.org>
82836
82837         * gnulib-tool (func_usage): Document option --avoid.
82838         (Command line options): Handle --avoid.
82839         (func_acceptable): New function.
82840         (func_modules_transitive_closure): Use it.
82841
82842 2005-07-11  Bruno Haible  <bruno@clisp.org>
82843
82844         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82845         Reported by Jim Meyering.
82846
82847 2005-07-10  Bruno Haible  <bruno@clisp.org>
82848
82849         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82850         Needed when size_t is smaller than 'unsigned int'.
82851         Reported by Paul Eggert.
82852
82853 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82854
82855         * modules/argp (Depends-on): Add unlocked-io
82856
82857 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82858
82859         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82860         block of defines.
82861
82862 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82863
82864         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82865         fix now.
82866
82867 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82868         and Paul Eggert  <eggert@cs.ucla.edu>
82869
82870         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82871         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82872
82873 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * modules/regex (Files): Add lib/regex_internal.c,
82876         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82877         (Depends-on): Add extensions.
82878         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82879
82880 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82881
82882         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82883         pathconf.
82884         * m4/same.m4 (gl_SAME): Likewise.
82885         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82886
82887         * m4/regex.m4: Adjust to new libc regex implementation.
82888         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82889         all the .c and .h parts of (the new) regex.
82890         Quote the m4 stuff better.
82891         Check for RE_ICASE bug of old gnulib.
82892         Check for REG_STARTEND of recent libc.
82893         Rename local variables from jm_* to gl_*.
82894         Quote operand of "test -f".
82895         Say "recent enough" version of libc, not "version 2".
82896         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82897         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82898         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82899         Remove check for btowc, isascii.
82900         Require AM_LANGINFO_CODESET.
82901
82902 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * lib/regex.c, regex.h: Sync from libc.
82905         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82906         * lib/regexec.c:
82907         New files, synced from libc, except that regex_internal.h
82908         currently has a small porting fix.
82909
82910 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82911
82912         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82913         regex_internal.c, regexec.c.
82914         Add regex_internal.h too, but as a comment, since the libc version
82915         is currently broken in gnulib mode.
82916
82917 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         Support programs like Emacs that use gnulib but not gettext.
82920         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82921         * modules/gettext-h: New file.
82922         * modules/gettext (Files): Remove lib/gettext.h.
82923         (Depends-on): Add gettext-h.
82924         (Makefile.am): Remove lib_SOURCES.
82925         * modules/argmatch, modules/c-stack, modules/closeout:
82926         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82927         * modules/execute, modules/file-type, modules/getaddrinfo:
82928         * modules/getopt, modules/human, modules/javacomp:
82929         * modules/javaexec, modules/mkdir-p, modules/obstack:
82930         * modules/openat, modules/pagealign_alloc, modules/pipe:
82931         * modules/quotearg, modules/regex, modules/rpmatch:
82932         * modules/unicodeio, modules/userspec, modules/version-etc:
82933         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82934         * modules/xsetenv:
82935         Depend on gettext-h, not gettext.
82936
82937 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82938
82939         * gnulib-tool (func_import): Add support for 'public domain' license.
82940         * modules/alloca, modules/atexit, modules/memmove:
82941         Now public domain, not GPL.
82942         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82943         * modules/realloc, modules/strerror, modules/strtod:
82944         Now LGPL, not GPL.
82945
82946 2005-07-05  Bruno Haible  <bruno@clisp.org>
82947
82948         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82949         autoconf CVS. Needed for mingw.
82950
82951 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82952
82953         Remove the dependency of the strftime module on the tzset module.
82954         * modules/strftime (Depends-on): Remove dependency on tzset.
82955
82956 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82957
82958         Remove the dependency of the strftime module on the tzset module.
82959         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82960         gl_FUNC_TZSET_CLOBBER.
82961
82962 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82963
82964         Remove the dependency of the strftime module on the tzset module.
82965         * lib/strftime.c (my_strftime)
82966         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82967         Copy the input structure, to work around some of the bug with
82968         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82969         Solaris releases, you should also use the tzset module, but we won't
82970         require it as a dependency any more since we don't want LGPLed code
82971         to depend on GPLed code.
82972
82973 2005-07-02  Jim Meyering  <jim@meyering.net>
82974
82975         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82976         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82977         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82978         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82979
82980 2005-07-02  Jim Meyering  <jim@meyering.net>
82981
82982         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82983
82984 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82985
82986         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82987         declares only 'struct timespec;' (!).
82988
82989 2005-07-01  Jim Meyering  <jim@meyering.net>
82990
82991         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82992         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82993         * lib/save-cwd.c, tempname.c:
82994         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82995         and don't include <sys/file.h>).
82996
82997 2005-06-29  Jim Meyering  <jim@meyering.net>
82998
82999         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83000         type name.  Use the variable name instead.
83001         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83002         Likewise.
83003
83004 2005-06-28  Simon Josefsson  <jas@extundo.com>
83005
83006         * modules/check-version (Files): Add check-version.m4.
83007
83008 2005-06-28  Simon Josefsson  <jas@extundo.com>
83009
83010         * m4/check-version.m4: New file, suggested by Jim Meyering
83011         <jim@meyering.net>.
83012
83013 2005-06-28  Simon Josefsson  <jas@extundo.com>
83014
83015         * lib/check-version.h, lib/check-version.c: New files.
83016
83017 2005-06-28  Simon Josefsson  <jas@extundo.com>
83018
83019         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83020         collision with global variable.  Better indentation.  Don't
83021         increment buffer pointer beyond buffer end.  Based on comments
83022         from Paul Eggert <eggert@cs.ucla.edu>.
83023
83024         * lib/base64.h: Indent.
83025
83026 2005-06-28  Simon Josefsson  <jas@extundo.com>
83027
83028         * doc/gnulib.texi (Library version handling): New section.
83029
83030 2005-06-28  Jim Meyering  <jim@meyering.net>
83031
83032         * check-module (find_included_lib_files): Hard-code another
83033         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83034         but modules/fts-lgpl (correctly) does not list those files.
83035
83036         * modules/canonicalize (Files): Add lib/pathmax.h.
83037
83038 2005-06-25  Simon Josefsson  <jas@extundo.com>
83039
83040         * modules/check-version: New file.
83041
83042 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83043
83044         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83045         initializer of struct addrinfo, as an indication that we don't
83046         care how many members the structure has.
83047
83048 2005-06-24  Derek Price  <derek@ximbiot.com>
83049         and Bruno Haible  <bruno@clisp.org>
83050
83051         Remove stat module & update lstat.
83052         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83053         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83054         * m4/stat.m4: Remove this file.
83055
83056 2005-06-24  Derek Price  <derek@ximbiot.com>
83057         and Bruno Haible  <bruno@clisp.org>
83058
83059         Remove stat module & update lstat.
83060         * lib/stat.c: Remove this file...
83061         (slash_aware_lstat): ...moving this content and its support...
83062         * lib/lstat.c (rpl_lstat): ...into here.
83063         * lib/lstat.h: New file.
83064
83065 2005-06-24  Derek Price  <derek@ximbiot.com>
83066         and Bruno Haible  <bruno@clisp.org>
83067
83068         Remove stat module & update lstat.
83069         * config/srclist.txt (libc sources): Remove stat.
83070
83071 2005-06-24  Derek Price  <derek@ximbiot.com>
83072         and Bruno Haible  <bruno@clisp.org>
83073
83074         Remove stat module & update lstat.
83075         * MODULES.html.sh (stat): Remove.
83076         * MODULES.html: Regenerated.
83077         * modules/lstat (Description): Correct function name.
83078         (Files): Add "lstat.h".
83079         (Depends-on): Remove stat, add xalloc, stat-macros.
83080         * modules/stat: Remove this file.
83081         (Include): Add "lstat.h", remove <sys/stat.h>.
83082
83083 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83084
83085         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83086         (ranged_convert): Don't save conversion in a temporary struct.
83087         This causes a warning with GCC 4.0.0, and anyway in the typical
83088         case it's not worth the extra 100 bytes or so of code.
83089         (ranged_convert, __mktime_internal): When calling a function via a
83090         pointer P, use P () rather than (*P) (), as we now assume C89 or
83091         better.
83092
83093 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83094
83095         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83096         "who -r" failed to give output.  Problem reported by Tim Waugh.
83097
83098         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83099         (xcalloc): Use it to avoid needless tests.
83100         Problem reported by Jim Meyering.
83101
83102 2005-06-20  Derek Price  <derek@ximbiot.com>
83103
83104         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83105         unnecessary for Autoconfs > 2.59c.
83106
83107 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83108
83109         * lib/argp.h (__option_is_short): Check upper limit of
83110         __key. Isprint() requires its argument to have the value
83111         of an unsigned char or EOF.
83112
83113 2005-06-16  Jim Meyering  <jim@meyering.net>
83114
83115         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83116         when either N or S is zero.
83117
83118 2005-06-16  Derek Price  <derek@ximbiot.com>
83119
83120         * m4/bison.m4: Declare YACC & YFLAGS precious.
83121
83122 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83123
83124         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83125         multibyte string or pattern, fall back on unibyte matching.
83126         Problem reported by James Youngman.
83127
83128 2005-06-08  Bruno Haible  <bruno@clisp.org>
83129
83130         * modules/csharpcomp: New file.
83131         * MODULES.html.sh (C#): Add csharpcomp.
83132
83133 2005-06-08  Bruno Haible  <bruno@clisp.org>
83134
83135         * m4/csharpcomp.m4: New file, from GNU gettext.
83136
83137 2005-06-08  Bruno Haible  <bruno@clisp.org>
83138
83139         * lib/csharpcomp.h: New file, from GNU gettext.
83140         * lib/csharpcomp.c: New file, from GNU gettext.
83141         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83142
83143 2005-06-08  Bruno Haible  <bruno@clisp.org>
83144
83145         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83146         warning on mingw.
83147
83148 2005-06-07  Derek Price  <derek@ximbiot.com>
83149
83150         Sync from CVS.
83151         * lib/glob_.h: Indent nested #ifdef.
83152
83153 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83154
83155         Sync from coreutils.
83156         Use "file name" when talking about file names, instead of "filename"
83157         or "path", as per the GNU coding standards.
83158         * lib/mkdir-p.c: Renamed from makepath.c.
83159         (make_dir_parents): Renamed from make_path.  All callers changed.
83160         * lib/mkdir-p.h: Likewise.  All includers changed.
83161         * lib/filenamecat.c: Renamed from path-concat.c.
83162         (file_name_concat): Renamed from path_concat.  All callers changed.
83163         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83164         * lib/filenamecat.h: Likewise.  All includers changed.
83165         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83166         in comments or local variable names.
83167         * lib/basename.c: Likewise.
83168         * lib/canonicalize.c, canonicalize.h: Likewise.
83169         * lib/dirname.c, dirname.h: Likewise.
83170         * lib/euidaccess.c: Likewise.
83171         * lib/exclude.c: Likewise
83172         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83173         * lib/fsusage.c, fsuage.h: Likewise.
83174         * lib/fts.c, fts_.h: Likewise.
83175         * lib/getcwd.c: Likewise.
83176         * lib/getloadavg.c: Likewise.
83177         * lib/mkstemp.c: Likewise.
83178         * lib/mountlist.c, mountlist.h: Likewise.
83179         * lib/openat.c, openat.h: Likewise.
83180         * lib/readlink-stub.c: Likewise.
83181         * lib/readutmp.c, readutmp.h: Likewise.
83182         * lib/rename.c: Likewise.
83183         * lib/rmdir.c: Likewise.
83184         * lib/same.c: Likewise.
83185         * lib/savedir.c: Likewise.
83186         * lib/stripslash.c: Likewise.
83187         * lib/tempname.c: Likewise.
83188         * lib/xreadlink.c: Likewise.
83189         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83190         All uses changed.
83191         * lib/exclude.h: Likewise.
83192
83193         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83194         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83195         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83196         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83197         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83198         files have been getting away with it for years (MORE/BSD 4.3
83199         is extinct now).
83200         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83201         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83202
83203         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83204         Define to 256, not 255, as per modern POSIX.
83205
83206 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83207
83208         Sync from coreutils.
83209         Use "file name" when talking about file names, instead of "filename"
83210         or "path", as per the GNU coding standards.
83211         * MODULES.html.sh: mkdir-p renamed from makepath.
83212         filenamecat renamed from path-concat.
83213         * modules/filenamecat: Renamed from modules/path-concat.
83214         (Files): filenamecat.h and filenamecat.c renamed from
83215         path-concat.h and path-concat.c.
83216         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83217         (Include): filenamecat.h, not path-concat.h.
83218         * modules/mkdir-p: Renamed from modules/makepath.
83219         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83220         makepath.c.
83221         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83222         (Include): mkdir-p.h, not makepath.h.
83223
83224 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83225
83226         Sync from coreutils.
83227         * m4/mkdir-p.m4: Renamed from makepath.m4.
83228         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83229         Rename files from makepath.c to mkdir-p.c, and from
83230         makepath.h to mkdir-p.h.
83231         * m4/filenamecat.m4: Renamed from path-concat.m4.
83232         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83233         Rename files from path-concat.c to filenamecat.c,
83234         and from path-concat.h to filenamecat.h.
83235         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83236         "file name" in local variables or comments.
83237         * m4/rename.m4: Likewise.
83238
83239 2005-06-01  Bruno Haible  <bruno@clisp.org>
83240
83241         * modules/csharpexec: New file.
83242         * MODULES.html.sh (C#): New section.
83243
83244 2005-06-01  Bruno Haible  <bruno@clisp.org>
83245
83246         * m4/csharp.m4: New file, from GNU gettext.
83247         * m4/csharpexec.m4: New file, from GNU gettext.
83248
83249 2005-06-01  Bruno Haible  <bruno@clisp.org>
83250
83251         * lib/csharpexec.h: New file, from GNU gettext.
83252         * lib/csharpexec.c: New file, from GNU gettext.
83253         * lib/csharpexec.sh.in: New file, from GNU gettext.
83254
83255 2005-05-31  Derek Price  <derek@ximbiot.com>
83256             Paul Eggert  <eggert@cs.ucla.edu>
83257
83258         Sync from cvs.
83259         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83260
83261 2005-05-31  Derek Price  <derek@ximbiot.com>
83262             Paul Eggert  <eggert@cs.ucla.edu>
83263
83264         Sync from cvs.
83265         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83266
83267 2005-05-29  Derek Price  <derek@ximbiot.com>
83268
83269         * config/srclist.txt (glob_.h, glob.c): Add these files.
83270
83271 2005-05-29  Derek Price  <derek@ximbiot.com>
83272
83273         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83274         * modules/glob: New file.
83275         * modules/getlogin_r: Add link to POSIX spec in description.
83276
83277 2005-05-29  Derek Price  <derek@ximbiot.com>
83278             Paul Eggert  <eggert@cs.ucla.edu>
83279
83280         * m4/glob.m4: New file.
83281
83282 2005-05-29  Derek Price  <derek@ximbiot.com>
83283             Paul Eggert  <eggert@cs.ucla.edu>
83284
83285         * lib/glob_.h, lib/glob.c: New files.
83286
83287 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83288
83289         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83290         * modules/fts-lgpl (Depends-on): Remove gettext.
83291
83292 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83293
83294         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83295         and don't require gt_INTTYPES_PRI.
83296
83297 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83298
83299         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83300
83301         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83302         the configuration hassle isn't worth it.
83303         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83304         (LONGEST_MODIFIER, PRIuMAX): Remove.
83305
83306 2005-05-27  Bruno Haible  <bruno@clisp.org>
83307
83308         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83309
83310 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83311
83312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83313         _POSIX_PTHREAD_SEMANTICS for Solaris.
83314
83315 2005-05-25  Derek Price  <derek@ximbiot.com>
83316
83317         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83318
83319 2005-05-25  Derek Price  <derek@ximbiot.com>
83320             Paul Eggert  <eggert@cs.ucla.edu>
83321
83322         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83323         * lib/getlogin_r.c, getlogin_r.h: New files.
83324
83325 2005-05-25  Bruno Haible  <bruno@clisp.org>
83326             Derek Price  <derek@ximbiot.com>
83327
83328         * lib/getlogin_r.h: Simplify API documentation.
83329
83330 2005-05-23  Derek Price  <derek@ximbiot.com>
83331
83332         * modules/minmax (Files): Add m4/minmax.m4.
83333         (configure.ac): Add gl_MINMAX.
83334
83335 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83336
83337         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83338         so that unistd-safer.h (GPL'ed code) need not be included.
83339
83340 2005-05-22  Bruno Haible  <bruno@clisp.org>
83341
83342         * m4/minmax.m4: New file.
83343         Based on a patch by Derek Price <derek@ximbiot.com>.
83344
83345 2005-05-22  Bruno Haible  <bruno@clisp.org>
83346
83347         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83348         (INT64_MIN): Fix definition.
83349         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83350
83351         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83352         NEED_SIGNED_INT_TYPES.
83353
83354         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83355         HAVE_SYSTEM_INTTYPES.
83356
83357 2005-05-22  Bruno Haible  <bruno@clisp.org>
83358
83359         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83360         Also include <sys/param.h> if it defines MIN, MAX.
83361         Based on a patch by Derek Price <derek@ximbiot.com>.
83362
83363 2005-05-21  Jim Meyering  <jim@meyering.net>
83364
83365         * modules/fts (Files): Add m4/inttypes-pri.m4.
83366         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83367
83368 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83369
83370         New fts module.
83371         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83372         (setup_dir, free_dir): New functions.
83373         (enter_dir, leave_dir): Define trivial
83374         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83375         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83376         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83377         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83378         Move to fts-cycle.c.
83379         (fts_open): Use setup_dir.
83380         (fts_close): Use free_dir.
83381         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83382         This adds a label and some gotos, but the alternatives were messier.
83383         Check for memory allocation failure when entering a dir.
83384         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83385         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83386         (FTS): New member fts_cycle, that is a union that contains the
83387         old active_dir_ht and cycle_state.  All uses changed to mention
83388         fts_cycle.ht and fts_cycle.state.
83389         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83390         fts.c, with the following changes:
83391         (setup_dir, free_dir): New functions.
83392         (enter_dir): Now returns bool.  Return true if successful, false
83393         if memory exhausted.  All callers changed.
83394         Do not bother partly cleaning up on
83395         memory allocation failure; that is free_dir's job.
83396         However, free ad if hash_insert fails, to avoid memory leak.
83397         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83398         fts->fts_options to see which union member to use.
83399
83400 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83401
83402         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83403         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83404
83405 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83406
83407         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83408
83409 2005-05-20  Jim Meyering  <jim@meyering.net>
83410
83411         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83412         Now a macro, to pacify GCC.
83413
83414 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83415
83416         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83417         of -1.
83418
83419 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83420
83421         * lib/chown.c (rpl_chown): Return -1 on failure.
83422
83423 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83424
83425         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83426         Don't check for stddef.h.
83427         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83428         don't use its results.
83429         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83430         since we include them unconditionally.  Don't require
83431         AM_STDBOOL_H, since stdbool is a prerequisite.
83432         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83433         since we assume C89 or better.
83434         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83435         as we don't use their results.
83436         Don't check for fchdir, memmove, memset, strrchr, as we use
83437         them unconditionally.
83438         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83439         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83440
83441 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83444         Include <stddef.h> unconditionally, since we assume C89 now.
83445         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83446         * lib/fts.c: Include fts_.h first, to check interface.
83447         Do not include intprops.h; no longer needed.
83448         Include cycle-check.h and hash.h, since fts_.h no longer does.
83449         Remove unnecessary casts of closedir to void.
83450         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83451         decide whether to decrement nlinks.
83452         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83453         (FTS): Use struct hash_table * instead of Hash_table, so that
83454         we no longer need to include hash.h here.
83455
83456 2005-05-18  Jim Meyering  <jim@meyering.net>
83457
83458         * modules/dirfd (License): Change to LGPL.  Most of the code
83459         is already in the public domain.
83460
83461 2005-05-18  Jim Meyering  <jim@meyering.net>
83462
83463         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83464         Reported by Yoann Vandoorselaere.
83465
83466 2005-05-17  Jim Meyering  <jim@meyering.net>
83467
83468         * m4/fts.m4: New file, from coreutils.
83469
83470 2005-05-17  Jim Meyering  <jim@meyering.net>
83471
83472         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83473
83474 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83475
83476         Sync from coreutils.
83477         * m4/unlinkdir.m4: New file.
83478
83479 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83480
83481         Sync from coreutils.
83482         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83483         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83484         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83485         White space changes only.
83486         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83487         special.
83488         * lib/yesno.c: Include getline.h, not ctype.h.
83489         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83490         Use getline to remove arbitrary restriction on response length.
83491
83492 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83493
83494         * config/srclist-update: Spell out "Street" in FSF postal
83495         mail address; this is the style the FSF seems to prefer.
83496
83497         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83498         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83499         this updates FSF postal mail address.
83500
83501         Sync from coreutils.
83502         * modules/unlinkdir: New file.
83503         * modules/yesno (Depends-on): Add getline.
83504         * MODULES.html.sh (File system functions): Add unlinkdir.
83505
83506 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83507
83508         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83509         lib/strsep.h:
83510         Change the initial comment to refer to GPL, not LGPL.
83511         gnulib-tool will change it to LGPL as needed.
83512
83513         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83514         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83515         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83516         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83517         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83518         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83519         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83520         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83521         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83522         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83523         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83524         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83525         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83526         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83527         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83528         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83529         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83530         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83531         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83532         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83533         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83534         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83535         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83536         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83537         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83538         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83539         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83540         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83541         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83542         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83543         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83544         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83545         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83546         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83547         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83548         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83549         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83550         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83551         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83552         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83553         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83554         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83555         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83556         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83557         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83558         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83559         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83560         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83561         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83562         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83563         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83564         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83565         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83566         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83567         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83568         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83569         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83570         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83571         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83572         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83573         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83574         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83575         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83576         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83577         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83578         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83579         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83580         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83581         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83582         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83583         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83584         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83585         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83586         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83587         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83588         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83589         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83590         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83591         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83592         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83593         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83594         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83595         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83596         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83597         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83598         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83599         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83600         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83601         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83602         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83603         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83604         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83605         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83606         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83607         lib/yesno.c, lib/yesno.h:
83608         Update FSF postal mail address.
83609
83610 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83611
83612         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83613         tests/test-memmem.c, tests/test-stpncpy.c:
83614         Update FSF postal mail address.
83615
83616 2005-05-13  Bruno Haible  <bruno@clisp.org>
83617
83618         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83619         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83620         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83621         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83622         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83623         Add support for 64-bit integers in the MSVC compiler.
83624
83625 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83626
83627         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83628
83629 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83630
83631         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83632
83633 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83634
83635         * doc/getdate.texi (General date syntax): Don't say that date
83636         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83637         Problem reported by Nic Ferrier.
83638
83639 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83640
83641         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83642         specified in ai_socktype. Fix invalid ai_protocol
83643         check. ai_protocol is usually set to 0 or depending on
83644         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83645         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83646         ai_socktype / ai_protocol in the returned addrinfo structure.
83647
83648 2005-05-10  Simon Josefsson  <jas@extundo.com>
83649
83650         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83651         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83652
83653 2005-05-10  Karl Berry  <karl@gnu.org>
83654
83655         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83656         (from http://www.gnu.org/licenses).
83657         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83658         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83659         fdl.texi suffices.
83660
83661 2005-05-10  Karl Berry  <karl@gnu.org>
83662
83663         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83664         (COPYING.DOC): remove.
83665
83666         * config/srclist-update: new FSF address.
83667
83668 2005-05-10  Derek Price  <derek@ximbiot.com>
83669
83670         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83671         possible.
83672
83673 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83674             Bruno Haible  <bruno@clisp.org>
83675
83676         * modules/inet_ntop: New file.
83677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83678         inet_ntop.
83679
83680 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83681             Bruno Haible  <bruno@clisp.org>
83682
83683         * m4/inet_ntop.m4: New file.
83684
83685 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83686             Bruno Haible  <bruno@clisp.org>
83687
83688         * lib/inet_ntop.h: New file.
83689         * lib/inet_ntop.c: New file, from glibc with modifications.
83690
83691 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83692
83693         * modules/time_r (License): Change to LGPL.
83694         * modules/extensions (License): Change to LGPL.  Actually,
83695         the license is more permissive than that, but currently gnulib-tool
83696         doesn't know how to handle more-permissive licenses.
83697
83698         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83699         Problem reported by Dave Love.
83700
83701 2005-05-08  Jim Meyering  <jim@meyering.net>
83702
83703         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83704         blank.
83705
83706 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83707
83708         * modules/argmatch (Depends-on): Add stdbool.
83709         * modules/backupfile (Depends-on): Likewise.
83710         * modules/chdir-long (Depends-on): Likewise.
83711         * modules/closeout (Depends-on): Likewise.
83712         * modules/cycle-check (Depends-on): Likewise.
83713         * modules/dirname (Depends-on): Likewise.
83714         * modules/fnmatch (Depends-on): Likewise.
83715         * modules/fsusage (Depends-on): Likewise.
83716         * modules/fwriteerror (Depends-on): Likewise.
83717         * modules/getcwd (Depends-on): Likewise.
83718         * modules/getloadavg (Depends-on): Likewise.
83719         * modules/hard-locale (Depends-on): Likewise.
83720         * modules/makepath (Depends-on): Likewise.
83721         * modules/mountlist (Depends-on): Likewise.
83722         * modules/nanosleep (Depends-on): Likewise.
83723         * modules/posixtm (Depends-on): Likewise.
83724         * modules/quotearg (Depends-on): Likewise.
83725         * modules/readtokens (Depends-on): Likewise.
83726         * modules/readtokens0 (Depends-on): Likewise.
83727         * modules/readutmp (Depends-on): Likewise.
83728         * modules/save-cwd (Depends-on): Likewise.
83729         * modules/strftime (Depends-on): Likewise.
83730         * modules/userspec (Depends-on): Likewise.
83731         * modules/utimecmp (Depends-on): Likewise.
83732         * modules/xgetcwd (Depends-on): Likewise.
83733         * modules/xnanosleep (Depends-on): Likewise.
83734         * modules/xstrtod (Depends-on): Likewise.
83735         * modules/yesno (Depends-on): Likewise.
83736
83737 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83738
83739         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83740         needless checks.
83741
83742 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         Merge from coreutils.  Among other things,
83745         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83746         * lib/fd-safer.c: New file.
83747         * lib/fcntl-safer.h, open-safer.c: Remove.
83748         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83749         * lib/dup-safer.c: Include unistd-safer.h first.
83750         Don't include errno.h.
83751         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83752         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83753         * lib/file-type.c: Rely on file-type.h change.
83754         * lib/getloadavg.c: Include unistd-safer.h.
83755         (getloadavg): Use safer open.
83756         * lib/getusershell.c: Include "stdio-safer.h".
83757         (getusershell): Use safer fopen.
83758         * lib/long-options.c (long_options): Use NULL rather than 0.
83759         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83760         'free'.
83761         * lib/modechange.c: Likewise.
83762         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83763         (MODE_DONE): New constant.
83764         (struct mode_change): Remove 'next' member.
83765         (make_node_op_equals): New function; like the old one of the
83766         same name, except it allocates an array.
83767         (mode_compile, mode_create_from_ref): Use it.
83768         (mode_compile): Allocate result as an array, not a linked list.
83769         Parse octal string ourself, so that we catch mistakes like "+0".
83770         (mode_adjust): Arg is an array, not a linked list.
83771         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83772         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83773         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83774         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83775         Remove.  This is now stat-macros.h's job.
83776         (talloc): Remove.  All callers replaced by xalloc, so that
83777         our invokers don't have to worry about reporting memory failures.
83778         (make_node_op_equals): Remove.
83779         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83780         New constants.
83781         (struct mode_change): Moved here from modechange.h.
83782         (mode_append_entry): Remove.
83783         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83784         apps to have incorrect behavior.  Use simpler algorithm for head
83785         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83786         Detect more invalid usages rather than having somewhat-random behavior.
83787         Don't insert an "a=" action, as that leads to incorrect behavior.
83788         (mode_compile, mode_create_from_ref): Return NULL on error instead
83789         of an enum, since now there's only one way to have an error.  All
83790         callers changed.
83791         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83792         at the correct time.  Simplify calculation of "+u" and its ilk.
83793         Don't mishandle "+X".
83794         (mode_free): Remove "register" and localize decls.
83795         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83796         (struct mode_change): Move to modechange.c; callers don't
83797         need to see this stuff.
83798         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83799         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83800         (mode_change, mode_adjust): Reflect the new signatures noted above.
83801         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83802         that might redefine system include files.
83803         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83804         (my_usleep): Use NULL rather than (void *) 0.
83805         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83806         Use siginterrupt to specify that system calls should be interrupted.
83807         (rpl_nanosleep): Move initialization of suspended closer to call of
83808         my_usleep.
83809         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83810         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83811         (desirable_utmp_entry): New function.
83812         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83813         using x2nrealloc, to simplify logic.
83814         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83815         size calculation.  Do not assume utmp file is a regular file.
83816         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83817         (READ_UTMP_CHECK_PIDS): New constant.
83818         * lib/save-cwd.c: Include unistd-safer.h.
83819         (save_cwd): Use fd_safer.
83820         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83821         [!_LIBC] Include "stat-macros.h" instead.
83822         * lib/unistd-safer.h (fd_safer): New decl.
83823
83824 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         * modules/getloadavg (Depends-on): Add unistd-safer.
83827         * modules/getusershell (Depends-on): Add stdio-safer.
83828         * modules/lstat (Depends-on): Remove xalloc.
83829         * modules/mkstemp (Depends-on): Add stat-macros.
83830         * modules/modechange (Depends-on): Remove xstrtol.
83831         Add stat-macros, xalloc.
83832         * modules/save-cwd (Depends-on): Add unistd-safer.
83833         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83834         * modules/unistd-safer (Files): Add lib/fd-safer.c
83835         (Makefile.am): Remove lib_SOURCES.
83836
83837         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83838         Remove fcntl-safer; unistd-safer supersedes it.
83839
83840 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83841
83842         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83843         AC_HEADER_STAT.
83844         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83845         (gl_PREREQ_CHOWN): Remove.
83846         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83847         it.  Don't require AC_HEADER_STAT.
83848         (gl_PREREQ_LSTAT): Remove.
83849         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83850         Don't require AC_HEADER_STAT.
83851         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83852         (gl_PREREQ_RMDIR): Remove.
83853         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83854         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83855         the stat-macros module a prerequisite.
83856         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83857         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83858         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83859         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83860         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83861         variable names.
83862         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83863         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83864         variable prefixes.
83865         * m4/fcntl-safer.m4: Remove.
83866         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83867         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83868         Invoke gl_PREREQ_FD_SAFER.
83869         (gl_PREREQ_FD_SAFER): New macro.
83870         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83871         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83872         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83873         Remove duplicate call to AC_LIBOBJ(readutmp).
83874         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83875
83876         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83877         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83878
83879 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83880
83881         * MODULES.html.sh (Misc): Add byteswap.
83882
83883 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83884
83885         * modules/getcwd (Depends-on): Add extensions.
83886         * modules/openat (Depends-on): Likewise.
83887
83888 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83889
83890         * modules/byteswap: New file.
83891
83892 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83893
83894         * m4/byteswap.m4: New file.
83895
83896 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83897
83898         * lib/byteswap_.h: New file.
83899
83900 2005-04-25  Karl Berry  <karl@gnu.org>
83901
83902         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83903
83904 2005-04-25  Albert Chin  <china@thewrittenword.com>
83905
83906         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83907         Toolkit C bug.
83908
83909 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83910
83911         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83912         (func_ln_if_changed): Remove forcibly for no error message
83913         in case file does not exist.
83914
83915 2005-04-19  Simon Josefsson  <jas@extundo.com>
83916
83917         * gnulib-tool (Options): Make --symlink mean --symbolic.
83918
83919 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83920
83921         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83922
83923 2005-04-16  Simon Josefsson  <jas@extundo.com>
83924
83925         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83926
83927 2005-04-15  Simon Josefsson  <jas@extundo.com>
83928
83929         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83930
83931 2005-04-15  Simon Josefsson  <jas@extundo.com>
83932
83933         * gnulib-tool: Rename --symlink to --symbolic.
83934
83935 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83936
83937         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83938         symbolic links to files instead of copying/moving.  Add --aux-dir,
83939         specifying directory relative --dir where auxiliary build tools
83940         are placed.
83941
83942 2005-04-14  Bruno Haible  <bruno@clisp.org>
83943
83944         * modules/allocsa (License): Change to LGPL.
83945         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83946
83947 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83948
83949         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83950         that "UTC +1 second" continues to work.  Problem reported
83951         by Dmitry V. Levin.
83952         (relunit_snumber): New rule.
83953         (relunit): Use it.
83954
83955 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83956
83957         * lib/getdate.y (universal_time_zone_table): New constant.
83958         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83959         universal_time_zone_table.
83960         (lookup_zone): Prefer universal_time_zone_table to
83961         local_time_zone_table, so that "GMT" time stamps are allowed in
83962         London during the summer.  Problem reported by Ian Abbott.
83963
83964 2005-04-12  Jim Meyering  <jim@meyering.net>
83965
83966         * lib/human.c (humblock): Set *options even when returning due to
83967         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83968         warning from gcc-4.
83969
83970 2005-04-09  Jim Meyering  <jim@meyering.net>
83971
83972         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83973         -Wuninitialized: initialize tm0.tm_year.
83974
83975 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83978         count, since there's no maximum.  All uses changed.
83979         Add member dsts_seen.
83980         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83981         not being INT_MAX.
83982         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83983         Use pc_rels_seen to decide whether a date is absolute.
83984
83985         * lib/getdate.y (number): Don't overwrite year.
83986         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83987         check.
83988
83989 2005-04-02  Simon Josefsson  <jas@extundo.com>
83990
83991         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83992         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83993
83994 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83995
83996         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83997         where no absolute path name can be longer than PATH_MAX.
83998
83999 2005-03-27  Jim Meyering  <jim@meyering.net>
84000
84001         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84002
84003 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84004
84005         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84006         "one's complement" -> "ones' complement" in comment, as per Knuth.
84007         "value of type" -> "type or expression" in comment.
84008         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84009
84010 2005-03-26  Jim Meyering  <jim@meyering.net>
84011
84012         Comment nits.
84013         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84014         Correct typos: s/or/of/.
84015
84016 2005-03-26  Jim Meyering  <jim@meyering.net>
84017
84018         * modules/check-include-files: Move to ../ and rename to...
84019         * check-module: ...this.
84020
84021 2005-03-25  Jim Meyering  <jim@meyering.net>
84022
84023         * modules/xvasprintf (Files): Add xalloc.h.
84024
84025 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         * modules/gettext (Files): config/config.rpath ->
84028         build-aux/config.rpath
84029         * modules/iconv (Files): Likewise.
84030         Problem reported by Oskar Liljeblad.
84031
84032 2005-03-23  Jim Meyering  <jim@meyering.net>
84033
84034         * modules/check-include-files: New script to check for
84035         missing dependencies, multiple includes, etc.
84036
84037         * modules/c-strtold (Depends-on): Add xalloc.
84038         * modules/c-strtod (Depends-on): Add xalloc.
84039         * modules/hash (Depends-on): Add xalloc.
84040         (Files): Remove lib/xalloc.h.
84041
84042         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84043         * modules/userspec (Files): Add lib/inttostr.h.
84044
84045 2005-03-23  Jim Meyering  <jim@meyering.net>
84046
84047         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84048
84049 2005-03-22  Jim Meyering  <jim@meyering.net>
84050
84051         * modules/stat-macros: New module.
84052         * modules/canonicalize, modules/euidaccess, modules/file-type,
84053         * modules/filemode, modules/lchown, modules/makepath,
84054         * modules/rmdir, modules/stat: Depend on new stat-macros module
84055         rather than listing lib/stat-macros.h manually.
84056         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84057
84058 2005-03-22  Jim Meyering  <jim@meyering.net>
84059
84060         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84061
84062 2005-03-22  Bruno Haible  <bruno@clisp.org>
84063
84064         * config/srclist.txt: Replace target directory 'config' with
84065         'build-aux'.
84066         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84067         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84068         ../build-aux/.
84069
84070 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84071
84072         * modules/chdir-long (Depends-on): Add mempcpy.
84073
84074         * modules/acl, modules/backupfile, modules/c-strtod,
84075         modules/c-strtold, modules/canon-host, modules/canonicalize,
84076         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84077         modules/exclude, modules/exitfail, modules/file-type,
84078         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84079         modules/getdate, modules/getline, modules/getpagesize,
84080         modules/getpass, modules/getugroups, modules/group-member,
84081         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84082         modules/inttostr, modules/long-options, modules/makepath,
84083         modules/md5, modules/memcasecmp, modules/memcoll,
84084         modules/modechange, modules/mountlist, modules/path-concat,
84085         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84086         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84087         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84088         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84089         modules/strftime, modules/strndup, modules/strverscmp,
84090         modules/timespec, modules/unlocked-io, modules/userspec,
84091         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84092         modules/yesno:
84093         Remove lib_SOURCES line from Makefile.am section, as this is now
84094         done automatically by the corresponding Autoconf macro.
84095
84096 2005-03-21  Jim Meyering  <jim@meyering.net>
84097
84098         Changes imported from coreutils.
84099
84100         * lib/cycle-check.c: Don't include xalloc.h.
84101
84102         * lib/path-concat.c: Don't include assert.h.
84103         (path_concat): Remove assertion that would have triggered
84104         for ABASE starting with more than one slash.
84105         Reported by Andreas Schwab.
84106
84107         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84108         properly when ABASE is an absolute file name.
84109         Correct the description of this function.
84110         Include <assert.h>.
84111         Add an assertion and a test driver.
84112         This fixes a bug introduced on 2004-07-02.
84113         Andreas Schwab reported the resulting failure of cp --parents:
84114         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84115
84116 2005-03-21  Jim Meyering  <jim@meyering.net>
84117
84118         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84119         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84120
84121 2005-03-21  Jim Meyering  <jim@meyering.net>
84122         and  Paul Eggert  <eggert@cs.ucla.edu>
84123
84124         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84125         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84126         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84127         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84128         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84129         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84130         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84131         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84132         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84133         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84134         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84135         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84136         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84137         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84138         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84139         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84140         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84141         for these modules.
84142
84143 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84144
84145         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84146         (which shouldn't happen), generate nothing instead of returning 0
84147         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84148
84149 2005-03-16  Bruno Haible  <bruno@clisp.org>
84150
84151         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84152         HAVE_LONGLONG_64BIT.
84153
84154 2005-03-16  Bruno Haible  <bruno@clisp.org>
84155
84156         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84157         HAVE_LONGLONG_64BIT.
84158
84159 2005-03-16  Bruno Haible  <bruno@clisp.org>
84160
84161         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84162         HAVE_LONGLONG_64BIT.
84163
84164 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84165
84166         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84167         reliably distinguish strftime failure from empty output on POSIX
84168         hosts.
84169
84170 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84171
84172         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84173         (iconv_string): Don't guess a size-zero buffer, as that might cause
84174         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84175         result would be 'too large', where 'too large' is (heuristically)
84176         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84177         overflow concerns.  This will prevent some unwanted malloc failures
84178         when the inputs are very large.
84179
84180 2005-03-15  Karl Berry  <karl@gnu.org>
84181
84182         * config/srclist.txt (config.rpath): from gettext.
84183         * config/config.rpath: update.
84184
84185 2005-03-15  Bruno Haible  <bruno@clisp.org>
84186
84187         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84188         to 'negate'.
84189
84190         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84191         variable.
84192
84193         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84194         results.
84195
84196 2005-03-14  Simon Josefsson  <jas@extundo.com>
84197
84198         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84199         <fx@gnu.org>.
84200
84201 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84202
84203         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84204         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84205         intprops.h.
84206         * lib/strtol.c: Likewise.
84207
84208 2005-03-14  Jim Meyering  <jim@meyering.net>
84209
84210         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84211         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84212         to be nonzero so that we (and caller) can detect the difference
84213         between a valid zero-length expansion and an error return, even
84214         when the underlying strftime fails before writing anything into
84215         that location.
84216
84217 2005-03-14  Bruno Haible  <bruno@clisp.org>
84218
84219         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84220         Update from GNU gettext 0.14.3.
84221
84222 2005-03-10  Jim Meyering  <jim@meyering.net>
84223
84224         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84225
84226 2005-03-10  Jim Meyering  <jim@meyering.net>
84227
84228         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84229         so that this module works on systems without fchdir.
84230
84231 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84232
84233         Factor int-properties macros into a single file, except for
84234         glibc-related files.
84235         * lib/intprops.h: New file.
84236         * lib/getloadavg.c: Include it instead of limits.h.
84237         (INT_STRLEN_BOUND): Remove.
84238         * lib/human.c: Include intprops.h.
84239         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84240         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84241         302/1000.
84242         * lib/inttostr.h: Include intprops.h instead of limits.h.
84243         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84244         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84245         for consistency with intprops.h.
84246         (time_t_is_integer, twos_complement_arithmetic): Use them.
84247         * lib/sig2str.h: Include <signal.h>, intprops.h.
84248         (INT_STRLEN_BOUND): Remove.
84249         * lib/strftime.c (TYPE_SIGNED): Remove.
84250         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84251         * lib/strtol.c: Adjust comments to match intprops.h.
84252         * lib/userspec.c: Include intprops.h.
84253         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84254         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84255         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84256         instead of rolling our own expressions.
84257         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84258
84259         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84260         instead of int.
84261         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84262         the right thing even if adding 1900 would overflow.  Similarly
84263         for tm_mon + 1 and tm_yday + 1.
84264         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84265         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84266         (DO_SIGNED_NUMBER): New macro.
84267         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84268
84269 2005-03-07  Bruno Haible  <bruno@clisp.org>
84270
84271         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84272
84273 2005-03-07  Bruno Haible  <bruno@clisp.org>
84274
84275         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84276
84277 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84278
84279         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84280         (func_import): Only replace files via --import when they have actually
84281         changed.
84282
84283 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84284
84285         * m4/mmap-anon.m4: New file.
84286         * m4/pagealign_alloc.m4: New file.
84287
84288 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84289             Bruno Haible  <bruno@clisp.org>
84290
84291         * modules/pagealign_alloc: New file.
84292         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84293
84294 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84295             Bruno Haible  <bruno@clisp.org>
84296
84297         * lib/pagealign_alloc.h: New file.
84298         * lib/pagealign_alloc.c: New file.
84299
84300 2005-03-03  Bruno Haible  <bruno@clisp.org>
84301
84302         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84303         Use an all-permissive copyright notice, recommended by RMS.
84304
84305 2005-03-02  Bruno Haible  <bruno@clisp.org>
84306
84307         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84308         of AIX, the replacement has to be done only after <string.h> is
84309         included, therefore not in config.h. stpncpy.h does the replacement,
84310         and stpncpy.c uses it.
84311
84312 2005-03-02  Bruno Haible  <bruno@clisp.org>
84313
84314         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84315         stpncpy.c uses it.
84316
84317 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84318
84319         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84320         The workaround isn't strictly needed for POSIX conformance, and
84321         it's too much of a pain to configure and maintain.  We'll ask
84322         people to fix their kernels instead.
84323         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84324         (NANOSLEEP_BUG_WORKAROUND): Remove.
84325         (xnanosleep): Remove the workaround.
84326
84327 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84328
84329         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84330         Reported by Derek Price.
84331         (Include): Add "timespec.h".
84332
84333         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84334
84335 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84336
84337         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84338         to detect nanosleep bug.
84339
84340 2005-03-01  Bruno Haible  <bruno@clisp.org>
84341
84342         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84343
84344 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84345
84346         * modules/gethrxtime: New file.
84347         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84348         (Depends-on): Add gethrxtime.
84349         (configure.ac): Add gl_XNANOSLEEP.
84350         (Makefile.am): Remove lib_SOURCES line.
84351
84352 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84353
84354         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84355         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84356
84357 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84358
84359         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84360         * lib/timespec.h (gettime): Return void, since it always
84361         succeeds now.  All uses changed.
84362         * lib/gettime.c (gettime): Likewise.
84363         [HAVE_NANOTIME]: Prefer nanotime.
84364         Assume gettimeofday succeeds, as POSIX requires.
84365         Assime time () succeeds, since other code already does.
84366         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84367         (timespec_subtract): Remove.
84368         (NANOSLEEP_BUG_WORKAROUND): New constant.
84369         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84370         things considerably.  Use it only on GNU/Linux hosts, since the
84371         workaround shouldn't be needed elsewhere.
84372
84373 2005-02-24  Bruno Haible  <bruno@clisp.org>
84374
84375         * modules/gettext (Files): Add m4/glibc2.m4.
84376
84377 2005-02-24  Bruno Haible  <bruno@clisp.org>
84378
84379         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84380         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84381         * m4/progtest.m4:
84382         Update from GNU gettext 0.14.2.
84383         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84384
84385 2005-02-24  Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84388         * lib/config.charset: Update from GNU gettext 0.14.2.
84389
84390 2005-02-24  Bruno Haible  <bruno@clisp.org>
84391
84392         * lib/gettext.h: Update from GNU gettext 0.14.2.
84393
84394 2005-02-23  Simon Josefsson  <jas@extundo.com>
84395
84396         * m4/iconvme.m4: New file.
84397
84398 2005-02-23  Jim Meyering  <jim@meyering.net>
84399
84400         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84401         change.
84402         Thanks to Bruno Haible for catching it.
84403
84404 2005-02-22  Simon Josefsson  <jas@extundo.com>
84405
84406         * modules/iconvme: New file.
84407
84408         * MODULES.html.sh: Add iconvme.
84409
84410 2005-02-22  Simon Josefsson  <jas@extundo.com>
84411
84412         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84413
84414 2005-02-22  Simon Josefsson  <jas@extundo.com>
84415
84416         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84417
84418 2005-02-22  Jim Meyering  <jim@meyering.net>
84419
84420         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84421         s/ifndef/ifdef/.
84422
84423 2005-02-20  Neil Conway  <neilc@samurai.com>
84424
84425         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84426         returned by OSX/Darwin if the specified buffer is not large
84427         enough for the hostname.
84428
84429 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84430
84431         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84432         pass it to _help, otherwise the latter coredumps trying to
84433         dereference state.root_argp.
84434
84435 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         * modules/chdir-long (Depends-on): Add memrchr.
84438         * modules/memrchr (Files): Add lib/memrchr.h.
84439         (Include): "memrchr.h".
84440
84441 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84442
84443         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84444
84445 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         * lib/memrchr.h: New file.
84448         * lib/chdir-long.c: Include it.
84449         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84450         Don't bother including stddef.h.
84451
84452 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84453
84454         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84455         inclusion.
84456         Include <sys/types.h>, for dev_t.
84457         (ME_DUMMY, ME_REMOTE): Move from here....
84458         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84459         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84460         Dmitry V. Levin.
84461         Include mountlist.h first, to test the interface.
84462
84463 2005-01-29  Bruno Haible  <bruno@clisp.org>
84464
84465         * lib/progname.c (program_name): Initialize.
84466         Needed when linking statically on MacOS X.
84467
84468 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84469
84470         Sync from coreutils.
84471         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84472         (Depends-on): Add c-strtod.
84473         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84474
84475 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84476
84477         Sync from coreutils.
84478         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84479
84480         Remove files that are specific to coreutils.
84481         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84482
84483 2005-01-28  Bruno Haible  <bruno@clisp.org>
84484
84485         * modules/javacomp: New file.
84486         * MODULES.html.sh (Java): Add javacomp.
84487
84488 2005-01-28  Bruno Haible  <bruno@clisp.org>
84489
84490         * m4/javacomp.m4: New file, from GNU gettext.
84491
84492 2005-01-28  Bruno Haible  <bruno@clisp.org>
84493
84494         * lib/javacomp.sh.in: New file, from GNU gettext.
84495         * lib/javacomp.h: New file, from GNU gettext.
84496         * lib/javacomp.c: New file, from GNU gettext.
84497
84498 2005-01-26  Simon Josefsson  <jas@extundo.com>
84499
84500         * lib/gai_strerror.c: Use GPL in header.
84501
84502 2005-01-26  Bruno Haible  <bruno@clisp.org>
84503
84504         * modules/javaexec: New file.
84505         * MODULES.html.sh (Java): Add javaexec.
84506
84507 2005-01-26  Bruno Haible  <bruno@clisp.org>
84508
84509         * m4/javaexec.m4: New file, from GNU gettext.
84510
84511 2005-01-26  Bruno Haible  <bruno@clisp.org>
84512
84513         * lib/javaexec.sh.in: New file, from GNU gettext.
84514         * lib/javaexec.h: New file, from GNU gettext.
84515         * lib/javaexec.c: New file, from GNU gettext.
84516
84517 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84518
84519         * modules/lchown (Depends-on): Remove lchown.h
84520
84521 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84522
84523         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84524         must be defined if the header file was not found, in order
84525         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84526
84527 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84528
84529         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84530         initializers for struct pentry_state.
84531         (__argp_error): Check return value of __asprintf
84532         (__argp_failure): Translate error message
84533
84534         * lib/argp-parse.c: Removed braces around the expansion of N_()
84535
84536 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84537
84538         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84539         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84540         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84541         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84542         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84543         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84544         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84545         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84546         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84547         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84548         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84549         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84550         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84551         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84552         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84553         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84554         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84555         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84556         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84557         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84558         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84559         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84560         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84561         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84562         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84563         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84564         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84565         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84566         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84567         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84568         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84569         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84570         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84571         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84572         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84573         Use an all-permissive copyright notice, recommended by RMS.
84574
84575 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         * modules/chdir-long (Depends-on): Remove mempcpy.
84578
84579 2005-01-21  Jim Meyering  <jim@meyering.net>
84580
84581         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84582         same value as for Solaris 9.
84583
84584         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84585         component length.  This included changing the parameter to be
84586         of type `char *' rather than `char const *'.
84587         * lib/chdir-long.h (chdir_long): Update prototype.
84588
84589         * lib/openat.c (fdopendir, fstatat): New functions.
84590         * lib/openat.h: Include headers required for use of DIR and struct
84591         stat.
84592         [AT_SYMLINK_NOFOLLOW]: Define.
84593         (fdopendir, fstatat): Add prototypes.
84594
84595 2005-01-21  Bruno Haible  <bruno@clisp.org>
84596
84597         * modules/classpath: New file.
84598         * MODULES.html.sh (Java): Add classpath.
84599
84600 2005-01-21  Bruno Haible  <bruno@clisp.org>
84601
84602         * lib/classpath.h: New file, from GNU gettext.
84603         * lib/classpath.c: New file, from GNU gettext.
84604
84605 2005-01-20  Simon Josefsson  <jas@extundo.com>
84606
84607         * modules/version-etc-fsf: New file.
84608
84609 2005-01-20  Simon Josefsson  <jas@extundo.com>
84610
84611         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84612         * lib/version-etc.c: Remove version_etc_copyright.
84613         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84614         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84615
84616 2005-01-20  Simon Josefsson  <jas@extundo.com>
84617
84618         * lib/base64.h (isbase64): Add.
84619
84620         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84621         using a unsigned prototype, don't inline.
84622         (base64_decode): Use it.
84623
84624 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84625
84626         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84627         it.
84628
84629 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84630
84631         * lib/save-cwd.c (save_cwd): Remove code to support the case
84632         where fchdir is missing or flaky.
84633
84634 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84635
84636         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84637
84638 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84639
84640         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84641         AC_LIBSOURCES now does this.
84642         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84643         with new ullong_max module.
84644
84645 2005-01-19  Bruno Haible  <bruno@clisp.org>
84646
84647         * modules/sh-quote: New file.
84648         * MODULES.html.sh (Executing programs): Add sh-quote.
84649
84650 2005-01-19  Bruno Haible  <bruno@clisp.org>
84651
84652         * lib/sh-quote.h: New file, from GNU gettext.
84653         * lib/sh-quote.c: New file, from GNU gettext.
84654
84655 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84656
84657         Merge from coreutils.
84658         * m4/ullong_max.m4: New file.
84659         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84660         (gl_MACROS): Assume localeconv exists.
84661
84662 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         Merge changes from coreutils, as described below in several
84665         changelogs dated today.
84666
84667         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84668         (O_DIRECTORY): Remove; not needed here, since "." must be
84669         a directory.  All uses removed.
84670         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84671         universal on Suns, and we also need to test for IRIX.
84672         Revamp code to use 'if' rather than '#if'.
84673         Avoid unnecessary comparison of cwd->desc to 0.
84674
84675         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84676         for known valid error numbers rather than observed invalid ones.
84677
84678 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84679
84680         * modules/ullong_max: New file.
84681
84682         * modules/chdir-long, modules/openat: New files.
84683         * modules/save-cwd (Depends-on): Depend on chdir-long.
84684         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84685
84686 2005-01-18  Jim Meyering  <jim@meyering.net>
84687
84688         Merge from coreutils.
84689         * m4/chdir-long.m4, m4/openat.m4: New files.
84690         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84691         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84692         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84693         is sane and DOES follow symlinks.  Besides, testing 20 different
84694         systems found no broken chown implementations.
84695         Prompted by a change in rsync's copy of this macro.
84696         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84697
84698         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84699
84700         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84701         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84702         NULL-means-set-to-current-time semantics.
84703         Remove temporary file immediately, rather than waiting
84704         for configure's at-exit trap code to do it.
84705
84706 2005-01-18  Jim Meyering  <jim@meyering.net>
84707
84708         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84709
84710         * lib/utimens.c (futimens): Account for the fact that futimes
84711         can also fail with errno == ENOSYS or errno == ENOENT.
84712         Patch from Dmitry V. Levin.
84713
84714         Change the name of the robust chdir function from chdir to chdir_long.
84715         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84716         (restore_cwd): Use chdir_long, not chdir.
84717         * lib/chdir-long.c: Renamed from chdir.c.
84718         * lib/chdir-long.h: Renamed from chdir.h.
84719         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84720         Hurd.
84721
84722 2005-01-18  Bruno Haible  <bruno@clisp.org>
84723
84724         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84725         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84726         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84727         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84728         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84729         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84730         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84731         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84732         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84733         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84734         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84735         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84736         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84737         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84738         Use an all-permissive copyright notice, recommended by RMS.
84739
84740 2005-01-18  Bob Proulx  <bob@proulx.com>
84741
84742         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84743         simplify offsetof() macro construct to avoid compile failure with
84744         native HP-UX 11.0 ANSI C compiler.
84745
84746 2005-01-17  Bruno Haible  <bruno@clisp.org>
84747
84748         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84749         redundant because stpncpy.m4 takes care of it.
84750
84751 2005-01-17  Bruno Haible  <bruno@clisp.org>
84752
84753         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84754
84755 2005-01-17  Bruno Haible  <bruno@clisp.org>
84756
84757         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84758         used.
84759
84760 2005-01-17  Bruno Haible  <bruno@clisp.org>
84761
84762         * lib/fwriteerror.h (fwriteerror): Change specification to include
84763         fclose.
84764         * lib/fwriteerror.c: Include <stdbool.h>.
84765         (fwriteerror): At the end, close the file stream. Record whether
84766         stdout was already closed.
84767
84768 2005-01-17  Bruno Haible  <bruno@clisp.org>
84769
84770         * lib/execute.c (environ): Declare if needed.
84771         * lib/pipe.c (environ): Likewise.
84772         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84773
84774 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84775
84776         * modules/argp: Depend on vsnprintf
84777
84778 2005-01-10  Jim Meyering  <jim@meyering.net>
84779
84780         * modules/closeout (Depends-on): Add atexit.
84781
84782 2005-01-06  Bruno Haible  <bruno@clisp.org>
84783
84784         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84785
84786 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84787
84788         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84789         definitions to be after all include files, to avoid collisions.
84790         Problem reported by Bob Proulx.
84791
84792 2005-01-04  Jim Meyering  <jim@meyering.net>
84793
84794         Changes imported from coreutils.
84795         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84796         as the mkstemp template, use a temporary directory and an
84797         8.3-friendly template to avoid trouble on systems like DJGPP.
84798         Reported by Juan M. Guerrero via Stepan Kasal.
84799         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84800         close. Remove the temporary directory right away, rather than waiting
84801         for configure's at-exit trap code to do it.
84802         Suggestion from Stepan Kasal.
84803
84804 2005-01-01  Simon Josefsson  <jas@extundo.com>
84805
84806         * gnulib-tool: Print #include directives when --import'ing.
84807
84808 2004-12-28  Simon Josefsson  <jas@extundo.com>
84809
84810         * tests/test-base64.c: Include required header files.  Remove
84811         unused variables.
84812
84813 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84814
84815         * modules/error (Depends-on): Remove gettext.
84816
84817 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84818
84819         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84820         not needed.  This removes a dependency on the gettext module.
84821         [defined _LIBC]: Do not include <libintl.h>; not needed.
84822
84823 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84824
84825         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84826         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84827
84828 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84831         HAVE_DECL_STRTOLD.
84832
84833 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84834
84835         * modules/getdate (Depends-on): Remove alloca-opt.
84836
84837 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84838
84839         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84840
84841 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84842
84843         * lib/argp-parse.c: Include <stddef.h>.
84844         (alignof, alignto): New macros.
84845         (parser_init): Don't assume that void * is aligned sufficiently
84846         for struct option.
84847
84848         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84849         need to extend the stack.
84850         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84851         large.
84852
84853 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84854
84855         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84856
84857 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84858
84859         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84860         (2004-10-24) change.  Apparently this was a false alarm.
84861
84862         * modules/getdate: Depend on alloca-opt, not alloca.
84863
84864 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84865
84866         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84867         Remove now-obsolete comment about AIX.
84868         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84869         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84870         (YYMAXDEPTH): New macro.
84871
84872 2004-12-18  Simon Josefsson  <jas@extundo.com>
84873
84874         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84875
84876 2004-12-18  Bruno Haible  <bruno@clisp.org>
84877
84878         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84879
84880 2004-12-18  Bruno Haible  <bruno@clisp.org>
84881
84882         * lib/fatal-signal.c (fatal_signals): Make non-const.
84883         (init_fatal_signals): New function.
84884         (uninstall_handlers, install_handlers): Ignore signals that were set to
84885         SIG_IGN.
84886         (at_fatal_signal): Call init_fatal_signals.
84887         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84888         SIG_IGN.
84889         Reported by Paul Eggert.
84890
84891 2004-12-18  Bruno Haible  <bruno@clisp.org>
84892
84893         * doc/alloca.texi: New file.
84894         * doc/alloca-opt.texi: New file.
84895
84896 2004-12-17  Jim Meyering  <jim@meyering.net>
84897
84898         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84899         Otherwise, install-sh could exit with improper exit status when
84900         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84901
84902 2004-12-16  Simon Josefsson  <jas@extundo.com>
84903
84904         * tests/test-base64.c: Add license.
84905
84906 2004-12-15  Stepan Kasal  <address@hidden>
84907
84908         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84909
84910 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * modules/getcwd (Files): Add m4/d-ino.m4.
84913         Suggested by Mark D. Baushke.
84914
84915 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         * lib/getdate.y (textint): New member "negative".
84918         (time_zone_hhmm): New function.
84919         Expect 14 shift-reduce conflicts, not 13.
84920         (o_colon_minutes): New rule.
84921         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84922         (yylex): Set the "negative" member of signed numbers.
84923
84924 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84925
84926         * doc/getdate.texi (Time of day items, Time zone items):
84927         Describe new formats +00:00, UTC+00:00.
84928
84929 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84930
84931         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84932         spurious "-l"s.  Problem reported by Stepan Kasal.
84933
84934 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84935
84936         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84937         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84938
84939 2004-12-04  Simon Josefsson  <jas@extundo.com>
84940
84941         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84942         Vandoorselaere <yoann@prelude-ids.org>.
84943
84944 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84945
84946         Changes imported from coreutils.
84947         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84948         exist.
84949         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84950
84951 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84952
84953         Changes imported from coreutils.
84954         * lib/hard-locale.c: Assume <locale.h> exists.
84955         Include "strdup.h".
84956         (GLIBC_VERSION): New macro.
84957         (hard_locale): Assume setlocale exists.
84958         Rewrite to avoid #ifdef.
84959         Use strdup rather than malloc + strcpy.
84960         * lib/human.c: Assume <locale.h> exists.
84961         (human_readable): Assume localeconv exists.
84962
84963 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84964
84965         * modules/hard-locale (Depends-on): Add strdup.
84966
84967 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84968
84969         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84970         convert T2, not T.  (Imported from libc.)
84971
84972 2004-11-30  Simon Josefsson  <jas@extundo.com>
84973
84974         * modules/restrict (License): Change to LGPL.
84975
84976 2004-11-30  Simon Josefsson  <jas@extundo.com>
84977
84978         * m4/restrict.m4: Add copyright and copying conditions.
84979
84980 2004-11-30  Simon Josefsson  <jas@extundo.com>
84981
84982         * m4/base64.m4: New file.
84983
84984 2004-11-30  Simon Josefsson  <jas@extundo.com>
84985
84986         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84987         base64.
84988
84989         * tests/test-base64.c: New file.
84990
84991         * modules/base64: New file.
84992
84993 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84994
84995         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84996         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84997
84998         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84999
85000 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85001
85002         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85003         (__getcwd.c): Don't restore errno; glibc doesn't.
85004         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85005         first, falling back to our code only if its results look suspicious.
85006         Ensure that the resulting buffer is only as large as necessary.
85007
85008         * lib/readutmp.c: Include readutmp.h first.
85009         Include <errno.h>, since readutmp.h no longer does that.
85010         * lib/readutmp.h: Don't include <errno.h>,
85011         <sys/param.h>, <time.h>; not needed to establish interface.
85012         (errno): Remove decl.
85013         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85014         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85015         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85016
85017 2004-11-28  Simon Josefsson  <jas@extundo.com>
85018
85019         * lib/base64.h, base64.c: New file.
85020
85021 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85022
85023         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85024
85025 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85026
85027         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85028         (Depends-on): Remove pathmax, same.  Add mempcpy.
85029         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85030         (Makefile.am): Append getcwd.h to lib_SOURCES.
85031         (Include): Add getcwd.h.
85032         (Maintainer): Change from Jim Meyering to "all, glibc",
85033         since getdate now uses intended-for-glibc code.
85034         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85035         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85036
85037 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85038
85039         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85040         HP's ANSI C compiler.
85041         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85042         Declaring int functions causes warnings on some modern systems and
85043         shouldn't be needed to compile on ancient ones.
85044         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85045         defined.
85046
85047         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85048         with the following changes.
85049         (__set_errno): Parenthesize properly.
85050         Include <stdbool.h>.
85051         (MIN, MAX, MATCHING_INO): New macros.
85052         (__getcwd): Define with prototype, not K&R form.
85053         Use heuristics to allocate default buffer on stack if possible.
85054         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85055         behavior, and to avoid the PATH_MAX limit when computing
85056         ../../../../...
85057         Use MATCHING_INO to compare inode number to file.
85058         Check for arithmetic overflow in size calculations.
85059         Fix bug in reallocation of dot array that caused getcwd to fail
85060         on directories nested deeper than 75.
85061         Be more careful about saving errno on error.
85062         Do not use realloc; use only free+malloc, as this is a bit
85063         more flexible and avoids a needless copy operation.
85064         Do not inspect st_dev and st_ino for symbolic links; POSIX
85065         doesn't specify the latter.
85066         Check for closedir errors.
85067         Avoid needless casts.
85068         Use "#ifdef weak_alias" around weak_alias, to be like other
85069         glibc code.
85070         The following changes to getcwd.c have effect only when used in
85071         gnulib; they have no effect inside glibc proper.
85072         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85073         as alloca isn't used.
85074         (alloca, __alloca): Likewise.
85075         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85076         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85077         unconditionally, as gnulib assumes C89 or better.
85078         Do not include <sys/param.h>.
85079         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85080         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85081         better.
85082         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85083         Include <dirent.h> in a way that is compatible with modern Autoconf.
85084         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85085         New macros, if not already defined.
85086         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85087         Use "_LIBC", not "defined _LIBC", for consistency.
85088         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85089         a mempcpy module.
85090         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85091         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85092         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85093         credit only to Jim Meyering and adjust the copyright dates.
85094         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85095         <stdlib.h>, <unistd.h>, "pathmax.h".
85096         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85097         (INITIAL_BUFFER_SIZE): Remove.
85098         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85099
85100 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85101
85102         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85103         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85104         Use the _ONCE methods, for efficiency.
85105         Check for fcntl.h.  In test program, include <errno.h>
85106         and <fcntl.h> if available.  Remove old K&R cruft from
85107         test program.  Check for common errors in GNU/Linux,
85108         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85109         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85110         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85111         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85112         name accordingly.
85113         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85114         accommodate new getcwd.c.
85115         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85116         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85117         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85118         that's all we need now.
85119
85120 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85121
85122         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85123         argp-parse.c depends on getopt internals, that means we should
85124         always use our getopt, to be on the safe side.
85125         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85126         order not to spoil the result of an eventual previous invocation
85127         of gl_GETOPT_SUBSTITUTE.
85128
85129 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85130
85131         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85132         redefinition warnings. To avoid them, include the defines
85133         in `#if !defined __need_getopt ... #endif'. The only place
85134         where __getopt_argv_const is used is in definitions
85135         of getopt_long and getopt_long_only below, which are as well
85136         protected by `#ifndef __need_getopt'.
85137         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85138         __need_getopt after including <stdio.h> and <unistd.h> These
85139         headers might have defined it.
85140
85141 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85142
85143         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85144
85145 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85146
85147         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85148         (futimens): New function, which uses futimes if available.
85149         (futimens, utimens): Support timespec==NULL, with same semantics
85150         as utime and utimens.
85151         * lib/utimens.h (futimens): New decl.
85152
85153 2004-11-23  Jim Meyering  <jim@meyering.net>
85154
85155         * lib/getopt_.h: Remove trailing blanks.
85156
85157 2004-11-23  Jim Meyering  <jim@meyering.net>
85158
85159         * lib/__fpending.c: Add comment.
85160
85161 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85162
85163         * modules/canonicalize (Depends-on): Add xreadlink.
85164         Problem reported by James Youngman.
85165
85166 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85167
85168         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85169         New macros.
85170         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85171         optopt): Use them instead of invoking ## directly; otherwise, the
85172         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85173
85174 2004-11-19  Bruno Haible  <bruno@clisp.org>
85175
85176         * lib/strtok_r.c: Move comments from here...
85177         * lib/strtok_r.h: ... to here.
85178
85179 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85180
85181         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85182         implementations that mishandle size_t overflow.
85183
85184 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85185
85186         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85187         might fail.  Problem reported by Yoann Vandoorselaere.
85188         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85189         implementations that mishandle size_t overflow.
85190
85191 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85192
85193         * modules/canon-host (Depends-on): Add strdup.
85194
85195 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85196
85197         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85198
85199 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85200
85201         * lib/canon-host.c: Include "strdup.h".
85202         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85203         Use strdup instead of malloc/strcpy to duplicate strings.
85204
85205         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85206         (human_space_before_unit): New constant.
85207         * lib/human.c (human_readable): Support it.
85208
85209         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85210         (xgetcwd): Set errno correctly when failing.
85211         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85212         the failure is actually due to a PATH_MAX problem.
85213
85214         Further getopt changes to make it more likely that glibc will
85215         buy the changes back.
85216         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85217         (getopt): Use it, so to preserve glibc semantic
85218         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85219         when compiling for libc.
85220         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85221         (getopt_long, getopt_long_only): Use it.
85222
85223         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85224         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85225         (getopt): Argv is now char * const *, as per standard.
85226         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85227         not char *__getopt_argv_const *.
85228         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85229         _getopt_long_only_r): Likewise.
85230         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85231         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85232         _getopt_long_r, _getopt_long_only_r): Likewise.
85233         * lib/getopt_.h (__getopt_argv_const): Remove.
85234         (getopt): Argv is now char * const *, as per standard.
85235
85236         * lib/getdate.y (tORDINAL): New token.
85237         (day, relunit): Allow it for relative times.
85238         (relative_time_table): Use tORDINAL for ordinals.
85239
85240 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85241
85242         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85243         Document that "second" isn't allowed as an ordinal number.
85244
85245 2004-11-16  Jim Meyering  <jim@meyering.net>
85246
85247         * modules/closeout (Depends-on): Add fpending.
85248
85249 2004-11-15  Jim Meyering  <jim@meyering.net>
85250
85251         * lib/closeout.c: Include "__fpending.h" once again.
85252         Include <stdbool.h>.
85253         (close_stdout): Don't fail just because stdout was closed initially,
85254         since some programs don't write to stdout in the normal course of
85255         operation (other than --version and --help), and we don't want this
85256         function to make e.g. `touch file >&-' fail.
85257         But do fail if it was closed and someone has tried to write to it.
85258         E.g., `printf foo >&-' must fail.
85259
85260 2004-11-13  Jim Meyering  <jim@meyering.net>
85261
85262         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85263
85264 2004-11-12  Simon Josefsson  <jas@extundo.com>
85265
85266         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85267         small doc fix is still pending.
85268
85269 2004-11-11  Simon Josefsson  <jas@extundo.com>
85270
85271         * modules/strtok_r: New file.
85272
85273         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85274         strtok_r.
85275
85276 2004-11-11  Simon Josefsson  <jas@extundo.com>
85277
85278         * m4/strtok_r.m4: New file.
85279
85280         * m4/getopt.m4: Replace opterr.
85281
85282 2004-11-11  Simon Josefsson  <jas@extundo.com>
85283
85284         * lib/strtok_r.h, strtok_r.c: New file.
85285
85286 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85287
85288         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85289         of replacing opterr, getopt, etc.  This should handle the
85290         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85291
85292 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85293
85294         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85295         we can stop lying to compilers about the constness of argv when we
85296         are compiled outside glibc.
85297         (getopt, getopt_long, getopt_long_only): Use it.
85298         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85299         _getopt_internal, getopt): Likewise.
85300         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85301         _getopt_long_only_r): Likewise.
85302         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85303         _getopt_long_r, _getopt_long_only_r): Likewise.
85304
85305         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85306         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85307         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85308         the other external symbols.
85309         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85310         declaration, since the above renaming now works around collisions.
85311
85312 2004-11-11  Jim Meyering  <jim@meyering.net>
85313
85314         * lib/linebreak.c: Remove trailing blanks.
85315         * lib/alloca_.h: Likewise.
85316         * lib/acosl.c: Likewise.
85317         * lib/euidaccess.c: Likewise.
85318         * lib/allocsa.h: Likewise.
85319
85320 2004-11-10  Simon Josefsson  <jas@extundo.com>
85321
85322         * m4/getaddrinfo.m4: New file.
85323
85324 2004-11-10  Simon Josefsson  <jas@extundo.com>
85325
85326         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85327
85328 2004-11-10  Simon Josefsson  <jas@extundo.com>
85329
85330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85331         getaddrinfo.
85332
85333         * modules/getaddrinfo: New file.
85334
85335 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85336
85337         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85338
85339 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85340
85341         * lib/mktime.c (SHR): New macro, which is a portable
85342         substitute for >> that should work even on Crays.
85343         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85344         Problem reported by Mark D. Baushke in
85345         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85346         * lib/getdate.y (SHR): Likewise.
85347         (tm_diff): Use it.
85348         * lib/strftime.c (SHR): Likewise.
85349         (tm_diff): Use it.
85350         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85351         quote_these_too, so that right shifts are well defined.  All uses
85352         changed.
85353
85354 2004-11-10  Jim Meyering  <jim@meyering.net>
85355
85356         Ensure that no close failure goes unreported.
85357         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85358         return early when it seems there's nothing to flush.
85359         Don't include __fpending.h.
85360
85361 2004-11-10  Jim Meyering  <jim@meyering.net>
85362
85363         * modules/closeout (Depends-on): Remove fpending.
85364
85365 2004-11-10  Jim Meyering  <jim@meyering.net>
85366
85367         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85368
85369 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85370
85371         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85372         gl_FUNC_STRFTIME.
85373         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85374         and AC_REQUIRE when possible, to avoid duplicate checks.
85375         Check for <wchar.h>.
85376
85377 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85378
85379         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85380
85381 2004-11-09  Bruno Haible  <bruno@clisp.org>
85382
85383         * m4/sockpfaf.m4: New file.
85384
85385 2004-11-05  Bruno Haible  <bruno@clisp.org>
85386
85387         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85388         Reported by Mark D. Baushke <mdb@cvshome.org>.
85389
85390 2004-11-04  Bruno Haible  <bruno@clisp.org>
85391
85392         2004-09-11  Bruno Haible  <bruno@clisp.org>
85393                 * allocsa.valgrind: New file.
85394         2004-02-06  Bruno Haible  <bruno@clisp.org>
85395                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85396                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85397                 Reported by Christopher Seip <chris.seip@hp.com>.
85398
85399 2004-11-04  Bruno Haible  <bruno@clisp.org>
85400
85401         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85402         (Makefile.am): Distribute it.
85403
85404 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85405
85406         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85407         with errno == ERANGE if the buffer is too small.
85408         Problem reported by Mark D. Baushke.
85409
85410 2004-11-03  Albert Chin  <china@thewrittenword.com>
85411             Paul Eggert  <eggert@cs.ucla.edu>
85412
85413         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85414         equivalent, substitute $ac_type for equivalent type rather than
85415         blindly using uint32_t *always* which won't work if uint32_t is not
85416         available.  Define _UINT32_T to work around typedef of uint32_t if
85417         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85418         2.5.1.
85419
85420 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85421
85422         * m4/jm-macros.m4: Sync from coreutils.
85423         (gl_MACROS): Check for mbrlen, for pathchk.
85424         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85425
85426 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85427
85428         * lib/xreadlink.c (MAXSIZE): New macro.
85429         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85430         size does not exceed MAXSIZE.  Avoid cast.
85431         As suggested by Mark D. Baushke in
85432         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85433         if readlink fails with buffer size just under MAXSIZE, try again
85434         with MAXSIZE.
85435
85436 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85437
85438         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85439
85440 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85441         and  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85444         (get_date): Overparenthesize to avoid GCC warning.
85445
85446 2004-11-02  Bruno Haible  <bruno@clisp.org>
85447
85448         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85449         returns void.
85450
85451 2004-11-02  Bruno Haible  <bruno@clisp.org>
85452
85453         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85454         function returns void.
85455
85456 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85457
85458         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85459         fflush_unlocked, flockfile, funlockfile, funlockfile,
85460         fputs_unlocked, putc_unlocked.
85461
85462 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85463
85464         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85465         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85466         already declared.
85467
85468 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85469
85470         * modules/getdate (Files): Add doc/getdate.texi.
85471         (Depends-on): Add setenv, xalloc.
85472
85473 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85474
85475         * lib/getdate.y: Add support for TZ="foo" within a date string.
85476         Fix some bugs near time_t boundaries.  Reject dates with
85477         out-of-range components, e.g., "Sept 31".
85478         Include <stdlib.h>, "setenv.h", "xalloc.h".
85479         (ISDIGIT_LOCALE): Remove; unused.
85480         Note that the TZ and time functions used here are not reentrant.
85481         (mktime_ok, get_tz): New functions.
85482         (TZBUFSIZE): New constant.
85483         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85484         This requires that we sometimes generate our own TZ="XXX..." setting.
85485
85486 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85487
85488         * doc/getdate.texi: New file, from coreutils with modifications for
85489         the new TZ parsing.
85490
85491 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85492
85493         * lib/mktime.c (not_equal_tm): Remove redundant check.
85494
85495 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85496
85497         * modules/regex (lib_SOURCES): Add regex.c.
85498         Reported by James Youngman in
85499         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85500
85501 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85502
85503         * lib/getdate.y: Use Bison 1.875 features, and some minor
85504         code cleanups.  This change does not affect semantics.
85505         Don't include <stdlib.h>; no longer needed.
85506         Don't include unlocked-io.h; only the "#if TEST" code uses
85507         stdio, and performance isn't crucial there.
85508         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85509         Bison 1.875 features as described below.
85510         All uses of "PC." replaced by "pc->".
85511         (YYSTYPE): Add a forward declaration.
85512         (yylex, yyerror): Use full prototypes in forward decls.
85513         Use "%pure-parser" rather than obsolescent "%pure_parser".
85514         Use %parse-param and %lex-param instead of obsolescent
85515         YYPARSE_PARAM and YYLEX_PARAM.
85516         (meridian_table, month_and_day_table, time_units_table,
85517         relative_time_table, time_zone_table, military_table,
85518         lookup_zone, lookup_word, get_date):
85519         Use NULL instead of 0 where appropriate.
85520         (to_hour): Avoid abort (), to avoid a dependency on
85521         stdlib.h.
85522         (yyerror, yylex): Now accepts parser_control * arg.
85523         (main) [TEST]: Use '\0' rather than 0 for char.
85524
85525 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85526
85527         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85528
85529 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85532         It's now the caller's responsibility to handle the case where
85533         !HAVE_GETPAGESIZE && !defined getpagesize.
85534
85535         * lib/mktime.c (leapyear): Arg is long int, not int.
85536
85537 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85538
85539         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85540
85541 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85542
85543         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85544         missing.  Problem reported by James Youngman.
85545
85546 2004-10-16  Simon Josefsson  <jas@extundo.com>
85547
85548         * gnulib-tool: Fix comments.  Fix parse problem.
85549         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85550
85551 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85552
85553         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85554         implementation of getopt_long.  Problem reported by Alexander Taler in:
85555         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85556
85557 2004-10-15  Bruno Haible  <bruno@clisp.org>
85558
85559         * gnulib-tool: Untabify. Initialize supplied_libname.
85560         (func_usage): More homogenous output.
85561         (func_modules_transitive_closure, func_modules_to_filelist,
85562         func_emit_lib_Makefile_am): New functions.
85563         (func_import): New function, extracted from big case statement. Use
85564         func_get_license, func_modules_transitive_closure,
85565         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85566         opt_lgpl. Don't use test -a, as it's not portable.
85567         (func_create_testdir): Use func_modules_transitive_closure,
85568         func_modules_to_filelist, func_emit_lib_Makefile_am.
85569
85570 2004-10-15  Bruno Haible  <bruno@clisp.org>
85571
85572         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85573
85574 2004-10-15  Bruno Haible  <bruno@clisp.org>
85575
85576         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85577         the portions belonging to each module.
85578         Suggested by Derek Robert Price <derek@ximbiot.com>.
85579
85580 2004-10-12  Simon Josefsson  <jas@extundo.com>
85581
85582         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85583         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85584         to real functions.
85585
85586 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85587
85588         * modules/vsnprintf: New file.
85589
85590 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85591
85592         * m4/vsnprintf.m4: New file.
85593
85594 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85595
85596         * lib/vsnprintf.h: New file.
85597         * lib/vsnprintf.c: New file.
85598
85599 2004-10-11  Bruno Haible  <bruno@clisp.org>
85600
85601         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85602         vsnprintf.
85603
85604 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85605
85606         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85607
85608 2004-10-07  Bruno Haible  <bruno@clisp.org>
85609
85610         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85611         fits into the provided buffer.
85612
85613 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85614
85615         * lib/diacrit.c, diacrit.h: Add GPL notice.
85616
85617         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85618         notice.
85619         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85620         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85621         This avoids a potential constant-folding bug.
85622
85623 2004-10-05  Bruno Haible  <bruno@clisp.org>
85624
85625         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85626         for the declaration of strsep.
85627
85628 2004-10-05  Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85631
85632 2004-10-04  Simon Josefsson  <jas@extundo.com>
85633
85634         * modules/memmem: New file.
85635         * tests/test-memmem.c: New file.
85636         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85637
85638 2004-10-04  Simon Josefsson  <jas@extundo.com>
85639
85640         * m4/memmem.m4: New file.
85641
85642 2004-10-04  Simon Josefsson  <jas@extundo.com>
85643
85644         * lib/memmem.h: New file.
85645         * lib/memmem.c: New file, taken from glibc.
85646
85647 2004-10-04  Simon Josefsson  <jas@extundo.com>
85648
85649         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85650         '#ifdef USE_UNLOCKED_IO'.
85651
85652 2004-10-04  Simon Josefsson  <jas@extundo.com>
85653
85654         * config/srclist.txt: Add memmem from glibc.
85655
85656 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85657
85658         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85659
85660         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85661         modules/exclude, modules/getdate, modules/getline,
85662         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85663         modules/getusershell, modules/linebuffer, modules/md5,
85664         modules/mountlist, modules/posixtm, modules/readtokens,
85665         modules/readutmp, modules/regex, modules/sha1,
85666         modules/version-etc, modules/yesno:
85667         Remove dependency on unlocked-io.
85668
85669 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85670
85671         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85672
85673         * m4/unlocked-io.m4: Add copyright notice.
85674         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85675
85676 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85677
85678         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85679         * lib/xmalloc.c (xmemdup): Likewise.
85680         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85681         XFREE): Remove these long-obsolescent macros.
85682         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85683         * lib/xstrdup.c: Remove.
85684
85685         * lib/regex.c (re_comp): Cast gettext return value to char *,
85686         Problem reported by Martin Neitzel via Mark D. Baushke.
85687
85688 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85689
85690         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85691         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85692         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85693         regex.c, sha1.c, version-etc.c, yesno.c:
85694         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85695         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85696         the includer's responsibility.
85697
85698         Sync from coreutils.
85699
85700         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85701         points to the start of a string, as the C Standard says the
85702         resulting behavior is undefined.
85703
85704         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85705         simple -> simple_backups, numbered_existing ->
85706         numbered_existing_backups, numbered -> numbered_backups
85707         to avoid shadowing problems.  All uses changed.
85708         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85709         * lib/backupfile.c (check_extension, numbered_backup):
85710         Rename locals to avoid shadowing 'basename'.
85711         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85712         once.
85713
85714         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85715         * lib/.cvsignore: Add getopt.h.
85716
85717 2004-10-04  Bruno Haible  <bruno@clisp.org>
85718
85719         * modules/README: New file.
85720         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85721         not a module.
85722
85723 2004-10-02  Jim Meyering  <jim@meyering.net>
85724
85725         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85726
85727 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85728
85729         * modules/strsep: New file.
85730
85731 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85732
85733         * m4/strsep.m4: New file.
85734
85735 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85736
85737         * lib/strsep.h: New file.
85738         * lib/strsep.c: New file.
85739
85740 2004-10-01  Simon Josefsson  <jas@extundo.com>
85741
85742         * lib/snprintf.c (snprintf): Handle size==0.
85743
85744 2004-10-01  Simon Josefsson  <jas@extundo.com>
85745             Bruno Haible  <bruno@clisp.org>
85746
85747         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85748         (snprintf): Declare 'args'.
85749
85750 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85751
85752         * lib/snprintf.c: Remove comments as to why each header is needed.
85753
85754 2004-10-01  Bruno Haible  <bruno@clisp.org>
85755
85756         * MODULES.html.sh: Add strsep.
85757
85758 2004-09-30  Simon Josefsson  <jas@extundo.com>
85759
85760         * modules/snprintf: New file.
85761
85762 2004-09-30  Simon Josefsson  <jas@extundo.com>
85763
85764         * m4/snprintf.m4: New file.
85765
85766 2004-09-30  Simon Josefsson  <jas@extundo.com>
85767
85768         * lib/snprintf.h, lib/snprintf.c: New files.
85769
85770 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85771
85772         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85773         (hol_entry_help): Never translate an empty string.
85774         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85775         * lib/argp.h (OPTION_NO_TRANS): New option.
85776
85777 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85778
85779         * modules/argp (Maintainer): Replace Simon Josefsson
85780         by Sergey Poznyakoff.
85781
85782 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85783
85784         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85785         changes merged back into glibc.
85786
85787 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85788
85789         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85790
85791 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85792
85793         * lib/xvasprintf.c: Include xalloc.h.
85794         (xvasprintf): Use xalloc_die, not xmalloc_die.
85795
85796 2004-09-29  Bruno Haible  <bruno@clisp.org>
85797
85798         * modules/alloca-opt: New file, derived from modules/alloca.
85799         * modules/allocsa: Depend on alloca-opt instead of alloca.
85800         * modules/setenv: Likewise.
85801         * modules/vasnprintf: Likewise.
85802         * MODULES.html.sh: Add alloca-opt.
85803
85804 2004-09-28  Simon Josefsson  <jas@extundo.com>
85805
85806         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85807         LGPL, and to replace license template from GPL to LGPL.
85808
85809 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85810
85811         * modules/dummy: Change license to LGPL.
85812
85813 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85814
85815         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85816
85817 2004-09-24  Simon Josefsson  <jas@extundo.com>
85818
85819         * modules/minmax (License): Change from GPL to LGPL.
85820
85821 2004-09-23  Simon Josefsson  <jas@extundo.com>
85822
85823         * gnulib-tool (--import): Typo.
85824
85825 2004-09-23  Simon Josefsson  <jas@extundo.com>
85826
85827         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85828
85829 2004-09-22  Bruno Haible  <bruno@clisp.org>
85830
85831         * modules/*: Add 'License' field.
85832         * gnulib-tool: Accept --extract-license option.
85833         (func_get_license): New function.
85834
85835 2004-09-21  Bruno Haible  <bruno@clisp.org>
85836
85837         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85838         Reported by Simon Josefsson.
85839
85840 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85841
85842         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85843         gl_AC_TYPE_LONG_LONG.
85844
85845 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85846
85847         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85848
85849 2004-09-18  Simon Josefsson  <jas@extundo.com>
85850         and  Paul Eggert  <eggert@cs.ucla.edu>
85851
85852         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85853         calls with autoreconf.  Define GL_LIB.
85854
85855 2004-09-14  Karl Berry  <karl@gnu.org>
85856
85857         * config/srclist.txt: unsync setenv.c, sigh.
85858
85859 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85860
85861         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85862         Problem reported by Bruno Haible in:
85863         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85864
85865 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85866
85867         * config/srclist.txt: Comment out argp-pvh.c.
85868
85869 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85870
85871         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85872         in case some system header has #define'd it.  Problem reported by
85873         Soeren D. Schulze in
85874         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85875
85876 2004-09-09  Karl Berry  <karl@gnu.org>
85877
85878         * regex.[ch]: delete from the root.  These were supposed to be
85879                 synced with emacs cvs, but this has not happened for about
85880                 a year, and anyway nothing else uses emacs regex.[ch].
85881                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85882                 lib/regex[.ch] is untouched.
85883
85884 2004-09-09  Bruno Haible  <bruno@clisp.org>
85885
85886         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85887
85888 2004-09-09  Bruno Haible  <bruno@clisp.org>
85889
85890         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85891         modifications.
85892         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85893
85894 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85895
85896         * modules/xvasprintf: New file.
85897         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85898
85899 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85900
85901         * lib/xvasprintf.h: New file.
85902         * lib/xvasprintf.c: New file.
85903         * lib/xasprintf.c: New file.
85904
85905 2004-09-08  Bruno Haible  <bruno@clisp.org>
85906
85907         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85908
85909 2004-09-08  Bruno Haible  <bruno@clisp.org>
85910
85911         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85912         length is > INT_MAX.
85913         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85914         more.
85915
85916 2004-09-08  Bruno Haible  <bruno@clisp.org>
85917
85918         * lib/stdint_.h: New file, taken from GNU clisp.
85919
85920 2004-09-08  Bruno Haible  <bruno@clisp.org>
85921             Oskar Liljeblad  <oskar@osk.mine.nu>
85922
85923         * modules/stdint: New file.
85924         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85925
85926 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85927
85928         Import from coreutils.
85929         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85930         strings on unbounded length.  alloca's performance benefits aren't
85931         that important here.
85932         (V_STRDUP): Remove.
85933         (parse_with_separator): New function, with most of the internals
85934         of the old parse_user_spec.  Allow user to omit both user and group,
85935         for compatibility with FreeBSD.
85936         Clone only the user name, not the entire spec.
85937         Do not set *uid, *gid unless entirely successful.
85938         Avoid memory leak in some failing cases.
85939         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85940         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85941         (parse_user_spec): Rewrite to use parse_with_separator.
85942
85943 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85944
85945         * modules/userspec: Don't depend on alloca.
85946
85947 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85950
85951 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85952
85953         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85954         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85955         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85956
85957 2004-08-16  Simon Josefsson  <jas@extundo.com>
85958
85959         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85960         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85961         Add --dry-run for --import.
85962         Let user provided command line parameters override configure.ac
85963         settings.
85964
85965 2004-08-12  Simon Josefsson  <jas@extundo.com>
85966
85967         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85968         as discussed with Paul Eggert in threads rooted at
85969         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85970         and
85971         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85972         Before, the test was empty, and relied on ELIDE_CODE in source
85973         code.)
85974         (gl_PREREQ_GETOPT): New macro.
85975         (gl_GETOPT): Use them.
85976
85977 2004-08-12  Simon Josefsson  <jas@extundo.com>
85978
85979         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85980         * lib/getopt_.h: Renamed from getopt.h.
85981
85982 2004-08-12  Simon Josefsson  <jas@extundo.com>
85983
85984         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85985         Change default library name from libfoo to libgnu.
85986         Now, if you have a configure.ac that says:
85987                 gl_SOURCE_BASE(gl)
85988                 gl_M4_BASE(gl/m4)
85989                 gl_MODULES(error getopt etcetera)
85990                 gl_INIT
85991         you can import all you need by running:
85992                 ../gnulib/gnulib-tool --import
85993
85994         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85995         (Makefile.am): Rewrite, use logic from argz.
85996         (Include): Use <getopt.h> instead of "getopt.h".
85997
85998 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85999
86000         * modules/argp (Files): Add m4/unlocked-io.m4.
86001         (Depends-on): Add extensions.
86002
86003 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86004
86005         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86006         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86007         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86008         Check for program_invocation_name, program_invocation_short_name,
86009         flockfile, funlockfile, features.h, _getopt_long_only_r.
86010
86011 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86012
86013         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86014         its complicated substitute.
86015         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86016         and program_invocation_name.
86017         (__argp_basename) [!_LIBC]: Remove; the only use was
86018         replaced by its body.
86019         (__argp_short_program_name): Change condition from
86020         !defined __argp_short_program_name to
86021         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86022         to match argp-namefrob.h.
86023         (__argp_failure): Don't assume strerror_r returns char *.
86024         * lib/argp-parse.c (N_): Define unconditionally.
86025         (argp_default_options): Fill out initializers with 0 to avoid
86026         gcc warnings.
86027
86028 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86029
86030         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86031         getopt1.c.
86032
86033 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86034
86035         Merge from coreutils.
86036
86037         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86038
86039         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86040         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86041
86042 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86043
86044         Merge from coreutils.
86045
86046         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86047         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86048         for Reliant Unix 5.43.
86049
86050         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86051         (union fooround): Use uintmax_t, not long int.
86052         The rest is a merge from libc:
86053         [defined _LIBC]: Include <shlib-compat.h>.
86054         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86055
86056         * lib/settime.c (settime): Recode to avoid warning with
86057         Sun Forte C 6U2.
86058
86059         * lib/strverscmp.c: Convert to UTF-8.
86060
86061 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86062
86063         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86064         m4/uintmax_t.m4.
86065
86066 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86067
86068         * modules/xalloc-die: New file.
86069         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86070
86071         * modules/md5 (Files): Add m4/uint32_t.m4.
86072         * modules/sha1: Renamed from modules/sha.
86073         (Files):
86074         Rename lib/sha.h to lib/sha1.h.
86075         Rename lib/sha.c to lib/sha1.c.
86076         Rename m4/sha.m4 to m4/sha1.m4.
86077         (lib_SOURCES): Likewise.
86078         (configure.ac): Rename gl_SHA to gl_SHA1.
86079         (Include): sha.h -> sha1.h.
86080
86081 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86084         * m4/sha1.m4: Renamed from sha.m4.
86085         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86086
86087 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86088
86089         * lib/obstack.h (obstack_empty_p):
86090         Don't assume that chunk->contents is suitably aligned.
86091         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86092         Likewise. Problem reported by Benno in
86093         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86094
86095         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86096         readable.  This could be improved further but it'd take some work.
86097
86098 2004-08-08  Simon Josefsson  <jas@extundo.com>
86099
86100         * modules/xgethostname (Depends-on): Remove exit and error (not
86101         used).
86102
86103         * modules/getpass-gnu: Add getpass.h.
86104         (Depends-on): Add stdbool.
86105         * modules/getpass: Add getpass.h.
86106
86107 2004-08-08  Simon Josefsson  <jas@extundo.com>
86108
86109         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86110         Check getpass declaration.
86111
86112 2004-08-08  Simon Josefsson  <jas@extundo.com>
86113
86114         * lib/xgethostname.c: Don't include error.h (not used).
86115
86116         * lib/getpass.h: Add.
86117         * lib/getpass.c: Include getpass.h first.
86118
86119 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86120
86121         * lib/xalloc-die.c: New file.
86122         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86123         All uses removed.
86124         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86125         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86126         xalloc-die.c.
86127         (_, N_, xalloc_die): Move to xalloc-die.c.
86128         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86129         so that we needn't mess with xalloc_msg_memory_exhausted.
86130
86131         * lib/sha1.h: Renamed from sha.h.
86132         (SHA1_H): Renamed from _SHA_H.
86133         (sha1_ctx): Renamed from sha_ctx.
86134         (sha1_init_ctx): Renamed from sha_init_ctx.
86135         (sha1_process_block): Renamed from sha_process_block.
86136         (sha1_process_bytes): Renamed from sha_process_bytes.
86137         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86138         (sha1_read_ctx): Renamed from sha_read_ctx.
86139         (sha1_stream): Renamed from sha_stream.
86140         (sha1_buffer): Renamed from sha_buffer.
86141         * lib/sha1.c: Likewise; renamed from sha.c.
86142         Do not include <sys/types.h>.
86143         Include <stddef.h> rather than <stdlib.h>.
86144
86145 2004-08-08  Bruno Haible  <bruno@clisp.org>
86146
86147         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86148         FILESYSTEM_PREFIX_LEN.
86149         * lib/progreloc.c: Likewise.
86150         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86151
86152 2004-08-06  Simon Josefsson  <jas@extundo.com>
86153
86154         * modules/progname (Depends-on): Don't depend on stdbool.
86155
86156 2004-08-06  Simon Josefsson  <jas@extundo.com>
86157
86158         * modules/getsubopt: New file.
86159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86160         getsubopt.
86161
86162 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86163
86164         More merge from coreutils.
86165
86166         * m4/utimens.m4, m4/utimecmp.m4: New files.
86167         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86168         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86169         prereq.m4, sha.m4: Import changes from coreutils.
86170
86171 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86172
86173         More merge from coreutils.
86174         * modules/raise, modules/readtokens0, modules/utimens:
86175         * modules/utimecmp, module/xnanosleep: New files.
86176         * modules/strftime: Add lib/strftime.h.
86177         Change include from <time.h> to "strftime.h".
86178         * modules/yesno: Add lib/yesno.h.
86179         * modules/backupfile: Remove lib/addext.c.
86180         * modules/euidaccess: Add stat-macros.h.
86181         * modules/canonicalize, modules/euidaccess,
86182         modules/filemode, modules/lchown, modules/makepath,
86183         modules/rmdir, modules/stat: Likewise.
86184
86185 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86186
86187         Merge from tar.
86188         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86189         SIZE_MAX is a valid preprocessor constant.
86190         (__argp_basename): Change from "#ifndef _LIBC"
86191         to "#ifndef __argp_short_program_name", so that
86192         we don't compile these functions for tar.
86193
86194         More merges from coreutils.
86195         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86196         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86197         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86198         * lib/addext.c: Remove; no longer needed.
86199         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86200         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86201         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86202         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86203         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86204         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86205         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86206         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86207         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86208         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86209         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86210         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86211         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86212         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86213         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86214         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86215         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86216         Import changes from coreutils.
86217
86218 2004-08-05  Simon Josefsson  <jas@extundo.com>
86219
86220         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86221
86222 2004-08-05  Simon Josefsson  <jas@extundo.com>
86223
86224         * m4/getsubopt.m4: New file.
86225
86226 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86227
86228         Merge from coreutils.
86229
86230         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86231         * m4/getcwd-path-max.m4: New files.
86232
86233         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86234         FILESYSTEM_PREFIX_LEN ->
86235         FILE_SYSTEM_PREFIX_LEN.
86236         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86237         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86238         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86239         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86240
86241         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86242         prerequisite modules now handle the DOS stuff.
86243         Don't check for unistd.h.
86244
86245 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86246
86247         Merge from coreutils.
86248
86249         * lib/.gdb-history: Remove; this doesn't belong here.
86250
86251         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86252         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86253         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86254         * lib/getcwd.c: New files.
86255
86256         * lib/dirname.h: Include <stdbool.h>.
86257         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86258         for consistency with POSIX terminology.  All uses changed.
86259         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86260         (strip_trailing_slashes): Use bool for booleans.
86261         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86262
86263         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86264         sometimes returns a positive errno value even when it succeeds.
86265         (print_errno_message) [!LIBC]: Fall back on strerror if
86266         __strerror_r fails.
86267
86268         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86269         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86270         (longest_relative_suffix): New function.
86271         (path_concat): Use it.  Assume first argument is not NULL.
86272         Port to DOS.  Omit redundant separators.
86273         Report an error instead of returning NULL.
86274         Use mempcpy instead of memcpy.
86275         (xpath_concat): Remove: not declared or used.
86276
86277         * lib/same.h: Include <stdbool.h>
86278         (same_name): Return bool, not int.
86279         * lib/same.c (same_name): Likewise.
86280         (errno): Don't declare; we assume C89 or better now.
86281
86282         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86283         if not already defined.
86284
86285         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86286         * lib/dup-safer.c (errno): Likewise.
86287
86288 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86289
86290         Merge from coreutils.
86291         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86292         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86293         * modules/path-concat: Don't depend on strdup.
86294
86295 2004-08-03  Simon Josefsson  <jas@extundo.com>
86296
86297         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86298         * lib/progname.h: Don't include stdbool.h.
86299
86300 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86301
86302         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86303         * MODULES.html.sh (func_all_modules): Remove fatal.
86304
86305 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86306
86307         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86308
86309 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86310
86311         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86312         working.
86313
86314 2004-08-02  Simon Josefsson  <jas@extundo.com>
86315
86316         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86317         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86318         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86319
86320 2004-08-01  Simon Josefsson  <jas@extundo.com>
86321
86322         * lib/xgetdomainname.c: Include stdlib.h, for free().
86323
86324 2004-07-19  Bruno Haible  <bruno@clisp.org>
86325
86326         * MODULES.html.sh (func_all_modules): Add dummy.
86327
86328 2004-07-16  Simon Josefsson  <jas@extundo.com>
86329
86330         * modules/dummy: New file.
86331
86332 2004-07-16  Simon Josefsson  <jas@extundo.com>
86333
86334         * lib/dummy.c: New file.
86335
86336 2004-07-16  Bruno Haible  <bruno@clisp.org>
86337
86338         * lib/backupfile.h: Add extern "C" for C++.
86339         * lib/closeout.h: Likewise.
86340         * lib/copy-file.h: Likewise.
86341         * lib/findprog.h: Likewise.
86342         * lib/full-write.h: Likewise.
86343         * lib/pathname.h: Likewise.
86344         * lib/progname.h: Likewise.
86345         * lib/stpcpy.h: Likewise.
86346         * lib/stpncpy.h: Likewise.
86347         * lib/strcase.h: Likewise.
86348         * lib/strstr.h: Likewise.
86349         * lib/xalloc.h: Likewise.
86350
86351         * lib/mbswidth.h: Add extern "C" for C++.
86352         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86353
86354 2004-07-13  Robert Millan  <robertmh@gnu.org>
86355
86356         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86357
86358 2004-07-09  Simon Josefsson  <jas@extundo.com>
86359
86360         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86361         failed without this.)
86362
86363 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86364
86365         * modules/chown (Files): Add lib/fchown-stub.c, since
86366         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86367
86368 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86369
86370         * lib/fchown-stub.c: New file.
86371
86372 2004-06-24  Jim Meyering  <jim@meyering.net>
86373
86374         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86375
86376 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86377
86378         * modules/argz: Omit "#include".
86379
86380         * MODULES.html.sh (func_all_modules): Add calloc, to match
86381         2004-06-01 addition of calloc module.
86382
86383 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86384
86385         * m4/argz.m4: New file, which is autoupdated from libtool.
86386
86387 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86388
86389         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86390         libtool.
86391
86392 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86393
86394         * config/srclist-update: Don't insist on "USA." before the
86395         close-comment, as libtool omits the period and puts the */ on a
86396         separate line.
86397         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86398         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86399
86400 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86401
86402         * modules/argz: New file.
86403         * MODULES.html.sh (func_all_modules): Add argz.
86404
86405 2004-06-12  Jim Meyering  <jim@meyering.net>
86406         and  Paul Eggert  <eggert@cs.ucla.edu>
86407
86408         * modules/hash (Files): Add lib/xalloc.h.
86409         * modules/pipe (Depends-on): Add wait-process.
86410         * modules/stat (Depends-on): Add xalloc.
86411         * modules/userspec (Files): Add lib/userspec.h.
86412         * modules/xstrto
86413
86414         Upgrade from gettext-0.13.
86415         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86416         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86417         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86418
86419 2004-06-10  Jim Meyering  <jim@meyering.net>
86420
86421         * lib/calloc.c: New file.
86422
86423 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86424
86425         * lib/getdate.y (yylex): Allow space between sign and number.
86426         Problem reported by Dan Jacobson.
86427
86428 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86429
86430         Merge from coreutils CVS.
86431
86432         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86433         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86434         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86435         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86436         xstrtol.m4: Fix copyright date and/or serial number.
86437
86438         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86439         See if we need an fchown replacement.
86440         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86441         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86442         and use the replacement function if we detect either defect.
86443
86444         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86445         gl_UTIMECMP.
86446
86447 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86448         and  Jim Meyering  <jim@meyering.net>
86449
86450         Merge from coreutils CVS.
86451
86452         * lib/stat-macros.h: New file, with contents from file-type.h
86453         and coreutils' system.h.
86454         * lib/file-type.c: Include "stat-macros.h".
86455         * lib/file-type.h (file_type): Move all macro definitions to new file,
86456         stat-macros.h.
86457
86458         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86459         Wrap old code with this conditional.
86460         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86461         function that does not dereference symlinks.
86462         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86463
86464         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86465         dependency problems.
86466         (xreadlink): Accept new arg SIZE, for efficiency.
86467         All decls and uses changed.
86468         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86469
86470         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86471         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86472
86473         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86474         sysexits.h.
86475
86476 2004-06-01  Jim Meyering  <jim@meyering.net>
86477
86478         * m4/calloc.m4: New file.
86479
86480 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86481
86482         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86483         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86484         Also, fix a typo in a diagnostic.
86485
86486 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86487
86488         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86489         or AC_FUNC_REALLOC.
86490
86491 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86492
86493         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86494         macros to be defined.
86495         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86496         the allocator returns NULL because the requested size is zero.
86497
86498 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86499
86500         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86501         var.  Add comment explaining why libc still defines it.  This
86502         merges the following patch from glibc:
86503         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86504
86505 2004-05-20  Andreas Schwab  <schwab@suse.de>
86506
86507         * m4/free.m4: Replace free if it not known to work, not the other
86508         way round.
86509
86510 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86511
86512         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86513         present in glibc since revision 1.1 of this file.
86514         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86515         obstack_alignment_mask, obstack_alloc, obstack_base,
86516         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86517         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86518         obstack_grow0, obstack_init, obstack_int_grow,
86519         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86520         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86521         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86522         nonexistent functions.
86523
86524 2004-05-18  Karl Berry  <karl@gnu.org>
86525
86526         * config/srclist.txt: break link for vasnprintf.c.
86527
86528 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86529
86530         Port obstack to the AS/400, where pointers are 16 bytes wide and
86531         you cannot cast an integer to a valid pointer.  This patch is
86532         currently waiting to be integrated into glibc; see
86533         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86534
86535         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86536         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86537         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86538         (struct obstack): temp member is now a union of a pointer and
86539         an integer, instead of an integer.  All integer uses changed.
86540         This does not affect the physical layout of struct obstack,
86541         except on hosts (like the AS/400) where the size or alignment of
86542         void * is greater than that of ptrdiff_t.
86543         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86544         __STDC__)]: Store temporary in pointer member of union, not
86545         integer member.
86546         * lib/obstack.c: Include <stddef.h>, for offsetof.
86547         (struct fooalign): Remove; it doesn't need a name.
86548         (union fooround): Change double to long double, and add void *.
86549         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86550         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86551         not a macro.  Hence the values are always int; so remove all
86552         casts-to-int in uses.
86553
86554 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86555
86556         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86557         we can get this patch merged into glibc.
86558
86559 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86560             Paul Eggert  <eggert@cs.ucla.edu>
86561
86562         * m4/argp: Depend on alloca.
86563
86564 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86565             Paul Eggert  <eggert@cs.ucla.edu>
86566
86567         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86568         freecoding.
86569
86570 2004-05-17  Bruno Haible  <bruno@clisp.org>
86571
86572         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86573         precision that consists of a '.' followed by an empty digit string.
86574         Patch by Tor Lillqvist <tml@iki.fi>.
86575
86576 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86577
86578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86579         for backward compatibility with older code.  We need our own
86580         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86581         it under some other name, and our alloca.h will define it.
86582
86583 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86584             Derek Price  <derek@ximbiot.com>
86585
86586         * lib/alloca.c: Include <alloca.h>, to get our interface.
86587         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86588         include <alloca.h> first.  Use C89 prototype for alloca; this
86589         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86590         Use #elif for simplicity, since we can assume C89 now.
86591         Don't try to source the system alloca.h since it will not be found
86592         and to prevent recursively including its replacement.
86593         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86594         * lib/regex.c: Likewise.
86595
86596 2004-05-16  Derek Price  <derek@ximbiot.com>
86597             Paul Eggert  <eggert@cs.ucla.edu>
86598
86599         getline cleanup.  This changes the getndelim2 API: both order of
86600         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86601         no delimiter).
86602
86603         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86604         interface does that.
86605         (getline): Always use getdelim, so that we don't have two
86606         copies of this code.
86607         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86608         if available.
86609         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86610         (GETNDELIM2_MAXIMUM): New macro.
86611         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86612         instead of the old practice of delim2==0.  All callers changed.
86613         Return -1 on overflow, instead of returning junk.
86614         Do not set *linesize unless allocation succeeds.
86615         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86616         that we include sys/types.h.
86617         * lib/getnline.h: Likewise.
86618         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86619         (getndelim2): Reorder arguments.
86620         * lib/getnline.c (getnline, getndelim):
86621         Don't discard the NMAX argument.
86622         (getnline): Invoke getndelim, to avoid code duplication.
86623         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86624         of (size_t) -1 by callers of the getnline family.
86625
86626 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86627
86628         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86629         Check for gettimeofday.
86630         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86631         Check for settimeofday, stime.
86632
86633 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86634
86635         * lib/nanosleep.c (suspended): Change its type from int to
86636         sig_atomic_t volatile.
86637         (first_call): Make it private to rpl_nanosleep, and have it
86638         be zero initially as that's a bit faster.
86639         (my_usleep): Round up fractional times instead of truncating them,
86640         as this is the usual meaning for 'sleep'.
86641
86642         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86643         doesn't work.
86644         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86645         (ENOSYS): Define if not defined.
86646         (settime): Fall back on stime if it exists and settimeofday fails.
86647         But don't bother with fallbacks if a method fails with errno == EPERM.
86648
86649 2004-05-11  Jim Meyering  <jim@meyering.net>
86650
86651         Prior to this change, the save_cwd caller required read access to the
86652         current directory on most systems (ones with the fchdir function).
86653
86654         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86655         fails, try write-only, and finally, resort to using xgetcwd.
86656
86657 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86658
86659         * lib/obstack.c, obstack.h: Import changes from libc.
86660
86661 2004-04-28  Bruno Haible  <bruno@clisp.org>
86662
86663         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86664         also implicitly appends .exe to executables.
86665         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86666         accepts Windows pathnames.
86667         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86668         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86669         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86670         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86671         Reported by Derek Robert Price <derek@ximbiot.com>.
86672
86673 2004-04-21  Karl Berry  <karl@gnu.org>
86674
86675         * config/srclist.txt (localcharset.c): break sync.
86676
86677 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86678
86679         * m4/host-os.m4: Add a copyright notice.
86680
86681 2004-04-20  Jim Meyering  <jim@meyering.net>
86682
86683         Change UTILS_ to gl_ in AC_DEFINE'd names.
86684         Change utils_- and jm_-prefixed variables, too.
86685         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86686         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86687         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86688
86689         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86690         Don't emit trailing blanks.
86691         Also rename jm_-prefixed variables to have gl_ prefix.
86692
86693         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86694         Also rename jm_-prefixed variables to have gl_ prefix.
86695
86696         * m4/jm-macros.m4: Reflect the renamings.
86697         * m4/prereq.m4: Likewise.
86698
86699 2004-04-20  Jim Meyering  <jim@meyering.net>
86700
86701         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86702         memory.
86703
86704 2004-04-20  Jim Meyering  <jim@meyering.net>
86705             Bruno Haible  <bruno@clisp.org>
86706
86707         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86708         memory when realloc fails.
86709
86710 2004-04-19  Jim Meyering  <jim@meyering.net>
86711
86712         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86713         now that readutmp.c may call `free (0)'.
86714
86715 2004-04-19  Bruno Haible  <bruno@clisp.org>
86716
86717         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86718         * m4/inttypes_h.m4: Likewise.
86719         * m4/stdint_h.m4: Likewise.
86720         * m4/intmax_t.m4: Likewise.
86721         * m4/uintmax_t.m4: Likewise.
86722
86723 2004-04-18  Jim Meyering  <jim@meyering.net>
86724
86725         * m4/prereq.m4: Don't forbid jm_ prefix.
86726
86727         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86728         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86729         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86730         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86731         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86732         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86733         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86734         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86735         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86736         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86737         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86738         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86739         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86740         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86741         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86742         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86743         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86744         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86745         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86746
86747 2004-04-18  Jim Meyering  <jim@meyering.net>
86748
86749         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86750         failure, don't leak memory and do call END_UTMP_ENT.
86751
86752 2004-04-16  Jim Meyering  <jim@meyering.net>
86753
86754         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86755         coreutils' stat program.
86756         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86757
86758 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86759
86760         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86761         C89.
86762         (CHAR_BIT): Remove, since we assume C89.
86763         Include <stdint.h> if available, as per current Autoconf CVS advice.
86764
86765 2004-03-31  Jim Meyering  <jim@meyering.net>
86766
86767         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86768         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86769         * m4/xalloc.m4: Likewise.
86770
86771 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86772
86773         Merge from coreutils.
86774
86775         * m4/inttostr.m4: New file.
86776         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86777         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86778         Require gl_CLOCK_TIME.
86779         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86780
86781 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86782
86783         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86784         not bool, to be more consistent with Unix conventions.
86785         Suggested by Bruno Haible.
86786
86787         Merge from coreutils.
86788
86789         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86790         * lib/umaxtostr.c: New files.
86791
86792         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86793         the usual <time.h> dance.
86794         (get_date): Change signature to support fractional time stamps.
86795         All callers changed.
86796         * lib/getdate.y: Include "getdate.h" first, as we can now
86797         assume C89 and don't need to worry about 'const'.
86798         Similarly, include "unlocked-io.h" near start, not in middle.
86799         Include <limits.h>.
86800         (textint.value): Use long int rather than int.
86801         (textint.digits): Use size_t rather than int.
86802         (BILLION, LOG10_BILLION): New constants.
86803         (parser_control): New member rel_ns.  Members day_ordinal,
86804         time_zone, month, day, hour, minutes, rel_year, rel_month,
86805         rel_day, rel_hour, rel_minutes, rel_seconds
86806         are now long int, not int.  Member seconds is now struct timespec,
86807         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86808         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86809         not int.
86810         (%union.intval): Now long int, not int.
86811         New member timespec.
86812         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86813         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86814         (spec): Now is a timespec or an item list.
86815         (timespec, items): New nonterminals.
86816         (time, rel, relunit, number, get_date):
86817         Add support for fractional seconds.
86818         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86819         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86820         (to_hour): First arg is now long int, not int.
86821         (to_year): Returns long int, not int.
86822         Don't treat year -70 like 70.
86823         (tm_diff): Returns long int, not int.
86824         (lookup_word): Use bool instead of int when appropriate.
86825         (yylex): Use size_t for count, not int.
86826         Detect overflow when parsing large integer constants.
86827         Add support for fractions.
86828         (get_date): Make pointers 'const' if possible.
86829         Use more-portable code to detect integer overflow.
86830         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86831         Don't use ctime; it's not reliable if the year has >4 digits.
86832
86833         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86834         This is for compatibility with BSD.
86835
86836         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86837         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86838         From coreutils' system.h.
86839
86840         * lib/userspec.c: Don't include "posixver.h".
86841         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86842         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86843         compatible extension.  Simplify code by removing a boolean int
86844         that was always nonzero if a string was nonnull.
86845
86846 2004-03-30  Jim Meyering  <jim@meyering.net>
86847
86848         Merge from coreutils.
86849
86850         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86851         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86852         on some systems one must include <grp.h> before it.
86853         Reported by Christian Krackowizer.
86854
86855 2004-03-30  Jim Meyering  <jim@meyering.net>
86856
86857         Merge from coreutils.
86858
86859         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86860
86861         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86862         an empty input stream.
86863
86864         * lib/readtokens.c: Include <stdbool.h>.
86865         (readtoken): Use `size_t' rather than int/long.
86866         All callers adjusted.
86867         Use `bool' rather than `int' where appropriate.
86868         Use memset rather than an explicit loop.
86869         Use x2nrealloc rather than xrealloc.
86870         Allow the use of `\0' as a delimiter.
86871         (readtokens): Likewise.
86872         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86873
86874 2004-03-30  Jim Meyering  <jim@meyering.net>
86875
86876         * m4/realloc.m4: Remove file, since now it does no more than
86877         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86878         the `configure.ac' section of module/realloc.
86879         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86880
86881 2004-03-30  Bruno Haible  <bruno@clisp.org>
86882
86883         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86884         nonnull.
86885
86886 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86887
86888         Merge changes to getloadavg.c from coreutils and Emacs.
86889
86890         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86891         Define to an expression, not to the empty string.
86892         Include cloexec.h and xalloc.h.
86893         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86894         Use set_cloexec_flag rather than rolling our own.
86895         * lib/cloexec.c, lib/cloexec.h: New files.
86896
86897 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86898
86899         * m4/cloexec.m4: New file.
86900
86901 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86902
86903         * lib/getopt.h: Sync with libc CVS.
86904
86905 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86906             Bruno Haible  <bruno@clisp.org>
86907
86908         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86909         mbswidth.
86910
86911 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86912             Bruno Haible  <bruno@clisp.org>
86913
86914         * lib/mbswidth.h: Include <wchar.h> only if
86915         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86916         <wchar.h>.
86917         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86918
86919 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86920
86921         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86922         Sync with libc CVS.
86923         * lib/getopt_int.h: New file, also synced from libc.
86924
86925 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86926
86927         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86928         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86929         Bring back getopt.c, getopt.h, getopt1.c.
86930
86931 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86932
86933         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86934         All uses changed.  Check for sa_sigaction member; this fixes
86935         a bug first reported by Jason Andrade in
86936         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86937
86938 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86939
86940         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86941         '#if' expressions.  Unlike the code it replaces, it does not
86942         depend on (defined _SC_PAGESIZE).  However, it does depend on
86943         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86944         first reported by Jason Andrade in
86945         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86946
86947 2004-02-25  Simon Josefsson  <jas@extundo.com>
86948
86949         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86950
86951 2004-02-25  Simon Josefsson  <jas@extundo.com>
86952
86953         * lib/strdup.h: New file.
86954         * lib/strdup.c: Include it.
86955         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86956         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86957
86958 2004-02-23  Karl Berry  <karl@gnu.org>
86959
86960         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86961         (from fencepost.gnu.org:/gd/gnuorg).
86962
86963 2004-02-23  Karl Berry  <karl@gnu.org>
86964
86965         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86966         * config/srclist.txt: add maintain/standards documents.
86967
86968 2004-02-18  Bruno Haible  <bruno@clisp.org>
86969
86970         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86971         Reported by Derek Robert Price <derek@ximbiot.com>.
86972
86973 2004-02-16  Karl Berry  <karl@gnu.org>
86974
86975         * config/mkinstalldirs, install-sh: update from automake.
86976
86977 2004-02-06  Karl Berry  <karl@gnu.org>
86978
86979         * m4/po.m4: update from gettext 0.14.1.
86980
86981 2004-02-06  Karl Berry  <karl@gnu.org>
86982
86983         * lib/config.charset: update from gettext 0.14.1.
86984
86985 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86986
86987         Add comments and code, prompted by suggestions from Bruno Haible
86988         for sh-quote.
86989         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86990         describing the enum quoting_style values.
86991         * lib/quotearg.c (quotearg_alloc): New function.
86992         (quotearg_buffer_restyled): Treat lone { and } as special.
86993         Treat = as special.  Work around bug with older shells
86994         that "see" a '\' that is really the 2nd byte of a multibyte char.
86995         Quote empty string with shell_quoting_style.
86996
86997 2004-02-03  Bruno Haible  <bruno@clisp.org>
86998
86999         * m4/pipe.m4: New file, from GNU gettext.
87000
87001 2004-02-03  Bruno Haible  <bruno@clisp.org>
87002
87003         * lib/pipe.h: New file, from GNU gettext.
87004         * lib/pipe.c: New file, from GNU gettext.
87005
87006 2004-01-27  Bruno Haible  <bruno@clisp.org>
87007
87008         * m4/execute.m4: New file, from GNU gettext.
87009
87010 2004-01-27  Bruno Haible  <bruno@clisp.org>
87011
87012         * lib/execute.h: New file, from GNU gettext.
87013         * lib/execute.c: New file, from GNU gettext.
87014         * lib/w32spawn.h: New file, from GNU gettext.
87015
87016 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87017
87018         Merge from diffutils.
87019
87020         * lib/file-type.c (file_type): Add typed memory objects.
87021         * lib/file-type.h (S_TYPEISTMO): New macro.
87022
87023         * lib/c-stack.h (c_stack_action): Remove argv argument.
87024         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87025         (die): Don't calculate message unless segv_action returns.
87026         (get_stack_location, min_address_from_argv, max_address_from_argv,
87027         volatile stack_base, volatile_stack_size): Remove.
87028         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87029         that every segmentation violation is a stack overflow.  (Ouch!)
87030         See Debian bug 136249 (still outstanding) for more info about why
87031         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87032
87033 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87034
87035         Exit-status fix from coreutils.
87036
87037         Use exit_failure consistently in place of EXIT_FAILURE,
87038         so that program exit statuses are consistent on failure.
87039
87040         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87041         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87042         * lib/argmatch.h: Comment fix to match the above.
87043         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87044         Now a macro referring to exit_failure, instead of a separate
87045         variable.  Include "exitfail.h" to get it.
87046         * lib/xstrtol.h: Include "exitfail.h".
87047         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87048
87049         * lib/long-options.c (parse_long_options): Use prototype
87050         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87051         for clarity.
87052
87053 2004-01-21  Jim Meyering  <jim@meyering.net>
87054
87055         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87056         so as not to conflict with a different-sized __mktime_internal
87057         function in GNU libc.
87058         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87059         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87060
87061 2004-01-20  Karl Berry  <karl@gnu.org>
87062
87063         * config/config.guess: update from config.
87064
87065         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87066
87067 2004-01-20  Bruno Haible  <bruno@clisp.org>
87068
87069         Safer stack allocation.
87070         * lib/setenv.c: Include allocsa.h.
87071         (alloca): Remove fallback definition.
87072         (freea): Remove macro.
87073         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87074         instead of freea.
87075
87076 2004-01-20  Bruno Haible  <bruno@clisp.org>
87077
87078         * m4/eealloc.m4: New file, from GNU gettext.
87079
87080 2004-01-20  Bruno Haible  <bruno@clisp.org>
87081
87082         * m4/allocsa.m4: New file, from GNU gettext.
87083
87084 2004-01-20  Bruno Haible  <bruno@clisp.org>
87085
87086         * lib/xallocsa.h: New file, from GNU gettext.
87087         * lib/xallocsa.c: New file, from GNU gettext.
87088
87089 2004-01-20  Bruno Haible  <bruno@clisp.org>
87090
87091         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87092
87093 2004-01-20  Bruno Haible  <bruno@clisp.org>
87094
87095         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87096         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87097         specially.
87098
87099 2004-01-20  Bruno Haible  <bruno@clisp.org>
87100
87101         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87102         patch.
87103
87104 2004-01-20  Bruno Haible  <bruno@clisp.org>
87105
87106         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87107
87108 2004-01-20  Bruno Haible  <bruno@clisp.org>
87109
87110         * lib/eealloc.h: New file.
87111
87112 2004-01-20  Bruno Haible  <bruno@clisp.org>
87113
87114         * lib/binary-io.h: Avoid warnings on Cygwin.
87115
87116 2004-01-20  Bruno Haible  <bruno@clisp.org>
87117
87118         * lib/allocsa.h: New file, from GNU gettext.
87119         * lib/allocsa.c: New file, from GNU gettext.
87120
87121 2004-01-18  Karl Berry  <karl@gnu.org>
87122
87123         * doc/gpl.texi, doc/lgpl.texi: new files.
87124
87125 2004-01-18  Karl Berry  <karl@gnu.org>
87126
87127         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87128         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87129
87130 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87131
87132         Merge from coreutils.
87133
87134         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87135         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87136         (gl_DEFAULT_POSIX2_VERSION): Move
87137         the documentation from 'configure' into 'config.hin',
87138         so that 'configure --help' isn't burdened by it and
87139         we don't have to worry about its formatting there.
87140         Reword the documentation so that it's more succinct
87141         and can be run together into a single paragraph.
87142         * m4/same.m4 (gl_SAME): Check for pathconf.
87143
87144 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87145
87146         Merge from coreutils.
87147
87148         * lib/posixver.c: Include posixver.h.
87149
87150         * lib/same.c: Include <stdbool.h>, <limits.h>.
87151         (_POSIX_NAME_MAX): Define if not defined.
87152         (MIN): New macro.
87153         (same_name): If file names are silently truncated, report
87154         that the file names are the same if they are the same after
87155         the silent truncation.
87156
87157         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87158         conversion function.
87159         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87160         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87161         longer needed.
87162
87163 2004-01-15  Jim Meyering  <jim@meyering.net>
87164
87165         Merge from coreutils.
87166
87167         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87168         if no library is required.
87169         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87170         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87171         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87172         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87173         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87174         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87175         value, $ac_cv_search_crypt, if it's "none required".
87176         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87177         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87178         not gl_FUNC_GETLOADAVG.
87179         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87180         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87181
87182 2004-01-15  Jim Meyering  <jim@meyering.net>
87183
87184         Merge from coreutils.
87185
87186         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87187         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87188         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87189
87190         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87191         optional configure-time default.
87192
87193         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87194
87195         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87196
87197 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87198
87199         Merge from coreutils.
87200
87201         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87202         value, $ac_cv_search_nanosleep, if it's "none required".
87203
87204 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87205
87206         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87207         with like-named macro in fnmatch.c.
87208         (EXT): Use an internal constant instead.
87209
87210         Merge fnmatch patches from glibc.
87211         * lib/fnmatch.c (mbsinit): Remove define.
87212         Add libc_hidden_ver (__fnmatch, fnmatch).
87213         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87214         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87215
87216 2004-01-14  Karl Berry  <karl@gnu.org>
87217
87218         * config/install-sh: update from automake.
87219
87220 2004-01-13  Karl Berry  <karl@gnu.org>
87221
87222         * config/install-sh: update from automake.
87223
87224 2004-01-09  Karl Berry  <karl@gnu.org>
87225
87226         * config/install-sh: update from automake.
87227
87228 2004-01-05  Karl Berry  <karl@gnu.org>
87229
87230         * config/config.{sub,guess}: update from config.
87231
87232 2003-12-31  Karl Berry  <karl@gnu.org>
87233
87234         * config/depcomp: update from automake.
87235
87236 2003-12-14  Karl Berry  <karl@gnu.org>
87237
87238         * lib/config.charset: update from gettext-runtime.
87239
87240 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87241
87242         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87243         Bug reported by Alfred M. Szmidt.
87244
87245 2003-12-03  Bruno Haible  <bruno@clisp.org>
87246
87247         * m4/gettext.m4: Upgrade from gettext-0.13.
87248         * m4/po.m4: Upgrade from gettext-0.13.
87249         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87250         * m4/intmax.m4: New file, from gettext-0.13.
87251         * m4/printf-posix.m4: New file, from gettext-0.13.
87252
87253 2003-11-29  Karl Berry  <karl@gnu.org>
87254
87255         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87256
87257 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87258             Bruno Haible  <bruno@clisp.org>
87259
87260         * lib/printf-parse.h: Don't include sys/types.h.
87261         (ARG_NONE): New macro.
87262         (char_directive): Change type of *arg_index fields to size_t.
87263         * lib/printf-parse.c: Don't include sys/types.h.
87264         (SSIZE_MAX): Remove macro.
87265         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87266         Remove unnecessary overflow check.
87267         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87268         fields.
87269
87270 2003-11-25  Bruno Haible  <bruno@clisp.org>
87271
87272         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87273
87274 2003-11-25  Bruno Haible  <bruno@clisp.org>
87275
87276         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87277         gt_TYPE_SSIZE_T.
87278
87279 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87280
87281         * modules/alloca: Remove dependency on xalloc.
87282
87283 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87284
87285         * lib/alloca.c: Remove dependency on xalloc module.
87286         (xalloc_die): Remove.
87287         (memory_full) [!defined emacs]: New macro.
87288         [!defined emacs]: Don't include xalloc.h.
87289         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87290         address arithmetic overflows.  Change datatypes a bit to avoid
87291         unnecessary casts.
87292
87293 2003-11-22  Jim Meyering  <jim@meyering.net>
87294
87295         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87296         s/size/size_t/.
87297
87298 2003-11-21  Karl Berry  <karl@gnu.org>
87299
87300         * config/config.{sub,guess}: update from config.
87301
87302 2003-11-18  Karl Berry  <karl@gnu.org>
87303
87304         * config/config.{sub,guess}: update from config.
87305
87306         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87307
87308 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87309
87310         * README: Mention that S+T cannot overflow if S is the size of
87311         an existing object and T is sufficiently small.
87312
87313 2003-11-17  Jim Meyering  <jim@meyering.net>
87314
87315         On systems without utime and without a utimes function capable of
87316         dealing with a NULL struct utimbuf* argument, this utime replacement
87317         could -- in unusual circumstances -- leak a file descriptor.
87318         * lib/utime.c: Include <unistd.h> and <errno.h>.
87319         (utime_null): Be sure to close `fd' and to preserve errno.
87320         Reported by Geoff Collyer via Arnold Robbins.
87321
87322 2003-11-17  Bruno Haible  <bruno@clisp.org>
87323
87324         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87325         (Depends-on): Add xsize.
87326
87327 2003-11-17  Bruno Haible  <bruno@clisp.org>
87328
87329         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87330
87331 2003-11-17  Bruno Haible  <bruno@clisp.org>
87332
87333         * lib/vasnprintf.c (alloca): Remove fallback definition.
87334         (freea): Remove definition.
87335         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87336         Reported by Paul Eggert.
87337
87338 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87339             Bruno Haible  <bruno@clisp.org>
87340
87341         Protect against address arithmetic overflow.
87342         * lib/printf-args.h: Include stddef.h.
87343         (arguments): Change type of field 'count' to size_t.
87344         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87345         'unsigned int' where appropriate.
87346         * lib/printf-parse.h: Include sys/types.h.
87347         (char_directive): Change type of *arg_index fields to ssize_t.
87348         (char_directives): Change type of fields 'count', max_*_length to
87349         size_t.
87350         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87351         (SSIZE_MAX): Define fallback value.
87352         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87353         instead of 'int' where appropriate. Check a_allocated, d_allocated
87354         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87355         * lib/vasnprintf.c: Include xsize.h.
87356         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87357         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87358         overflow. Avoid wraparound when converting a width or precision from
87359         decimal to binary.
87360
87361 2003-11-16  Bruno Haible  <bruno@clisp.org>
87362
87363         Update from GNU gettext.
87364         * lib/printf-parse.c: Generalize to it can be compiled for wide
87365         strings.
87366         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87367         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87368         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87369         SNPRINTF): New macros.
87370         Don't include <alloca.h> if the file is used inside libintl.
87371         (local_wcslen): New function, for Solaris 2.5.1.
87372         (VASNPRINTF): Use it instead of wcslen.
87373
87374 2003-11-16  Bruno Haible  <bruno@clisp.org>
87375
87376         * lib/xsize.h (xmax): New function.
87377         (xsum, xsum3, xsum4): Declare as "pure" functions.
87378
87379 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87380
87381         * modules/xalloc (Files): Undo latest change, since xalloc.h
87382         no longer needs SIZE_MAX or PTRDIFF_MAX.
87383
87384 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87385
87386         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87387         gl_PTRDIFF_MAX.
87388
87389 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87390
87391         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87392         "return", to pacify some unknown compiler.  Problem reported
87393         by Joerg Schilling.
87394
87395 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87396
87397         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87398         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87399         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87400         heuristic is just as accurate as far as we know, and it removes a
87401         dependency on size_max.m4 and ptrdiff_max.m4.
87402
87403 2003-11-11  Bruno Haible  <bruno@clisp.org>
87404
87405         * modules/xsize (Files): Add m4/size_max.m4.
87406         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87407
87408 2003-11-11  Bruno Haible  <bruno@clisp.org>
87409
87410         * m4/size_max.m4: New file.
87411         * m4/ptrdiff_max.m4: New file.
87412         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87413         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87414         (gl_XALLOC): Invoke it.
87415
87416 2003-11-11  Bruno Haible  <bruno@clisp.org>
87417
87418         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87419         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87420         defined.
87421
87422 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87423
87424         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87425         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87426         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87427         From Bruno Haible.
87428         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87429         not (size_t) -1, since it's defined here.
87430
87431 2003-11-09  Karl Berry  <karl@gnu.org>
87432
87433         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87434
87435 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87436
87437         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87438         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87439         Reject sizes of exactly SIZE_MAX bytes.
87440         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87441         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87442
87443 2003-11-05  Bruno Haible  <bruno@clisp.org>
87444
87445         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87446         SIZE_MAX defined in <limits.h> on Solaris.
87447
87448 2003-11-04  Jim Meyering  <jim@meyering.net>
87449
87450         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87451         variable names, rather than @VAR@.
87452         * modules/poll: Likewise.
87453
87454 2003-11-04  Bruno Haible  <bruno@clisp.org>
87455
87456         * modules/xsize: New file.
87457         * modules/linebreak: Depend on xsize.
87458         * MODULES.html.sh (func_all_modules): Add xsize.
87459
87460 2003-11-04  Bruno Haible  <bruno@clisp.org>
87461
87462         * m4/xsize.m4: New file.
87463
87464 2003-11-04  Bruno Haible  <bruno@clisp.org>
87465
87466         * lib/xsize.h: New file.
87467         * lib/linebreak.c: Include xsize.h.
87468         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87469         argument for overflow.
87470         Suggested by Paul Eggert.
87471
87472 2003-11-03  Karl Berry  <karl@gnu.org>
87473
87474         * config/config.{guess,sub}: update from config.
87475
87476 2003-11-03  Jim Meyering  <jim@meyering.net>
87477
87478         * modules/userspec (lib_SOURCES): Add userspec.h.
87479         (Include): Add "userspec.h".
87480         Improve description.
87481
87482 2003-11-03  Jim Meyering  <jim@meyering.net>
87483
87484         * lib/userspec.c: Include "userspec.h".
87485         * lib/userspec.h: New file.
87486
87487 2003-11-03  Bruno Haible  <bruno@clisp.org>
87488
87489         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87490
87491 2003-11-03  Bruno Haible  <bruno@clisp.org>
87492
87493         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87494         available, to avoid (extremely rare) race condition.
87495         Suggested by Paul Eggert.
87496
87497 2003-11-02  Karl Berry  <karl@gnu.org>
87498
87499         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87500
87501 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87502
87503         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87504         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87505         (read_filesystem_list): Set and use me_type_malloced.
87506         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87507         whatever the type happens to be), for brevity and consistency.
87508         Check for size calculation overflow on Alphas running OSF/1.
87509
87510 2003-10-31  Jim Meyering  <jim@meyering.net>
87511
87512         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87513
87514         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87515
87516 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87517             Bruno Haible  <bruno@clisp.org>
87518
87519         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87520         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87521
87522 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87523
87524         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87525         netbsd*-gnu*.  Suggested by Robert Millan.
87526
87527 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87528
87529         * modules/group-member: Depend on stdbool.
87530
87531 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87532
87533         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87534
87535 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87536
87537         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87538         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87539         after the 'gnu' in these cases.  This fixes some bugs in the
87540         previous change, and is based on suggestions by Robert Millan.
87541
87542 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87543
87544         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87545         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87546         no longer needed.
87547         * lib/quotearg.c (quotearg_n_options): Use it.
87548         * lib/group-member.c: Include <stdbool.h>.
87549         (free_group_info): Arg is now const *; don't free arg.
87550         (get_group_info): Now returns bool and accepts struct group_info *,
87551         rather than returning a malloc'ed struct group_info *.
87552         All uses changed.  Check for overflow in internal size calculation.
87553
87554         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87555         rather than xmalloc/xrealloc.
87556         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87557         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87558         conformance bug: the old code used a pointer after freeing the
87559         storage that it addressed.
87560         * lib/hash.c (hash_initialize): Simplify the code by using
87561         xalloc_oversized rather than doing it by hand.
87562         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87563         the buffer preserved.  Use free and xmalloc instead.
87564         * lib/quotearg.c (quotearg_n_options): Likewise.
87565         Use a simpler test for size overflow.  Don't use xalloc_oversized
87566         because unsigned int might be wider than size_t (!); this suggests
87567         that we should switch from unsigned int to size_t for slot numbers.
87568
87569 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87570
87571         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87572         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87573         NetBSD kernels.  Requested by Richard Stallman.
87574
87575 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87576
87577         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87578         to allocate the returned structure.  Do not allocate a subarray,
87579         as x2nrealloc will do that.
87580         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87581         instead of xnrealloc.
87582         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87583
87584 2003-10-27  Bruno Haible  <bruno@clisp.org>
87585
87586         * lib/stdbool_.h: Better support for BeOS.
87587
87588 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87589
87590         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87591         now uses inline.
87592
87593 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87594
87595         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87596         callers that want to do their own size-overflow checking.  Include
87597         <stdbool.h>, since xalloc_oversized returns bool.
87598         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87599         to use xalloc_oversized.
87600
87601         Add two functions x2realloc, x2nrealloc, for programs that grow
87602         arrays dynamically by doubling their sizes.
87603         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87604         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87605         New functions.
87606
87607         Port to C99 semantics for 'inline' of external functions.
87608         Bug reported by Bruno Haible.
87609         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87610         with the old contents of xnmalloc.
87611         (xnmalloc, xmalloc): Use it.
87612         (xnrealloc_inline): New static inline function,
87613         with the old contents of xnrealloc.
87614         (xnrealloc, xrealloc): Use it.
87615
87616         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87617         that.
87618
87619 2003-10-26  Karl Berry  <karl@gnu.org>
87620
87621         * config/srclist.txt (COPYING.DOC): no longer available from
87622         /gd/gnuorg; don't know where the ultimate source is.
87623
87624 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87625
87626         Fix several address-calculation bugs in the hash modules,
87627         plus some minor code cleanup.
87628
87629         * lib/hash.h: Include <stdbool.h>, for bool.
87630         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87631         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87632         hash_get_n_entries, hash_get_max_bucket_length,
87633         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87634         hash_rehash): Use size_t rather than unsigned.
87635         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87636         hash_get_n_buckets_used, hash_get_n_entries,
87637         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87638         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87639         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87640         Likewise.
87641         (SIZE_MAX): Define if not defined.
87642         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87643         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87644         hash_print):
87645         Use const * when possible.
87646         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87647         (check_tuning): Fix bug: if tuning parameters were very close to
87648         0 or 1, rounding errors could have caused subscript violations.
87649         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87650         (hash_initialize): Add 'fail:' label
87651         to free table and return NULL, and use it to simplify code.
87652         Use calloc rather than clearing the storage ourself.
87653         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87654         buffer size calculations.
87655         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87656         Include <stddef.h>, for size_t.
87657         * lib/hash-pjw.c (hash_pjw): Likewise.
87658         Switch to method described by Bruno Haible.
87659         Include <limits.h>, for CHAR_BIT.
87660         (SIZE_BITS): New macro.
87661
87662 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87663
87664         * m4/getline.m4 (AM_FUNC_GETLINE):
87665         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87666         hosts.  Problem reported by Derek Robert Price in
87667         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87668         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87669         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87670
87671 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87672
87673         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87674         ceiling the allocation at NMAX bytes rather than silently
87675         discarding input bytes before NMAX is reached.  This makes
87676         a difference only if NMAX exceeds SIZE_MAX / 2.
87677
87678         * lib/obstack.c: Merge from glibc.
87679         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87680         Add libc_hidden_def (_obstack_newchunk).
87681         (_obstack_free) [! defined _LIBC]: Remove.
87682         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87683         a clone of the function body.
87684         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87685         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87686
87687         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87688         glibc.
87689         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87690         arg to memcpy.
87691
87692         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87693         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87694         Don't use lvalue casts, as GCC plans to remove support for them
87695         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87696         was also present in the non-GCC version, indicating that this
87697         code had always been buggy and had never been widely used.
87698         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87699         Use the fast variant of each macro, rather than copying the
87700         definiens of the fast variant; that way, we'll be more likely to
87701         catch future bugs in the fast variants.
87702
87703 2003-10-20  Bruno Haible  <bruno@clisp.org>
87704
87705         * modules/wait-process: New file.
87706         * MODULES.html.sh (func_all_modules): Add wait-process.
87707
87708 2003-10-20  Bruno Haible  <bruno@clisp.org>
87709
87710         * m4/wait-process.m4: New file.
87711
87712 2003-10-20  Bruno Haible  <bruno@clisp.org>
87713
87714         * lib/wait-process.h: New file, from GNU gettext.
87715         * lib/wait-process.c: New file, from GNU gettext.
87716
87717 2003-10-19  Jim Meyering  <jim@meyering.net>
87718
87719         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87720         HPUX 10.20.
87721
87722 2003-10-18  Karl Berry  <karl@gnu.org>
87723
87724         * config/config.guess: update from config.
87725
87726 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87727
87728         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87729         (getgroups): First arg is int, not size_t.
87730         Don't let 'free' mangle errno.
87731
87732 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87733
87734         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87735
87736 2003-10-16  Karl Berry  <karl@gnu.org>
87737
87738         * config/config.{guess,sub}: update from config.
87739
87740 2003-10-16  Jim Meyering  <jim@meyering.net>
87741
87742         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87743         memcpy.
87744
87745 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87746
87747         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87748         (SIZE_MAX): Remove.
87749         (new_exclude, add_exclude_file): Initial size no longer needs to
87750         be a power of 2.
87751         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87752         our own address arithmetic overflow checking.
87753
87754         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87755         (fnmatch): Do not alloca more than 2000 wide characters;
87756         instead, use malloc for large buffers.
87757         Check for address arithmetic overflow, and return -1
87758         with errno set to ENOMEM in that case.
87759         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87760         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87761         instead, return -1.  Check for address arithmetic overflow.
87762
87763 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87764
87765         Handle invalid suffixes and overflow independently, so that
87766         callers can treat them independently as needed.  Fix some bugs in
87767         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87768         suffix for a human-readable blocksize.  The major caller-visible
87769         change is the addition of a new
87770         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87771         that both overflow and suffix chars were found.
87772
87773         * lib/human.c (humblock): Don't check separately for invalid suffix
87774         char; that is xstrtoumax's job (now that its bug is fixed).
87775         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87776         INTMAX_MAX]: New macros.
87777         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87778         TYPE_MAXIMUM): New macros.
87779         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87780         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87781         if overflow occurs, as it's what __strtol does and it's more useful
87782         in practice.
87783         (__xstrtol): If __strtol reports some error other than ERANGE,
87784         reflect it to the caller as LONGINT_INVALID.  If it reports
87785         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87786         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87787         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87788         value.
87789         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87790         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87791         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87792         [defined UINTMAX_MAX]: New macros.
87793
87794 2003-10-14  Bruno Haible  <bruno@clisp.org>
87795
87796         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87797
87798 2003-10-14  Bruno Haible  <bruno@clisp.org>
87799
87800         * m4/sig_atomic_t: New file, from GNU gettext.
87801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87802
87803 2003-10-14  Bruno Haible  <bruno@clisp.org>
87804
87805         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87806         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87807         Also use volatile where needed.
87808
87809 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87810
87811         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87812         Change maintainer from Bruno Haible to 'all'.
87813
87814 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87815
87816         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87817
87818 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87819
87820         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87821         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87822         and define in terms of the other primitives.
87823         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87824         (SIZE_MAX): Define if not already defined.
87825         (array_size_overflow): New function.
87826         (xalloc_die): Abort instead of exiting if 'error' returns.
87827         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87828         (xmalloc, xrealloc): Use them.
87829         (xcalloc): Check for address arithmetic overflow.
87830         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87831         a bit faster than strcpy.
87832
87833 2003-10-10  Simon Josefsson  <jas@extundo.com>
87834
87835         * modules/argp (Depends-on): Add restrict and strcase.
87836
87837 2003-10-10  Simon Josefsson  <jas@extundo.com>
87838
87839         * m4/argp.m4: Add AC_C_INLINE.
87840
87841 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87842
87843         Merge getpass from libc, plus a few fixes.
87844
87845         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87846         Include <stdbool.h>.
87847         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87848         __fsetlocking to empty.
87849         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87850         do include <bits/libc-lock.h>.
87851         Do not include <fcntl.h>; not needed.
87852         [_LIBC]: Include <wchar.h>.
87853         (NOTCANCEL_MODE): New macro.
87854         (flockfile, funlockfile) [_LIBC]: New macros.
87855         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87856         [!_LIBC]: New macros.
87857         (call_fclose): New function.
87858         (getpass): Use it.  Save tty stream separately; this simplifies the
87859         code and makes it more reliable if stdin happens to equal stdout.
87860         Invoke __fsetlocking on tty.
87861         Handle thread cancellation if needed.
87862         Namespace cleanup (use __tcgetattr, __getline).
87863         Use bool for Booleans.
87864         [USE_IN_LIBIO]: Handle wide streams.
87865         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87866         stream might go where.
87867
87868         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87869         doesn't have to include <stdio.h> before us.
87870         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87871         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87872         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87873         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87874         if not declared, so that we can use getpass.c code from libc without
87875         rewriting it.
87876         (flockfile, ftrylockfile, funlockfile): New macros.
87877
87878 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87879
87880         * modules/getpass: Depend on stdbool.
87881
87882 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87883
87884         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87885
87886 2003-10-07  Karl Berry  <karl@gnu.org>
87887
87888         * config/config.{guess,sub}: update from config.
87889
87890 2003-10-06  Jim Meyering  <jim@meyering.net>
87891             Bruno Haible  <bruno@clisp.org>
87892
87893         This lets translators provide better translations for the
87894         "Written by ..." part of --version output.
87895         * lib/version-etc.h: Include stdarg.h.
87896         (version_etc_copyright): Declare as readonly.
87897         (version_etc): Make this function variadic with a NULL-terminated list
87898         of author name strings.
87899         (version_etc_va): New declaration.
87900         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87901         (version_etc_copyright): Declare as readonly.
87902         (version_etc_va): New function. Provide a different translatable string
87903         for each possible number of authors < 10. Abbreviate when there are 10
87904         authors or more.
87905         (version_etc): Make this function variadic. Call version_etc_va.
87906         Suggestion from Gary V. Vaughan.
87907
87908         * lib/long-options.h (parse_long_options): Change prototype: the
87909         authors string is moved to the end and becomes variadic.
87910         * lib/long-options.c: Include stdarg.h.
87911         (parse_long_options): Make this function variadic, too.
87912         Call version_etc_va, not version_etc.
87913
87914 2003-10-06  Bruno Haible  <bruno@clisp.org>
87915
87916         * modules/version-etc-2: Remove file.
87917         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87918
87919 2003-10-06  Bruno Haible  <bruno@clisp.org>
87920
87921         * modules/fatal-signal: New file.
87922         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87923
87924 2003-10-06  Bruno Haible  <bruno@clisp.org>
87925
87926         * m4/fatal-signal.m4: New file.
87927         * m4/signalblocking.m4: New file, from GNU gettext.
87928
87929 2003-10-06  Bruno Haible  <bruno@clisp.org>
87930
87931         * lib/version-etc-2.h: Remove file.
87932         * lib/version-etc-2.c: Remove file.
87933
87934 2003-10-06  Bruno Haible  <bruno@clisp.org>
87935
87936         * lib/fatal-signal.h: New file, from GNU gettext.
87937         * lib/fatal-signal.c: New file, from GNU gettext.
87938
87939 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87940
87941         * README: Rework advice for preventing empty .o files.
87942         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87943         not <sys/types.h>.
87944
87945 2003-10-04  Karl Berry  <karl@gnu.org>
87946
87947         * lib/argp*: update from libc.
87948
87949 2003-10-04  Karl Berry  <karl@gnu.org>
87950
87951         * config/config.{guess,sub}: update from config.
87952
87953 2003-10-02  Bruno Haible  <bruno@clisp.org>
87954
87955         * modules/lchown (Include): Add lchown.h.
87956         * modules/time_r (Include): Use "..." syntax.
87957         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87958
87959 2003-10-01  Simon Josefsson  <jas@extundo.com>
87960
87961         * MODULES.html.sh (func_all_modules): Move gethostname from section
87962         'based on' to section 'lacking' POSIX:2001.
87963
87964 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87965
87966         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87967         to output mode on the same stream.
87968
87969 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87970
87971         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87972         Fix arg typo in previous patch.
87973
87974 2003-09-28  Jim Meyering  <jim@meyering.net>
87975
87976         * lib/error.c: Correct cpp indentation.
87977
87978 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87979
87980         * modules/free: New file.
87981
87982 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87983
87984         * m4/free.m4: New file.
87985
87986 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87987
87988         * lib/minmax.h (MIN, MAX)
87989         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87990         Omit the special code that used __typeof__, since we worry that
87991         it could be more trouble than it's worth.  See:
87992         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87993         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87994
87995         * lib/free.c: New file.
87996
87997 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87998
87999         Trivial fixes to Makefile.am parts of module listings.
88000         * modules/strstr: Append strstr.h to lib_SOURCES.
88001         * modules/strcase: Likewise, for strcase.h.
88002
88003 2003-09-27  Karl Berry  <karl@gnu.org>
88004
88005         * config/mkinstalldirs: update from automake.
88006
88007 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88008
88009         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88010         (error_tail): Do not loop, reallocating temporary buffer, since
88011         the output cannot contain more wide characters than the input
88012         contains bytes, the size must be big enough already.  This avoids
88013         one potential size overflow calculation.  Check for size overflow
88014         when calculating temporary buffer size.  Free temporary buffer
88015         when done, if it was allocated with malloc; this plugs a memory
88016         leak.  Remove casts from void * to pointers, that are no longer
88017         needed now that we're assuming C89 or better.
88018
88019         Merge error changes from glibc.
88020
88021         * lib/error.c, error.h: Update copyright notice header to match glibc.
88022         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88023         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88024         Disable cancellation while printing error.
88025         * lib/error.h: Prepend __ to parameter names.
88026
88027 2003-09-26  Jim Meyering  <jim@meyering.net>
88028
88029         * lib/error.c (error_tail): Move some declarations
88030         into inner scope where the local variables are used.
88031
88032 2003-09-26  Bruno Haible  <bruno@clisp.org>
88033
88034         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88035         stpncpy().
88036         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88037
88038 2003-09-26  Bruno Haible  <bruno@clisp.org>
88039
88040         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88041         (stpncpy): Define as alias for gnu_stpncpy.
88042         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88043
88044 2003-09-25  Simon Josefsson  <jas@extundo.com>
88045
88046         * lib/xgetdomainname.h: New file.
88047         * lib/xgetdomainname.c: New file.
88048
88049 2003-09-25  Simon Josefsson  <jas@extundo.com>
88050             Bruno Haible  <bruno@clisp.org>
88051
88052         * modules/getdomainname: New file.
88053         * modules/xgetdomainname: New file.
88054         * MODULES.html.sh (func_all_modules): Add getdomainname,
88055         xgetdomainname.
88056
88057 2003-09-25  Simon Josefsson  <jas@extundo.com>
88058             Bruno Haible  <bruno@clisp.org>
88059
88060         * m4/getdomainname.m4: New file.
88061
88062 2003-09-25  Simon Josefsson  <jas@extundo.com>
88063             Bruno Haible  <bruno@clisp.org>
88064
88065         * lib/getdomainname.h: New file.
88066         * lib/getdomainname.c: New file.
88067
88068 2003-09-25  Karl Berry  <karl@gnu.org>
88069
88070         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88071
88072 2003-09-25  Karl Berry  <karl@gnu.org>
88073
88074         * config/install-sh: update from automake.
88075
88076 2003-09-25  Bruno Haible  <bruno@clisp.org>
88077
88078         * modules/version-etc-2: New file, from modules/version-etc with
88079         modifications.
88080         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88081
88082 2003-09-25  Bruno Haible  <bruno@clisp.org>
88083
88084         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88085         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88086
88087 2003-09-24  Simon Josefsson  <jas@extundo.com>
88088
88089         * modules/xgethostname: Add xgethostname.h.
88090
88091 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88092
88093         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88094         the buffer associated with the argument.  Bug reported by
88095         Simon Josefsson.
88096
88097 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88098
88099         * README: Document assumptions that 'int' is at least 32 bits
88100         wide, that integer arithmetic is 2's complement without overflow,
88101         that there are no holes in integer values, that adding sizes of
88102         two nonoverlapping objects can't overflow, and that all-bits-zero
88103         yields scalar zero.  Fix spelling and capitalization typos.
88104
88105 2003-09-19  Karl Berry  <karl@gnu.org>
88106
88107         * lib/argp.h: update from libc.
88108
88109 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88110
88111         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88112         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88113         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88114
88115 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88116
88117         * gnulib-tool: Use "test -h", not "test -L", for portability
88118         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88119         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88120         (sed_extract_prog): Issue s commands one-by-one, rather than
88121         using \| in one s command.
88122
88123 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88124
88125         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88126         input error, instead of returning NULL the next time we are called
88127         (and therefore losing track of errno).
88128
88129 2003-09-16  Bruno Haible  <bruno@clisp.org>
88130
88131         * gnulib-tool (func_create_testdir): Warn about duplicated
88132         dependencies.
88133
88134 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88135
88136         * modules/argmatch, modules/fatal, modules/obstack,
88137         modules/xalloc, modules/xgethostname: Sort dependencies by
88138         importance, not alphabetically.
88139
88140 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88141
88142         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88143         fails, so that the caller gets the proper errno.
88144
88145         * lib/readutmp.c (read_utmp): Likewise.
88146         Check for fstat error.  Close stream and free storage
88147         when failing.
88148
88149 2003-09-14  Karl Berry  <karl@gnu.org>
88150
88151         * config/srclist.txt (strdup.c): disable for c89 changes.
88152
88153 2003-09-14  Jim Meyering  <jim@meyering.net>
88154
88155         * lib/getloadavg.c: Correct cpp indentation.
88156         * lib/strdup.c: Likewise.
88157         * lib/vasnprintf.c: Likewise.
88158
88159 2003-09-14  Bruno Haible  <bruno@clisp.org>
88160
88161         * modules/fwriteerror: New file.
88162         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88163
88164 2003-09-14  Bruno Haible  <bruno@clisp.org>
88165
88166         * lib/fwriteerror.h: New file.
88167         * lib/fwriteerror.c: New file.
88168
88169 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88170
88171         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88172         modules/xgethostname, modules/xalloc: Depend on exit.
88173
88174 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88175
88176         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88177
88178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88179         and AC_MINIX, too, so that their extensions are available.
88180
88181         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88182         This macro has been superseded by gl_BACKUPFILE.
88183
88184         More patches to assume C89 or better.
88185
88186         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88187
88188         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88189         unconditionally.
88190         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88191         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88192         Include <string.h>, <stdlib.h> unconditionally.
88193         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88194         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88195         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88196         headers or for string.h.
88197         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88198         or strtoul.
88199
88200         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88201         headers.
88202         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88203         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88204         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88205         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88206         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88207         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88208         memcpy, memset.
88209         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88210         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88211         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88212         strtol.
88213         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88214         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88215         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88216         strtoul.
88217
88218 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88219
88220         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88221         * lib/obstack.c [!defined _LIBC]: Likewise.
88222         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88223         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88224         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88225
88226         More changes to assume C89 or better.
88227
88228         * lib/error.c (error_tail): Assume vprintf.
88229
88230         * lib/argmatch.c (getenv): Remove decl.
88231         * lib/progreloc.c (get_full_program_name): Define via prototype.
88232         * lib/setenv.c (clearenv): Likewise.
88233         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88234         needed.
88235         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88236         (malloc, memcpy): Remove decls.
88237         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88238         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88239         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88240         (memcpy): Remove macro.
88241         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88242         (__P): Remove.  All uses removed.
88243         (PTR): Remove.  All uses changed to void *.
88244         (CHAR_BIT, NULL): Remove.
88245         (spaces, zeros, memset_space, memset_zero)
88246         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88247         Remove.
88248         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88249         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88250         Define with prototype.
88251         Remove now-unnecessary prototype decl.
88252         (extra_args_spec): Assume ANSI C.  All uses changed.
88253         (extra_args_spec_iso): Remove.
88254         (my_strftime, emacs_strftimeu): Define via prototype.
88255         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88256         unconditionally.
88257         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88258         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88259         (strtoul, strtol): Remove decls.
88260         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88261         LONG_MAX): Remove.
88262         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88263         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88264         (LOCALE_PARAM_PROTO): New macro.
88265         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88266         (INTERNAL (strtol), strtol): Define with a prototype.
88267         (PARAMS): Remove.  All uses removed.
88268         * lib/tempname.c: Include <string.h> unconditionally.
88269         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88270         * lib/xgethostname.c (main): Define with a prototype.
88271         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88272         Include <stdlib.h> unconditionally.
88273         (calloc, malloc, realloc, free): Remove decls.
88274         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88275         Include <stdlib.h> unconditionally.  Sort include file names.
88276         (strtod): Remove.
88277         (xstrtod): Define with a prototype.
88278         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88279         (strtol, strtoul): Remove decls.
88280
88281 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88282
88283         More patches to assume C89 or better.
88284         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88285         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88286         string.h, memchr, STDC_HEADERS.
88287
88288 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88289
88290         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88291         Include <stdlib.h>, <string.h> unconditionally.
88292         Remove now-unnecessary cast to char *.
88293         * lib/strnlen.c: Include <string.h> unconditionally.
88294         * lib/yesno.c (yesno): Define with a prototype.
88295
88296 2003-09-11  Bruno Haible  <bruno@clisp.org>
88297
88298         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88299
88300 2003-09-10  Jim Meyering  <jim@meyering.net>
88301
88302         * lib/error.c: Correct indentation of cpp directives.
88303
88304 2003-09-10  Bruno Haible  <bruno@clisp.org>
88305
88306         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88307         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88308         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88309         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88310         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88311         <stdlib.h> and <string.h> checks.
88312         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88313         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88314
88315 2003-09-10  Bruno Haible  <bruno@clisp.org>
88316
88317         * lib/strcspn.c: Include <string.h> unconditionally.
88318         * lib/strpbrk.c: Include <string.h> unconditionally.
88319         * lib/strstr.c: Include <string.h> unconditionally.
88320         * lib/unicodeio.c: Include <string.h> unconditionally.
88321         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88322         * lib/unsetenv.c: Likewise.
88323         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88324         * lib/yesno.c: Include <stdlib.h> unconditionally.
88325         (rpmatch): Add prototype.
88326
88327 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88328
88329         More patches to assume C89 or better.
88330         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88331         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88332         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88333         or for string.h.
88334         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88335         stdlib.h.
88336         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88337         C headers.
88338         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88339         string.h.
88340         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88341         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88342         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88343         or for string.h.
88344         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88345         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88346         C headers.
88347         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88348         memcpy.
88349         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88350         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88351         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88352         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88353         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88354         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88355         string.h, free.
88356         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88357         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88358         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88359         C headers, or for string.h.
88360         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88361         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88362         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88363         headers, memory.h, stdlib.h, string.h, strings.h.
88364         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88365         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88366         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88367         strchr.
88368         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88369         headers, memory.h, string.h.
88370         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88371         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88372         free.
88373         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88374         headers.
88375         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88376         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88377         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88378         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88379         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88380
88381 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88382
88383         More K&R removal.
88384
88385         * lib/acosl.c (main): Use a prototype.
88386         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88387         tanl.c: Likewise.
88388
88389         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88390
88391         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88392         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88393         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88394         with a prototype.
88395         * lib/getopt.c (const): Remove macro.
88396         Include <string.h> unconditionally.
88397         (my_index): Remove; all uses changed to strchr.
88398         (strlen): Remove decl.
88399         (exchange): Remove forward decl; no longer needed.
88400         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88401         Define with prototype.
88402         * lib/getopt1.c (const): Remove macro.
88403         (getopt_long, getopt_long_only, main): Define with prototype.
88404
88405         * lib/getugroups.c: Include <string.h> unconditionally.
88406
88407         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88408         (getusershell, setusershell, endusershell, readname, main):
88409         Define with prototypes.
88410
88411         * lib/group-member.c: Include group-member.h first.
88412         Include <stdlib.h> unconditionally.
88413
88414         * lib/hard-locale.c: Include hard-locale.h first.
88415         Include <stdlib.h>, <string.h> unconditionally.
88416
88417         * lib/hash.c (free, malloc): Remove decls.
88418         Include <stdlib.h> unconditionally.
88419
88420         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88421         (getenv): Do not declare.
88422
88423         * lib/idcache.c: Include <string.h> unconditionally.
88424
88425         * lib/long-options.c: Include long-options.h first, to test interface.
88426         Include <stdlib.h> unconditionally.
88427
88428         * lib/makepath.c: Include makepath.h first, to test interface.
88429         Include <stdlib.h> and <string.h> unconditionally.
88430
88431         * lib/linebuffer.c: Include <stdlib.h>.
88432         (free): Remove decl.
88433
88434         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88435         stddef.h. rpl_malloc returns void *, not char *.
88436         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88437         prototype.
88438
88439         * lib/md5.h: Include <limits.h> unconditionally.
88440         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88441         (__P): Remove; all uses removed.
88442         * lib/md5.c: Include "md5.h" first.
88443         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88444         md5_buffer, md5_process_bytes, md5_process_block):
88445         Define with prototypes.
88446         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88447         * lib/sha.c: Include "sha.h" first.
88448         Include <stdlib.h>, <string.h> unconditionally.
88449
88450         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88451         * lib/memcmp.c (__ptr_t): Likewise.
88452         * lib/memrchr.c (__ptr_t): Likewise.
88453         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88454         Include <string.h> unconditionally.
88455         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88456         * lib/memchr.c: Include <stdlib.h> unconditionally.
88457         * lib/memchr.c (LONG_MAX): Remove.
88458         * lib/memrchr.c (LONG_MAX): Likewise.
88459         * lib/memchr.c (__memchr): Define via a prototype.
88460         * lib/memrchr.c (__memrchr): Likewise.
88461         * lib/memcmp.c (__P): Remove, and remove all uses.
88462         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88463         Remove forward decls; no longer needed.
88464         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88465         Use types required by C89 in prototype.
88466
88467         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88468         * lib/savedir.c: Likewise.
88469         * lib/mkdir.c (free): Remove decl.
88470         * lib/rmdir.c (rmdir): Define with a prototype.
88471         * lib/savedir.c: Include savedir.h first, to test interface.
88472
88473         * lib/mktime.c (STDC_HEADERS): Remove.
88474         Include <stdlib.h>, <string.h> unconditionally.
88475
88476         * lib/modechange.c: Include <stdlib.h> unconditionally.
88477         (malloc): Remove decl.
88478
88479         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88480         (free): Remove decl.
88481
88482         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88483         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88484         (This type really should be intptr_t, but that's a C99ism.)
88485         (_obstack_memcpy): Remove: all uses changed to memcpy.
88486         Include <string.h> unconditionally.
88487         (struct obstack): Assume __STDC__ for types of members
88488         chunkfun, freefun, extra_arg.
88489         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88490         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88491         obstack_begin, obstack_specify_allocation,
88492         obstack_specify_allocation_with_arg, obstack_chunkfun,
88493         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88494         Remove unprototyped decls and the macros that use them.
88495         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88496         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88497         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88498         (defined __STDC__ && __STDC__)]:
88499         Remove nonprototyped code.
88500         Include <stdlib.h> unconditionally.
88501         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88502         _obstack_allocated_p, _obstack_free, obstack_free,
88503         _obstack_memory_used, print_and_abort):
88504         Define using prototypes.
88505         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88506         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88507         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88508         obstack_next_free, obstack_object_size, obstack_room) [0]:
88509         Remove unused, unprototyped code.
88510
88511         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88512
88513         * lib/physmem.c (physmem_total, physmem_available, main): Define
88514         with prototypes.
88515
88516         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88517         (main): Define with a prototype.
88518
88519         * lib/posixver.c (getenv): Remove decl.
88520
88521         * lib/putenv.c (malloc): Returns void *, not char *.
88522         Include <string.h> unconditionally.
88523         (strchr, memcpy, NULL): Do not define.
88524
88525         * lib/readtokens.c: Include readtokens.h first, to test interface.
88526         Include <stdlib.h>, <string.h> unconditionally.
88527         (init_tokenbuffer): Define with a prototype.
88528
88529         * lib/regex.c (PARAMS): Remove.  All uses removed.
88530         All uses of _RE_ARGS removed, too.
88531         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88532         unconditionally.
88533         (bzero): Assume memset exists.
88534         (memcmp, memcpy, NULL): Remove.
88535         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88536         char, or assignments to local vars of type signed char.
88537         (init_syntax_once, PREFIX(extract_number_and_incr),
88538         PREFIX(print_partial_compiled_pattern),
88539         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88540         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88541         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88542         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88543         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88544         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88545         wcs_compile_range, byte_compile_range, truncate_wchar,
88546         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88547         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88548         count_mbs_length, wcs_re_match_2_internal,
88549         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88550         PREFIX(alt_match_null_string_p),
88551         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88552         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88553         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88554         now-unnecessary declaration, if any.
88555         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88556         regcomp, regexec):
88557         Remove now-unnecessary casts among pointer types.
88558         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88559
88560         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88561         (free): Remove decl.
88562
88563         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88564
88565         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88566         (free): Remove decl.
88567
88568         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88569         * lib/xgetcwd.c: Likewise.
88570
88571         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88572         (free): Remove decl.
88573
88574         * lib/strchrnul.c (strchrnul): Define with a prototype.
88575         Fix bug: c_in was not converted to char before searching.
88576
88577         The following changes are not K&R related:
88578
88579         * lib/group-member.h: Include <sys/types.h>, so that this file is
88580         self-contained.
88581         * lib/makepath.h: Likewise.
88582
88583         * lib/getusershell.c (readname, default_index, line_size, readname):
88584         Use size_t, not int, for sizes.
88585         (readname): If the size overflows, report an error instead of
88586         looping forever.
88587
88588 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88589
88590         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88591         libc.
88592
88593 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88594
88595         * README: New section: portability guidelines.
88596
88597 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88598
88599         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88600         C89 spec.
88601
88602 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88603
88604         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88605
88606 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88607
88608         Assume C89 or better; remove K&R cruft.
88609         A few of these changes were first proposed by Derek Robert Price
88610         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88611
88612         * lib/addext.c: Include <string.h> unconditionally.
88613         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88614         Don't declare getenv or malloc.
88615
88616         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88617         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88618         (NULL): Remove.
88619         (find_stack_direction, alloca): Use prototypes.
88620
88621         * lib/atexit.c (atexit): Define using a prototype.
88622
88623         * lib/basename.c, dirname.c, stripslash.c:
88624         Include <string.h> unconditionally.
88625
88626         * lib/bcopy.c: Include <stddef.h>.
88627         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88628
88629         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88630
88631         * lib/error.h (error, error_at_line, error_print_progname)
88632         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88633         * lib/error.c: Include error.h first, to check interface.
88634         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88635         (VA_START): Remove; all uses changeed to va_start.
88636         (exit, strerror): Remove decls.
88637         (error_print_progname): Prototype uncondionally.
88638         Don't include <errno.h>; no longer needed.
88639         (private_strerror): Remove.
88640         (error_tail): Always define.
88641         (error, error_at_line): Assume C89 or better; always use prototypes.
88642         * lib/fatal.c: Include "fatal.h" first, to test interface.
88643         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88644         (VA_START): Remove; all uses changed to va_start.
88645         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88646         this case.
88647         (exit): Remove decl.
88648         (fatal): Prototype unconditionally.  Assume va_start works.
88649         Abort at end, to pacify gcc.
88650
88651         * lib/euidaccess.c (main): Define with a prototype.
88652
88653         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88654
88655         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88656
88657         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88658         prototypes.
88659         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88660         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88661         (getenv): Remove decl.
88662         (fnmatch): Define using a prototype.
88663         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88664         (FCT): Define using a prototype.
88665
88666         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88667
88668         * lib/gethostname.c: Include <stddef.h>.
88669         (gethostname): Define with prototype.  Length is size_t, not int.
88670
88671 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88672
88673         Assume C89 or better; remove K&R cruft.
88674         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88675         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88676         string.h, getenv, malloc.
88677         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88678         headers.
88679         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88680         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88681         do not check for strerror.
88682         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88683         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88684         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88685         do not check for doprnt or vprintf.
88686         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88687         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88688
88689 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88690
88691         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88692         getversion.c should have been removed then, but was accidentally
88693         preserved.
88694
88695         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88696         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88697
88698 2003-09-08  Karl Berry  <karl@gnu.org>
88699
88700         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88701                 config, forget about prep.
88702
88703         * config/depcomp, missing: update from automake.
88704
88705 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88706
88707         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88708         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88709
88710 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88711
88712         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88713         copy_tm_result.  Bug reported by Simon Josefsson in
88714         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88715
88716 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88717
88718         * m4/time_r.m4: New file.
88719         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88720         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88721         is. Check for timegm declaration.
88722         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88723         Do not check for gmtime_r.
88724         Replace mktime if __mktime_internal does not exist and if mktime
88725         hasn't been replaced already.
88726
88727 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88728
88729         * lib/time_r.c, lib/time_r.h: New files.
88730
88731         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88732         __localtime_r.
88733         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88734         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88735
88736         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88737         __gmtime_r.
88738         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88739         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88740         Include <time_r.h>.
88741
88742         * lib/timegm.c: Switch to glibc implementation, with the following
88743         changes:
88744         [defined HAVE_CONFIG_H]: Include <config.h>.
88745         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88746         (__mktime_internal) [!defined _LIBC]: New decl.
88747         (__gmtime_r) [!defined _LIBC]: New macro and function.
88748         (timegm): Use a prototype, since gnulib assumes C89.
88749         Do not bother declaring tmp to be const, as it's not really usefu.
88750         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88751         (timegm): Declare only if HAVE_DECL_TIMEGM.
88752
88753 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88754
88755         * MODULES.html.sh (func_all_modules): Add time_r.
88756         * modules/time_r: New file.
88757         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88758         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88759
88760 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88761
88762         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88763         Bug reported by Lute Kamstra in
88764         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88765
88766         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88767         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88768         course with correspondingly smaller numbers for tomorrow and
88769         yesterday.  From Tadayoshi Funaba.  Originally installed into
88770         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88771         coreutils merge?).
88772
88773 2003-08-31  Simon Josefsson  <jas@extundo.com>
88774
88775         * modules/timegm: New file.
88776         * MODULES.html.sh (func_all_modules): Add timegm.
88777
88778 2003-08-31  Simon Josefsson  <jas@extundo.com>
88779
88780         * m4/timegm.m4: New file.
88781
88782 2003-08-31  Simon Josefsson  <jas@extundo.com>
88783
88784         * lib/timegm.h: New file.
88785         * lib/timegm.c: New file.  Based on
88786         wget-1.8.2/src/http.c:mktime_from_utc.
88787
88788 2003-08-31  Karl Berry  <karl@gnu.org>
88789
88790         * lib/argp.h: update from libc.
88791
88792 2003-08-28  Bruno Haible  <bruno@clisp.org>
88793
88794         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88795         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88796         followed by '#define fnmatch fnmatch_posix' gives an error.
88797
88798 2003-08-28  Bruno Haible  <bruno@clisp.org>
88799
88800         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88801         warning on QNX, which defines O_BINARY to 000000.
88802
88803 2003-08-27  Jim Meyering  <jim@meyering.net>
88804
88805         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88806         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88807         would fail after 32.  Reported by Danny Levinson.  Details here:
88808         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88809
88810 2003-08-24  Bruno Haible  <bruno@clisp.org>
88811
88812         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88813         MSVC7 <stdio.h> is included later.
88814
88815 2003-08-22  Simon Josefsson  <jas@extundo.com>
88816
88817         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88818
88819 2003-08-20  Karl Berry  <karl@gnu.org>
88820
88821         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88822
88823 2003-08-20  Bruno Haible  <bruno@clisp.org>
88824
88825         * modules/progname: New file.
88826         * MODULES.html.sh (func_all_modules): Add progname.
88827
88828 2003-08-20  Bruno Haible  <bruno@clisp.org>
88829
88830         * lib/progname.h: New file, from GNU gettext.
88831         * lib/progname.c: New file, from GNU gettext.
88832         * lib/progreloc.c: New file, from GNU gettext.
88833
88834 2003-08-19  Jim Meyering  <jim@meyering.net>
88835
88836         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88837         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88838
88839 2003-08-19  Bruno Haible  <bruno@clisp.org>
88840
88841         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88842         more.
88843
88844 2003-08-19  Bruno Haible  <bruno@clisp.org>
88845
88846         * lib/xstrdup.c: Assume <string.h> exists.
88847
88848 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88849
88850         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88851         in makefile rules.
88852
88853 2003-08-18  Jim Meyering  <jim@meyering.net>
88854
88855         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88856         * m4/lib-ld.m4: Likewise.
88857
88858 2003-08-18  Jim Meyering  <jim@meyering.net>
88859
88860         * lib/setenv.h: Indent nested cpp directive.
88861         * lib/vasnprintf.c: Remove trailing blanks.
88862
88863 2003-08-17  Simon Josefsson  <jas@extundo.com>
88864
88865         * modules/xstrndup: New file.
88866         * MODULES.html.sh (func_all_modules): Add xstrndup.
88867
88868 2003-08-17  Simon Josefsson  <jas@extundo.com>
88869
88870         * modules/argp: Fix autoconf macro name. Add more dependencies.
88871
88872 2003-08-17  Simon Josefsson  <jas@extundo.com>
88873
88874         * m4/xstrndup.m4: New file.
88875
88876 2003-08-17  Simon Josefsson  <jas@extundo.com>
88877
88878         * m4/argp.m4: New file.
88879
88880 2003-08-17  Simon Josefsson  <jas@extundo.com>
88881             Bruno Haible  <bruno@clisp.org>
88882
88883         * lib/xstrndup.h: New file.
88884         * lib/xstrndup.c: New file.
88885
88886 2003-08-17  Bruno Haible  <bruno@clisp.org>
88887
88888         * modules/strndup (Files, Include): Add lib/strndup.h.
88889
88890 2003-08-17  Bruno Haible  <bruno@clisp.org>
88891
88892         * modules/euidaccess (Files): Add lib/euidaccess.h.
88893
88894 2003-08-17  Bruno Haible  <bruno@clisp.org>
88895
88896         * lib/strndup.h: New file.
88897
88898 2003-08-17  Bruno Haible  <bruno@clisp.org>
88899
88900         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88901         like AC_GNU_SOURCE.
88902         * modules/extensions (configure.ac): Comment out the invocation of
88903         gl_USE_SYSTEM_EXTENSIONS.
88904
88905 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88906
88907         Merges from coreutils, etc.
88908         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88909         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88910         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88911         fixing a typo.
88912         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88913         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88914
88915 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88916
88917         Document merge from coreutils.
88918         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88919         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88920         * modules/utime: Add m4/utimes-null.m4.
88921
88922 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88923
88924         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88925         space, undoing this 2003-08-12 change:
88926         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88927
88928 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88929
88930         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88931         strtoul.c from libc, undoing this 2003-08-12 change:
88932         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88933
88934 2003-08-16  Jim Meyering  <jim@meyering.net>
88935
88936         Merges from coreutils.
88937         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88938         prefix.  Adjust cache variables similarly.  Create 500 rather than
88939         just 300 files, to exercise bug on Darwin6.5, too.
88940         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88941         $missing_dir.
88942         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88943         AM_SYS_POSIX_TERMIOS.
88944         Reported by mkc@mathdogs.com.
88945         Also change use of $am_cv_sys_posix_termios
88946         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88947         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88948         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88949         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88950         in /proc/mounts until it finds one with matching device number.  This
88951         is unnecessary when the FILE argument *is* a mount point.  No stat call
88952         is necessary in that case.  So, disable the statvfs-testing code on
88953         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88954         as RedHat bug# 84846.
88955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88956         to 1MB, so as not to render systems with no stack size limit (e.g.,
88957         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88958         Include <unistd.h>.  On some systems,
88959         it is required for the definition of _SC_PAGESIZE.
88960
88961 2003-08-16  Jim Meyering  <jim@meyering.net>
88962
88963         Merge from coreutils.
88964         * lib/xstrtoimax.c: #else #if -> #elif.
88965         * lib/xstrtoumax.c: Likewise.
88966
88967 2003-08-16  Jim Meyering  <jim@meyering.net>
88968
88969         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88970         * m4/utimes.m4: Removed.
88971         * m4/utimes-null.m4: Renamed from utimes.m4.
88972
88973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88974         to 1MB, so as not to render systems with no stack size limit (e.g.,
88975         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88976         Include <unistd.h>.  On some systems,
88977         it is required for the definition of _SC_PAGESIZE.
88978
88979 2003-08-16  Jim Meyering  <jim@meyering.net>
88980         and Paul Eggert  <eggert@cs.ucla.edu>
88981
88982         Merges from coreutils, etc.
88983
88984         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88985         using the latest version from cvs.  This avoids problems with #line
88986         directives using a vendor (Sun) compiler.
88987         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88988         Don't set GETGROUPS_LIB here; now it's
88989         done via getgroups.m4's wrapper function.
88990         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88991         rather than just in sh-util/configure.in, so that the
88992         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88993         same.
88994         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88995         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88996         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88997         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88998         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88999         Remove code that is now done by the newly-required macros.
89000         Append $(EXEEXT) to DF_PROG.
89001         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89002         Do not invoke or require the following here,
89003         since prereq.m4 or some gnulib .m4 now does this for us:
89004         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89005         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89006         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89007         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89008         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89009         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89010         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89011         AC_FUNC_OBSTACK.
89012         Do not replace the following functions, as this is now the job
89013         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89014         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89015         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89016         atexit getpass, strdup, getpagesize.
89017         Replace 'raise'.
89018         Do not check for the following functions, as this is now the job
89019         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89020         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89021         setregid.
89022         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89023         Check for sys/sysctl.h.
89024         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89025         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89026         of checking for ssize_t ourselves.
89027
89028         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89029         Require every macro that gnulib/modules/* suggests for us.
89030         (jm_PREREQ_ADDEXT): New macro.
89031         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89032         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89033
89034         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89035         (gl_PHYSMEM): Use it.
89036         Also check for `table' function.
89037         Check for new headers and functions.
89038         Add check for sys/sysmp.h.
89039         With suggestions from Kaveh Ghazi.
89040         Ignore headers that are present but cannot be compiled.  This
89041         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89042         C 5.4.
89043
89044 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89045
89046         Document merge from coreutils.
89047         * modules/userspec: Depend on posixver.
89048         * modules/strftime: Depend on tzset.
89049
89050 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89051
89052         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89053         rather than tab, after '#' in shell-script copyright notices.
89054         Suggested by Bruno Haible.
89055
89056 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89057
89058         * config/srclist-update: Use three spaces, rather than tab, after '#'
89059         in shell-script copyright notices.  Suggested by Bruno Haible.
89060         Remove unnecessary parenthesization in regular expression.
89061
89062 2003-08-15  Jim Meyering  <jim@meyering.net>
89063
89064         Merge from coreutils.
89065         * lib/xgethostname.c: Include <stdlib.h>.
89066         (xghostname): Don't exit for anything other than memory-related
89067         failure; just return NULL.
89068         * lib/userspec.c: Include "posixver.h".
89069         (parse_user_spec): Accept `.' as a separator only
89070         in pre-POSIX-200112 mode.
89071         * lib/strtoimax.c: Use #elif rather than #else #if.
89072         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89073         Remove function, now that we can rely on a working tzset function.
89074         [!_LIBC]: Ensure that the required autoconf test has been run.
89075         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89076         Use underlying_strftime for %r.
89077         * lib/sha.c: Merge in some clean-up and optimization changes from
89078         glibc.
89079         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89080         Ensure that it is a multiple of 64.
89081         Rearrange loop exit tests so as to avoid performing an
89082         additional fread after encountering an error or EOF.
89083         * lib/realloc.c: Update copyright date.
89084
89085 2003-08-15  Jim Meyering  <jim@meyering.net>
89086         and Paul Eggert  <eggert@twinsun.com>
89087
89088         Merge from coreutils.
89089         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89090         member but strut utmpx does not.  Needed for AIX 4.3.3.
89091         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89092
89093 2003-08-15  Jim Meyering  <jim@meyering.net>
89094         and Paul Eggert  <eggert@cs.ucla.edu>
89095
89096         Merges from coreutils, etc.
89097         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89098         Require gl_FUNC_TZSET_CLOBBER.
89099         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89100         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89101         members.
89102
89103 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89104
89105         Help the merge from coreutils.
89106         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89107         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89108         * m4/tzset.m4: Use it too.
89109
89110 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89111
89112         * modules/tzset: New file.
89113
89114 2003-08-14  Jim Meyering  <jim@meyering.net>
89115
89116         Merges from coreutils.
89117         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89118         variable names, rather than @FNMATCH_H@.
89119         * modules/alloca: Likewise for $(ALLOCA_H).
89120
89121         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89122         the three copies of the literal target, `fnmatch.h'.
89123         * modules/alloca (alloca.h): Likewise.
89124
89125 2003-08-14  Jim Meyering  <jim@meyering.net>
89126
89127         Merge from coreutils.
89128         * m4/tzset.m4: New file.
89129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89130         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89131         otherwise, AIX 5.1 systems would end up using the latter.
89132         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89133         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89134         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89135         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89136
89137 2003-08-14  Jim Meyering  <jim@meyering.net>
89138
89139         Merge from coreutils.
89140         * lib/obstack.h: Whitespace changes.
89141         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89142         and xcalloc return values.
89143         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89144         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89145         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89146         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89147         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89148         error from mntctl.
89149         Use mntctl's return value to drive the entry-processing loop, since
89150         we can't rely on the value of the vmt_length member in the last
89151         entry.  On some systems doing so could result in exhausting
89152         virtual memory.  Based in part on a patch from Mike Jetzer.
89153
89154 2003-08-14  Jim Meyering  <jim@meyering.net>
89155         and Paul Eggert  <eggert@twinsun.com>
89156
89157         Merges from coreutils, plus other fixes.
89158         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89159         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89160         for credits and details.  Thanks to Kaveh Ghazi for helping
89161         to keep these files in sync.
89162         (ARRAY_SIZE): Define it.
89163         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89164         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89165         (memcasecmp): Don't assume size_t fits in unsigned int.
89166         Remove casts and duplicate code.
89167         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89168         (memcpy): Remove definition.
89169         Merge in some clean-up and optimization changes from glibc.
89170         [BLOCKSIZE]: Move definition to top of file.
89171         Ensure that it is a multiple of 64.
89172         Rearrange loop exit tests so as to avoid performing an
89173         additional fread after encountering an error or EOF.
89174         * lib/md5.h (md5_uintptr): Define.
89175         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89176         return to the initial working directory.  Preserve errno
89177         for caller.
89178         * lib/idcache.c: Include "xalloc.h".
89179         (xmalloc, xrealloc): Remove decls.
89180         (getuser): Remove casts no longer required in C89.
89181         * lib/human.c: Include stdio.h, for sprintf.
89182         * lib/group-member.c: Include "xalloc.h".
89183         (xmalloc, xrealloc): Remove decls.
89184         (get_group_info): Remove casts no longer required in C89.
89185         * lib/getusershell.c (readname): Remove casts no longer required in
89186         C89.
89187         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89188         * lib/getline.c: Whitespace fix, from coreutils.
89189
89190 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89191
89192         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89193         Check for isascii.
89194
89195         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89196         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89197         Undo previous (whitespace-only) change.
89198
89199 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89200
89201         * lib/exclude.c: Include <ctype.h>
89202         (IN_CTYPE_DOMAIN): New macro.
89203         (is_space): New fn.
89204         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89205         and empty lines.
89206
89207         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89208         Undo previous (whitespace-only) change.
89209
89210 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89211
89212         * config/srclist-update: Change update back to the old behavior,
89213         leaving whitespace alone.  Use one 'sed' command rather than a
89214         pipeline.
89215         (fixlicense): Now a variable, not a function.
89216         (remove_trailing_blanks): Remove.
89217         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89218         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89219         Undo previous (whitespace-only) change.
89220
89221 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89222
89223         Merge from coreutils.
89224         * modules/euidaccess: Add lib_SOURCES, include for new
89225         file euidaccess.h
89226
89227 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89228
89229         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89230         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89231         Normalize leading white space and remove trailing white space.
89232
89233         Merge from coreutils
89234         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89235
89236         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89237         0.12.1.  These files are now being upgraded automatically by
89238         ../config/srclist-update.
89239
89240 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89241
89242         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89243         Normalize leading white space and remove trailing white space.
89244         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89245         notice, as per ../config/srclist-update.
89246
89247         Merge from coreutils.
89248         * lib/euidaccess.h: New file.
89249         * lib/euidaccess.c: Include it.
89250         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89251         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89252         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89253
89254 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89255
89256         * config/srclist-update: Add copyright notice.
89257         (remove_id_lines, remove_trailing_blanks): New constants.
89258         (fixfile): Use them to normalize spacing a bit in copied files.
89259         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89260         Normalize leading white space and remove trailing white space.
89261
89262         * config/texinfo.tex: Sync with texinfo.
89263
89264         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89265         strtoul.c from libc, to merge coreutils whitespace changes.
89266
89267         * config/srclist.txt: Get the following m4 files from gettext:
89268         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89269         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89270         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89271         wint_t.m4.
89272
89273 2003-08-12  Karl Berry  <karl@gnu.org>
89274
89275         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89276         been made.
89277
89278 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89279
89280         * modules/gnu-source, m4/gnu-source.m4:
89281         Remove; we're assuming Autoconf 2.54 or later now.
89282         Suggested by Bruno Haible.
89283         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89284
89285 2003-08-11  Bruno Haible  <bruno@clisp.org>
89286
89287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89288
89289 2003-08-11  Bruno Haible  <bruno@clisp.org>
89290
89291         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89292         (vasnprintf): Use it instead of wcslen.
89293
89294 2003-08-11  Bruno Haible  <bruno@clisp.org>
89295
89296         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89297         value to ensure that _Bool promotes to int. Use #define for _Bool when
89298         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89299
89300 2003-08-10  Karl Berry  <karl@gnu.org>
89301
89302         * lib/regex.h: update from libc (whitespace fix).
89303
89304 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89305
89306         Merge some files from coreutils.  These changes were
89307         originally made by Jim Meyering.
89308         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89309         many older Unixes require this.
89310         * lib/alloca.c (alloca): Remove cast to argument of free;
89311         no longer needed in C89.
89312         * lib/alloca_.h, regex.h: Fix white space to match
89313         what GNU indent does.
89314
89315 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89316
89317         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89318         apparently Emacs's Unicode mode got confused before my 2003-08-05
89319         checkin.
89320
89321 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89322
89323         * m4/extensions.m4: New file.
89324         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89325         Require gl_USE_SYSTEM_EXTENSIONS.
89326         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89327         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89328
89329 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89330
89331         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89332         * modules/extensions, modules/gnu-source: New files.
89333         * modules/timespec, modules/unlocked-io: Depend on extensions.
89334
89335 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89336
89337         * modules/restrict: New file.
89338         * MODULES.html.sh (func_all_modules): Add restrict.
89339         * modules/regex: Depend on restrict.
89340
89341 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89342
89343         * m4/restrict.m4: New file.
89344         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89345
89346 2003-08-07  Bruno Haible  <bruno@clisp.org>
89347
89348         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89349         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89350
89351 2003-08-07  Bruno Haible  <bruno@clisp.org>
89352
89353         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89354         makes the module 'getndelim2' compatible with the module 'getline'.
89355
89356 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89357
89358         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89359         byte with "\201" to avoid glitches when editing that source file
89360         with multi-gnome-terminal.
89361
89362 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89363
89364         * lib/bumpalloc.h: Remove.
89365
89366 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89367
89368         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89369         * modules/bumpalloc: Remove.
89370
89371 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89372
89373         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89374         GNU coding style.
89375
89376         Merge from coreutils.
89377         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89378         1. From glibc.
89379         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89380         from Karl Berry, implemented by Jim Meyering.
89381         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89382         from Dmitry V. Levin.
89383         Remove anachronistic cast of xrealloc.
89384         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89385         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89386         type. Otherwise, it wouldn't compile with at least /bin/cc on
89387         ymp-cray-unicos9.0.2.X.
89388         Combine two mostly-identical uses of alloca into one.
89389         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89390
89391 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89392
89393         [From Emacs.]
89394
89395         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89396         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89397         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89398         obsolete NLIST_NAME_UNION.
89399         [__GNU__]: Undef BSD and FSCALE.
89400         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89401
89402 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89403
89404         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89405         an enum type, so that it's guaranteed to promote to int.  See:
89406         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89407
89408 2003-08-03  Karl Berry  <karl@gnu.org>
89409
89410         * config/depcomp: update from automake.
89411
89412 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89413
89414         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89415         (strerror): Don't assume that a printable int fits in 14 bytes.
89416
89417 2003-07-31  Bruno Haible  <bruno@clisp.org>
89418
89419         * modules/getpass-gnu: New file.
89420         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89421
89422 2003-07-31  Bruno Haible  <bruno@clisp.org>
89423
89424         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89425
89426 2003-07-24  Karl Berry  <karl@gnu.org>
89427
89428         * config/missing: update from automake.
89429
89430 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89431             Bruno Haible  <bruno@clisp.org>
89432
89433         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89434         * lib/getline.c (getline, getdelim): Likewise.
89435         Remove _GNU_SOURCE define; now it's defined in config.h through
89436         m4/getline.m4.
89437
89438 2003-07-23  Karl Berry  <karl@gnu.org>
89439
89440         * config/config.sub: update from prep.
89441
89442 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89443
89444         * modules/xalloc (Depends-on): Add exitfail.
89445         * modules/xmemcoll: Likewise.
89446
89447 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89448
89449         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89450         over-parenthesization in macros.
89451
89452         Sync with coreutils.
89453
89454         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89455         required by C99.
89456
89457         Use `exit_failure' for xalloc and xmemcoll instead of their own
89458         private exit-failure variables.
89459         * lib/xalloc.h (xalloc_exit_failure): Remove.
89460         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89461         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89462         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89463         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89464         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89465
89466 2003-07-20  Jim Meyering  <jim@meyering.net>
89467
89468         * modules/closeout (Depends-on): Add exitfail.
89469         Suggestion from Bruno Haible.
89470
89471 2003-07-19  Karl Berry  <karl@gnu.org>
89472
89473         * config/config.sub: update from prep.
89474
89475 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89476
89477         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89478         Remove.
89479         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89480         to test that it can stand by itself.  Include "exitfail.h".
89481         Clients should set exit_failure instead.
89482         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89483
89484 2003-07-18  Bruno Haible  <bruno@clisp.org>
89485
89486         * modules/getndelim2: New file.
89487         * modules/getline: Share files with module getndelim2.
89488         * modules/getnline: Depend on getndelim2 instead of sharing files with
89489         it. Add getnline.c to lib_SOURCES.
89490         * MODULES.html.sh (func_all_modules): Add getndelim2.
89491
89492 2003-07-18  Bruno Haible  <bruno@clisp.org>
89493
89494         * m4/getndelim2.m4: New file.
89495         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89496         invoke gl_PREREQ_GETNDELIM2.
89497         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89498         gl_PREREQ_GETNDELIM2.
89499         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89500         gl_GETNDELIM2.
89501
89502 2003-07-18  Bruno Haible  <bruno@clisp.org>
89503
89504         * lib/getndelim2.h: New file.
89505         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89506         getndelim2.h.
89507         (getndelim2): Make non-static. Change return type to ssize_t.
89508         * lib/getline.h: Change argument names.
89509         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89510         * lib/getnline.c: Include getndelim2.h.
89511
89512 2003-07-18  Andreas Schwab  <schwab@suse.de>
89513
89514         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89515
89516 2003-07-17  Karl Berry  <karl@gnu.org>
89517
89518         * config/config.sub: update from prep.
89519
89520 2003-07-17  Bruno Haible  <bruno@clisp.org>
89521
89522         * modules/getnline: New file.
89523         * modules/getline: Add lib/getndelim2.c to source file list.
89524         * MODULES.html.sh (func_all_modules): Add getnline.
89525
89526 2003-07-17  Bruno Haible  <bruno@clisp.org>
89527
89528         * m4/getnline.m4: New file.
89529
89530 2003-07-17  Bruno Haible  <bruno@clisp.org>
89531
89532         * m4/Makefile.am.in: Remove file.
89533         * m4/Makefile.am: Remove file.
89534         * m4/Makefile.in: Remove file.
89535
89536 2003-07-17  Bruno Haible  <bruno@clisp.org>
89537
89538         * lib/getnline.h: New file.
89539         * lib/getnline.c: New file.
89540         * lib/getndelim2.c: New file, extracted from getline.c.
89541         (getndelim2): Renamed from getdelim2, with added nmax argument.
89542         * lib/getline.c: Include getndelim2.c.
89543         (getdelim2): Moved out to getndelim2.c.
89544         (getline, getdelim): Update.
89545
89546 2003-07-17  Bruno Haible  <bruno@clisp.org>
89547
89548         * lib/Makefile.am: Remove file.
89549         * lib/Makefile.in: Remove file.
89550
89551 2003-07-17  Bruno Haible  <bruno@clisp.org>
89552
89553         * configure.in: Remove file.
89554         * Makefile.in: Remove file.
89555
89556 2003-07-17  Bruno Haible  <bruno@clisp.org>
89557
89558         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89559
89560 2003-07-16  Karl Berry  <karl@gnu.org>
89561
89562         * config/srclist-update: was running fixlicense twice, which caused
89563                 texinfo.tex to be nullified for some reason.  Simplify,
89564                 $gplsrc is no longer needed as far as I can see?
89565
89566 2003-07-16  Jim Meyering  <jim@meyering.net>
89567
89568         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89569
89570 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89571
89572         * config/srclist.txt: Get the following files from gettext-runtime/intl
89573         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89574         ref-del.sin.  From Bruno Haible.
89575         * config/srclist-update (fixfile): Change grep pattern again, since the
89576         previous fix didn't work (there was another trailing $).  Use
89577         '[$]' to escape the $s.
89578
89579 2003-07-15  Karl Berry  <karl@gnu.org>
89580
89581         * lib/vasnprintf.c: update from gettext.
89582
89583 2003-07-15  Karl Berry  <karl@gnu.org>
89584
89585         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89586         gets expanded when surrounded by '$'.
89587
89588 2003-07-15  Jim Meyering  <jim@meyering.net>
89589
89590         * modules/save-cwd: Don't depend on error.  From Derek Price.
89591
89592 2003-07-15  Jim Meyering  <jim@meyering.net>
89593
89594         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89595
89596 2003-07-14  Simon Josefsson  <jas@extundo.com>
89597
89598         * modules/mempcpy: New file.
89599         * MODULES.html.sh (func_all_modules): Add mempcpy.
89600
89601 2003-07-14  Simon Josefsson  <jas@extundo.com>
89602
89603         * m4/mempcpy.m4: New file.
89604
89605 2003-07-14  Simon Josefsson  <jas@extundo.com>
89606
89607         * lib/mempcpy.h: New file.
89608         * lib/mempcpy.c: New file.
89609
89610 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89611
89612         * modules/getdate, modules/posixtm: Depend on mktime.
89613
89614 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89615
89616         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89617         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89618         unicodeio.c, unicodeio.h, unlocked-io.h:
89619         Switch from LGPL to GPL.
89620
89621 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89622
89623         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89624         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89625         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89626         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89627         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89628         updated automatically by ../config/srclist-update.  This changes
89629         their license from LPGL to GPL.
89630
89631 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89632
89633         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89634         assumed to refer to the root of the most recent stable gettext version.
89635         * config/srclistvars.sh: Add defaults for eggert.
89636         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89637         Match "This program" as well as "The program".  This is needed
89638         for gettext.
89639
89640 2003-07-14  Jim Meyering  <jim@meyering.net>
89641
89642         Don't emit diagnostics.  Let callers do that.
89643         * lib/save-cwd.c: Don't include "error.h".
89644         (save_cwd): Don't call error.  Ensure that errno is valid
89645         when returning nonzero.
89646
89647         * lib/save-cwd.h (restore_cwd): Update prototype.
89648         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89649         Simplify.  Don't call error upon failure.  Let callers do that.
89650         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89651         when auditing is enabled.  But don't bother updating the #if.
89652
89653 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89654
89655         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89656         it breaks C++ compilation.
89657         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89658
89659 2003-07-10  Simon Josefsson  <jas@extundo.com>
89660
89661         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89662
89663 2003-07-10  Jim Meyering  <jim@meyering.net>
89664
89665         * m4/clock_time.m4: Remove trailing blank.
89666         * m4/intmax_t.m4: Likewise.
89667
89668 2003-07-10  Jim Meyering  <jim@meyering.net>
89669
89670         * lib/vasnprintf.c: Remove trailing blanks.
89671         Make cpp indentation consistent.
89672
89673 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89674
89675         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89676         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89677         Switch from LGPL to GPL.
89678
89679 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89680
89681         * config/srclist.txt: Sort sublists.  Add
89682         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89683         that differ from gnulib for one reason or another; we'd like this list
89684         to be smaller but for now let's document what we have.
89685
89686 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89687
89688         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89689         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89690         and sweeter "eval x=$x".
89691         * config/srclist.txt: Get lib/argp* from glibc.
89692
89693 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89694
89695         * lib/mktime.c: Fix some boundary cases and remove need for floating
89696         point.
89697
89698         Issue a compile-time diagnostic if time_t is floating point, or if
89699         two's complement arithmetic is not in effect, or if arithmetic
89700         right shift does not propagate the sign.  These assumptions were
89701         all in the original code but they weren't checked.
89702
89703         (TIME_T_MIDPOINT, verify): New macros.
89704         (__isleap): Remove; it has integer overflow problems.
89705         (leapyear): New function, without those problems.
89706         (ydhms_tm_diff): Remove; splitting into two parts.
89707         (ydhms_diff): New function, containing the arithmetic part of
89708         the old ydhms_tm_diff function.  Issue a compile-time
89709         diagnostic if we are not using C99 integer division.
89710         Avoid casts when possible.
89711         (guess_time_tm): New function, containing the checking part of
89712         the old ydhms_tm_diff function.  Return the new value, rather than
89713         the difference between it and the old.  Accept a new argument T
89714         so that *T specifies the old value.  Check for overflow in the result.
89715
89716         (__mktime_internal): Use a time_t offset, not a long int offset.
89717         This undoes the 2003-06-04 change, which is no longer needed now
89718         that we have better overflow checking.
89719         (localtime_offset): Likewise.
89720
89721         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89722         and long are 64-bit but int is only 32-bit.
89723         (ydhms_diff): Use long int to store year1 and yday1.
89724         Issue a compile-time diagnostic if long int is not wide enough.
89725
89726         (__mktime_internal): Use long int to store adjusted year and yday.
89727         Use plain C rather than preprocessor commands, if that doesn't
89728         affect efficiency.
89729         Check for overflow (and try to repair) after each probe
89730         rather than checking only at the very end.  This avoids some bugs
89731         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89732         does not equal GMT offset at maximum time).
89733         Use integer to check for overflow rather than floating point; this
89734         is more portable to non-IEEE hosts, and is a tad faster.
89735         When we detect that we are oscillating between two values,
89736         don't check whether tm_isdst has the requested value, since
89737         we already know the answer.  When tm_isdst has the wrong value,
89738         use a different heuristic to find the right one, based on the
89739         extreme values actually observed in practice in tz2003a,
89740         rather than the (overly optimistic) "previous 3 calendar quarters".
89741
89742         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89743         "T const" to accommodate glibc style.
89744         (check_result): Use less-confusing report format.  "long" -> "long int.
89745         (main): Likewise.
89746         Don't loop if the iteration overflows time_t.
89747         Allow a negative step in the iteration.
89748
89749 2003-07-06  Karl Berry  <karl@gnu.org>
89750
89751         * config/depcomp: update from automake.
89752         * config/config.sub: update from prep.
89753
89754 2003-07-03  Karl Berry  <karl@gnu.org>
89755
89756         * config/config.guess: update from prep.
89757
89758 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89759
89760         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89761         xreadlink.c now includes it unconditionally.
89762
89763 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89764
89765         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89766         having it depend on HAVE_SYS_TYPES_H.
89767
89768 2003-07-01  Bruno Haible  <bruno@clisp.org>
89769
89770         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89771         <sys/types.h> should be sufficient.
89772         Reported by Paul Eggert.
89773
89774 2003-06-26  Karl Berry  <karl@gnu.org>
89775
89776         * config/depcomp: update from automake.
89777
89778 2003-06-26  Bruno Haible  <bruno@clisp.org>
89779
89780         * modules/human: Depend on module stdbool.
89781
89782 2003-06-25  Bruno Haible  <bruno@clisp.org>
89783
89784         * modules/readlink: New file.
89785         * modules/xreadlink: Depend on it.
89786         * MODULES.html.sh (func_all_modules): Add readlink.
89787
89788 2003-06-25  Bruno Haible  <bruno@clisp.org>
89789
89790         * m4/readlink.m4: New file.
89791
89792 2003-06-25  Bruno Haible  <bruno@clisp.org>
89793
89794         * lib/readlink.c: New file.
89795
89796 2003-06-22  Karl Berry  <karl@gnu.org>
89797
89798         * config/srclist.txt: update mkinstalldirs from automake.
89799         * config/mkinstalldirs: update.
89800
89801 2003-06-22  Bruno Haible  <bruno@clisp.org>
89802
89803         Portability to mingw32.
89804         * m4/ssize_t.m4: New file, from GNU gettext.
89805         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89806         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89807
89808 2003-06-22  Bruno Haible  <bruno@clisp.org>
89809
89810         * modules/safe-read: Add m4/ssize_t.m4.
89811         * modules/xreadlink: Add m4/ssize_t.m4.
89812
89813 2003-06-20  Bruno Haible  <bruno@clisp.org>
89814
89815         Assume C89, so PARAMS isn't needed.
89816         * lib/unicodeio.h (PARAMS): Remove.
89817         * lib/unicodeio.c: Don't use PARAMS.
89818
89819 2003-06-18  Karl Berry  <karl@gnu.org>
89820
89821         * config/config.{guess,sub}: update from prep.
89822
89823 2003-06-18  Jim Meyering  <jim@meyering.net>
89824
89825         Merge changes from coreutils.
89826         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89827         Remove explicit declarations of xmalloc and realloc.
89828         Include xalloc.h.
89829         (read_utmp): Remove anachronistic cast of xmalloc.
89830
89831 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89832
89833         Assume C89, so PARAMS isn't needed.
89834         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89835         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89836         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89837         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89838         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89839         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89840         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89841         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89842         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89843         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89844         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89845         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89846         no longer needed. Anyway, config.h should always be included before any
89847         other file.
89848
89849 2003-06-11  Simon Josefsson  <jas@extundo.com>
89850
89851         * modules/sysexits: New file.
89852         * MODULES.html.sh (func_all_modules): Add sysexits.
89853
89854 2003-06-11  Simon Josefsson  <jas@extundo.com>
89855
89856         * lib/sysexit_.h: New file.
89857
89858 2003-06-11  Derek Price  <derek@ximbiot.com>
89859
89860         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89861         necessary.
89862
89863 2003-06-11  Bruno Haible  <bruno@clisp.org>
89864
89865         * m4/sysexits.m4: New file.
89866
89867 2003-06-10  Simon Josefsson  <jas@extundo.com>
89868
89869         * lib/argp.h: New file, from glibc.
89870         * lib/argp-ba.c: New file, from glibc.
89871         * lib/argp-eexst.c: New file, from glibc.
89872         * lib/argp-fmtstream.c: New file, from glibc.
89873         * lib/argp-fmtstream.h: New file, from glibc.
89874         * lib/argp-fs-xinl.c: New file, from glibc.
89875         * lib/argp-help.c: New file, from glibc.
89876         * lib/argp-namefrob.h: New file, from glibc.
89877         * lib/argp-parse.c: New file, from glibc.
89878         * lib/argp-pv.c: New file, from glibc.
89879         * lib/argp-pvh.c: New file, from glibc.
89880         * lib/argp-xinl.c: New file, from glibc.
89881
89882 2003-06-10  Simon Josefsson  <jas@extundo.com>
89883
89884         * modules/strchrnul: New file.
89885
89886 2003-06-10  Simon Josefsson  <jas@extundo.com>
89887
89888         * modules/argp: New file.
89889
89890 2003-06-10  Simon Josefsson  <jas@extundo.com>
89891
89892         * m4/strchrnul.m4: New file.
89893
89894 2003-06-10  Simon Josefsson  <jas@extundo.com>
89895
89896         * lib/strchrnul.h: New file.
89897         * lib/strchrnul.c: New file.
89898
89899 2003-06-10  Bruno Haible  <bruno@clisp.org>
89900
89901         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89902
89903 2003-06-07  Karl Berry  <karl@gnu.org>
89904
89905         * config/config.{guess,sub}: update from prep.
89906
89907 2003-06-07  Jim Meyering  <jim@meyering.net>
89908
89909         * modules/strtod: Use $(...) notation, not @...@ for
89910         AC_REPLACE'd variables.
89911         * modules/localcharset: Likewise.
89912
89913 2003-06-07  Jim Meyering  <jim@meyering.net>
89914
89915         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89916         in place of my name in the copyright comment.
89917         Remove definition and uses of __P.
89918
89919         From coreutils.
89920         * lib/stat.c: Don't declare xmalloc explicitly.
89921         Instead, include "xalloc.h".
89922         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89923         xrealloc, and xcalloc return values.
89924         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89925         Improve comment.
89926         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89927
89928 2003-06-07  Bruno Haible  <bruno@clisp.org>
89929
89930         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89931         avoid AC_CONFIG_LINKS.
89932         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89933         fnmatch.h, to avoid AC_CONFIG_LINKS.
89934         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89935
89936 2003-06-07  Bruno Haible  <bruno@clisp.org>
89937
89938         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89939         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89940         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89941         directory.
89942         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89943         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89944         directory.
89945
89946 2003-06-06  Jim Meyering  <jim@meyering.net>
89947
89948         Merge from coreutils.
89949         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89950         Consolidate declarations and initializations of *_base* locals.
89951
89952         Merge from coreutils.
89953         This avoids a core dump on systems without GNU putenv,
89954         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89955         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89956         (unsetenv): New static function, from GNU libc.
89957         (rpl_putenv): Use it.
89958
89959         * lib/modechange.c: Remove trailing blanks.
89960
89961         Merge from coreutils.
89962         * lib/fsusage.c: Remove declaration of statfs.
89963         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89964
89965         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89966
89967 2003-06-06  Jim Meyering  <jim@meyering.net>
89968
89969         * lib/stdbool_.h: Renamed from stdbool.h.in.
89970
89971 2003-06-06  Jim Meyering  <jim@meyering.net>
89972             Bruno Haible  <bruno@clisp.org>
89973
89974         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89975         Adjust Makefile.am snippet not to redirect directly to target.
89976         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89977
89978 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89979
89980         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89981         mismatch, look in future quarters as well as past.  This fixes a
89982         bug when processing fall-backwards gaps immediately after a long
89983         period of daylight-saving time.
89984
89985         * lib/mktime.c: Assume freestanding C89 or better.
89986         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89987         (__P): Remove; not used.
89988         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89989         (mktime, not_equal_tm, print_tm, check_result,
89990         main): Use prototypes.  Use const * where appropriate.
89991         (main): Fix typo in testing code that uncovered by above changes.
89992         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89993
89994 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89995
89996         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89997         locale.h, localeconv.  This merges changes from coreutils.
89998
89999         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90000         It can be removed after the next Autoconf is released.
90001         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90002         needed.
90003
90004 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90005
90006         * lib/mktime.c: Fix Debian bug 177940
90007         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90008         (localtime_offset): Now long int, not time_t, because we want it
90009         to be guaranteed to be signed.  All uses changed.
90010         (__mktime_internal): If overflow would occur when adding offset,
90011         don't add it.
90012
90013         Merge 'human' changes from coreutils.  Rewrite to support
90014         locale-specific notations like thousands separators.
90015         * lib/human.c: Simplify authorship notice.
90016         Include human.h immediately after config.h.
90017         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90018         <limits.h>: Do not include, since human.h does.
90019         (SIZE_MAX, UINTMAX_MAX): New macros.
90020         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90021         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90022         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90023         (power_letter): Renamed from suffixes.
90024         (generate_suffix_backwards): Remove.
90025         (adjust_value): Now takes int style (because of human.h changes)
90026         and long double value (for greater precision on some platforms).
90027         (group_number): New function.
90028         (human_readable): Use it.  Use integer options, not enum.
90029         Put the options before the sizes in the arg list.
90030         Support all the new options.
90031         The old human_readable function has been removed;
90032         use inttostr.h instead.
90033         (human_readable, default_block_size, humblock):
90034         Use uintmax_t, not int, for block sizes.
90035         (human_readable_inexact, block_size_types): Remove.
90036         (block_size_opts): New constant.
90037         (human_options): Renamed from human_block_size, with new signature
90038         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90039         * lib/human.h: Add copyright and authorship notice.
90040         Include <limits.h> and <stdbool.h> unconditionally.
90041         (PARAMS): Remove.  All uses removed.
90042         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90043         (enum human_inexact_style): Remove tag; now a nameless enum.
90044         (human_floor, human_ceiling, human_round_to_even): Now have
90045         values 2, 0, 1 rather than -1, 1, 0.
90046         (human_group_digits, human_suppress_point_zero, human_autoscale,
90047         human_base_1024, human_SI, human_B): New constants.
90048         (human_readable_inexact, human_block_size): Remove.
90049         (human_readable): Size args are now uintmax_t, not int.
90050         (human_options): New decl.
90051
90052         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90053         unnecessary now that we assume C89 or better.  This change
90054         imported from coreutils.
90055
90056         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90057         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90058         in the 2003-05-30 sync from glibc.
90059
90060         .h files should stand alone, but we shouldn't include <sys/types.h>
90061         if we can get away with just <stddef.h>.
90062
90063         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90064         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90065         rather than <sys/types.h>, as we merely need size_t.
90066         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90067         to get size_t.
90068         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90069         Include <stdio.h>, to get FILE.
90070         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90071         memcasecmp.h has included <stddef.h> and all we need is size_t.
90072         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90073         our interface, instead of including <sys/types.h>
90074
90075 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90076
90077         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90078         now, as glibc mktime is buggy on non-glibc systems.
90079
90080 2003-06-03  Karl Berry  <karl@gnu.org>
90081
90082         * config/config.sub: update from prep.
90083
90084 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90085
90086         [from coreutils]
90087         Fix some minor time-related bugs with POSIX time arguments.
90088         Some valid time stamps were being rejected (notably -1, and
90089         time stamps before 1900 on 64-bit hosts).  And some invalid
90090         time stamps were being accepted, e.g. September 31.
90091
90092         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90093         that we can return (time_t) -1 successfully.
90094         * lib/posixtm.c: Likewise.
90095         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90096         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90097         (t): Remove static var.
90098         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90099         of static var.  All uses changed.
90100         (year): Do not reject years before 1900; they can occur with
90101         64-bit time_t.
90102         (posix_time_parse): Do not check for out-of-range components;
90103         that is now the caller's responsibility, since our checks were
90104         only approximations.
90105         (posixtime): Use mktime to check for out-of-range components,
90106         since it knows them exactly.
90107         If mktime returns (time_t) -1, check whether an error actually occurred
90108         by invoking localtime on -1.
90109         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90110         posixtime failures better.
90111         Improve the test data (in comments only).
90112
90113 2003-06-02  Karl Berry  <karl@gnu.org>
90114
90115         * config/mkinstalldirs (version): new variable.
90116         (--version): new option.
90117         (usage): improve message.
90118
90119 2003-05-30  Karl Berry  <karl@gnu.org>
90120
90121         * lib/mktime.c: update from libc.
90122
90123 2003-05-30  Bruno Haible  <bruno@clisp.org>
90124
90125         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90126         * config/config.rpath: Upgrade to gettext-0.12.1.
90127
90128 2003-05-30  Bruno Haible  <bruno@clisp.org>
90129
90130         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90131         * m4/nls.m4: New file, from gettext-0.12.1.
90132         * m4/po.m4: New file, from gettext-0.12.1.
90133         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90134
90135 2003-05-30  Bruno Haible  <bruno@clisp.org>
90136
90137         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90138         * lib/localcharset.h: Likewise.
90139         * lib/localcharset.c: Likewise.
90140
90141 2003-05-29  Karl Berry  <karl@gnu.org>
90142
90143         * config/config.rpath: update from gettext.
90144
90145 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90146
90147         Assume the headers required for C89 freestanding compilers.
90148         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90149         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90150         * m4/human.m4 (gl_HUMAN): Likewise.
90151         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90152         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90153         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90154         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90155         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90156         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90157
90158 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90159
90160         Assume the headers required for C89 freestanding compilers.
90161         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90162         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90163         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90164         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90165         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90166         define, since <limits.h> is guaranteed to do that.
90167         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90168         * lib/exclude.c: Include <stdbool.h> unconditionally.
90169         * lib/tempname.c: Include <stddef.h> unconditionally.
90170         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90171         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90172         <stddef.h> does that.
90173         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90174         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90175         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90176         needed.
90177         * lib/xstrtol.c: Likewise.
90178         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90179         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90180
90181         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90182         warnings on some platforms.
90183
90184         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90185         arbitrarily.
90186
90187 2003-05-26  Jim Meyering  <jim@meyering.net>
90188
90189         Merge in a change from coreutils:
90190         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90191         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90192         that condition, rather than `-1' which is slightly misleading.
90193         Change the name of the cache variable to have the gl_ prefix.
90194         Prompted by a patch from Richard Dawe for DJGPP.
90195
90196 2003-05-24  Karl Berry  <karl@gnu.org>
90197
90198         * config/config.guess: update from prep.
90199
90200 2003-05-22  Karl Berry  <karl@gnu.org>
90201
90202         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90203
90204 2003-05-20  Karl Berry  <karl@gnu.org>
90205
90206         * config/config.guess: update from prep.
90207
90208 2003-05-18  Karl Berry  <karl@gnu.org>
90209
90210         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90211         might actually be set by the user.
90212
90213         * config/depcomp, install-sh, mdate-sh: update from automake.
90214
90215 2003-05-17  Bruno Haible  <bruno@clisp.org>
90216
90217         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90218         invalid expansion for AC_EGREP_CPP.
90219         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90220         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90221         Suggested by Akim Demaille <akim@epita.fr> in
90222         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90223
90224 2003-05-12  Jim Meyering  <jim@meyering.net>
90225
90226         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90227         the space-padded-by-default conversion specifiers, %e, %k, %l.
90228
90229 2003-05-12  Bruno Haible  <bruno@clisp.org>
90230
90231         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90232         the string is longer than 4 KB.
90233
90234 2003-05-11  Karl Berry  <karl@gnu.org>
90235
90236         * config/config.{guess,sub}: update from prep.
90237
90238 2003-05-09  Bruno Haible  <bruno@clisp.org>
90239
90240         * modules/error: Add m4/strerror_r.m4 to file list.
90241
90242 2003-05-03  Bruno Haible  <bruno@clisp.org>
90243
90244         Upgrade to Unicode-4.0.
90245         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90246         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90247         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90248         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90249         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90250         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90251         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90252         Change width of U+E0100..U+E01EF from 1 to 0.
90253
90254 2003-04-25  Jim Meyering  <jim@meyering.net>
90255
90256         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90257         of type size_t, not int.
90258
90259 2003-04-25  Bruno Haible  <bruno@clisp.org>
90260
90261         * lib/copy-file.c: Include <stddef.h>, for size_t.
90262
90263 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90264
90265         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90266         code which expansion is under static control.  Patch imported from
90267         Akim Demaille's patch to Bison; see
90268         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90269
90270 2003-04-14  Bruno Haible  <bruno@clisp.org>
90271
90272         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90273
90274 2003-04-11  Jim Meyering  <jim@meyering.net>
90275
90276         Merge changes from Coreutils.
90277
90278         2003-03-22  Jim Meyering  <jim@meyering.net>
90279
90280         * lib/strftime.c (widen): Cast alloca return value to proper type.
90281
90282         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90283
90284         From GNU libc.
90285         * lib/strftime.c (my_strftime): Handle very large width
90286         specifications for numeric values correctly.  Improve checks for
90287         overflow.
90288
90289         2003-01-19  Jim Meyering  <jim@meyering.net>
90290
90291         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90292         definitions.
90293         (nl_get_alt_digit) [! defined my_strftime]: Define.
90294         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90295         _nl_get_alt_digit and _nl_get_walt_digit.
90296
90297         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90298         libc. These changes have no effect outside of _LIBC.
90299
90300 2003-04-10  Bruno Haible  <bruno@clisp.org>
90301
90302         * modules/findprog: New file.
90303         * MODULES.html.sh (func_all_modules): Add it.
90304
90305 2003-04-10  Bruno Haible  <bruno@clisp.org>
90306
90307         * m4/findprog.m4: New file.
90308         * m4/eaccess.m4: New file.
90309
90310 2003-04-10  Bruno Haible  <bruno@clisp.org>
90311
90312         * lib/findprog.h: New file, from GNU gettext.
90313         * lib/findprog.c: New file, from GNU gettext.
90314
90315 2003-04-05  Jim Meyering  <jim@meyering.net>
90316
90317         Merge changes from Coreutils.
90318
90319         * lib/exclude.h (PARAMS): Remove definition and uses.
90320         * lib/exclude.c: Remove uses of `PARAMS'.
90321
90322         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90323         Add test-cases for DOS filenames. Declare program_name.
90324         (main): Set up program_name.  Patch by Rich Dawe.
90325
90326         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90327         error from mntctl.
90328         Use mntctl's return value to drive the entry-processing loop, since
90329         we can't rely on the value of the vmt_length member in the last
90330         entry.  On some systems doing so could result in exhausting
90331         virtual memory.  Based in part on a patch from Mike Jetzer.
90332
90333 2003-04-04  Bruno Haible  <bruno@clisp.org>
90334
90335         * modules/linebreak: New file.
90336         * MODULES.html.sh (func_all_modules): Add it.
90337
90338 2003-04-04  Bruno Haible  <bruno@clisp.org>
90339
90340         * m4/linebreak.m4: New file.
90341
90342 2003-04-04  Bruno Haible  <bruno@clisp.org>
90343
90344         * lib/linebreak.h: New file, from GNU gettext.
90345         * lib/linebreak.c: New file, from GNU gettext with slight
90346         modifications.
90347         * lib/lbrkprop.h: New file, from GNU gettext.
90348
90349 2003-04-03  Bruno Haible  <bruno@clisp.org>
90350
90351         * modules/utf8-ucs4: New file.
90352         * modules/utf16-ucs4: New file.
90353         * modules/ucs4-utf8: New file.
90354         * modules/ucs4-utf16: New file.
90355         * MODULES.html.sh (func_all_modules): Add them.
90356
90357 2003-04-03  Bruno Haible  <bruno@clisp.org>
90358
90359         * m4/utf-ucs4.m4: New file.
90360         * m4/ucs4-utf.m4: New file.
90361
90362 2003-04-03  Bruno Haible  <bruno@clisp.org>
90363
90364         * lib/utf8-ucs4.h: New file, from GNU gettext.
90365         * lib/utf16-ucs4.h: New file, from GNU gettext.
90366         * lib/ucs4-utf8.h: New file, from GNU gettext.
90367         * lib/ucs4-utf16.h: New file, from GNU gettext.
90368
90369 2003-04-02  Bruno Haible  <bruno@clisp.org>
90370
90371         * modules/binary-io: New file.
90372         * MODULES.html.sh (func_all_modules): Add it.
90373
90374 2003-04-02  Bruno Haible  <bruno@clisp.org>
90375
90376         * lib/binary-io.h: New file, from GNU gettext.
90377
90378 2003-04-01  Bruno Haible  <bruno@clisp.org>
90379
90380         * modules/pathname: New file.
90381         * MODULES.html.sh (func_all_modules): Add it.
90382
90383 2003-04-01  Bruno Haible  <bruno@clisp.org>
90384
90385         * lib/pathname.h: New file, from GNU gettext.
90386         * lib/concatpath.c: New file, from GNU gettext.
90387
90388 2003-03-30  Bruno Haible  <bruno@clisp.org>
90389
90390         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90391
90392 2003-03-30  Bruno Haible  <bruno@clisp.org>
90393
90394         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90395         function chown() doesn't exist.
90396
90397 2003-03-28  Bruno Haible  <bruno@clisp.org>
90398
90399         * modules/copy-file: New file.
90400         * MODULES.html.sh (func_all_modules): Add it.
90401
90402 2003-03-28  Bruno Haible  <bruno@clisp.org>
90403
90404         * m4/copy-file.m4: New file.
90405
90406 2003-03-28  Bruno Haible  <bruno@clisp.org>
90407
90408         * lib/copy-file.h: New file, from GNU gettext.
90409         * lib/copy-file.c: New file, from GNU gettext.
90410
90411 2003-03-18  Jim Meyering  <jim@meyering.net>
90412
90413         * lib/quote.c (quote_n): Fix typo in comment.
90414
90415 2003-03-18  Bruno Haible  <bruno@clisp.org>
90416
90417         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90418         checking.
90419         * m4/onceonly_2_57.m4: Likewise.
90420
90421 2003-03-17  Bruno Haible  <bruno@clisp.org>
90422
90423         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90424         (m4_quote): Remove macro.
90425         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90426
90427 2003-03-14  Jim Meyering  <jim@meyering.net>
90428
90429         Merge changes from Coreutils.
90430         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90431         to be const, in order to avoid warnings.
90432         (obstack_room): Likewise.
90433         (obstack_empty_p): Likewise.
90434
90435 2003-03-14  Bruno Haible  <bruno@clisp.org>
90436
90437         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90438         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90439
90440 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90441
90442         Merge changes from Bison.
90443         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90444         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90445         when compiling Bison 1.875's `bitset bset = obstack_alloc
90446         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90447         * lib/hash.c: Include <stdbool.h> unconditionally.
90448
90449 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90450
90451         * m4/onceonly.m4 (m4_quote): New macro.
90452         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90453         Quote AC_FOREACH variable-expansions properly.
90454
90455 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90456
90457         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90458
90459 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90460
90461         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90462         Reported by Bruce Becker; see:
90463         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90464
90465 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90466             Bruno Haible  <bruno@clisp.org>
90467
90468         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90469         Reported by John Hughes, see
90470         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90471
90472 2003-02-20  Bruno Haible  <bruno@clisp.org>
90473
90474         * MODULES.html.sh (func_all_modules): Add poll.
90475
90476 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90477
90478         * modules/poll: New file.
90479
90480 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90481
90482         * lib/poll_.h: New file.
90483         * lib/poll.c: New file.
90484
90485 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90486
90487         * m4/poll.m4: New file.
90488
90489 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90490
90491         * modules/mathl: New file.
90492
90493 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90494
90495         * lib/mathl.h: New file.
90496         * lib/acosl.c: New file.
90497         * lib/asinl.c: New file.
90498         * lib/atanl.c: New file.
90499         * lib/ceill.c: New file.
90500         * lib/cosl.c: New file.
90501         * lib/expl.c: New file.
90502         * lib/floorl.c: New file.
90503         * lib/frexpl.c: New file.
90504         * lib/ldexpl.c: New file.
90505         * lib/logl.c: New file.
90506         * lib/sincosl.c: New file.
90507         * lib/sinl.c: New file.
90508         * lib/sqrtl.c: New file.
90509         * lib/tanl.c: New file.
90510         * lib/trigl.c: New file.
90511         * lib/trigl.h: New file.
90512
90513 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90514
90515         * m4/mathl.m4: New file.
90516
90517 2003-02-18  Bruno Haible  <bruno@clisp.org>
90518
90519         * MODULES.html.sh (func_all_modules): Add mathl.
90520
90521 2003-02-17  Bruno Haible  <bruno@clisp.org>
90522
90523         * modules/mkdtemp: New module.
90524         * MODULES.html.sh (func_all_modules): Add it.
90525
90526 2003-02-17  Bruno Haible  <bruno@clisp.org>
90527
90528         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90529
90530 2003-02-17  Bruno Haible  <bruno@clisp.org>
90531
90532         * lib/mkdtemp.h: New file, from GNU gettext.
90533         * lib/mkdtemp.c: New file, from GNU gettext.
90534
90535 2003-02-02  Jim Meyering  <jim@meyering.net>
90536
90537         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90538         e.g. glibc-2.2.93.
90539
90540 2003-01-31  Bruno Haible  <bruno@clisp.org>
90541
90542         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90543         'rpl_rename'.
90544         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90545         'rpl_strnlen'.
90546         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90547         'rpl_strtod'.
90548         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90549         'rpl_utime'.
90550
90551 2003-01-31  Bruno Haible  <bruno@clisp.org>
90552
90553         * lib/rename.c: #undef rename before defining rpl_rename.
90554         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90555
90556 2003-01-30  Bruno Haible  <bruno@clisp.org>
90557
90558         * modules/vasnprintf, modules/vasprintf: New modules.
90559         * MODULES.html.sh (func_all_modules): Add them.
90560
90561 2003-01-30  Bruno Haible  <bruno@clisp.org>
90562
90563         * m4/signed.m4: New file, from GNU gettext.
90564         * m4/longdouble.m4: New file, from GNU gettext.
90565         * m4/wchar_t.m4: New file, from GNU gettext.
90566         * m4/wint_t.m4: New file, from GNU gettext.
90567         * m4/vasnprintf.m4: New file.
90568         * m4/vasprintf.m4: New file.
90569
90570 2003-01-30  Bruno Haible  <bruno@clisp.org>
90571
90572         * lib/printf-args.h: New file, from GNU gettext.
90573         * lib/printf-args.c: New file, from GNU gettext.
90574         * lib/printf-parse.h: New file, from GNU gettext.
90575         * lib/printf-parse.c: New file, from GNU gettext.
90576         * lib/vasnprintf.h: New file, from GNU gettext.
90577         * lib/vasnprintf.c: New file, from GNU gettext.
90578         * lib/asnprintf.c: New file, from GNU gettext.
90579         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90580         * lib/vasprintf.c: New file, from GNU gettext.
90581         * lib/asprintf.c: New file, from GNU gettext.
90582
90583 2003-01-29  Bruno Haible  <bruno@clisp.org>
90584
90585         * modules/stpncpy: New module.
90586         * MODULES.html.sh (func_all_modules): Add it.
90587
90588 2003-01-29  Bruno Haible  <bruno@clisp.org>
90589
90590         * m4/stpncpy.m4: New file.
90591
90592 2003-01-29  Bruno Haible  <bruno@clisp.org>
90593
90594         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90595         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90596
90597 2003-01-28  Bruno Haible  <bruno@clisp.org>
90598
90599         * modules/c-ctype: New module.
90600         * MODULES.html.sh (func_all_modules): Add it.
90601
90602 2003-01-28  Bruno Haible  <bruno@clisp.org>
90603
90604         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90605         Paul Eggert.
90606         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90607         Paul Eggert.
90608
90609 2003-01-27  Bruno Haible  <bruno@clisp.org>
90610
90611         * modules/xsetenv: New module.
90612         * MODULES.html.sh (func_all_modules): Add it.
90613
90614 2003-01-27  Bruno Haible  <bruno@clisp.org>
90615
90616         * lib/xsetenv.h: New file, from GNU gettext.
90617         * lib/xsetenv.c: New file, from GNU gettext.
90618
90619 2003-01-23  Jim Meyering  <jim@meyering.net>
90620
90621         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90622         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90623
90624 2003-01-23  Bruno Haible  <bruno@clisp.org>
90625
90626         * modules/minmax: New module.
90627         * MODULES.html.sh (func_all_modules): Add it.
90628
90629 2003-01-23  Bruno Haible  <bruno@clisp.org>
90630
90631         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90632         Eggert.
90633
90634 2003-01-22  Bruno Haible  <bruno@clisp.org>
90635
90636         * modules/exit: New module.
90637         * MODULES.html.sh (func_all_modules): Add it.
90638
90639 2003-01-22  Bruno Haible  <bruno@clisp.org>
90640
90641         * lib/exit.h: New file, from GNU gettext.
90642
90643 2003-01-19  Bruno Haible  <bruno@clisp.org>
90644
90645         * gnulib-tool: Recognize option --extract-maintainer.
90646         (func_get_maintainer): New function.
90647         * modules/*: Add Maintainer entry.
90648
90649 2003-01-16  Jim Meyering  <jim@meyering.net>
90650
90651         * m4/regex.m4: The `regex' struct is both input and output.
90652         Initialize it before each use.  Patch by Tim Waugh.
90653
90654 2003-01-16  Bruno Haible  <bruno@clisp.org>
90655
90656         * MODULES.html.sh: Add a table of contents. Add the module name as
90657         leftmost column. Add hyperlinks.
90658
90659 2003-01-15  Bruno Haible  <bruno@clisp.org>
90660
90661         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90662
90663 2003-01-15  Bruno Haible  <bruno@clisp.org>
90664
90665         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90666         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90667         suffix.
90668
90669 2003-01-15  Bruno Haible  <bruno@clisp.org>
90670
90671         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90672
90673 2003-01-15  Bruno Haible  <bruno@clisp.org>
90674
90675         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90676         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90677
90678 2003-01-14  Jim Meyering  <jim@meyering.net>
90679
90680         * lib/same.c (same_name): Tweak a comment.
90681
90682 2003-01-14  Bruno Haible  <bruno@clisp.org>
90683
90684         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90685         when a string comparison is sufficient.
90686
90687 2003-01-14  Bruno Haible  <bruno@clisp.org>
90688
90689         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90690         'unsigned int'.
90691
90692 2003-01-14  Bruno Haible  <bruno@clisp.org>
90693
90694         * lib/hash-pjw.c: Add comment about low quality of this function.
90695
90696 2003-01-13  Bruno Haible  <bruno@clisp.org>
90697
90698         * modules/stpcpy: Distribute lib/stpcpy.h.
90699         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90700
90701 2003-01-13  Bruno Haible  <bruno@clisp.org>
90702
90703         * modules/*: Add a description.
90704         * modules/strpbrk: Fix Makefile.am snippet.
90705         * modules/strtoimax: Fix dependencies.
90706         * modules/strtoumax: Likewise.
90707
90708 2003-01-13  Bruno Haible  <bruno@clisp.org>
90709
90710         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90711         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90712         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90713
90714 2003-01-13  Bruno Haible  <bruno@clisp.org>
90715
90716         * gnulib-tool (func_create_testdir): Store config/* files in the main
90717         directory.
90718         * config.rpath: Move to ...
90719         * config/config.rpath: ... here.
90720         * modules/gettext: Contains config/config.rpath, not config.rpath.
90721         * modules/iconv: Likewise.
90722
90723 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90724
90725         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90726         to avoid collisions with libcurses and libreadline.
90727
90728         * m4/getstr.m4: Remove.
90729         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90730
90731 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90732
90733         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90734         to avoid collisions with libcurses and libreadline.
90735
90736         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90737         * lib/getstr.h, getstr.c: Remove.
90738         * lib/getline.c: Include "getline.h", to check interface.
90739         Move body of old getstr.c here: this defines MIN_CHUNK and
90740         declares getdelim2, which is renamed from getstr.
90741         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90742
90743         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90744         All uses changed.
90745         * lib/linebuffer.h: Likewise.
90746         (readline): Remove backward-compatibility macro.
90747
90748 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90749
90750         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90751         to avoid collisions with libcurses and libreadline.
90752         * getstr: Remove.
90753         * MODULES.html.sh: Remove getstr.
90754         * modules/getline: Depend on unlocked-io, not getstr.
90755
90756 2003-01-12  Jim Meyering  <jim@meyering.net>
90757
90758         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90759
90760 2003-01-10  Bruno Haible  <bruno@clisp.org>
90761
90762         * modules/alloca: Change Makefile.am requirements. Simplify Include
90763         requirements. Add lib/alloca_.h to file list.
90764
90765 2003-01-10  Bruno Haible  <bruno@clisp.org>
90766
90767         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90768
90769 2003-01-10  Bruno Haible  <bruno@clisp.org>
90770
90771         * lib/alloca_.h: New file.
90772         * lib/getdate.y: Unconditionally include alloca.h.
90773         * lib/makepath.c: Likewise.
90774         * lib/setenv.c: Likewise.
90775         * lib/userspec.c: Likewise.
90776
90777 2003-01-09  Karl Berry  <karl@gnu.org>
90778
90779         * MODULES.html.sh: include `dirname $0` in PATH, to find
90780         gnulib-tool.
90781
90782 2003-01-09  Bruno Haible  <bruno@clisp.org>
90783
90784         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90785         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90786
90787 2003-01-09  Bruno Haible  <bruno@clisp.org>
90788
90789         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90790
90791 2003-01-09  Bruno Haible  <bruno@clisp.org>
90792
90793         * lib/stdbool.h.in: New file.
90794
90795 2003-01-09  Bruno Haible  <bruno@clisp.org>
90796
90797         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90798         * MODULES.html.sh: Likewise.
90799
90800 2003-01-08  Jim Meyering  <jim@meyering.net>
90801
90802         * lib/full-write.c: Undefine and define-away `const' after inclusion
90803         of errno.h, not before.  Suggestion from Bruno Haible.
90804
90805 2003-01-08  Bruno Haible  <bruno@clisp.org>
90806
90807         * modules/full-read: Depend on full-write.
90808
90809 2003-01-08  Bruno Haible  <bruno@clisp.org>
90810
90811         * lib/safe-read.c: Include specification header first, to ensure its
90812         selfcontainedness.
90813         * lib/full-write.c: Likewise.
90814
90815 2003-01-07  Jim Meyering  <jim@meyering.net>
90816
90817         * lib/full-write.c: Rework so that it may serve to define full_read,
90818         too.
90819         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90820
90821 2003-01-07  Bruno Haible  <bruno@clisp.org>
90822
90823         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90824         <inttypes.h>.
90825         * lib/xstrtol.h: Likewise.
90826         * lib/xstrtoimax.c: Likewise.
90827         * lib/xstrtoumax.c: Likewise.
90828         * lib/human.h: Likewise.
90829
90830         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90831         on systems that have <inttypes.h> but not <stdint.h>.
90832
90833 2003-01-07  Bruno Haible  <bruno@clisp.org>
90834
90835         * MODULES.html.sh: Add copyright notice.
90836         (missed_files): Omit CVS directory entries.
90837         (func_module): Make it work with sed-3.02.
90838         * MODULES.txt: Remove file.
90839
90840 2003-01-06  Jim Meyering  <jim@meyering.net>
90841
90842         * lib/version-etc.c: Update year in translatable copyright string.
90843
90844 2003-01-03  Karl Berry  <karl@gnu.org>
90845
90846         * config/config.{guess,sub}: update from prep.
90847
90848 2003-01-02  Karl Berry  <karl@gnu.org>
90849
90850         * doc/COPYING.DOC: belatedly updated to 1.2.
90851
90852 2003-01-01  Karl Berry  <karl@gnu.org>
90853
90854         * gnulib-tool (func_verify_module): report module name $module in
90855         error message, not $1.
90856         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90857         be created, only if it doesn't exist.
90858         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90859
90860 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90861
90862         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90863
90864 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90865
90866         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90867         memcmp if strcoll doesn't work.
90868
90869 2002-12-31  Bruno Haible  <bruno@clisp.org>
90870
90871         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90872         nonempty.
90873
90874 2002-12-31  Bruno Haible  <bruno@clisp.org>
90875
90876         * lib/memcoll.c (STRCOLL): New macro.
90877         (memcoll): Use it.
90878
90879 2002-12-31  Bruno Haible  <bruno@clisp.org>
90880
90881         * lib/localcharset.h: New file.
90882         * lib/localcharset.c: Include it.
90883         * lib/unicodeio.c: Likewise.
90884
90885 2002-12-31  Bruno Haible  <bruno@clisp.org>
90886
90887         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90888         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90889
90890 2002-12-31  Bruno Haible  <bruno@clisp.org>
90891
90892         * lib/getline.h: Include <stddef.h>, for size_t.
90893
90894         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90895         * lib/unicodeio.c: Don't include <stddef.h>.
90896
90897 2002-12-31  Bruno Haible  <bruno@clisp.org>
90898
90899         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90900         HAVE_TM_ZONE.
90901
90902 2002-12-24  Karl Berry  <karl@gnu.org>
90903
90904         * config/config.guess: update from prep.
90905
90906 2002-12-24  Bruno Haible  <bruno@clisp.org>
90907
90908         General infrasructure.
90909         * m4/README: Rewritten.
90910         * m4/onceonly.m4: New file.
90911         * m4/onceonly_2_57.m4: New file.
90912
90913         Module atexit.
90914         * m4/atexit.m4: New file.
90915
90916         Module strtod.
90917         * m4/strtod.m4: New file.
90918
90919         Module strtol.
90920         * m4/strtol.m4: New file.
90921
90922         Module strtoul.
90923         * m4/strtoul.m4: New file.
90924
90925         Module memchr.
90926         * m4/memchr.m4: New file.
90927
90928         Module memcmp.
90929         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90930         (jm_FUNC_MEMCMP): Invoke it.
90931
90932         Module memcpy.
90933         * m4/memcpy.m4: New file.
90934
90935         Module memmove.
90936         * m4/memmove.m4: New file.
90937
90938         Module memset.
90939         * m4/memset.m4: New file.
90940
90941         Module strcspn.
90942         * m4/strcspn.m4: New file.
90943
90944         Module strpbrk.
90945         * m4/strpbrk.m4: New file.
90946
90947         Module strstr.
90948         * m4/strstr.m4: New file.
90949
90950         Module strerror.
90951         * m4/strerror.m4: New file.
90952
90953         Module mktime.
90954         * m4/mktime.m4: Renamed from jm-mktime.m4.
90955         (gl_PREREQ_MKTIME): New macro.
90956         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90957
90958         Module malloc.
90959         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90960         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90961         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90962
90963         Module realloc.
90964         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90965         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90966         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90967
90968         Module strftime.
90969         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90970         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90971         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90972         gl_TM_GMTOFF.
90973         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90974
90975         Module xalloc.
90976         * m4/xalloc.m4: New file.
90977
90978         Module alloca.
90979         * m4/alloca.m4: New file.
90980
90981         Module putenv.
90982         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90983         (jm_FUNC_PUTENV): Invoke it.
90984
90985         Module setenv.
90986         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90987         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90988         when invoked twice.
90989         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90990         gt_FUNC_SETENV.
90991
90992         Module memrchr.
90993         * m4/memrchr.m4: New file.
90994
90995         Module stpcpy.
90996         * m4/stpcpy.m4: New file.
90997
90998         Module strcase.
90999         * m4/strcase.m4: New file.
91000
91001         Module strdup.
91002         * m4/strdup.m4: New file.
91003
91004         Module strnlen.
91005         * m4/strnlen.m4: New file.
91006
91007         Module strndup.
91008         * m4/strndup.m4: New file.
91009
91010         Module xstrtod.
91011         * m4/xstrtod.m4: New file.
91012
91013         Module xstrtol.
91014         * m4/xstrtol.m4: New file.
91015
91016         Module getdate.
91017         * m4/getdate.m4: New file.
91018
91019         Module unlocked-io.
91020         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91021         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91022         * m4/jm-glibc-io.m4n: Remove file.
91023
91024         Module long-options.
91025         * m4/long-options.m4: New file.
91026
91027         Module md5.
91028         * m4/md5.m4: New file.
91029
91030         Module sha.
91031         * m4/sha.m4: New file.
91032
91033         Module getstr.
91034         * m4/getstr.m4: New file.
91035
91036         Module getline.
91037         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91038         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91039         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91040         simply getline. Infoke gl_PREREQ_GETLINE.
91041
91042         Module obstack.
91043         * m4/obstack.m4: New file.
91044
91045         Module hash.
91046         * m4/hash.m4: New file.
91047
91048         Module readtokens.
91049         * m4/readtokens.m4: New file.
91050
91051         Module strverscmp.
91052         * m4/strverscmp.m4: New file.
91053
91054         Module stdbool.
91055         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91056         OSF/1.
91057
91058         Module strtoll.
91059         * m4/strtoll.m4: New file.
91060
91061         Module strtoull.
91062         * m4/strtoull.m4: New file.
91063
91064         Module strtoimax.
91065         * m4/strtoimax.m4: New file.
91066
91067         Module strtoumax.
91068         * m4/strtoumax.m4: New file.
91069
91070         Module xstrtoimax.
91071         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91072         jm_AC_PREREQ_XSTRTOIMAX.
91073         Moved the strtol prerequisites to strtol.m4.
91074         Moved the strtoll prerequisites to strtoll.m4.
91075         Moved the strtoimax prerequisites to strtoimax.m4.
91076
91077         Module xstrtoumax.
91078         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91079         jm_AC_PREREQ_XSTRTOUMAX.
91080         Moved the strtoul prerequisites to strtoul.m4.
91081         Moved the strtoull prerequisites to strtoull.m4.
91082         Moved the strtoumax prerequisites to strtoumax.m4.
91083
91084         Module chown.
91085         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91086         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91087
91088         Module dup2.
91089         * m4/dup2.m4: New file.
91090
91091         Module ftruncate.
91092         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91093         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91094
91095         Module getgroups.
91096         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91097         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91098
91099         Module gettimeofday.
91100         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91101         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91102         gl_PREREQ_GETTIMEOFDAY.
91103
91104         Module mkdir.
91105         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91106         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91107
91108         Module mkstemp.
91109         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91110         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91111         jm_AC_TYPE_UINTMAX_T.
91112         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91113
91114         Module stat.
91115         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91116         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91117
91118         Module lstat.
91119         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91120         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91121
91122         Module timespec.
91123         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91124         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91125         * m4/st_mtim.m4: Indentation.
91126
91127         Module nanosleep.
91128         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91129         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91130         gl_PREREQ_NANOSLEEP.
91131
91132         Module regex.
91133         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91134         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91135         (gl_REGEX): New macro.
91136
91137         Module rename.
91138         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91139         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91140
91141         Module rmdir.
91142         * m4/rmdir.m4: New file.
91143
91144         Module utime.
91145         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91146         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91147         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91148
91149         Module dirname.
91150         * m4/dirname.m4: New file.
91151
91152         Module getopt.
91153         * m4/getopt.m4: New file.
91154
91155         Module unistd-safer.
91156         * m4/unistd-safer.m4: New file.
91157
91158         Module fnmatch.
91159         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91160         declaration.
91161         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91162         (gl_FUNC_FNMATCH_POSIX): New macro.
91163         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91164         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91165         simply fnmatch.
91166
91167         Module exclude.
91168         * m4/exclude.m4: New file.
91169
91170         Module human.
91171         * m4/human.m4: New file.
91172
91173         Module acl.
91174         * m4/acl.m4: Nop.
91175
91176         Module backupfile.
91177         * m4/backupfile.m4: New file.
91178         * m4/d-ino.m4: Indentation.
91179
91180         Module fsusage.
91181         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91182         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91183         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91184
91185         Module dirfd.
91186         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91187         requirements.
91188
91189         Module euidaccess.
91190         * m4/euidaccess.m4: New file.
91191
91192         Module file-type.
91193         * m4/file-type.m4: New file.
91194
91195         Module fileblocks.
91196         * m4/fileblocks.m4: New file.
91197
91198         Module filemode.
91199         * m4/filemode.m4: New file.
91200
91201         Module isdir.
91202         * m4/isdir.m4: New file.
91203
91204         Module lchown.
91205         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91206         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91207
91208         Module makepath.
91209         * m4/makepath.m4: New file.
91210
91211         Module modechange.
91212         * m4/modechange.m4: New file.
91213
91214         Module mountlist.
91215         * m4/mountlist.m4: New file.
91216         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91217         Indentation.
91218
91219         Module path-concat.
91220         * m4/path-concat.m4: New file.
91221
91222         Module pathmax.
91223         * m4/pathmax.m4: New file.
91224
91225         Module same.
91226         * m4/same.m4: New file.
91227
91228         Module save-cwd.
91229         * m4/save-cwd.m4: New file.
91230
91231         Module savedir.
91232         * m4/savedir.m4: New file.
91233
91234         Module xgetcwd.
91235         * m4/xgetcwd.m4: New file.
91236         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91237
91238         Module xreadlink.
91239         * m4/xreadlink.m4: New file.
91240
91241         Module safe-read.
91242         * m4/safe-read.m4: New file.
91243
91244         Module safe-write.
91245         * m4/safe-write.m4: New file.
91246
91247         Module closeout.
91248         * m4/closeout.m4: New file.
91249
91250         Module stdio-safer.
91251         * m4/stdio-safer.m4: New file.
91252
91253         Module getpass.
91254         * m4/getpass.m4: New file.
91255
91256         Module getugroups.
91257         * m4/getugroups.m4: New file.
91258
91259         Module group-member.
91260         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91261         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91262
91263         Module idcache.
91264         * m4/idcache.m4: New file.
91265
91266         Module userspec.
91267         * m4/userspec.m4: New file.
91268
91269         Module gettime.
91270         * m4/clock_time.m4: New file.
91271         * m4/gettime.m4: New file.
91272
91273         Module settime.
91274         * m4/settime.m4: New file.
91275
91276         Module posixtm.
91277         * m4/posixtm.m4: New file.
91278
91279         Module gethostname.
91280         * m4/gethostname.m4: New file.
91281
91282         Module canon-host.
91283         * m4/canon-host.m4: New file.
91284
91285         Module gettext.
91286         * m4/codeset.m4: New file, from gettext-0.11.5.
91287         * m4/gettext.m4: New file, from gettext-0.11.5.
91288         * m4/glibc21.m4: New file, from gettext-0.11.5.
91289         * m4/iconv.m4: New file, from gettext-0.11.5.
91290         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91291         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91292         * m4/inttypes.m4: New file, from gettext-0.11.5.
91293         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91294         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91295         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91296         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91297         * m4/lib-link.m4: New file, from gettext-0.11.5.
91298         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91299         * m4/progtest.m4: New file, from gettext-0.11.5.
91300         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91301         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91302         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91303
91304         Module localcharset.
91305         * m4/localcharset.m4: New file.
91306
91307         Module hard-locale.
91308         * m4/hard-locale.m4: New file.
91309
91310         Module mbswidth.
91311         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91312         onceonly macros.
91313         * m4/mbrtowc.m4: Add comment.
91314
91315         Module memcasecmp.
91316         * m4/memcasecmp.m4: New file.
91317
91318         Module memcoll.
91319         * m4/memcoll.m4: New file.
91320
91321         Module unicodeio.
91322         * m4/unicodeio.m4: New file.
91323
91324         Module rpmatch.
91325         * m4/rpmatch.m4: New file.
91326
91327         Module yesno.
91328         * m4/yesno.m4: New file.
91329
91330         Module exitfail.
91331         * m4/exitfail.m4: New file.
91332
91333         Module c-stack.
91334         * m4/c-stack.m4 (gl_C_STACK): New macro.
91335         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91336
91337         Module error.
91338         * m4/error.m4 (gl_ERROR): New macro.
91339         (jm_PREREQ_ERROR): Use onceonly macros.
91340
91341         Module fatal.
91342         * m4/fatal.m4: New file.
91343
91344         Module getloadavg.
91345         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91346         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91347
91348         Module getpagesize.
91349         * m4/getpagesize.m4: New file.
91350
91351         Module getusershell.
91352         * m4/getusershell.m4: New file.
91353
91354         Module physmem.
91355         * m4/physmem.m4: New file.
91356
91357         Module posixver.
91358         * m4/posixver.m4: New file.
91359
91360         Module quotearg.
91361         * m4/quotearg.m4: New file.
91362
91363         Module quote.
91364         * m4/quote.m4: New file.
91365
91366         Module readutmp.
91367         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91368
91369         Module sig2str.
91370         * m4/sig2str.m4: New file.
91371
91372         Other.
91373         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91374         ulonglong.m4.
91375         * m4/intmax_t.m4: New file.
91376         * m4/d-type.m4: Indentation.
91377         * m4/jm-macros.m4: Update.
91378         * m4/prereq.m4 (jm_PREREQ): Update.
91379         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91380         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91381         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91382         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91383         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91384         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91385         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91386         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91387         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91388         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91389         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91390         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91391         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91392         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91393         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91394         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91395         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91396         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91397         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91398
91399 2002-12-24  Bruno Haible  <bruno@clisp.org>
91400
91401         * MODULES.txt: Update according to m4/ changes.
91402
91403         Module gettext.
91404         * config.rpath: New file, from gettext-0.11.5.
91405
91406         * modules/*: New module descriptions.
91407         * gnulib-tool: New file.
91408         * MODULES.html.sh: New file.
91409
91410 2002-12-21  Karl Berry  <karl@gnu.org>
91411
91412         * doc/fdl.texi: update to version 1.2.
91413
91414 2002-12-19  Karl Berry  <karl@gnu.org>
91415
91416         * config/config.guess: update from prep.
91417
91418 2002-12-18  Bruno Haible  <bruno@clisp.org>
91419
91420         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91421         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91422
91423 2002-12-17  Bruno Haible  <bruno@clisp.org>
91424
91425         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91426         stdlib.h, string.h.
91427
91428 2002-12-17  Bruno Haible  <bruno@clisp.org>
91429
91430         * lib/canon-host.c (strdup): Remove unused declaration.
91431
91432         * lib/fsusage.c: Include full_read.h.
91433         (get_fs_usage): Use full_read instead of safe_read.
91434
91435         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91436
91437 2002-12-12  Karl Berry  <karl@gnu.org>
91438
91439         * config/config.guess: update from prep.
91440
91441 2002-12-11  Bruno Haible  <bruno@clisp.org>
91442
91443         * m4/setenv.m4: New file, from gettext-0.11.5.
91444
91445 2002-12-11  Bruno Haible  <bruno@clisp.org>
91446
91447         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91448         not unsetenv().
91449         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91450         modifications:
91451
91452         2002-12-11  Bruno Haible  <bruno@clisp.org>
91453
91454                 * setenv.c (alloca): Fall back to malloc.
91455                 (freea): New macro.
91456                 (setenv): Use freea() to free memory allocated with alloca().
91457
91458         2002-11-13  Bruno Haible  <bruno@clisp.org>
91459
91460                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91461                 function declarations.
91462                 * unsetenv.c (unsetenv): Likewise.
91463
91464         2002-03-04  Bruno Haible  <bruno@clisp.org>
91465
91466                 Portability to AIX 4.3.3.
91467                 * unsetenv.c: New file, extracted from setenv.c.
91468                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91469
91470         2001-12-20  Bruno Haible  <bruno@clisp.org>
91471
91472                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91473                 use malloc instead. For SunOS 4.
91474
91475         2001-12-11  Bruno Haible  <bruno@clisp.org>
91476
91477                 * setenv.c: Declare alloca.
91478                 (compar_fn_t): New typedef.
91479                 (KNOWN_VALUE, STORE_VALUE): Use it.
91480
91481         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91482         setenv.h.
91483
91484 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91485
91486         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91487         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91488         Choose values that are less likely to collide with system fnmatch
91489         options.
91490         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91491         defined (e.g., a pure POSIX system).
91492         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91493         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91494
91495 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91496
91497         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91498         a pain in practice to deal with generated m4 files.  This change
91499         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91500
91501         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91502         and jm-glibc-io.m4, as they are no longer a special case.
91503         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91504         kludge and the auto-generation stuff.  Check only whether the
91505         functions are declared, not whether they exist, since older hosts
91506         that don't declare the functions can't use the optimization anyway.
91507
91508 2002-12-06  Jim Meyering  <jim@meyering.net>
91509
91510         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91511
91512         Merge in changes from libc's misc/error.c, in preparation
91513         for the merge of gnulib's changes back into libc.
91514
91515         * lib/error.c (_): Define only if not already defined.
91516         Move definition to follow all #include directives.
91517         Include unlocked-io.h only if !_LIBC.
91518         [_LIBC]: Include <libio/libioP.h>.
91519         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91520         (fflush): Tweak definition to use INTUSE.
91521         (putc): Define.
91522
91523 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91524
91525         * lib/alloca.c [defined emacs]: Include "lisp.h".
91526         (xalloc_die) [defined emacs]: New macro.
91527         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91528         [! defined emacs]: Include <xalloc.h>.
91529         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91530         (pointer): Typedef to POINTER_TYPE *.
91531         (malloc): Remove decl; we now always use xmalloc.
91532         (alloca): Use old-style definition, since Emacs needs this.
91533         Check for arithmetic overflow when computing combined size.
91534
91535 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91536
91537         Do not generate unlocked-io.h automatically, since it's easier to
91538         maintain it by hand.
91539
91540         * lib/unlocked-io.h: New file, from GNU diffutils,
91541         but with proper copyright notice and attribution.
91542         * lib/gen-uio: Remove.
91543         * lib/Makefile.am: Add copyright notice.
91544         (libfetish_a_SOURCES): Add unlocked-io.h.
91545         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91546         (DISTCLEANFILES, io_functions): Remove macros.
91547         (EXTRA_DIST): Remove gen_uio.
91548         (unlocked-io.h): Remove rule.
91549
91550 2002-12-04  Jim Meyering  <jim@meyering.net>
91551
91552         Reflect the fact that stat.c and lstat.c are no longer generated.
91553         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91554         (DISTCLEANFILES): Likewise.
91555         (EXTRA_DIST): Likewise.
91556         (all_local): Don't depend on stat.c or lstat.c.
91557         (stat.c, lstat.c): Remove rules.
91558         (EXTRA_DIST): Remove xstat.in.
91559
91560         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91561         * lib/stat.c: New file.  Contents mostly from xstat.in.
91562         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91563         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91564
91565         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91566         too.
91567         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91568
91569 2002-12-03  Jim Meyering  <jim@meyering.net>
91570
91571         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91572         but not semantics, to minimize the differences between these two files.
91573         (safe_read): Change comment to mention SAFE_READ_ERROR.
91574
91575         * lib/safe-read.c (IS_EINTR): Define.
91576         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91577
91578 2002-12-02  Jim Meyering  <jim@meyering.net>
91579
91580         * lib/safe-read.c (EINTR): Define.
91581         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91582         (INT_MAX): Provide fallback.
91583         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91584
91585         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91586
91587 2002-12-02  Bruno Haible  <bruno@clisp.org>
91588
91589         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91590         Define, taken from safe-read.c.
91591         (INT_MAX): Provide fallback.
91592         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91593         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91594
91595         * lib/safe-read.c (EINTR): Remove definition.
91596         (safe_read): Don't use EINTR if it is absent.
91597
91598 2002-12-01  Jim Meyering  <jim@meyering.net>
91599
91600         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91601         zero.
91602         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91603
91604 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91605
91606         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91607         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91608         with `if (! (value < limit)) abort ();', for readability.
91609
91610 2002-11-26  Karl Berry  <karl@gnu.org>
91611
91612         * lib/strdup.c: copy from libc again, with jim's ok.
91613         * lib/.cppi-disable: re-add strdup.c
91614
91615 2002-11-25  Karl Berry  <karl@gnu.org>
91616
91617         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91618         instead of "strtol.c".
91619
91620 2002-11-25  Karl Berry  <karl@gnu.org>
91621
91622         * config/install-sh: update from automake for variable quoting, $0 in
91623         error msgs, etc.
91624
91625         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91626         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91627         entry.
91628
91629 2002-11-25  Jim Meyering  <jim@meyering.net>
91630
91631         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91632
91633 2002-11-24  Karl Berry  <karl@gnu.org>
91634
91635         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91636         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91637
91638 2002-11-24  Jim Meyering  <jim@meyering.net>
91639
91640         Update from coreutils:
91641
91642         * lib/mktime.c: Merge in changes from libc.
91643
91644         Avoid a link-time failure on some Linux systems.
91645         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91646         (otherwise).
91647         (__mon_yday): Declare with the STATIC attribute.
91648         (__mktime_internal): Likewise.
91649         Based on a report from Greg Schafer.
91650
91651 2002-11-23  Jim Meyering  <jim@meyering.net>
91652
91653         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91654         Use `unsigned', not `int', as type of index.
91655
91656         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91657
91658         * lib/fsusage.c: Remove unneeded parentheses around operands of
91659         `defined'.
91660
91661 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91662
91663         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91664         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91665         so that we can be included first.
91666         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91667         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91668         No need to include stddef.h or sys/types.h any more.
91669         Surround local include files with "", not "<>".
91670         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91671         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91672         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91673         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91674         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91675         (ISPRINT): Remove; no longer needed now that we assume C89.
91676
91677         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91678         Preserve errno.
91679
91680         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91681         quotearg_char): Use SIZE_MAX rather than
91682         (size_t) -1 when we are talking about "infinity".
91683
91684         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91685
91686 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91687
91688         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91689         hint that one should use `if (! x) abort ();' rather than `assert
91690         (x);', and anyway it's one less thing to worry about configuring.
91691         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91692         hash_rehash, hash_insert): Use abort rather than assert.
91693
91694 2002-11-22  Bruno Haible  <bruno@clisp.org>
91695
91696         * lib/safe-read.h: Assume C89. Add comments.
91697         (safe_read): Change return type to size_t.
91698         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91699         byte counts > SSIZE_MAX correctly.
91700         * lib/safe-write.h: New file.
91701         * lib/safe-write.c: New file.
91702         * lib/full-read.h: New file.
91703         * lib/full-read.c: New file.
91704         * lib/full-write.h: Assume C89. Add comments.
91705         * lib/full-write.c: Include safe-write.h.
91706         (full_write): Rewritten to use safe_write.
91707         Suggested by Jim Meyering and Paul Eggert.
91708
91709 2002-11-21  Jim Meyering  <jim@meyering.net>
91710
91711         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91712
91713         Merge in changes from the coreutils.
91714
91715         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91716         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91717         <stdint.h>.
91718         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91719         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91720         int.  Work more efficiently if X is the same width as uintmax_t.
91721         Do not compare X to -1, to avoid bogus compiler warning.
91722         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91723         Don't assume that f_frsize and f_bsize are the same type.
91724
91725         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91726         warning on FreeBSD.
91727
91728         * lib/makepath.c (make_path): Restore umask *before* creating the final
91729         component.
91730         (make_path): Minor reformatting.
91731
91732         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91733         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91734         HAVE_MALLOC/HAVE_REALLOC.
91735
91736         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91737         dummy ones.  At least on GNU/Linux systems, `auto' means something
91738         else.
91739         From Michael Stone.
91740
91741 2002-11-21  Bruno Haible  <bruno@clisp.org>
91742
91743         Remove case insensitive option matching.
91744         * lib/argmatch.h (argcasematch): Remove declaration.
91745         (ARGCASEMATCH): Remove macro.
91746         (__xargmatch_internal): Remove case_sensitive argument.
91747         (XARGMATCH): Update.
91748         (XARGCASEMATCH): Remove macro.
91749         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91750         case_sensitive argument.
91751         (argcasematch): Remove function.
91752         (__xargmatch_internal): Remove case_sensitive argument.
91753         (main): Use XARGMATCH instead of XARGCASEMATCH.
91754
91755         * lib/xmalloc.c: Change compile-time error message. Add comment about
91756         required autoconf version.
91757
91758 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91759
91760         Merge argmatch cleanups from Bison.  Assume C89.
91761
91762         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91763         Include stdlib.h, for EXIT_FAILURE.
91764         Always include <string.h>, since we assume C89.
91765         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91766         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91767         Include <stddef.h> instead, since it's all we need for size_t.
91768         (PARAMS): Remove.  All uses removed.
91769         (ARRAY_CARDINALITY): Do not bother to #undef.
91770         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91771         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91772         Remove unnecessary parentheses.
91773         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91774         Insert necessary parentheses.
91775         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91776         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91777
91778 2002-11-19  Bruno Haible  <bruno@clisp.org>
91779
91780         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91781         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91782
91783         * lib/mbswidth.h (PARAMS): Remove macro.
91784         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91785         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91786
91787         * lib/gcd.h (PARAMS): Remove macro.
91788         (gcd): Use ANSI C function declarations.
91789         * lib/gcd.c (gcd): Likewise.
91790
91791 2002-11-15  Bruno Haible  <bruno@clisp.org>
91792
91793         * lib/strcspn.c: Include <stddef.h>.
91794         (strcspn): Use ANSI C function declaration. Change return type to
91795         size_t. Use NULL.
91796         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91797         (strpbrk): Use NULL.
91798         * lib/strpbrk.h (PARAMS): Remove macro.
91799         (strpbrk): Use ANSI C function declaration.
91800         * lib/strstr.c: Don't include <sys/types.h>.
91801         * lib/strstr.h (PARAMS): Remove macro.
91802         (strstr): Use ANSI C function declarations.
91803
91804 2002-11-14  Karl Berry  <karl@gnu.org>
91805
91806         * config/mkinstalldirs: `do' on separate line, instead of
91807         `for var; do'.
91808
91809 2002-11-06  Bruno Haible  <bruno@clisp.org>
91810
91811         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91812         * lib/gcd.c (gcd): Likewise.
91813
91814 2002-11-05  Bruno Haible  <bruno@clisp.org>
91815
91816         * lib/gcd.h: New file, from gettext-0.11.5.
91817         * lib/gcd.c: New file, from gettext-0.11.5.
91818
91819 2002-11-05  Bruno Haible  <bruno@clisp.org>
91820
91821         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91822         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91823         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91824         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91825
91826         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91827         <libintl.h>.
91828         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91829         <libintl.h>.
91830
91831         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91832         * lib/human.c: Include gettext.h instead of <libintl.h>.
91833         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91834         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91835         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91836         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91837         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91838         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91839         (textdomain): Remove definition.
91840         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91841
91842         * lib/long-options.c: Remove include of <libintl.h> and definition of
91843         _.
91844         * lib/same.c: Remove include of <libintl.h> and definition of _.
91845
91846 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91847
91848         * lib/config.charset: A few additions for Solaris.
91849
91850 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91851
91852         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91853         * lib/localcharset.c (locale_charset): Declare as extern "C".
91854
91855 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91856
91857         * lib/config.charset: msdos in uk_UA uses CP1125.
91858
91859 2002-11-04  Bruno Haible  <bruno@clisp.org>
91860
91861         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91862         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91863         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91864         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91865         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91866
91867 2002-11-04  Bruno Haible  <bruno@clisp.org>
91868
91869         * lib/localcharset.c (locale_charset): Don't return an empty string.
91870
91871 2002-11-04  Bruno Haible  <bruno@clisp.org>
91872
91873         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91874         aliases.
91875
91876 2002-11-04  Bruno Haible  <bruno@clisp.org>
91877
91878         * lib/config.charset: Update for newest glibc. Add canonical names
91879         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91880
91881 2002-11-04  Bruno Haible  <bruno@clisp.org>
91882
91883         * lib/config.charset: Add support for NetBSD.
91884
91885 2002-11-04  Bruno Haible  <bruno@clisp.org>
91886
91887         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91888
91889 2002-11-01  Bruno Haible  <bruno@clisp.org>
91890
91891         * configure.in: Add AC_CONFIG_AUX_DIR call.
91892         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91893         test/Makefile.
91894         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91895
91896 2002-09-28  Karl Berry  <karl@gnu.org>
91897
91898         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91899         installed automake until the next release, since changes have been
91900         made.
91901
91902 2002-09-25  Karl Berry  <karl@gnu.org>
91903
91904         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91905         * lib/getopt*: copy from libc/posix.
91906         * lib/gettext.h: copy from gettext.
91907         * lib/.cppi-disable: add strdup.c, gettext.h.
91908
91909 2002-09-25  Karl Berry  <karl@gnu.org>
91910
91911         * config/srclist.txt: enable gettext.h check.
91912         * config/config.{guess,sub}: update from prep.
91913         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91914                 from automake 1.6.3.
91915         See srclist*.
91916
91917 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91918
91919         * regex.c (PATFETCH): Remove the translating fetch.
91920         (PATFETCH_RAW): Rename to PATFETCH.
91921         (set_image_of_range): New fun.
91922         (SET_RANGE_TABLE_WORK_AREA): Use it.
91923         (regex_compile): Don't translate the pattern chars so eagerly.
91924         Only do it when inserting an `exactn' bytecode or when handling
91925         a char-range.
91926         (mutually_exclusive_p): Avoid empty statement.
91927
91928 2002-07-06  Jim Meyering  <meyering@lucent.com>
91929
91930         * m4/README: Don't mention Makefile.am.in.
91931         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91932
91933 2002-07-01  Jim Meyering  <meyering@lucent.com>
91934
91935         * lib/c-stack.c: Include sys/time.h.
91936         From Volker Borchert.
91937
91938 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91939
91940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91941
91942 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91943
91944         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91945         New macro.  Use it uniformly instead of
91946         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91947         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91948         reported by Vin Shelton.
91949
91950 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91951
91952         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91953         Do not assume SA_SIGINFO behavior.
91954         Bug reported by Jim Meyering on NetBSD 1.5.2.
91955
91956 2002-06-22  Jim Meyering  <meyering@lucent.com>
91957
91958         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91959         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91960
91961         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91962         now that configure.ac uses AC_GNU_SOURCE.
91963         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91964         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91965
91966         Update to latest tools.  Suggestions from Paul Eggert.
91967         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91968         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91969         * m4/fnmatch.m4: Likewise.
91970         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91971         to AC_HEADER_STDBOOL
91972
91973 2002-06-22  Jim Meyering  <meyering@lucent.com>
91974
91975         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91976         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91977
91978 2002-06-22  Jim Meyering  <meyering@lucent.com>
91979
91980         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91981
91982         * lib/exitfail.c, exitfail.h: Likewise.
91983         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91984
91985         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91986         of fnmatch.h.
91987         (EXTRA_DIST): Add fnmatch_loop.c.
91988         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91989
91990         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91991         * lib/fnmatch.c: Update from diffutils-2.8.2.
91992         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91993         * lib/fnmatch.h: Remove file.
91994
91995 2002-06-21  Jim Meyering  <meyering@lucent.com>
91996
91997         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91998         * m4/mbrtowc.m4: Likewise.
91999
92000         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92001         * m4/mbswidth.m4: Reflect name change:
92002         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92003         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92004
92005         * m4/lib-link.m4: Update from gettext-0.11.2.
92006         * m4/gettext.m4: Likewise.
92007
92008         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92009         From Alfred M. Szmidt.
92010
92011 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92012
92013         * lib/file-type.h: Report an error if neither S_ISREG nor
92014         S_IFREG is defined, instead of using a test specific to glibc
92015         2.2.  This should be safe, since POSIX requires S_ISREG and
92016         Unix Version 7 had S_IFREG.  We don't need to check for
92017         <sys/types.h> since we don't use any symbols that it defines.
92018
92019 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92020
92021         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92022         $@-t, so that each temporary file name is unique and valid in the first
92023         8 characters, for operation under DOS.
92024
92025 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92026
92027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92028
92029 2002-06-15  Jim Meyering  <meyering@lucent.com>
92030
92031         Work even with DJGPP 2.03, which lacks support for symlinks.
92032         From Richard Dawe.
92033         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92034         is defined.
92035         * lib/lchown.c (S_ISLNK): Likewise.
92036
92037 2002-06-15  Jim Meyering  <meyering@lucent.com>
92038
92039         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92040         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92041         have been included before this file.
92042
92043 2002-06-14  Jim Meyering  <meyering@lucent.com>
92044
92045         * lib/file-type.h: Use the version from diffutils-2.8.2.
92046         * lib/file-type.c: Likewise.
92047
92048 2002-06-07  Jim Meyering  <meyering@lucent.com>
92049
92050         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92051         They're needed at least for NetBSD 1.5.2.
92052         ($statxfs_includes): Include those same headers.
92053         ($statxfs_includes): Include sys/vfs.h if available.
92054         ($statxfs_includes): Likewise for sys/statvfs.h.
92055         Check for the following members in both structs statfs and statvfs:
92056         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92057
92058 2002-06-01  Jim Meyering  <meyering@lucent.com>
92059
92060         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92061         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92062
92063 2002-05-28  Jim Meyering  <meyering@lucent.com>
92064
92065         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92066         Reported by Volker Borchert.
92067
92068 2002-05-27  Jim Meyering  <meyering@lucent.com>
92069
92070         Fix a problem seen only on nonconforming systems whereby ls.c's
92071         use of localtime, and then of gettimeofday would cause trouble:
92072         the localtime call used to initialize rpl_gettimeofday's save
92073         mechanism would clobber ls's current local time information so
92074         that in any long listing the first file would always be listed
92075         with date 1970-01-01.  Analysis by Volker Borchert.
92076
92077         * lib/gettimeofday.c (localtime): Undefine.
92078         (rpl_localtime): New function.
92079
92080 2002-05-27  Jim Meyering  <meyering@lucent.com>
92081
92082         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92083         localtime.
92084
92085         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92086         use the replacement function; it wouldn't resolve at link time.
92087         Reported by Volker Borchert.
92088
92089 2002-05-22  Jim Meyering  <meyering@lucent.com>
92090
92091         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92092         file-type.h.
92093         * lib/file-type.h: New file.
92094         * lib/file-type.c (file_type): New file/function.  Extracted from
92095         diffutils.
92096
92097 2002-04-30  Jim Meyering  <meyering@lucent.com>
92098
92099         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92100
92101 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92102
92103         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92104
92105 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92106
92107         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92108         Do not check for alloca.h (no longer used) or stdbool.h (was never
92109         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92110
92111 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92112
92113         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92114
92115 2002-04-29  Jim Meyering  <meyering@lucent.com>
92116
92117         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92118         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92119         Use AC_FUNC_STRNLEN here instead.
92120
92121         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92122         With autoconf-2.53a, it's part of AC_PROG_CC.
92123
92124 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92125
92126         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92127         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92128
92129 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92130
92131         * lib/sig2str.h, lib/sig2str.c: New files.
92132         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92133
92134 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92135
92136         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92137         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92138         of 127, since 64 is the largest conceivable number for ancient
92139         nonstandard hosts.
92140         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92141
92142 2002-04-28  Jim Meyering  <meyering@lucent.com>
92143
92144         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92145
92146 2002-04-24  Jim Meyering  <meyering@lucent.com>
92147
92148         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92149         (jm_PREREQ): Use it.
92150
92151         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92152         mach/mach.h fcntl.h.
92153         Check for this function: setlocale.
92154
92155 2002-04-24  Jim Meyering  <meyering@lucent.com>
92156
92157         * lib/gettext.h: New file, from Gettext.
92158         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92159         (libfetish_a_SOURCES): Add gettext.h.
92160
92161 2002-04-16  Jim Meyering  <meyering@lucent.com>
92162
92163         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92164         ut_pid, ut_id, ut_exit.
92165
92166 2002-04-16  Jim Meyering  <meyering@lucent.com>
92167
92168         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92169         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92170         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92171
92172 2002-04-12  Jim Meyering  <meyering@lucent.com>
92173
92174         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92175         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92176         existence of the getmntinfo function.  Needed for Darwin 5.3.
92177
92178         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92179         This is necessary at least on Darwin 5.3.
92180
92181         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92182         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92183         strnlen.o in the library, and that makes some versions of ranlib
92184         object.
92185
92186 2002-04-12  Jim Meyering  <meyering@lucent.com>
92187
92188         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92189
92190 2002-04-09  Jim Meyering  <meyering@lucent.com>
92191
92192         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92193         to be more precise.  Rather than saying we're checking whether the
92194         function `works', say what we're testing.
92195         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92196         Reported by Bruno Haible.
92197
92198 2002-03-10  Jim Meyering  <meyering@lucent.com>
92199
92200         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92201         Suggestion from Santiago Vila.
92202
92203 2002-03-08  Jim Meyering  <meyering@lucent.com>
92204
92205         * lib/rename.c: Mention that this wrapper is needed also on
92206         mips-dec-ultrix4.4 systems.
92207
92208 2002-03-02  Jim Meyering  <meyering@lucent.com>
92209
92210         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92211         not HAVE_CLOCK_SETTIME.
92212
92213 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92214
92215         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92216         Check for clock_settime.
92217
92218 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92219
92220         * lib/nanosleep.h: Rename to....
92221         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92222
92223         * lib/gettime.c: New file.
92224         * lib/settime.c: New file.
92225         * lib/stime.c: Remove.
92226
92227         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92228         timespec.h.  Remove nanosleep.h.
92229
92230 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92231
92232         * m4/acl.m4: New file.
92233         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92234         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92235
92236 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92237
92238         * lib/acl.c, lib/acl.h: New files.
92239         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92240
92241 2002-02-24  Jim Meyering  <meyering@lucent.com>
92242
92243         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92244         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92245         cause trouble.  Reported by Nelson Beebe.
92246
92247 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92248
92249         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92250         compilers that don't know that xalloc_die never returns.
92251
92252 2002-02-20  Jim Meyering  <meyering@lucent.com>
92253
92254         * lib/getdate.c: Regenerate using bison-1.33.
92255
92256 2002-02-17  Jim Meyering  <meyering@lucent.com>
92257
92258         * config/config.guess (main): Don't use `head -1'; it's no longer
92259         portable. Use `sed 1q' instead.
92260
92261 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92262
92263         * m4/codeset.m4: Upgrade to gettext-0.11.
92264         * m4/gettext.m4: Upgrade to gettext-0.11.
92265         * m4/glibc21.m4: Upgrade to gettext-0.11.
92266         * m4/iconv.m4: Upgrade to gettext-0.11.
92267         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92268         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92269         * m4/lib-ld.m4: New file, from gettext-0.11.
92270         * m4/lib-link.m4: New file, from gettext-0.11.
92271         * m4/lib-prefix.m4: New file, from gettext-0.11.
92272         * m4/progtest.m4: Upgrade to gettext-0.11.
92273
92274 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92275
92276         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92277         (jm_PREREQ): Use it.
92278
92279 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92280
92281         * lib/posixver.c, lib/posixver.h: New files.
92282         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92283
92284 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92285             Bruno Haible  <bruno@clisp.org>
92286
92287         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92288         (fwrite_success_callback): New declaration.
92289         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92290         print_unicode_char. Call failure callback instead of error.
92291         (fwrite_success_callback): New function.
92292         (exit_failure_callback): New function.
92293         (fallback_failure_callback): New function.
92294         (print_unicode_char): Call unicode_to_mb.
92295
92296 2002-01-26  Jim Meyering  <meyering@lucent.com>
92297
92298         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92299         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92300
92301 2002-01-26  Jim Meyering  <meyering@lucent.com>
92302
92303         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92304
92305 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92306
92307         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92308
92309 2002-01-22  Jim Meyering  <meyering@lucent.com>
92310
92311         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92312         Otherwise, some versions of automake would omit the rule that makes
92313         Makefile from Makefile.in.
92314
92315 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92316
92317         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92318         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92319         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92320         (memcoll): Set errno to zero if there is no error.
92321
92322         * lib/quotearg.c (quotearg_buffer_restyled):
92323         Fix bug with quoting buffers containing NUL when backslashing escapes.
92324         This bug was exposed by the other changes in this patch.
92325         (quotearg_n_options): New arg ARGSIZE.
92326         All callers changed.
92327         (quoting_options_from_style): New function.
92328         (quotearg_n_style): Use it.
92329         (quotearg_n_style_mem): New function.
92330
92331         * lib/quotearg.h (quotearg_n_style_mem): New function.
92332
92333 2002-01-19  Jim Meyering  <meyering@lucent.com>
92334
92335         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92336         Remove useless quotes: DF_PROG="df".
92337         * m4/strnlen.m4: New file.
92338
92339 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92340
92341         * lib/backupfile.c (ISDIGIT): Comment fix.
92342         * lib/getdate.y (ISDIGIT): Likewise.
92343         * lib/posixtm.c (ISDIGIT, year): Likewise.
92344         * lib/strverscmp.c (ISDIGIT): Likewise.
92345         * lib/userspec.c (ISDIGIT): Likewise.
92346
92347 2002-01-16  Jim Meyering  <meyering@lucent.com>
92348
92349         * lib/getdate.y: Add three semicolons, each just before a closing
92350         brace. Bison (as of version 1.31) no longer papers over that mistake.
92351
92352 2002-01-05  Jim Meyering  <meyering@lucent.com>
92353
92354         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92355
92356 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92357
92358         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92359         not silently exit merely because the output buffer happens to
92360         have nothing pending.
92361
92362 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92363
92364         See the big note in ../ChangeLog.
92365         * lib/human.c (suffixes): Prefer K to k for 1024.
92366         (generate_suffix_backwards): New function.
92367         (human_readable_inexact): Use it.
92368         * lib/xstrtol.c (__xstrtol): If there is no number but there
92369         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92370         Accept 'K' as well as 'k'.
92371
92372 2001-12-15  Jim Meyering  <meyering@lucent.com>
92373
92374         * lib/regex.h (__restrict_arr): Update from libc.
92375
92376         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92377         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92378         (STREQ): Define.
92379
92380 2001-12-14  Jim Meyering  <meyering@lucent.com>
92381
92382         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92383         Suggestion from Bruno Haible.
92384
92385 2001-12-10  Jim Meyering  <meyering@lucent.com>
92386
92387         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92388         xrealloc, Instead, include "xalloc.h".
92389         (initbuffer): Don't cast xmalloc return value to char*.
92390         (readline): Reword comment.
92391         Don't cast xrealloc return value to char*
92392         Return NULL, not 0.
92393
92394 2001-12-09  Jim Meyering  <meyering@lucent.com>
92395
92396         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92397         about `signed and unsigned type in conditional expression'.
92398         * lib/posixtm.c (posix_time_parse): Likewise.
92399
92400         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92401
92402         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92403         to avoid a pedantic warning.
92404
92405         * lib/getstr.c: Don't include assert.h.
92406         (getstr): Remove warning-evoking assertions.
92407         Return -1 if offset parameter is out of bounds.
92408         Change the type of a local from int to size_t.
92409
92410         * lib/strftime.c (my_strftime_localtime_r): Include this function
92411         definition in the `#if ! HAVE_TM_GMTOFF' block.
92412
92413         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92414         Include xalloc.h instead.
92415
92416 2001-12-02  Jim Meyering  <meyering@lucent.com>
92417
92418         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92419         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92420         included.
92421
92422         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92423         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92424
92425 2001-11-30  Akim Demaille  <akim@epita.fr>
92426
92427         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92428         before being defined.
92429
92430 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92431
92432         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92433         First arg is int, not unsigned.
92434         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92435         (SIZE_MAX, UINT_MAX): New macros.
92436         (quotearg_n_options): Abort if N is negative.
92437         Avoid overflow check on hosts where size_t is 64 bits and int
92438         is 32 bits, as overflow is impossible there.
92439         Fix off-by-one typo that caused unnecessary reallocation.
92440
92441 2001-11-27  Jim Meyering  <meyering@lucent.com>
92442
92443         * lib/tempname.c: Merge with version from libc.
92444         * lib/regex.c: Likewise.
92445
92446         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92447         systems for which STDC_HEADERS is 0, it was not included, resulting in
92448         a warning about an integer-to-pointer conversion problem with getenv.
92449         Reported by Volker Borchert.
92450
92451 2001-11-26  Jim Meyering  <meyering@lucent.com>
92452
92453         * lib/gtod.h: Remove file.
92454         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92455         * lib/gettimeofday.c: Don't include gtod.h.
92456         (GTOD_init): Remove function.
92457         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92458         Suggestion from Volker Borchert.
92459
92460 2001-11-23  Jim Meyering  <meyering@lucent.com>
92461
92462         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92463         it.
92464         * lib/hash.c (struct hash_table): Define it here instead.
92465
92466 2001-11-22  Jim Meyering  <meyering@lucent.com>
92467
92468         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92469
92470 2001-11-20  Jim Meyering  <meyering@lucent.com>
92471
92472         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92473         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92474
92475 2001-11-19  Jim Meyering  <meyering@lucent.com>
92476
92477         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92478         directory.  Use "conftestXXXXXX" as the template.
92479         Suggestion from Paul Eggert.
92480
92481         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92482         immediately, so the test doesn't mistakenly hit the max-open-files
92483         limit.
92484
92485 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92486
92487         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92488         (TEMPORARIES): New macro.
92489         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92490         removes an artificial limitation (e.g. HP-UX 10.20, where
92491         TMP_MAX is 17576).
92492
92493 2001-11-18  Jim Meyering  <meyering@lucent.com>
92494
92495         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92496
92497 2001-11-18  Jim Meyering  <meyering@lucent.com>
92498
92499         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92500         on SunOS 4.
92501
92502         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92503         files will be created before anything else.
92504
92505 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92506
92507         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92508         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92509
92510 2001-11-17  Jim Meyering  <meyering@lucent.com>
92511
92512         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92513         Prompted by a report from Bob Proulx.
92514
92515         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92516         Instead, require UTILS_FUNC_MKSTEMP.
92517
92518 2001-11-17  Jim Meyering  <meyering@lucent.com>
92519
92520         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92521         Now, that's done as part of AC_FUNC_STRTOD.
92522
92523 2001-11-17  Jim Meyering  <meyering@lucent.com>
92524
92525         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92526         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92527         rather than group writable.  Patch by Juan F. Codagnone.
92528
92529         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92530         xrealloc, Instead, include "xalloc.h".
92531
92532         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92533         Remove explicit declarations of xmalloc, xrealloc,
92534         and xstrdup.  Instead, include "xalloc.h".
92535
92536         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92537         unlocked-io.h.
92538         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92539         Likewise.
92540         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92541
92542         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92543         Reported by Padraig Brady.
92544
92545         * lib/mkstemp.c: #undef mkstemp.
92546         Include config.h.
92547         (rpl_mkstemp): Rename from mkstemp.
92548         Protoize.
92549
92550 2001-11-16  Jim Meyering  <meyering@lucent.com>
92551
92552         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92553         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92554         determine the amount of total physical memory, use pstat_getstatic.
92555         HPUX-11 doesn't define _SC_PHYS_PAGES.
92556         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92557         If sysconf couldn't be used to determine the amount of available
92558         physical memory, use both pstat_getstatic and pstat_getdynamic.
92559         Based on a patch from Bob Proulx.
92560
92561 2001-11-10  Jim Meyering  <meyering@lucent.com>
92562
92563         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92564         (jm_PREREQ): Use it.
92565
92566 2001-11-09  Jim Meyering  <meyering@lucent.com>
92567
92568         * m4/jm-macros.m4: Require autoconf-2.52f.
92569         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92570         Use these AC_-prefixed names, not the AM_-prefixed ones.
92571
92572         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92573
92574 2001-11-05  Jim Meyering  <meyering@lucent.com>
92575
92576         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92577
92578 2001-11-04  Jim Meyering  <meyering@lucent.com>
92579
92580         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92581         $DEFS.
92582
92583 2001-11-03  Jim Meyering  <meyering@lucent.com>
92584
92585         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92586         of AC_DEFUN.
92587
92588         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92589         know the name of the variable in the macro definition.
92590
92591 2001-11-03  Jim Meyering  <meyering@lucent.com>
92592
92593         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92594         in argmatch_to_argument call.
92595
92596         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92597         argument.
92598
92599         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92600         e.g., a fault due to an attempt to free a NULL pointer.
92601
92602 2001-11-01  Jim Meyering  <meyering@lucent.com>
92603
92604         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92605         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92606
92607 2001-11-01  Jim Meyering  <meyering@lucent.com>
92608
92609         * lib/dirfd.c, lib/dirfd.h: New files.
92610         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92611
92612         * lib/hash.c (hash_print) [TESTING]: Clean up.
92613
92614 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92615
92616         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92617         to avoid a warning if -Wall.
92618
92619 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92620
92621         * README: New file
92622         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92623         (per RMS's instructions, this is now the canonical source)
92624         * lgpl/, gpl/: New directories.
92625
92626 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92627
92628         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92629
92630 2001-10-21  Jim Meyering  <meyering@lucent.com>
92631
92632         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92633         this code would end up calling gettext even in packages built
92634         with --disable-nls.
92635         * lib/getopt.c (_): Likewise.
92636         * lib/regex.c (_): Likewise.
92637
92638 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92639
92640         * m4/error.m4 (jm_PREREQ_ERROR):
92641         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92642         AC_FUNC_STRERROR_R does that.
92643         Check for strerror declaration.
92644
92645         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92646         are supposed to have them these days.
92647         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92648         Merge changes from latest Autoconf CVS.
92649         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92650         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92651         POSIX decided to standardize on the int flavor of strerror_r.
92652
92653 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92654
92655         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92656         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92657         Use strerror_r that is only a macro, even if it is not a function.
92658         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92659         (private_strerror): Use prototypes, not old-style function definition.
92660         (print_errno_message): New function.
92661         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92662         char*-flavored one.
92663         (error_tail, error, error_at_line): Use it.
92664
92665 2001-10-11  Jim Meyering  <meyering@lucent.com>
92666
92667         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92668         and quote_n (1, ... to avoid clobbering a buffer.
92669
92670 2001-10-05  Jim Meyering  <meyering@lucent.com>
92671
92672         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92673         hash-pjw.h.
92674         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92675         * lib/hash-pjw.h: New file.
92676
92677 2001-09-30  Jim Meyering  <meyering@lucent.com>
92678
92679         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92680         `struct fsstat' has the `f_fstypename' member.
92681         Use that to define FS_TYPE, which is now used to make
92682         the getfsstat link test tighter.
92683
92684 2001-09-30  Jim Meyering  <meyering@lucent.com>
92685
92686         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92687         Include <sys/ucred.h>, for Apple Darwin.
92688         Include sys/mount.h and sys/fs_types.h only if available.
92689         (FS_TYPE): Define.
92690         (read_filesystem_list): Use FS_TYPE.
92691
92692 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92693
92694         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92695         a boolean context.
92696
92697 2001-09-29  Jim Meyering  <meyering@lucent.com>
92698
92699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92700         [one-argument getmntent function]): Include stdio.h before mntent.h.
92701         SunOS 4.1.x needs it for the declaration of `FILE'.
92702         Patch by Volker Borchert.
92703
92704         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92705         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92706         sys/fs_types.h, and make the link-test for getfsstat guard #include
92707         directives with appropriate #if HAVE_*_H tests so that we can
92708         detect getfsstat on Apple Darwin1.3.7 systems.
92709         Reported by Nelson Beebe.
92710         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92711
92712 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92713
92714         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92715         #defines strtoimax.  Also treat the other strto* functions
92716         like strtoimax.
92717
92718         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92719         Check for strtoul and strtoumax,
92720         as those declarations are made even in the signed case.
92721         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92722         Likewise, for strtol and strtoimax.
92723
92724 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92725
92726         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92727         #defines strtoimax.  Also treat the other strto* functions
92728         like strtoimax.
92729
92730         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92731         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92732         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92733
92734 2001-09-26  Jim Meyering  <meyering@lucent.com>
92735
92736         Most macros in unlocked-io.h had the wrong number of arguments.
92737         * lib/gen-uio: New script.
92738         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92739         * lib/unlocked-io.hin: Remove file.
92740         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92741         rather than trying to embed it here.
92742         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92743         Reported by Padraig Brady.
92744
92745 2001-09-25  Volker Borchert  <bt@teknon.de>
92746
92747         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92748         `result'.
92749
92750 2001-09-24  Jim Meyering  <meyering@lucent.com>
92751
92752         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92753
92754 2001-09-23  Jim Meyering  <meyering@lucent.com>
92755
92756         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92757         instead of the mere test for existence of mntent.h.  The latter
92758         would get a false-positive on AIX 3.4 systems.
92759         In the outer getmntent if-block, don't die if neither of the getmntent
92760         tests succeeds.  Instead, just fall through and continue with the
92761         remaining tests.
92762
92763 2001-09-23  Jim Meyering  <meyering@lucent.com>
92764
92765         * lib/mountlist.c: Remove useless parentheses in #if directives.
92766         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92767         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92768
92769 2001-09-22  Jim Meyering  <meyering@lucent.com>
92770
92771         * m4/gettext.m4: New file.  From gettext.
92772         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92773         * m4/progtest.m4: Likewise
92774         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92775         * m4/glibc21.m4: Likewise.
92776
92777         * m4/libintl.m4: Remove.  No longer used.
92778
92779 2001-09-22  Jim Meyering  <meyering@lucent.com>
92780
92781         * lib/localcharset.c: Update from latest gettext.
92782         * lib/config.charset: Likewise.
92783
92784 2001-09-20  Jim Meyering  <meyering@lucent.com>
92785
92786         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92787         strtoimax.
92788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92789         strtoumax.
92790
92791 2001-09-20  Jim Meyering  <meyering@lucent.com>
92792
92793         * lib/xstrtol.c (strtoimax): Guard declaration with
92794         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92795         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92796         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92797         (strtoumax): Likewise, for completeness (it wasn't necessary).
92798
92799 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92800
92801         * lib/strtoimax.c (HAVE_LONG_LONG):
92802         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92803         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92804         to work around bug in IBM C compiler.
92805
92806 2001-09-17  Jim Meyering  <meyering@lucent.com>
92807
92808         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92809         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92810         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92811         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92812         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92813         whenever the right hand side need not be expanded by the shell.
92814
92815 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92816
92817         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92818         library.  It's not correct, as some older glibcs are buggy.
92819         fnmatch wasn't fixed until glibc 2.2.
92820
92821         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92822         special shell magic here.
92823
92824 2001-09-16  Jim Meyering  <meyering@lucent.com>
92825
92826         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92827         * m4/jm-macros.m4: Require it.
92828
92829 2001-09-16  Jim Meyering  <meyering@lucent.com>
92830
92831         * lib/mkdir.c: New file.
92832
92833 2001-09-15  Jim Meyering  <meyering@lucent.com>
92834
92835         * m4/jm-macros.m4: Check for help2man.
92836
92837 2001-09-11  Jim Meyering  <meyering@lucent.com>
92838
92839         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92840         The body, by Paul Eggert, was moved here from configure.in.
92841         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92842
92843 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92844
92845         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92846         (jm_PREREQ): Use it.
92847
92848 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92849
92850         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92851         Use ssize_t, not int, to store result of readlink.
92852         Check for ssize_t overflow as well as size_t overflow,
92853         as POSIX says the result of readlink is implementation-defined
92854         when ssize_t overflows.
92855         Remove unnecessary cast to char*.
92856         Use free+malloc instead of realloc, as the storage doesn't need
92857         to be preserved and it's clearer and can be more efficient that way.
92858         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92859         * lib/xreadlink.h (xreadlink): Update prototype.
92860
92861 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92862
92863         * lib/xgetcwd.c: Revert some of the previous change; intead,
92864         fix the HAVE_GETCWD_NULL code to behave more like the
92865         !HAVE_GETCWD_NULL code used to.
92866
92867         Include "xalloc.h".
92868         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92869         invoke xalloc_die.
92870
92871 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92872
92873         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92874         sys/param.h, as pathmax.h includes them.
92875
92876 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92877
92878         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92879         (jm_PREREQ_XGETCWD): New macro.
92880
92881         * m4/getcwd.m4: New file.
92882
92883 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92884
92885         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92886         like the HAVE_GETCWD_NULL code.
92887         Include pathmax.h if not HAVE_GETCWD.
92888         Do not include xalloc.h.
92889         (INITIAL_BUFFER_SIZE): New symbol.
92890         Do not use xmalloc / xrealloc, since the caller is responsible for
92891         handling errors.  Preserve errno around `free' during failure.
92892         Do not overrun buffer when using getwd.
92893
92894 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92895
92896         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92897         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92898         getcwd (NULL, 0).
92899
92900 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92901
92902         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92903         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92904         spotted by Jim Meyering.
92905
92906 2001-09-03  Jim Meyering  <meyering@lucent.com>
92907
92908         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92909         failure.
92910
92911 2001-09-02  Jim Meyering  <meyering@lucent.com>
92912
92913         * lib/error.c: Update from GNU libc.
92914
92915 2001-09-01  Jim Meyering  <meyering@lucent.com>
92916
92917         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92918         Used by df.
92919
92920 2001-09-01  Jim Meyering  <meyering@lucent.com>
92921
92922         * lib/xreadlink.c: New file.
92923         * lib/xreadlink.h: New file.
92924         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92925         xreadlink.h.
92926
92927         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92928         doesn't conflict with sparc Solaris 7's definition in
92929         /usr/include/sys/int_types.h.
92930
92931         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92932         files.
92933         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92934         and strncasecmp as r-values.  Unixware didn't have declarations.
92935
92936 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92937
92938         * lib/xstrtol.h: Add copyright notice.
92939         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92940         LONGINT_INVALID_SUFFIX_CHAR.
92941
92942 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92943
92944         * lib/xstrtol.c (strtoimax): New decl.
92945
92946 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92947
92948         * lib/xgetcwd.c: Don't include pathmax.h.
92949         Include stdlib.h and unistd.h if available.
92950         Include xalloc.h.
92951         (xmalloc, xstrdup, free): Remove decls.
92952         (xgetcwd): Don't assume sizes fit in unsigned.
92953         Check for overflow when computing sizes.
92954         Simplify reallocation code.
92955
92956 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92957
92958         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92959         a directory's st_size can have an arbitrary value, so the old
92960         usage could waste an arbitrary amount of memory.  All uses
92961         changed.
92962         * lib/savedir.h: Update prototype.
92963
92964 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92965
92966         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92967
92968         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92969         old strtoimax.c.
92970
92971         Also, make the following further changes to make this file's
92972         configuration more similar to that of strtol.c:
92973         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92974         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92975         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92976         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92977         changed to signed values.
92978
92979         And make the following changes as well:
92980         Fix copyright notice, as 1999 was missing.
92981         (verify): New macro.
92982         (strtoimax): Check sizes at compile-time, not run-time.
92983         Prefer strtol to strtoll if both work.
92984         (main): Remove; it was not that useful and was a pain to maintain.
92985
92986         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92987
92988 2001-08-31  Jim Meyering  <meyering@lucent.com>
92989
92990         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92991         Use an initial, malloc'd, buffer of length 128 rather than
92992         a statically allocated one of length 1024.
92993
92994 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92995
92996         Simplify code, partly by assuming autoconf 2.52 semantics.
92997
92998         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92999
93000         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93001         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93002         All uses removed.
93003         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93004         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93005         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93006         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93007         jm_AC_HEADER_INTTYPES_H.
93008         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93009
93010         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93011
93012         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93013         Quote first arg of AC_DEFUN.
93014         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93015         since they are needed to parse the include file even if we need
93016         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93017         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93018         but with opposite signedness.
93019
93020 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93021
93022         Merge 'exclude' changes from tar 1.13.22.
93023         This fixes one or two unlikely storage allocation overflow bugs,
93024         but doesn't change user-visible behavior otherwise.
93025
93026 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93027
93028         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93029         (jm_PREREQ_EXCLUDE): New macro.
93030
93031 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93032
93033         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93034         tm to be declared.
93035
93036 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93037
93038         * lib/hash.c: Remove '2001' from copyright notice.
93039
93040 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93041
93042         * lib/full-write.h: New file.
93043         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93044         * lib/full-write.c: Correct credits, as cccp.c no longer
93045         exists and anyway it was so heavily changed from the old cccp
93046         code as to be unrecognizable.  Include full-write.h.
93047         (full_write): Return size_t, with short writes meaning failure.
93048         All callers changed.  This fixes a bug with large buffers
93049         on 64-bit hosts.
93050         * lib/utime.c: Include full-write.h.
93051
93052 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93053
93054         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93055         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93056         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93057         Include if available.
93058         (<xalloc.h>): Include
93059         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93060         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93061         collide with FNM macros.
93062         (struct patopts): New struct.
93063         (struct exclude): Use it, as exclude patterns now come with options.
93064         (new_exclude): Support above changes.
93065         (new_exclude, add_exclude_file):
93066         Initial size must now be a power of two to simplify overflow checking.
93067         (free_exclude, fnmatch_no_wildcards): New function.
93068         (excluded_filename): No longer requires options arg, as the options
93069         are determined by add_exclude.  Now returns bool, not int.
93070         (excluded_filename, add_exclude):
93071         Add support for the fancy new exclusion options.
93072         (add_exclude, add_exclude_file): Now takes int options arg.
93073         Check for arithmetic overflow when computing sizes.
93074         (add_exclude_file): xrealloc might modify errno, so don't
93075         realloc until after errno might be used.
93076
93077         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93078         New macros.
93079         (free_exclude): New decl.
93080         (add_exclude, add_exclude_file): Now takes int options arg.
93081         (excluded_filename): No longer requires options arg, as the options
93082         are determined by add_exclude.  Now returns bool, not int.
93083
93084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93085
93086         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93087
93088 2001-08-27  Jim Meyering  <meyering@lucent.com>
93089
93090         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93091
93092         * lib/version-etc.c (N_): Remove definition.
93093         Revert most of last change.
93094         Instead, simply don't mark the `Copyright...' string for translation.
93095         Based on advice from Paul Eggert.
93096
93097         * lib/strtoxmax.c: Tweak comment.
93098
93099 2001-08-26  Jim Meyering  <meyering@lucent.com>
93100
93101         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93102
93103         * m4/xstrtoimax.m4: New file.
93104         * m4/xstrtoumax.m4: Add comments explaining why we
93105         AC_REPLACE_FUNCS(strtol).
93106
93107 2001-08-26  Jim Meyering  <meyering@lucent.com>
93108
93109         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93110         of copyright with `%s' so translators don't get an untranslated
93111         message in 2002.
93112         (COPYRIGHT_YEAR): Define.
93113         (version_etc): Use fprintf rather than fputs.
93114         Suggestion from Ulrich Drepper.
93115
93116         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93117
93118         * lib/strtoll.c: New file, from GNU libc.
93119         * lib/xstrtoimax.c: New file.
93120
93121         * lib/xstrtol.h: Add xstrtoimax.
93122         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93123         * lib/strtoimax.c: New file.  Likewise, but first define
93124         STRTOUXMAX_SIGNED.
93125
93126         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93127         ...
93128         * lib/strtoxmax.c: ... then renamed to this.
93129
93130 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93131
93132         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93133         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93134         (jm_AC_TYPE_INTMAX_T): New macro.
93135         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93136
93137         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93138
93139         * m4/longlong.m4: Renamed from ulonglong.m4.
93140         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93141         * m4/uintmax_t.m4: Removed.
93142
93143 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93144
93145         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93146         Port to Solaris 8, where 'sed' requires a space after the 'r'
93147         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93148         Redirect output to $tmp just once.
93149
93150 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93151
93152         * lib/addext.c (<errno.h>): Include.
93153         (errno): Declare if not defined.
93154         (addext): Work correctly when pathconf returns -1 and leaves
93155         errno alone because there is no limit.  Also, work even if
93156         pathconf returns a value greater than SIZE_MAX.
93157
93158 2001-08-12  Jim Meyering  <meyering@lucent.com>
93159
93160         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93161         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93162         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93163         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93164         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93165         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93166         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93167         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93168         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93169         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93170         utime.m4, utimes.m4, xstrtoumax.m4:
93171         Quote the first argument in each use of AC_DEFUN.
93172
93173 2001-08-12  Jim Meyering  <meyering@lucent.com>
93174
93175         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93176         Simply `return getcwd (NULL, 0);'.
93177         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93178         Use 1300 as initial value for length, not PATH_MAX.
93179
93180         * lib/pathmax.h: Clean up cpp syntax.
93181
93182 2001-08-12  Jim Meyering  <meyering@lucent.com>
93183
93184         * lib/gettimeofday.c: New file.
93185         * lib/gtod.h: New file.
93186         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93187
93188 2001-08-05  Jim Meyering  <meyering@lucent.com>
93189
93190         * m4/jm-macros.m4: Require autoconf-2.52.
93191
93192 2001-08-04  Jim Meyering  <meyering@lucent.com>
93193
93194         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93195         stmt, to get in sync with glibc.
93196
93197 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93198
93199         The following changes are from gettext 0.10.39 as maintained by
93200         Bruno Haible.
93201
93202         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93203         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93204         with inverted sense.  All uses changed.
93205
93206         * lib/mbswidth.c: Don't include <limits.h>.
93207         Include <stdlib.h> and <string.h> unconditionally.
93208         (iswcntrl, mbsinit, ISCNTRL): New macros.
93209         (mbsnwidth): Use K&R style function declarations.
93210         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93211         can optimize it when MB_CUR_MAX == 1.
93212         The width of control characters is zero, not 1.
93213
93214 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93215
93216         The following changes are from gettext 0.10.39 as maintained by
93217         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93218
93219         * m4/codeset.m4: Upgrade to serial AM1.
93220         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93221         all uses changed.  Quote first arg of AC_DEFUN.
93222         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93223
93224         * m4/iconv.m4: Upgrade to serial AM2.
93225         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93226         Add --with-libconv-prefix.
93227         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93228         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93229         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93230         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93231         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93232
93233         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93234         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93235         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93236         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93237         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93238         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93239         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93240         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93241         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93242
93243         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93244         string.h any more.
93245
93246         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93247         not the default value.
93248
93249         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93250         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93251         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93252         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93253         Also check for iswcntrl, used for wcwidth fallback.
93254         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93255         to Autoconf 2.13.
93256
93257 2001-08-03  Jim Meyering  <meyering@lucent.com>
93258
93259         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93260         as it was in the original.  Reported by Paul Eggert.
93261
93262 2001-07-16  Jim Meyering  <meyering@lucent.com>
93263
93264         * m4/gettimeofday.m4: New file.
93265         Prompted by a report from Bernhard Baehr.
93266
93267 2001-07-15  Jim Meyering  <meyering@lucent.com>
93268
93269         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93270         stuff. Now it's in ../Makefile.cfg.
93271
93272 2001-07-15  Jim Meyering  <meyering@lucent.com>
93273
93274         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93275         (BUILT_SOURCES): Add unlocked-io.h.
93276         (io_functions): Define.
93277         (unlocked-io.h): New rule.
93278         (DISTCLEANFILES): Add unlocked-io.h.
93279         (all-local): Depend on unlocked-io.h, to ensure it is created.
93280
93281         * lib/unlocked-io.hin: New file
93282
93283         * lib/regex.c: Update from glibc.
93284
93285 2001-07-05  Jim Meyering  <meyering@lucent.com>
93286
93287         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93288         recommendation.
93289         (libfetish_a_SOURCES): Put all .h files here instead.
93290         Remove a thus-exposed (better checks in automake) duplicate and
93291         two unnecessary .h files.
93292
93293 2001-07-04  Jim Meyering  <meyering@lucent.com>
93294
93295         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93296         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93297         distcheck failure.
93298
93299 2001-07-02  Jim Meyering  <meyering@lucent.com>
93300
93301         The following changes were prompted by suggestions from Bruno Haible.
93302
93303         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93304         is now generated.
93305         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93306         definition of EXTRA_DIST.
93307         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93308         ensure that the generated file is created/updated whenever the list
93309         of $(unlocked_functions) is changed.
93310         (jm-glibc-io.m4): New rule.
93311         (unlocked-io.h): New rule -- currently unused.
93312
93313 2001-06-24  Jim Meyering  <meyering@lucent.com>
93314
93315         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93316         unmatched right bracket, rather than kludging it with an extra,
93317         falsely-matching quote in a comment.  Patch by Akim Demaille.
93318
93319 2001-06-11  Jim Meyering  <meyering@lucent.com>
93320
93321         * lib/regex.c: Update from GNU libc.
93322
93323 2001-05-27  Jim Meyering  <meyering@lucent.com>
93324
93325         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93326         Check for ut_type in struct utmp.
93327
93328 2001-05-27  Jim Meyering  <meyering@lucent.com>
93329
93330         * lib/readutmp.h (UT_TYPE): Define.
93331
93332 2001-05-24  Jim Meyering  <meyering@lucent.com>
93333
93334         * lib/argmatch.c: Include "quote.h".
93335         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93336         quote function.  Reported by Göran Uddeborg.
93337
93338 2001-05-22  Jim Meyering  <meyering@lucent.com>
93339
93340         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93341         now that we use the package-supplied version unconditionally.
93342         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93343
93344 2001-05-21  Jim Meyering  <meyering@lucent.com>
93345
93346         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93347         shell syntax errors.
93348
93349 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93350
93351         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93352
93353 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93354
93355         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93356         Don't bother to check library strftime, since
93357         we'll be using our own my_strftime function anyway.
93358         Define my_strftime instead of strftime.
93359
93360 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93361
93362         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93363         which is not yet declared.
93364
93365 2001-05-15  Jim Meyering  <meyering@lucent.com>
93366
93367         * m4/regex.m4: Use proper quoting so brackets appear in the test
93368         program.
93369         Reported by, and with help from, Bruno Haible.
93370
93371 2001-05-13  Jim Meyering  <meyering@lucent.com>
93372
93373         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93374         undefined.
93375
93376 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93377
93378         dirname code cleanup.  base_name now behaves more compatibly
93379         with POSIX basename when given file names that have trailing
93380         slashes, and similarly for dir_name.  Add new primitives
93381         base_len and dir_len.  Put the directory-name-related decls
93382         into dirname.h.
93383
93384         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93385         * lib/backupfile.c (base_name): Likewise.
93386         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93387         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93388         * lib/makepath.c (strip_trailing_slashes): Likewise.
93389         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93390         ISSLASH): Likewise.
93391         * lib/rename.c (strip_trailing_slashes): Likewise.
93392         * lib/same.c (base_name): Likewise.
93393         * lib/stripslash.c (ISSLASH): Likewise.
93394
93395         * lib/addext.c: Include <dirname.h> after size_t is defined.
93396         * lib/backupfile.c: Likewise.
93397
93398         * lib/addext.c (addext): Use base_len to trim redundant
93399         trailing slashes instead of doing it ourselves.
93400         But do not trim the last slash if it is not redundant.
93401
93402         * lib/backupfile.c (find_backup_file_name,
93403         max_backup_version): Use base_len instead of rolling it ourselves.
93404         Handle the case of "" and (on DOS) "C:" correctly.
93405
93406         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93407         needed. Include <string.h>, <dirname.h>.
93408         (base_name): Allow file names ending in slashes, other than names
93409         that are all slashes.  In this case, return the basename followed
93410         by the slashes.  This is more general, and can be used in places
93411         where the original base_name purposely had an assertion failure.
93412         (base_len): New function.
93413
93414         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93415         Do not include <assert.h>; no longer needed.
93416         Include xalloc.h.
93417         (memrchr): Remove decl.
93418         (dir_name_r): Remove.
93419         (dir_len): Renamed from dirlen.  All callers changed.
93420         Rewrite in terms of base_name, for simplicity and consistency.
93421         (dir_name): Never return NULL.  All callers changed.
93422         Do not include <stdlib.h> in test program; no longer needed.
93423         return 0; is fine for test program.
93424
93425         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93426         New macros.
93427         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93428
93429         * lib/path-concat.c (path_concat): Use base_len to compute
93430         base length, not strlen; this means we cannot rely on memcpy
93431         to null-terminate.
93432
93433         * lib/same.c (STREQ): Remove.
93434         (same_name): Handle the case where the basename ends in trailing '/'.
93435
93436         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93437         a slash was stripped.  Do not strip the last slash after a
93438         file system prefix.
93439
93440 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93441
93442         * lib/Makefile.am (libfetish_a_SOURCES):
93443         Add strftime.c, since we now compile it on all hosts.
93444
93445         * lib/strftime.c (my_strftime):
93446         Define to nstrftime if emacs, but only if my_strftime is not defined.
93447         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93448         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93449         Add one more extra argument: a nanoseconds value.
93450         All uses changed.
93451         (ns): New macro.
93452         (my_strftime function): Add %N format.
93453         (emacs_strftimeu): Renamed from emacs_strftime,
93454         with extra ut argument.
93455
93456 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93457
93458         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93459
93460 2001-04-21  Jim Meyering  <meyering@lucent.com>
93461
93462         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93463         doesn't interfere.
93464
93465 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93466
93467         * m4/ftruncate.m4: Check for chsize.
93468         Link with ftruncate.o unconditionally if ftruncate is missing.
93469         This was required when cross-compiling to i586-mingw32msvc.
93470
93471 2001-04-08  Jim Meyering  <meyering@lucent.com>
93472
93473         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93474         recomputed; that's necessary when the offset spans a DST transition.
93475         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93476
93477 2001-04-02  Jim Meyering  <meyering@lucent.com>
93478
93479         * lib/regex.h, regex.c: Update from GNU libc.
93480
93481 2001-03-24  Jim Meyering  <meyering@lucent.com>
93482
93483         * m4/jm-macros.m4: Require autoconf-2.49d.
93484
93485 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93486
93487         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93488
93489 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93490
93491         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93492
93493 2001-03-17  Jim Meyering  <meyering@lucent.com>
93494
93495         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93496         now that the version in autoconf is equivalent.
93497         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93498
93499         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93500         Suggestion from Akim Demaille.
93501
93502         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93503         (jm_PREREQ_TEMPNAME): New function.
93504
93505 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93506
93507         * lib/tempname.c (uint64_t): Define to uintmax_t if
93508         not defined, and if UINT64_MAX is not defined.
93509         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93510         Reported by John David Anglin.
93511
93512 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93513
93514         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93515         resolve alias if codeset is empty.
93516         * lib/config.charset (BeOS): Use wildcard syntax.
93517
93518 2001-03-13  Jim Meyering  <meyering@lucent.com>
93519
93520         * lib/path-concat.c (path_concat)
93521         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93522         concatenating e.g., `C:' and `foo'.
93523         From Bruno Haible.
93524
93525 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93526
93527         * lib/localcharset.c (locale_charset): Don't use
93528         setlocale(LC_CTYPE,NULL). Don't return NULL.
93529         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93530
93531 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93532
93533         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93534         support for DOS/DJGPP.
93535
93536 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93537
93538         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93539         lacks mkstemp.  Compile our own tempname.c if we compile our own
93540         mkstemp.c, as mkstemp relies on tempname.
93541
93542 2001-03-01  Jim Meyering  <meyering@lucent.com>
93543
93544         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93545         AH_VERBATIM really does output its argument verbatim.
93546
93547 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93548
93549         * lib/Makefile.am (libfetish_a_SOURCES):
93550         Add dup-safer.c, fopen-safer.c.
93551         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93552
93553         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93554         * lib/unistd-safer.h: New files.
93555
93556 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93557
93558         The mkstemp replacement is taken from glibc 2.2.2, with some
93559         portability fixes for use outside glibc, as follows:
93560
93561         * lib/tempname.c (struct_stat64): New macro.
93562         (direxists, __gen_tempname): Use it.
93563         This avoids a portability problem with Solaris 8.
93564
93565         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93566         (<stddef.h>, <stdint.h>, <string.h>):
93567         Include only if STDC_HEADERS || _LIBC.
93568         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93569         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93570         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93571         (__set_errno): Define this macro if <errno.h> doesn't.
93572         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93573         Define these macros if <stdio.h> doesn't.
93574         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93575         Define these macros if <sys/stat.h>
93576         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93577         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93578         __xstat64): Define if not _LIBC.
93579         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93580         (__gen_tempname): Invoke gettimeofday only if
93581         HAVE_GETTIMEOFDAY || _LIBC;
93582         otherwise, fall back on plain "time".
93583         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93584
93585         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93586
93587         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93588
93589 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93590
93591         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93592
93593 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93594
93595         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93596         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93597         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93598         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93599
93600 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93601
93602         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93603         Remove workaround macros for hosts that have mbrtowc but not
93604         mbstate_t, as we now insist on proper declarations for both
93605         before using mbrtowc.
93606
93607 2001-02-17  Jim Meyering  <meyering@lucent.com>
93608
93609         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93610         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93611         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93612         UnixWare 7.1.1.
93613
93614         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93615         rather than AC_CACHE_VAL.
93616
93617 2001-02-17  Jim Meyering  <meyering@lucent.com>
93618
93619         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93620         around included file name.
93621
93622         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93623
93624         * lib/strftime.c: Update from GNU libc (the only changes were to
93625         comments).
93626
93627 2001-02-17  Jim Meyering  <meyering@lucent.com>
93628
93629         * lib/regex.c: Update from libc.
93630
93631 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93632
93633         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93634         clash.
93635
93636 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93637
93638         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93639         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93640         Reported by Mark Hounschell via Paul Eggert.
93641
93642 2001-02-07  Jim Meyering  <meyering@lucent.com>
93643
93644         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93645
93646 2001-02-05  Jim Meyering  <meyering@lucent.com>
93647
93648         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93649         it includes the patch required for `large file' support with at least
93650         HP-UX's 10.20 /bin/cc.
93651
93652 2001-02-03  Jim Meyering  <meyering@lucent.com>
93653
93654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93655         AS_IF, now that it works once again (mysteriously).
93656         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93657
93658 2001-01-30  Jim Meyering  <meyering@lucent.com>
93659
93660         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93661         * m4/chown.m4: Rename conftestchown to conftest.chown.
93662         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93663         s/conftestdir2/conftest.d2/.
93664         * m4/utimes.m4: s/conftestdata/conftest.data/
93665         Inspired by Pavel Roskin's change in autoconf.
93666
93667 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93668
93669         * lib/config.charset: Update for FreeBSD 4.2.
93670
93671 2001-01-27  Jim Meyering  <meyering@lucent.com>
93672
93673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93674         a use of AS_IF.
93675         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93676
93677 2001-01-26  Jim Meyering  <meyering@lucent.com>
93678
93679         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93680         quotearg.c includes it.
93681
93682 2001-01-26  Jim Meyering  <meyering@lucent.com>
93683
93684         * lib/quotearg.c: Include stddef.h.
93685         * lib/quote.c: Include stddef.h.
93686         Reported by Axel Kittenberger.
93687
93688         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93689         line in double quotes so that it evokes a better diagnostic.
93690         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93691         Reported by Axel Kittenberger.
93692
93693 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93694
93695         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93696         as if it was a `charset'.
93697
93698 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93699
93700         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93701         has const.
93702
93703 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93704
93705         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93706         to avoid a warning.  Add back 'const' to inptr.
93707
93708 2001-01-20  Jim Meyering  <meyering@lucent.com>
93709
93710         Be sure that headers are checked before used in code compiled
93711         for the type checks.
93712         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93713         In place of that, invoke jm_CHECK_ALL_TYPES.
93714         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93715         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93716         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93717         The check for ssize_t was mistakenly run before the test for unistd.h.
93718
93719         The configure-time check for stdbool.h was missing.
93720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93721         (jm_PREREQ_HASH): New function.
93722
93723 2001-01-17  Jim Meyering  <meyering@lucent.com>
93724
93725         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93726         for autoconf-2.49c.
93727         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93728
93729 2001-01-16  Jim Meyering  <meyering@lucent.com>
93730
93731         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93732         From Bruno Haible.
93733
93734 2001-01-14  Jim Meyering  <meyering@lucent.com>
93735
93736         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93737         foo and bar.  Create conftestdir/ in the script, not in the C code.
93738         Remove directories in the script, not in the C code.
93739         Remove conftestdir{,2} before trying to create the directory.
93740         Make the entire configure script fail if the mkdir fails.
93741
93742 2001-01-14  Jim Meyering  <meyering@lucent.com>
93743
93744         * lib/rename.c: New file.  From Volker Borchert.
93745         Include stdlib.h, string.h or strings.h, and xalloc.h.
93746         Use strip_trailing_slashes rather than open-coding it.
93747
93748 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93749
93750         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93751
93752 2001-01-03  Jim Meyering  <meyering@lucent.com>
93753
93754         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93755         of local `inptr' to avoid warning with some system declarations of
93756         iconv.
93757
93758 2001-01-02  Volker Borchert  <bt@teknon.de>
93759
93760         * m4/rename.m4: New file.
93761         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93762
93763 2001-01-01  Jim Meyering  <meyering@lucent.com>
93764
93765         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93766         even on systems with utmpx.h.  It's necessary for the declaration of
93767         utmp's ut_user member.  Reported by Andreas Jaeger.
93768
93769         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93770         available. They are required for the declarations of getgrgid and
93771         getpwuid resp.
93772         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93773         Reported by Andreas Jaeger.
93774
93775 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93776
93777         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93778         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93779         so `make install' also works in VPATH builds.
93780
93781 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93782
93783         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93784         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93785         can be used in subdirectories.
93786
93787 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93788
93789         * lib/modechange.c: Do not assume that mode_t uses the
93790         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93791         the other-execute bit of FOO even if S_IXOTH != 1.
93792
93793         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93794         WOTH, XOTH, ALLM): New macros.
93795         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93796          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93797         Use them.
93798         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93799         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93800         (mode_compile):
93801         No need to use uintmax_t; unsigned long is long enough.
93802         Don't bother to get suffix since we don't use it.
93803
93804 2000-12-26  Jim Meyering  <meyering@lucent.com>
93805
93806         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93807         better with autoheader.
93808
93809 2000-12-24  Jim Meyering  <meyering@lucent.com>
93810
93811         * lib/hash.c (is_prime): Return explicit boolean values.
93812         (hash_get_first): Return NULL to appease Irix5.6's 89.
93813         Reported by Nelson Beebe.
93814
93815 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93816
93817         * lib/localcharset.c (locale_charset): Add support for Win32.
93818
93819 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93820
93821         * lib/physmem.h, lib/physmem.c: New files.
93822
93823         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93824         (noinst_HEADERS): Add physmem.h.
93825
93826         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93827         't' for compatibility with Solaris 8 sort.
93828
93829 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93830
93831         * lib/config.charset: Add support for BeOS.
93832
93833 2000-12-17  Jim Meyering  <meyering@lucent.com>
93834
93835         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93836         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93837
93838 2000-12-16  Jim Meyering  <meyering@lucent.com>
93839
93840         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93841         N and M) would have treated it like `chown N:N FILE'.
93842
93843         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93844
93845 2000-12-16  Jim Meyering  <meyering@lucent.com>
93846
93847         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93848         SHELLS_FILE to a file name that's useful on djgpp systems.
93849         Include stdlib.h.
93850         (ADDITIONAL_DEFAULT_SHELLS): Define.
93851         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93852         Based mostly on a patch from Prashant TR.
93853
93854 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93855
93856         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93857         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93858         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93859
93860 2000-12-08  Andreas Schwab  <schwab@suse.de>
93861
93862         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93863         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93864
93865 2000-12-07  Jim Meyering  <meyering@lucent.com>
93866
93867         * lib/stripslash.c (ISSLASH): Define.
93868         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93869         `/'.
93870         From Prashant TR.
93871
93872         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93873         (dir_name_r): Declare this function as static.
93874         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93875         manifest itself on a name containing a mix of slashes and
93876         backslashes.
93877         Make this function work with names starting with a DOS-style
93878         drive letter and colon prefix.
93879         (dir_name): Append `.' if necessary.
93880         Based mostly on patches from Prashant TR and Eli Zaretskii.
93881
93882         * lib/dirname.h (dir_name_r): Remove prototype.
93883
93884 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93885
93886         * m4/off_t-format.m4: Remove this file.
93887         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93888
93889 2000-12-06  Jim Meyering  <meyering@lucent.com>
93890
93891         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93892         replacement strtoull, we may well need the replacement strtoul, too.
93893         Check for declarations of strtoul and strtoull.
93894         Check for strtol.  Mainly as a cue to cause automake to include
93895         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93896         Check for limits.h -- strtol.c needs it.
93897
93898 2000-12-05  Jim Meyering  <meyering@lucent.com>
93899
93900         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93901
93902 2000-12-04  Jim Meyering  <meyering@lucent.com>
93903
93904         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93905         Also include memory.h, stdlib.h, unistd.h if appropriate.
93906         Reported by Andreas Jaeger (conflicting declaration of malloc).
93907
93908 2000-12-02  Jim Meyering  <meyering@lucent.com>
93909
93910         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93911         * m4/jm-macros.m4 (jm_MACROS): require it.
93912
93913 2000-12-02  Jim Meyering  <meyering@lucent.com>
93914
93915         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93916
93917 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93918
93919         * lib/memrchr.c: Include <config.h> before any system include file.
93920
93921 2000-11-30  Jim Meyering  <meyering@lucent.com>
93922
93923         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93924
93925 2000-11-30  Jim Meyering  <meyering@lucent.com>
93926
93927         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93928
93929 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93930
93931         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93932
93933 2000-11-26  Jim Meyering  <meyering@lucent.com>
93934
93935         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93936
93937 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93938
93939         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93940         size of (size_t) -1; it's not portable.
93941
93942 2000-11-17  Jim Meyering  <meyering@lucent.com>
93943
93944         * lib/strstr.c: Update from GNU libc.
93945
93946 2000-11-17  Akim Demaille  <akim@epita.fr>
93947
93948         * lib/obstack.h: Formatting changes.
93949         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93950         prevent type checking.
93951         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93952         cast the value to (void *): assigning a `foo *' to a `void *'
93953         variable is valid.
93954         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93955
93956 2000-11-16  Jim Meyering  <meyering@lucent.com>
93957
93958         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93959
93960 2000-11-11  Jim Meyering  <meyering@lucent.com>
93961
93962         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93963
93964 2000-11-10  Jim Meyering  <meyering@lucent.com>
93965
93966         * lib/obstack.h: Update from GNU libc.
93967         * lib/obstack.c: Likewise.
93968
93969 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93970
93971         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93972
93973 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93974
93975         * lib/getusershell.c (setusershell): Use rewind rather than
93976         fseek/fseeko, to avoid configuration hassles with fseeko.
93977         Don't bother opening SHELLS_FILE if shellstream is NULL;
93978         it's not necessary.
93979
93980 2000-11-05  Jim Meyering  <meyering@lucent.com>
93981
93982         * lib/makepath.h (make_dir): Declare.
93983         * lib/makepath.c (make_dir): Remove `static' attribute.
93984         Tweak a comment.
93985
93986 2000-11-04  Jim Meyering  <meyering@lucent.com>
93987
93988         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93989
93990 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93991
93992         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93993         last one in a bucket, advance to the next bucket.
93994
93995 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93996
93997         * lib/fnmatch.c: Do not comment out all the code if we are using
93998         the GNU C library, because in some cases we are replacing buggy
93999         code in the GNU C library itself.
94000
94001 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94002
94003         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94004         (regex_compile): Catch bogus \(\1\).
94005
94006 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94007
94008         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94009         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94010         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94011
94012 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94013
94014         * lib/error.h, getline.h, modechange.h:
94015         Remove "2000" from Copyright line, as the file hasn't been
94016         changed this year other than in the copyright notice.
94017
94018         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94019         was changed this year.
94020
94021 2000-10-29  Jim Meyering  <meyering@lucent.com>
94022
94023         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94024         renaming.
94025         * m4/ls-mntd-fs.m4: Likewise
94026
94027 2000-10-29  Jim Meyering  <meyering@lucent.com>
94028
94029         * lib/xstat.in: Fix grammar in comment.
94030
94031 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94032
94033         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94034         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94035         doesn't define __restrict_arr.
94036
94037 2000-10-28  Jim Meyering  <meyering@lucent.com>
94038
94039         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94040         (jm_PREREQ_MEMCHR): New function.
94041
94042 2000-10-28  Jim Meyering  <meyering@lucent.com>
94043
94044         * lib/memchr.c: Update from libc.
94045         Adjust for portability:
94046         [HAVE_STDLIB_H]: Include stdlib.h.
94047         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94048         Undef __memchr, too.
94049         [!weak_alias]: Define __memchr to memchr.
94050
94051         * lib/regex.c: Update from libc.
94052         * lib/regex.h: Likewise.
94053         * lib/getopt1.c: Likewise.
94054         * lib/memcmp.c: Likewise.
94055
94056         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94057         Avoid using fseek, when possible -- it's broken by design.
94058         Patch by Ulrich Drepper.
94059
94060 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94061
94062         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94063         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94064         Giving in to popular pressure to shut up the compiler with casts.
94065
94066 2000-10-26  Jim Meyering  <meyering@lucent.com>
94067
94068         * lib/strftime.c: Update from libc.
94069
94070 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94071
94072         * regex.c: More `unsigned char' -> `re_char' changes.
94073         Also change several `int' into `re_wchar_t'.
94074         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94075         (PUSH_FAILURE_POINTER): Don't cast any more.
94076         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94077         We want GCC to complain, since this piece of code makes
94078         re_match non-reentrant, which *should* be fixed.
94079         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94080         (EXTEND_BUFFER): Use RETALLOC.
94081         (SET_LIST_BIT): Don't cast.
94082         (re_wchar_t): New type.
94083         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94084         that those two functions will always properly return.
94085         (IMMEDIATE_QUIT_CHECK): Cast to void.
94086         (analyse_first): Use recursion rather than an explicit stack.
94087         (re_compile_fastmap): Can't fail anymore.
94088         (re_search_2): Don't check re_compile_fastmap for failure.
94089         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94090         Now also sets the new value (passed in a new argument).
94091         (re_match_2_internal): Use it.
94092         Also, use a new var `reg' of type size_t when looping through regs
94093         rather than reuse the inappropriate `mcnt'.
94094
94095 2000-10-25  Jim Meyering  <meyering@lucent.com>
94096
94097         * lib/obstack.c: Update from libc.
94098
94099 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94100
94101         * regex.c (regex_compile): Change the way of handling a range from
94102         a char less than 256 to a char not less than 256.
94103
94104 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94105
94106         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94107         NT-Emacs only.
94108         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94109         so that re_search functions only quit when callers expect them to.
94110
94111 2000-10-23  Jim Meyering  <meyering@lucent.com>
94112
94113         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94114         wrong.  That set_locale call must not have any side effects.
94115         From Paul Eggert.
94116
94117 2000-10-22  Jim Meyering  <meyering@lucent.com>
94118
94119         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94120         [CYCLIC]: Remove now-unused definition.
94121
94122         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94123         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94124         Suggestion from Ulrich Drepper.
94125
94126 2000-10-21  Jim Meyering  <meyering@lucent.com>
94127
94128         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94129         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94130         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94131
94132 2000-10-21  Jim Meyering  <meyering@lucent.com>
94133
94134         * lib/dirname.c (memrchr): Declare if necessary.
94135         (dir_name): Remove the restriction that there be no
94136         trailing slashes.  Now, this code skips past them, effectively
94137         ignoring them.
94138         [TEST_DIRNAME] (main): New unit tests.
94139
94140         * lib/memrchr.c: New file from GNU libc.
94141         Undef __memrchr, too.
94142         [!weak_alias]: Define __memrchr to memrchr.
94143         Guard weak_alias use with `#ifdef weak_alias'.
94144
94145 2000-10-21  Jim Meyering  <meyering@lucent.com>
94146
94147         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94148         (dir_name): Use dir_name_r.
94149         * lib/dirname.h (dir_name_r): Declare it.
94150
94151 2000-10-17  Jim Meyering  <meyering@lucent.com>
94152
94153         * lib/quote.h (PARAMS): Define and use.
94154         Reported by Akim Demaille.
94155
94156         * lib/getopt.c: Update from libc.
94157
94158 2000-10-16  Jim Meyering  <meyering@lucent.com>
94159
94160         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94161         setlocale.
94162         From Jan Fedak.
94163
94164 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94165
94166         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94167
94168 2000-09-25  Jim Meyering  <meyering@lucent.com>
94169
94170         * lib/md5.h (rol): Define (from GnuPG).
94171
94172         * lib/sha.c: Give credit (GnuPG) where due.
94173         (M): Use rol rather than open-coding it.
94174         Add a FIXME comment.
94175
94176 2000-09-21  Jim Meyering  <meyering@lucent.com>
94177
94178         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94179         Reported by Michael Stone.
94180
94181 2000-09-20  Jim Meyering  <meyering@lucent.com>
94182
94183         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94184         (noinst_HEADERS): Add sha.h.
94185         Based on code from Scott G. Miller and from GnuPG.
94186
94187 2000-09-18  Jim Meyering  <meyering@lucent.com>
94188
94189         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94190         LIBS. Otherwise, everyone ends up linking with -lelf for some
94191         configurations.
94192         Reported by Mike Stone.
94193
94194 2000-09-15  Jim Meyering  <meyering@lucent.com>
94195
94196         * lib/regex.c: Update from libc.
94197
94198 2000-09-10  Jim Meyering  <meyering@lucent.com>
94199
94200         * lib/getopt.c (_getopt_internal): Update from glibc.
94201
94202 2000-09-09  Jim Meyering  <meyering@lucent.com>
94203
94204         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94205         think it should be used as a general replacement for isascii.
94206         * lib/fnmatch.c: Likewise.
94207         * lib/mbswidth.c: Likewise
94208         * lib/regex.c: Likewise.
94209
94210         Don't use atoi.
94211         * lib/userspec.c: Include sys/param.h and limits.h.
94212         Include xstrtol.h.
94213         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94214         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94215         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94216         UID, GID.  Check range.
94217
94218 2000-09-06  Jim Meyering  <meyering@lucent.com>
94219
94220         * lib/getopt.c (_getopt_internal): Update from glibc.
94221
94222 2000-08-30  Jim Meyering  <meyering@lucent.com>
94223
94224         * lib/strftime.c: Merge in changes from GNU libc.
94225
94226 2000-08-26  Jim Meyering  <meyering@lucent.com>
94227
94228         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94229         * m4/fpending.m4: New file.
94230
94231 2000-08-26  Jim Meyering  <meyering@lucent.com>
94232
94233         * lib/closeout.c: Include "__fpending.h".
94234         (close_stdout_status): Return right away if there's nothing to flush.
94235
94236         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94237         * lib/__fpending.c: New file.
94238         * lib/__fpending.h: New file.
94239
94240 2000-08-20  Jim Meyering  <meyering@lucent.com>
94241
94242         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94243         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94244         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94245
94246 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94247
94248         Improve fileutils installation on systems where running
94249         programs (like install) can't be unlinked.
94250         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94251         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94252
94253 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94254
94255         Standardize on "memory exhausted" instead of "Memory exhausted"
94256         or "virtual memory exhausted".
94257         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94258         "virtual memory exhausted".
94259         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94260         our own message.
94261         * lib/userspec.c (parse_user_spec): Likewise.
94262         * lib/bumpalloc.h: comment fix
94263         * lib/same.c, userspec.c: Include xalloc.h.
94264
94265         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94266         not char *const and pointing to a constant array.
94267         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94268         (xrealloc): Comment fix.
94269
94270         * lib/userspec.c (parse_user_spec):
94271         Don't translate a message until just before returning,
94272         to avoid unnecessary translation.
94273
94274 2000-08-07  Jim Meyering  <meyering@lucent.com>
94275
94276         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94277         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94278         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94279         getgroups.c, gethostname.c, getopt.h, group-member.c,
94280         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94281         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94282         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94283         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94284         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94285         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94286         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94287         yesno.c: Back out Copyright date changes for each file with no change
94288         this year.  This eases coordination with other programs using the same
94289         source code modules.  From Paul Eggert.
94290
94291 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94292
94293         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94294         not char, for compatibility with glibc 2.1.3 strftime.c.
94295
94296 2000-08-03  Greg McGary  <greg@mcgary.org>
94297
94298         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94299         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94300         (EXTEND_BUFFER): Use them.
94301
94302 2000-08-01  Jim Meyering  <meyering@lucent.com>
94303
94304         * lib/dirname.c (ISSLASH): Define.
94305         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94306         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94307         both `\' and `/' may be use as path separators.
94308         Based on a patch from Prashant TR.
94309
94310 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94311
94312         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94313         slot vector a constant, since it might get modified.
94314
94315 2000-07-31  Jim Meyering  <meyering@lucent.com>
94316
94317         * lib/xmalloc.c: Use `virtual memory exhausted', not
94318         `Memory exhausted'.
94319         * lib/obstack.c (print_and_abort): Likewise.
94320
94321 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94322
94323         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94324         buffer, so that the caller can always quote one small
94325         component of a "memory exhausted" message in slot 0.
94326         From a suggestion by Jim Meyering.
94327
94328 2000-07-30  Jim Meyering  <meyering@lucent.com>
94329
94330         * lib/makepath.c (make_path): Quote the other instance, too.
94331
94332         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94333         (STATIC_BUF_SIZE): Define.
94334         (quotearg_n_options): Use only statically allocated storage when
94335         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94336         than STATIC_BUF_SIZE.
94337
94338 2000-07-29  Jim Meyering  <meyering@lucent.com>
94339
94340         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94341         * lib/dirname.c (dir_name): Likewise.
94342
94343         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94344         `/'.
94345
94346         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94347         (dir_name): Assert that there are no trailing slashes.
94348
94349 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94350
94351         * lib/mbswidth.h (mbswidth): Add a flags argument.
94352         (mbswidth): New declaration.
94353         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94354         * lib/mbswidth.c (mbswidth): Add a flags argument.
94355         (mbsnwidth): New function.
94356
94357 2000-07-24  Jim Meyering  <meyering@lucent.com>
94358
94359         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94360
94361 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94362
94363         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94364
94365 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94366
94367         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94368         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94369         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94370         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94371         invoke multibyte primitives.
94372
94373 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94374
94375         * lib/quotearg.c:
94376         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94377         so that mbstate_t is always defined.
94378
94379         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94380         be 1 in at least one GCC installation, and this configuration
94381         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94382         performance on hosts that have mbrtowc but have only unibyte
94383         locales, but I assume these hosts are rare.
94384
94385 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94386
94387         * lib/mbswidth.c (_XOPEN_SOURCE):
94388         Don't define; this causes problems on Solaris 7.
94389         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94390
94391 2000-07-23  Jim Meyering  <meyering@lucent.com>
94392
94393         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94394         too: getgrgid, getpwuid, getuid.
94395
94396 2000-07-23  Jim Meyering  <meyering@lucent.com>
94397
94398         * lib/basename.c (base_name): Add an assertion.
94399
94400 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94401
94402         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94403         shadow its mbsinit function.
94404
94405 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94406
94407         * lib/mbswidth.h: New file.
94408         * lib/mbswidth.c: New file.
94409         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94410         (noinst_HEADERS): Add mbswidth.h.
94411
94412 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94413
94414         * lib/config.charset: Add support for FreeBSD. Improve support for
94415         HP-UX and IRIX 6.
94416
94417 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94418
94419         * m4/mbswidth.m4: New file.
94420         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94421
94422 2000-07-15  Jim Meyering  <meyering@lucent.com>
94423
94424         * lib/makepath.c: Include quote.h.
94425         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94426         corresponding argument in a `quote (...)' call.
94427         Give better diagnostics.
94428
94429         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94430         (noinst_HEADERS): Add quote.h.
94431
94432         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94433         from tar's src/misc.c.
94434         * lib/quote.h: New file.  Prototypes for same.
94435
94436 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94437
94438         From a suggestion by Bruno Haible.
94439         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94440         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94441         to decide whether to define the BeOS workaround macro;
94442         this adjusts to the change to AC_MBSTATE_T.
94443
94444 2000-07-14  Jim Meyering  <meyering@lucent.com>
94445
94446         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94447         jm_AC_TYPE_UINTMAX_T.
94448
94449 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94450
94451         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94452
94453         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94454         quotearg_buffer_restyled): Add support for
94455         clocale_quoting_style.  Undo previous change to
94456         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94457         and "{RIGHT QUOTATION MARK}" msgids.
94458
94459 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94460
94461         From a suggestion by Bruno Haible.
94462         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94463         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94464         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94465         and mbstate_t, to a single-part test that simply defines mbstate_t.
94466         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94467         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94468
94469 2000-07-10  Jim Meyering  <meyering@lucent.com>
94470
94471         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94472
94473         * m4/gnu-source.m4: Output to confdefs.h directly.
94474         Suggestion from Akim Demaille.
94475
94476 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94477
94478         The old behavior of quoting `like this' doesn't look good with
94479         newer, ISO-style fonts.  See:
94480         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94481
94482         Instead, quote "like this" by default.  Let the translator
94483         tailor the locale-specific quoting behavior by providing
94484         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94485
94486         * lib/quotearg.c (N_): New macro.
94487         (gettext_default): New function.
94488         (quotearg_buffer_restyled): Use
94489         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94490         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94491
94492 2000-07-09  Jim Meyering  <meyering@lucent.com>
94493
94494         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94495         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94496
94497         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94498         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94499
94500 2000-07-09  Jim Meyering  <meyering@lucent.com>
94501
94502         * lib/Most files: Update copyright dates to include 2000.
94503
94504 2000-07-08  Jim Meyering  <meyering@lucent.com>
94505
94506         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94507         if not defined.
94508         (xgethostname): Remove now-unnecessary #ifdef.
94509         Move declaration of `err' into loop where it's used.
94510
94511 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94512         and Bruno Haible  <haible@clisp.cons.org>
94513
94514         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94515         only if the test for an object-type mbstate_t fails.  This
94516         prevents us from mistakenly reporting that mbstate_t is a
94517         system object type after we "#define mbstate_t int" to work
94518         around its lack.
94519
94520 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94521         and Bruno Haible  <haible@clisp.cons.org>
94522
94523         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94524
94525 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94526
94527         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94528         to strerror_r.
94529         Include <ctype.h> for use of isalpha.
94530
94531 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94532
94533         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94534         by allocating a larger buffer. Test the gethostname return value for
94535         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94536         returns an error and ENAMETOOLONG isn't defined.
94537
94538 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94539
94540         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94541         dimension.
94542
94543 2000-07-04  Jim Meyering  <meyering@lucent.com>
94544
94545         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94546         of the deprecated AC_CHECKING.
94547
94548 2000-07-04  Jim Meyering  <meyering@lucent.com>
94549
94550         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94551         Reported by Bruno Haible.
94552
94553 2000-07-04  Jim Meyering  <meyering@lucent.com>
94554
94555         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94556         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94557         lacks mbrtowc.
94558
94559 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94560
94561         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94562         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94563
94564 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94565         and Bruno Haible  <haible@clisp.cons.org>
94566
94567         * lib/quotearg.c (mbrtowc):
94568         Assign to *pwc, and return 1 only if result is nonzero.
94569         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94570
94571 2000-07-03  Jim Meyering  <meyering@lucent.com>
94572
94573         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94574
94575 2000-07-03  Jim Meyering  <meyering@lucent.com>
94576
94577         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94578         This is necessary to get a definition of e.g., UTMP_FILE on
94579         HP-UX 10.20.
94580         From Bob Proulx.
94581
94582 2000-07-02  Jim Meyering  <meyering@lucent.com>
94583
94584         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94585
94586         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94587         AC_LIBOBJ(function_name).
94588         * m4/chown.m4: Likewise.
94589         * m4/fnmatch.m4: Likewise.
94590         * m4/ftruncate.m4: Likewise.
94591         * m4/getgroups.m4: Likewise.
94592         * m4/getline.m4: Likewise.
94593         * m4/group-member.m4: Likewise.
94594         * m4/jm-macros.m4: Likewise.
94595         * m4/lstat.m4: Likewise.
94596         * m4/malloc.m4: Likewise.
94597         * m4/memcmp.m4: Likewise.
94598         * m4/nanosleep.m4: Likewise.
94599         * m4/putenv.m4: Likewise.
94600         * m4/realloc.m4: Likewise.
94601         * m4/regex.m4: Likewise.
94602         * m4/stat.m4: Likewise.
94603         * m4/strftime.m4: Likewise.
94604
94605 2000-07-02  Jim Meyering  <meyering@lucent.com>
94606
94607         * lib/quotearg.c (mbstate_t): Don't define here.
94608
94609 2000-07-02  Jim Meyering  <meyering@lucent.com>
94610
94611         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94612
94613 2000-07-01  Jim Meyering  <meyering@lucent.com>
94614
94615         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94616
94617 2000-07-01  Jim Meyering  <meyering@lucent.com>
94618
94619         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94620         problem.
94621
94622 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94623
94624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94625         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94626
94627 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94628
94629         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94630         per change in ../m4/ls-mntd-fs.m4.
94631         (read_filesystem_list): Ignore symbolic links.
94632
94633 2000-06-29  Jim Meyering  <meyering@lucent.com>
94634
94635         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94636         for declaration of strcmp.
94637
94638         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94639
94640         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94641         Avoid warning by casting result to `char *' to remove `const'.
94642
94643 2000-06-28  Jim Meyering  <meyering@lucent.com>
94644
94645         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94646         included by quotearg.c, for which we perform this test.  From
94647         Bruno Haible.
94648
94649 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94650
94651         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94652         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94653         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94654
94655 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94656
94657         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94658
94659 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94660
94661         savedir now sets errno on failure and invokes xmalloc to get memory.
94662         Fix a couple of other minor bugs while we're at it.
94663
94664         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94665         (NAMLEN): Remove macro.
94666         (malloc, realloc): Remove decls.
94667         (stpcpy): Likewise.
94668         ("xalloc.h"): Include.
94669         (NAME_SIZE_DEFAULT): New macro.
94670         (savedir): Use xmalloc / xrealloc to allocate memory.
94671         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94672         Skip "" directory entries.
94673         Use strlen to calculate directory entry length, since the old method
94674         is rarely used these days and isn't worth supporting.
94675         Don't use a pointer after freeing it.
94676         Check for integer overflow when calculating allocation size.
94677         Use memcpy to copy entries, instead of stpcpy.
94678         Set errno properly when returning NULL.
94679         Check for readdir error.
94680
94681 2000-06-26  Jim Meyering  <meyering@lucent.com>
94682
94683         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94684
94685 2000-06-25  Jim Meyering  <meyering@lucent.com>
94686
94687         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94688         Linux header bug when _XOPEN_SOURCE is defined to 500.
94689
94690 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94691
94692         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94693         deficiency.
94694
94695 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94696
94697         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94698         Include xalloc.h.
94699         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94700
94701 2000-06-24  Jim Meyering  <meyering@lucent.com>
94702
94703         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94704         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94705         for which strerror does return char*, but which lacks a conveniently
94706         accessible declaration of the function.  If the compile-test says
94707         strerror_r doesn't work, then resort to a `run'-test that works on
94708         BeOS and segfaults on DEC Unix.
94709
94710 2000-06-24  Jim Meyering  <meyering@lucent.com>
94711
94712         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94713
94714 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94715
94716         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94717         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94718
94719 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94720
94721         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94722         (mbrtowc, mbstate_t): Define substitutes if
94723         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94724         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94725         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94726
94727 2000-06-23  Jim Meyering  <meyering@lucent.com>
94728
94729         * m4/afs.m4: Add missing AC_MSG_RESULT.
94730         Reported by Bruno Haible.
94731
94732         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94733         Suggestion from Bruno Haible.
94734
94735 2000-06-23  Jim Meyering  <meyering@lucent.com>
94736
94737         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94738
94739 2000-06-21  Jim Meyering  <meyering@lucent.com>
94740
94741         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94742
94743 2000-06-21  Jim Meyering  <meyering@lucent.com>
94744
94745         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94746         (noinst_HEADERS): Add getstr.h.
94747
94748         * lib/getline.c (getstr): Move into a separate file.
94749         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94750         the following changes: new parameter, delim2; both delim[12]
94751         parameters have type `int', not `char'.  The latter would lose
94752         with 8-bit delimiters.
94753         * lib/getstr.h: New file.
94754
94755 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94756
94757         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94758         than 1024, return a memory chunk of least possible size, instead
94759         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94760         Use free/xmalloc instead of xrealloc to avoid copying for very long
94761         paths.
94762
94763 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94764
94765         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94766         the empty string.
94767
94768 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94769
94770         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94771         address, not strdup.  Include <stdlib.h> and don't declare free().
94772
94773 2000-06-19  Jim Meyering  <meyering@lucent.com>
94774
94775         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94776
94777 2000-06-18  Jim Meyering  <meyering@lucent.com>
94778
94779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94780
94781         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94782         `checking whether...' message to be consistent with that of the
94783         lstat test.
94784
94785 2000-06-18  Jim Meyering  <meyering@lucent.com>
94786
94787         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94788         Besides, these days every porting target provides a mkdir function.
94789
94790         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94791         needed. (this snippet comes from src/system.h).
94792
94793 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94794
94795         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94796
94797 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94798
94799         * lib/human.c (adjust_value): New function.
94800         (human_readable_inexact): Apply rounding style even when
94801         printing approximate values.
94802
94803 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94804
94805         * lib/human.c (human_readable_inexact): Allow an input block
94806         size that is not a multiple of the output block size, and vice versa.
94807         Reported by Piergiorgio Sartor.
94808
94809 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94810
94811         * lib/getdate.y (get_date): Apply relative times after time
94812         zone indicator, not before.  Reported by Todd A. Jacobs.
94813
94814 2000-06-13  Jim Meyering  <meyering@lucent.com>
94815
94816         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94817
94818         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94819
94820 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94821
94822         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94823
94824 2000-06-12  Jim Meyering  <meyering@lucent.com>
94825
94826         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94827         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94828         optional argument.
94829         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94830         the optional argument, `lib'.
94831
94832 2000-06-08  Jim Meyering  <meyering@lucent.com>
94833
94834         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94835
94836 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94837
94838         Rewrite largefile configuration so that we don't need to run
94839         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94840         AC_CANONICAL_HOST in configure.in -- jmm]
94841
94842         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94843         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94844         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94845         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94846         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94847         All uses changed.
94848         Instead of inspecting the output of getconf, try to compile the
94849         test program without and with the macro definition.
94850         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94851         for getconf.  Instead, check for the needed flags by compiling
94852         test programs.
94853
94854 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94855
94856         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94857
94858 2000-06-04  Jim Meyering  <meyering@lucent.com>
94859
94860         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94861         SunOS 4.1.4 for which gid_t is an unsigned type.
94862
94863 2000-06-03  Jim Meyering  <meyering@lucent.com>
94864
94865         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94866         now that autoconf requires that.
94867
94868         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94869         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94870         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94871
94872 2000-06-03  Jim Meyering  <meyering@lucent.com>
94873
94874         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94875
94876 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94877
94878         * m4/glibc21.m4: New file.
94879         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94880
94881 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94882
94883         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94884         newer, don't install charset.alias.
94885         * lib/config.charset: Change the Linux/glibc rules so they become empty
94886         on glibc-2.1 or newer.
94887
94888 2000-06-02  Jim Meyering  <meyering@lucent.com>
94889
94890         * lib/mountlist.c: Back out last change.  Instead, do this...
94891         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94892         me_dummy member using the same `ignore'-testing code.
94893         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94894         fs_type strings.
94895         From Mark D. Roth.
94896
94897 2000-05-29  Jim Meyering  <meyering@lucent.com>
94898
94899         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94900         mounts with the `ignore' attribute.  Based on a patch from
94901         Mark D. Roth.
94902
94903 2000-05-28  Jim Meyering  <meyering@lucent.com>
94904
94905         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94906         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94907         * m4/stat.m4: Likewise.
94908         * m4/lstat.m4: Likewise.
94909         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94910
94911         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94912         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94913
94914 2000-05-26  Jim Meyering  <meyering@lucent.com>
94915
94916         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94917
94918 2000-05-24  Jim Meyering  <meyering@lucent.com>
94919
94920         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94921         autoconf requires that.
94922         * m4/lib-check.m4: Likewise.
94923         * m4/jm-macros.m4: Likewise.
94924         * m4/strftime.m4: Likewise.
94925
94926         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94927         AC_CHECK_DECLS, now that autoconf requires that.
94928
94929 2000-05-22  Jim Meyering  <meyering@lucent.com>
94930
94931         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94932         * m4/lstat.m4: Likewise.
94933
94934 2000-05-22  Jim Meyering  <meyering@lucent.com>
94935
94936         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94937
94938 2000-05-20  Jim Meyering  <meyering@lucent.com>
94939
94940         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94941         (jm_PREREQ): Use it.
94942
94943 2000-05-18  Jim Meyering  <meyering@lucent.com>
94944
94945         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94946         back, too, since it may have been modified by allocate_entry.
94947         (hash_delete): Rewrite to use neither the assignment operator
94948         nor the comma operator in an if-expression.
94949
94950 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94951
94952         * lib/closeout.c:
94953         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94954         Remove; no longer needed.
94955         "quotearg.h": Add include.
94956         (file_name): Do not bother to explicitly initialize to NULL; it's less
94957         efficient on some hosts.
94958         (close_stdout_status): Remove test as to whether stdout was already
94959         closed; it breaks for the case "echo x | sort >&-".
94960         Quote file name colons.
94961         Do not assume that _("write error") lacks format strings.
94962
94963 2000-05-15  Jim Meyering  <meyering@lucent.com>
94964
94965         * lib/version-etc.c (version_etc_copyright): Update the copyright
94966         string used in all --version output.
94967
94968 2000-05-14  Jim Meyering  <meyering@lucent.com>
94969
94970         * lib/closeout.c (close_stdout_set_file_name): New function.
94971         (close_stdout_status): Use new file-scoped global.
94972         Return right away if fstat says the stdout file descriptor is invalid.
94973         * lib/closeout.h (close_stdout_set_file_name): Declare.
94974
94975 2000-05-10  Jim Meyering  <meyering@lucent.com>
94976
94977         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94978         (close_stdout_set_status): New function.
94979         * lib/closeout.h (close_stdout_set_status): Declare.
94980
94981 2000-05-09  Jim Meyering  <meyering@lucent.com>
94982
94983         * m4/gettext.m4: Rename this...
94984         * m4/libintl.m4: ...to this.
94985
94986 2000-05-08  Jim Meyering  <meyering@lucent.com>
94987
94988         * lib/long-options.c: Don't include closeout.h.
94989         (parse_long_options): Don't call close_stdout for --version.
94990
94991 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94992
94993         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94994         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94995         2.1.3 bug.  This avoids a clash when files like regex.c define
94996         _GNU_SOURCE.
94997
94998 2000-05-06  Jim Meyering  <meyering@lucent.com>
94999
95000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95001         (AC_REPLACE_FUNCS): Add strnlen.
95002
95003         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95004         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95005
95006         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95007         AC_SEARCH_LIBS call for nanosleep.
95008         (LIB_NANOSLEEP): Set and AC_SUBST.
95009
95010 2000-05-06  Jim Meyering  <meyering@lucent.com>
95011
95012         * lib/strnlen.c: Undefine __strnlen and strnlen.
95013         [!weak_alias]: Define __strnlen to strnlen.
95014
95015         * lib/atexit.c: New file, from libiberty.
95016
95017 2000-05-06  Jim Meyering  <meyering@lucent.com>
95018
95019         * lib/closeout.c (close_stdout_status): Also check for errors on the
95020         stderr stream.
95021
95022 2000-05-05  Jim Meyering  <meyering@lucent.com>
95023
95024         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95025         AC_SEARCH_LIBS call for clock_gettime.
95026         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95027
95028         * m4/search-libs.m4: Update from autoconf.
95029
95030         su doesn't work on Solaris 2.6.
95031         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95032         <shadow.h>.  Reported by Dragos Harabor.
95033
95034 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95035
95036         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95037         memcpy instead of xmalloc, xrealloc, path_concat.
95038         (locale_charset): Treat empty environment variables as absent.
95039         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95040
95041 2000-05-04  Jim Meyering  <meyering@lucent.com>
95042
95043         * lib/getopt.c: Update from glibc.
95044         * lib/obstack.c: Likewise.
95045         * lib/obstack.h: Likewise.
95046         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95047         file
95048
95049         * lib/regex.h: Likewise.
95050         * lib/strndup.c: Likewise.
95051         * lib/strnlen.c: New file, from glibc.
95052
95053 2000-05-03  Jim Meyering  <meyering@lucent.com>
95054
95055         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95056
95057 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95058
95059         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95060         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95061         compile-time test, rather than inspecting host and OS, to
95062         decide whether to define _LARGEFILE_SOURCE.
95063
95064 2000-05-01  Jim Meyering  <meyering@lucent.com>
95065
95066         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95067
95068         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95069         Based on a patch from Bruno Haible.
95070
95071 2000-05-01  Jim Meyering  <meyering@lucent.com>
95072
95073         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95074
95075 2000-04-29  Jim Meyering  <meyering@lucent.com>
95076
95077         * lib/path-concat.c: Declare strdup only if it's not defined.
95078         * lib/canon-host.c: Likewise.
95079
95080 2000-04-28  Jim Meyering  <meyering@lucent.com>
95081
95082         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95083         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95084         is included first, then limits.h is included by locale.h by libintl.h.
95085         From John David Anglin.
95086
95087 2000-04-25  Jim Meyering  <meyering@lucent.com>
95088
95089         * lib/makepath.c (S_IRWXUGO): Define.
95090         (make_path): Always perform explicit chmod if MODE specifies any
95091         of the `special' permission bits.  Prompted by a bug report against
95092         install from Mate Wierdl and Joost van Baal.
95093
95094 2000-04-18  Jim Meyering  <meyering@lucent.com>
95095
95096         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95097         (jm_PREREQ): Use it.
95098
95099 2000-04-18  Jim Meyering  <meyering@lucent.com>
95100
95101         * lib/README: New file.
95102
95103         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95104         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95105
95106 2000-04-17  Jim Meyering  <meyering@lucent.com>
95107
95108         Get it right :-)
95109         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95110         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95111         Suggestion from Akim Demaille.
95112
95113 2000-04-17  Jim Meyering  <meyering@lucent.com>
95114
95115         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95116         the definition of it to rpl_strftime also defined-away the system's
95117         declaration.
95118
95119 2000-04-15  Jim Meyering  <meyering@lucent.com>
95120
95121         Use `C' to denote so-called `contiguous' files, the same way
95122         that tar does.
95123         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95124         (ftypelet): Use S_ISCTG.
95125         From Michael Deutschmann.
95126
95127 2000-04-14  Jim Meyering  <meyering@lucent.com>
95128
95129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95130         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95131         clobbered.
95132
95133 2000-04-14  Jim Meyering  <meyering@lucent.com>
95134
95135         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95136
95137 2000-04-13  Jim Meyering  <meyering@lucent.com>
95138
95139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95140         AH_VERBATIM to insert required #ifndef into config.h.in.
95141         Suggestion from Akim Demaille.
95142
95143 2000-04-12  Jim Meyering  <meyering@lucent.com>
95144
95145         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95146         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95147         Christian Krackowizer.
95148
95149         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95150         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95151         (AC_SYS_LARGEFILE): Require.
95152         (AM_C_PROTOTYPES): Require.
95153
95154 2000-04-08  Jim Meyering  <meyering@lucent.com>
95155
95156         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95157         names don't conflict.  Reported by Eli Zaretskii.
95158
95159 2000-04-07  Jim Meyering  <meyering@lucent.com>
95160
95161         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95162         sys/types.h, to work around system header problems on AIX 3.2.5.
95163         From Bruno Haible.
95164
95165 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95166
95167         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95168         bug.  Deal with the different error behavior of Irix iconv.
95169
95170 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95171
95172         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95173         IRIX if the installer said otherwise.
95174
95175 2000-04-05  Jim Meyering  <meyering@lucent.com>
95176
95177         Portability tweaks required for ultrix4.3.
95178         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95179         (jm_CHECK_DECLS): Add getutent to the list of functions.
95180         (_jm_DECL_HEADERS): Add utmpx.h.
95181         From John David Anglin.
95182
95183         * m4/strftime.m4: Back out the 2000-04-02 change.
95184         Instead of that change, simply undefine putenv in the test program.
95185
95186 2000-04-05  Jim Meyering  <meyering@lucent.com>
95187
95188         Portability tweaks required for ultrix4.3.
95189         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95190         getutent.
95191         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95192         * lib/canon-host.c: Declare strdup.
95193         * lib/path-concat.c: Likewise.
95194         From John David Anglin.
95195
95196 2000-04-04  Jim Meyering  <meyering@lucent.com>
95197
95198         Be more DOS 8.3-friendly.
95199         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95200         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95201         * lib/Makefile.am: Reflect renaming.
95202         Reported by Eli Zaretskii.
95203
95204         Use a temporary file name that won't clash with `charset.alias'
95205         in the DOS 8.3 name space.
95206         * lib/Makefile.am (charset_tmp): Define.
95207         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95208         (uninstall-local): Likewise.
95209         Reported by Eli Zaretskii.
95210
95211 2000-04-03  Jim Meyering  <meyering@lucent.com>
95212
95213         * m4/gettext.m4: Fix typo in comment.
95214
95215         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95216         textutils/configure.in).  Suggestion from Paul Eggert.
95217         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95218
95219 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95220
95221         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95222         variable in the shell rather than using putenv, which isn't
95223         portable.  This avoids the configure-time inter-test dependency
95224         on the potentially-renamed putenv function.
95225
95226 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95227
95228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95229         before checking struct stat.st_blksize, so that
95230         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95231
95232 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95233
95234         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95235         since strftime.c uses HAVE_STRFTIME to decide whether to use
95236         the underlying strftime.
95237
95238 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95239
95240         * lib/time/strftime.c (my_strftime): Make sure we call the system
95241         strftime, not ourselves, when invoking the underlying strftime.
95242
95243 2000-03-24  Jim Meyering  <meyering@lucent.com>
95244
95245         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95246         (charset_alias): Define.
95247         (install-exec-local): Factor out common code.
95248         (uninstall-local): Split lines longer than 80.
95249         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95250         (SUFFIXES): Define.
95251         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95252         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95253
95254 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95255
95256         * lib/config.charset: Output a line containing "Packages using this
95257         file".
95258         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95259         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95260         ref-del.sed): New rules.
95261
95262 2000-03-17  Jim Meyering  <meyering@lucent.com>
95263
95264         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95265         Otherwise, include <strings.h>
95266
95267 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95268
95269         * lib/unicodeio.c (utf8_wctomb): New function.
95270         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95271         format instead of in UCS-4 with platform dependent endianness.
95272
95273 2000-03-10  Jim Meyering  <meyering@lucent.com>
95274
95275         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95276         From Marco Franzen.
95277
95278 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95279
95280         * lib/savedir.c (savedir): Work even if directory size is
95281         negative; this can happen with some screwy NFS configurations.
95282
95283 2000-03-06  Jim Meyering  <meyering@lucent.com>
95284
95285         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95286         if it's NULL (because we ran out of memory).  From Bruno Haible.
95287
95288 2000-03-05  Jim Meyering  <meyering@lucent.com>
95289
95290         * lib/localcharset.c ("path-concat.h"): Include.
95291         (get_charset_aliases): Use path_concat instead of ANSI string
95292         concatenation.
95293
95294         * lib/unicodeio.h (PARAMS): Define.
95295         Use it to guard prototype.
95296
95297 2000-03-04  Jim Meyering  <meyering@lucent.com>
95298
95299         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95300         for lib/localcharset.c.
95301
95302 2000-03-04  Jim Meyering  <meyering@lucent.com>
95303
95304         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95305         installing into it.
95306         (uninstall-local): Uncomment this rule so `make distcheck' works
95307         once again.
95308
95309         * lib/unicodeio.c (<errno.h>): Include it.
95310         (errno): Declare if not defined.
95311
95312         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95313
95314         * lib/config.charset: New version, incorporating remarks from a linux
95315         i18n mailing list.  From Bruno Haible.
95316
95317 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95318
95319         * m4/codeset.m4: New file.
95320         * m4/iconv.m4: New file.
95321         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95322
95323 2000-03-03  Jim Meyering  <meyering@lucent.com>
95324
95325         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95326
95327 2000-03-02  Jim Meyering  <meyering@lucent.com>
95328
95329         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95330         the messages come out on separate lines.
95331
95332         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95333         rather than jm_CHECK_DECLARATIONS.
95334         * m4/decl.m4: Remove now-unused file.
95335
95336         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95337         geteuid.
95338
95339 2000-03-02  Jim Meyering  <meyering@lucent.com>
95340
95341         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95342
95343 2000-03-01  Jim Meyering  <meyering@lucent.com>
95344
95345         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95346         * lib/unicodeio.c: Likewise.
95347
95348 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95349
95350         * lib/config.charset: New file.
95351         * lib/localcharset.c: New file.
95352         * lib/unicodeio.h, lib/unicodeio.c: New files.
95353         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95354         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95355         (noinst_HEADERS): Add unicodeio.h.
95356         (all-local, install-exec-local, charset.alias): New targets.
95357
95358 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95359
95360         * lib/quotearg.c (ALERT_CHAR): New macro.
95361         (quotearg_buffer_restyled): Use it.
95362
95363 2000-02-27  Jim Meyering  <meyering@lucent.com>
95364
95365         * m4/check-decl.m4: Add getenv to the list.
95366
95367 2000-02-27  Jim Meyering  <meyering@lucent.com>
95368
95369         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95370         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95371
95372         * lib/backupfile.c: Guard inclusion of stdlib.h with
95373         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95374         Declare malloc if needed.
95375
95376         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95377         `#ifndef HAVE_DECL..'
95378         now that autoconf always defines the HAVE_DECL_ symbols.
95379         * lib/human.c: Likewise.
95380         * lib/same.c: Likewise.
95381         * lib/strtoumax.c: Likewise.
95382
95383         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95384         declaration check was not run.
95385         * lib/hash.c: Likewise.
95386         * lib/human.c: Likewise.
95387         * lib/same.c: Likewise.
95388         * lib/strtoumax.c: Likewise.
95389
95390         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95391         `.', then first look up the entire `.'-containing string as a login
95392         name.
95393
95394 2000-02-23  Jim Meyering  <meyering@lucent.com>
95395
95396         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95397         in place of my hack.
95398
95399 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95400
95401         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95402         (textint): New typedef.
95403         (parser_control): Member year changed from int to textint.
95404         All uses changed.
95405         (YYSTYPE): Removed; replaced by %union with int and textint members.
95406         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95407         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95408         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95409         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95410         (date, number, to_year): Use width of number in digits, not its value,
95411         to determine whether it's a 2-digit year, or a 2-digit time.
95412         (yylex): Store number of digits of numeric tokens.
95413         Reported by John Kendall.
95414
95415         (parser_control): Changed from struct parser_control to typedef (for
95416         consistency).  All uses changed.
95417
95418         (tID): Removed; not used.
95419         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95420
95421 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95422
95423         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95424         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95425
95426 2000-02-12  Jim Meyering  <meyering@lucent.com>
95427
95428         * lib/userspec.c (ISDIGIT): Define it.
95429         (isdigit): Remove definition.
95430         (is_number): Use ISDIGIT, not isdigit.
95431         <libintl.h>: Include.
95432         (_ and N_): Define.
95433         (parse_user_spec): Mark translatable strings.
95434
95435 2000-02-10  Jim Meyering  <meyering@lucent.com>
95436
95437         With these changes, nanosleep.[ch] are finally enough like the other
95438         lib/* replacement files to compile on a few more losing systems.
95439
95440         * lib/nanosleep.h: Don't include config.h.
95441         Remove prototype from declaration of nanosleep.
95442         (PARAMS): Remove now-unneeded definition.
95443         * lib/nanosleep.c: #undef nanosleep.
95444         (rpl_nanosleep): Rename from nanosleep.
95445
95446 2000-02-10  Jim Meyering  <meyering@lucent.com>
95447
95448         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95449         gnu_nanosleep to rpl_nanosleep.
95450
95451 2000-02-09  Jim Meyering  <meyering@lucent.com>
95452
95453         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95454         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95455
95456 2000-02-08  Akim Demaille  <akim@epita.fr>
95457
95458         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95459         `[' and `]' and remove uses of `changequote'.
95460         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95461         (AC_SYS_LARGEFILE): Likewise.
95462         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95463         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95464         of changequote.
95465         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95466         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95467         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95468         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95469
95470 2000-02-05  Jim Meyering  <meyering@lucent.com>
95471
95472         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95473         Remove explicit use of AC_HEADER_TIME.  It is required by
95474         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95475         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95476         in autoconf whereby the expansion of the latter ended up preceding
95477         the expansion of its prerequisite, AC_HEADER_TIME.
95478         Reported by Volker Borchert.
95479
95480 2000-02-03  Jim Meyering  <meyering@lucent.com>
95481
95482         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95483
95484 2000-02-03  Jim Meyering  <meyering@lucent.com>
95485
95486         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95487         rather than with `#if HAVE_UTMPNAME'.
95488
95489 2000-02-02  Jim Meyering  <meyering@lucent.com>
95490
95491         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95492         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95493         Reported by Eli Zaretskii.
95494
95495 2000-02-01  Jim Meyering  <meyering@lucent.com>
95496
95497         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95498
95499 2000-01-31  Jim Meyering  <meyering@lucent.com>
95500
95501         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95502         functions.  Add the time.h and sys/time.h headers along with the
95503         AC_REQUIRE'ment of AC_HEADER_TIME.
95504
95505 2000-01-31  Jim Meyering  <meyering@lucent.com>
95506
95507         * lib/nanosleep.h (nanosleep): Guard declaration with
95508         `#if ! HAVE_DECL_NANOSLEEP'.
95509         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95510         the declaration in that vendor's sys/timers.h.
95511         Reported by Christian Krackowizer.
95512
95513         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95514         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95515         (ISPRINT): Likewise.
95516         Reported by Tom Tromey.
95517
95518 2000-01-30  Jim Meyering  <meyering@lucent.com>
95519
95520         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95521
95522         * m4/prereq.m4 (utmp_includes): Define.
95523         Check for ut_user and ut_name members in both struct utmpx
95524         and struct utmp.
95525
95526 2000-01-30  Jim Meyering  <meyering@lucent.com>
95527
95528         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95529         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95530         header files where only utmpx.ut_user is declared.
95531
95532         * lib/readutmp.h (UT_USER): Define.
95533
95534 2000-01-29  Jim Meyering  <meyering@lucent.com>
95535
95536         * m4/lib-check.m4: New file containing library-related checks from
95537         fileutils and sh-utils (textutils had none).
95538
95539 2000-01-28  Jim Meyering  <meyering@lucent.com>
95540
95541         * m4/perl.m4: Change format of warning message to look more like that
95542         from the missing script.  Suggestion from François Pinard.
95543
95544 2000-01-25  Jim Meyering  <meyering@lucent.com>
95545
95546         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95547         well as time.h in the compile check.
95548         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95549         Fix typo in cross-compiling case: s/yes/no/.
95550
95551 2000-01-23  Jim Meyering  <meyering@lucent.com>
95552
95553         * m4/jm-macros.m4: Move df-related tests here from
95554         fileutils/configure.in
95555
95556         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95557         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95558
95559         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95560         s/space/ac_fsusage_space/.
95561         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95562
95563         * m4/ftruncate.m4: New file (derived from part of
95564         fileutils/configure.in).
95565         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95566         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95567
95568         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95569         AC_SUBST these here, rather than just in sh-util/configure.in, so
95570         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95571         all the same.
95572         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95573         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95574         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95575         (AC_SUBST(POW_LIBM)): Likewise.
95576         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95577
95578 2000-01-23  Jim Meyering  <meyering@lucent.com>
95579
95580         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95581         obstack.c.
95582
95583 2000-01-22  Jim Meyering  <meyering@lucent.com>
95584
95585         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95586
95587         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95588
95589         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95590         configure.in
95591         (AC_CHECK_HEADERS): Likewise for sh-utils.
95592         (AC_CHECK_HEADERS): Likewise for textutils.
95593         Merge the three lists of headers.
95594
95595         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95596         from fileutils' configure.in.
95597
95598         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95599         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95600         check-decl.m4.
95601
95602         * m4/check-decl.m4: Use #if rather than #ifdef.
95603         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95604         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95605         (_jm_DECL_HEADERS): Define new function.
95606         (jm_CHECK_DECLARATIONS): Require it.
95607
95608 2000-01-22  Jim Meyering  <meyering@lucent.com>
95609
95610         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95611         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95612         Required for some AIX systems.  Reported by Christian Krackowizer.
95613         [TESTING] (main): New function.
95614
95615         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95616         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95617         letters.
95618
95619         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95620         iswprint.
95621
95622         * lib/strverscmp.c (ISDIGIT): Define.
95623         (strverscmp): Use ISDIGIT, not isdigit.
95624
95625 2000-01-19  Jim Meyering  <meyering@lucent.com>
95626
95627         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95628         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95629         defines `struct timespec' in <sys/time.h>
95630
95631         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95632         Thanks to Akim for explaining.
95633
95634 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95635
95636         * lib/nanosleep.c (nanosleep):
95637         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95638         POSIX.1 doesn't require SA_INTERRUPT and some systems
95639         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95640         it's been part of POSIX.1 since day 1 (in 1988).
95641
95642 2000-01-17  Jim Meyering  <meyering@lucent.com>
95643
95644         * lib/interlock: Remove unused file.  Reported by François Pinard.
95645
95646 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95647
95648         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95649         alert, backslash, formfeed, and vertical tab unnecessarily in
95650         shell quoting style.
95651
95652 2000-01-16  Jim Meyering  <meyering@lucent.com>
95653
95654         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95655         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95656         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95657         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95658
95659 2000-01-16  Jim Meyering  <meyering@lucent.com>
95660
95661         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95662         because the latter didn't work.
95663
95664 2000-01-15  Jim Meyering  <meyering@lucent.com>
95665
95666         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95667         (AC_REPLACE_FUNCS): Add memcpy and memset.
95668         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95669         Add strpbrk.
95670         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95671
95672 2000-01-12  Jim Meyering  <meyering@lucent.com>
95673
95674         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95675         (jm_PREREQ): Use it.
95676         (jm_PREREQ_READUTMP): New macro.
95677         (jm_PREREQ): Use it.
95678
95679 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95680
95681         Quote multibyte characters correctly.
95682         * m4/c-bs-a.m4: New file.
95683         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95684         (jm_PREREQ): Use it.
95685
95686 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95687
95688         * m4/uintmax_t.m4: Port to autoconf 2.13.
95689
95690 2000-01-08  Jim Meyering  <meyering@ascend.com>
95691
95692         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95693         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95694
95695 2000-01-04  Jim Meyering  <meyering@ascend.com>
95696
95697         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95698         jm_STRUCT_DIRENT_D_TYPE.
95699         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95700         jm_STRUCT_DIRENT_D_INO.
95701         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95702         jm_STRUCT_UTIMBUF.
95703         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95704         renamings.
95705         * m4/utime.m4: Likewise.
95706
95707         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95708         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95709
95710 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95711
95712         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95713         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95714
95715 2000-01-02  Jim Meyering  <meyering@ascend.com>
95716
95717         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95718         remember if this is necessary.
95719
95720 1999-12-26  Jim Meyering  <meyering@ascend.com>
95721
95722         * m4/jm-macros.m4: Use it here.
95723         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95724
95725 1999-12-23  Jim Meyering  <meyering@ascend.com>
95726
95727         * m4/jm-macros.m4: Check for clock_gettime (moved from
95728         fileutils/configure.in)
95729         Check for gettimeofday.
95730
95731 1999-12-20  Jim Meyering  <meyering@ascend.com>
95732
95733         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95734         autoconf-2.14a-1999-12-20.
95735
95736 1999-12-19  Jim Meyering  <meyering@ascend.com>
95737
95738         * m4/lstat-slash.m4: New file.
95739         * m4/jm-macros.m4: Use the new macro:
95740         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95741
95742 1999-12-07  Jim Meyering  <meyering@ascend.com>
95743
95744         * m4/perl.m4: Require that File::Compare be available, too.
95745         Too many systems seem to lack it.
95746
95747         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95748         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95749
95750 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95751
95752         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95753         problem with the QNX 4.25 shell, which doesn't propagate exit
95754         status of failed commands inside shell assignments.
95755
95756 1999-11-17  Jim Meyering  <meyering@ascend.com>
95757
95758         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95759
95760 1999-11-07  Jim Meyering  <meyering@ascend.com>
95761
95762         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95763
95764 1999-11-06  Jim Meyering  <meyering@ascend.com>
95765
95766         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95767         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95768
95769 1999-11-05  Jim Meyering  <meyering@ascend.com>
95770
95771         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95772         configure.in of textutils, fileutils, and sh-utils into this one
95773         (shared between those packages) file.
95774         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95775         AC_STRUCT_ST_BLKSIZE.
95776
95777 1999-11-03  Jim Meyering  <meyering@ascend.com>
95778
95779         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95780         of AC_CHECK_TYPE checks includes unistd.h.
95781         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95782         Suggestion from Akim Demaille.
95783
95784 1999-10-30  Jim Meyering  <meyering@ascend.com>
95785
95786         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95787         m4-quoted string.
95788         * m4/ls-mntd-fs.m4: Likewise.
95789         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95790         * m4/jm-winsz1.m4: Likewise.
95791
95792         * m4/const.m4: Remove file, since the fix made it into the experimental
95793         version of autoconf.
95794         * m4/mktime.m4: Likewise.
95795
95796         * m4/check-type.m4: Remove file, now that the latest version of
95797         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95798
95799         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95800         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95801         AC_CHECK_TYPE.
95802
95803 1999-10-04  Jim Meyering  <meyering@ascend.com>
95804
95805         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95806
95807 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95808
95809         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95810         2.95.1 bug with HP-UX 10.20.
95811
95812 1999-09-17  Jim Meyering  <meyering@ascend.com>
95813
95814         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95815         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95816         due to missing strdup (against sh-utils-2.0).
95817
95818 1999-08-29  Jim Meyering  <meyering@ascend.com>
95819
95820         * m4/jm-macros.m4: Require jm_BISON.
95821         * m4/bison.m4: New file.
95822
95823 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95824
95825         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95826         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95827
95828 1999-08-05  Jim Meyering  <meyering@ascend.com>
95829
95830         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95831         to avoid conflicts with `conftest' on 8+3 filesystems.
95832         Suggestion from Eli Zaretskii.
95833
95834 1999-08-04  Jim Meyering  <meyering@ascend.com>
95835
95836         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95837         fileutils and sh-utils (textutils's getline test was inadequate).
95838         (AM_FUNC_GETLINE): Run this test.
95839         (AC_CHECK_FUNCS): Check for getdelim.
95840         Reported by Bob Proulx.
95841
95842 1999-08-02  Jim Meyering  <meyering@ascend.com>
95843
95844         * m4/jm-macros.m4: Add a comment.
95845
95846 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95847
95848         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95849         <inttypes.h> defines strtoumax as a macro (and not as a
95850         function).
95851
95852 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95853
95854         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95855         that we can shift, multiply and divide unsigned long long
95856         values; Ultrix cc can't do it.
95857
95858 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95859
95860         * m4/mktime.m4: New file, which is a preview of what should appear
95861         in the next public autoconf release.
95862
95863 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95864
95865         * m4/lfs.m4: Remove this file.
95866         * m4/largefile.m4: New file.  It contains the old contents of
95867         lfs.m4, except that all names with prefix AC_LFS have been
95868         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95869         compatible with future autoconf versions.  Also, some minor m4
95870         quoting problems have been fixed.
95871
95872 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95873
95874         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95875         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95876         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95877         and simplify the shell code.
95878
95879 1999-08-01  Jim Meyering  <meyering@ascend.com>
95880
95881         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95882         m4.
95883
95884 1999-07-20  Jim Meyering  <meyering@ascend.com>
95885
95886         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95887
95888 1999-07-15  Jim Meyering  <meyering@ascend.com>
95889
95890         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95891
95892 1999-05-22  Jim Meyering  <meyering@ascend.com>
95893
95894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95895
95896 1999-05-20  Jim Meyering  <meyering@ascend.com>
95897
95898         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95899         Add a colon after each `then' in case $4 is empty.
95900
95901 1999-05-16  Jim Meyering  <meyering@ascend.com>
95902
95903         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95904
95905 1999-05-10  Jim Meyering  <meyering@ascend.com>
95906
95907         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95908
95909         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95910         AC_FUNC_MKTIME.
95911
95912 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95913
95914         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95915
95916 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95917
95918         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95919         not CPPFLAGS, so that linking works correctly in IRIX.
95920
95921 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95922
95923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95924
95925 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95926
95927         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95928         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95929         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95930         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95931         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95932
95933         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95934
95935 1999-04-20  Jim Meyering  <meyering@ascend.com>
95936
95937         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95938         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95939         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95940
95941 1999-04-18  Jim Meyering  <meyering@ascend.com>
95942
95943         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95944         * m4/jm-macros.m4: Use it.
95945
95946 1999-04-06  Jim Meyering  <meyering@ascend.com>
95947
95948         * m4/strftime.m4: Remove test for %f.
95949
95950 1999-03-29  Jim Meyering  <meyering@ascend.com>
95951
95952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95953         superset of the AC_TYPE_* checks in the textutils, fileutils,
95954         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95955         AC_TYPE_PID_T.
95956
95957 1999-03-28  Jim Meyering  <meyering@ascend.com>
95958
95959         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95960         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95961         replaced e.g., in the *.sh files of the sh-utils.
95962
95963 1999-03-20  Jim Meyering  <meyering@ascend.com>
95964
95965         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95966         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95967         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95968
95969 1999-03-19  Jim Meyering  <meyering@ascend.com>
95970
95971         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95972
95973 1999-03-12  Jim Meyering  <meyering@ascend.com>
95974
95975         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95976
95977 1999-03-07  Jim Meyering  <meyering@ascend.com>
95978
95979         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95980         declared.
95981
95982 1999-02-17  Jim Meyering  <meyering@ascend.com>
95983
95984         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95985         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95986
95987 1999-02-07  Jim Meyering  <meyering@ascend.com>
95988
95989         * m4/group-member.m4: New file -- extracted from sh-utils'
95990         configure.in.
95991
95992         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95993         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95994
95995 1999-02-06  Jim Meyering  <meyering@ascend.com>
95996
95997         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95998         * m4/fnmatch.m4: Likewise.
95999         * m4/getgroups.m4: Likewise.
96000         * m4/lstat.m4: Likewise.
96001         * m4/malloc.m4: Likewise.
96002         * m4/putenv.m4: Likewise.
96003         * m4/realloc.m4: Likewise.
96004         * m4/regex.m4: Likewise.
96005         * m4/stat.m4: Likewise.
96006         * m4/strftime.m4: Likewise.
96007         Suggestion from Alain Magloire.
96008
96009         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96010         * m4/fnmatch.m4: Likewise.
96011         * m4/getgroups.m4: Likewise.
96012         * m4/getline.m4: Likewise.
96013         * m4/lstat.m4: Likewise.
96014         * m4/malloc.m4: Likewise.
96015         * m4/memcmp.m4: Likewise.
96016         * m4/putenv.m4: Likewise.
96017         * m4/realloc.m4: Likewise.
96018         * m4/regex.m4: Likewise.
96019         * m4/stat.m4: Likewise.
96020         * m4/strftime.m4: Likewise.
96021         Suggestion from Alain Magloire.
96022
96023         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96024         an argument.
96025
96026         * m4/regex.m4: Add a run-time Test for proper operation of
96027         re_compile_pattern.
96028
96029 1999-01-31  Jim Meyering  <meyering@ascend.com>
96030
96031         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96032
96033 1999-01-30  Jim Meyering  <meyering@ascend.com>
96034
96035         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96036
96037         * m4/jm-mktime.m4: Make this a wrapper around the official
96038         AM_FUNC_MKTIME rather than my private copy, now that the official one
96039         is up to date.
96040         * m4/mktime.m4: Remove file.
96041
96042         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96043         * m4/uptime.m4: Likewise.
96044         * m4/uintmax_t.m4: Likewise.
96045
96046 1999-01-28  Jim Meyering  <meyering@ascend.com>
96047
96048         * m4/jm-macros.m4: Use jm_AFS.
96049         * m4/afs.m4: New file (from fileutils' configure.in).
96050
96051         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96052         * m4/chown.m4: Likewise.
96053         * m4/d-ino.m4: Likewise.
96054         * m4/d-type.m4: Likewise.
96055         * m4/fnmatch.m4: Likewise.
96056         * m4/getgroups.m4: Likewise.
96057         * m4/gettext.m4: Likewise.
96058         * m4/jm-mktime.m4: Likewise.
96059         * m4/jm-winsz2.m4: Likewise.
96060         * m4/lcmessage.m4: Likewise.
96061         * m4/ls-mntd-fs.m4: Likewise.
96062         * m4/malloc.m4: Likewise.
96063         * m4/memcmp.m4: Likewise.
96064         * m4/putenv.m4: Likewise.
96065         * m4/realloc.m4: Likewise.
96066         * m4/st_mtim.m4: Likewise.
96067         * m4/strftime.m4: Likewise.
96068
96069 1999-01-16  Jim Meyering  <meyering@ascend.com>
96070
96071         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96072         (ARGMATCH_DIE_DECL): Define.
96073
96074 1999-01-12  Jim Meyering  <meyering@ascend.com>
96075
96076         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96077         Reported by Lars Hecking.
96078
96079 1999-01-10  Jim Meyering  <meyering@ascend.com>
96080
96081         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96082         gross kludge.
96083         * m4/inttypes_h.m4: Likewise.
96084         * m4/lstat.m4: Likewise.
96085         * m4/malloc.m4: Likewise.
96086         * m4/readdir.m4: Likewise.
96087         * m4/realloc.m4: Likewise.
96088         * m4/st_dm_mode.m4: Likewise.
96089         * m4/stat.m4: Likewise.
96090         * m4/utimbuf.m4: Likewise.
96091         * m4/utimes.m4: Likewise.
96092
96093         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96094         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96095         comments in config.h.in are meaningful.
96096
96097         * m4/jm-macros.m4: Require autoconf-2.13 here.
96098
96099         * m4/regex.m4: By default, don't use the included regex.c on systems
96100         with glibc 2.  Suggestion from Uli Drepper.
96101
96102 1999-01-02  Jim Meyering  <meyering@ascend.com>
96103
96104         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96105
96106 1998-12-18  Jim Meyering  <meyering@ascend.com>
96107
96108         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96109         Based on a suggestion from Lars Hecking.
96110
96111 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96112
96113         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96114
96115 1998-11-16  Jim Meyering  <meyering@ascend.com>
96116
96117         * m4/lfs.m4: Double-quote the `uname...` expression.
96118
96119 1998-11-14  Jim Meyering  <meyering@ascend.com>
96120
96121         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96122         * m4/stat.m4: Likewise.
96123
96124 1998-11-03  Jim Meyering  <meyering@ascend.com>
96125
96126         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96127         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96128
96129 1998-10-18  Jim Meyering  <meyering@ascend.com>
96130
96131         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96132
96133 1998-10-17  Jim Meyering  <meyering@ascend.com>
96134
96135         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96136         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96137         calls for those previously hard-coded headers.  Instead, take a new
96138         parameter.
96139         (jm_CHECK_DECLARATIONS): Reflect interface change.
96140         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96141         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96142
96143         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96144
96145 1998-10-14  Jim Meyering  <meyering@ascend.com>
96146
96147         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96148         instead of "TZ=America/Vancouver".  From Paul Eggert.
96149
96150 1998-10-11  Jim Meyering  <meyering@ascend.com>
96151
96152         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96153         This adds a test for a recently added compatibility fix for mktime.c.
96154         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96155
96156 1998-09-27  Jim Meyering  <meyering@ascend.com>
96157
96158         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96159
96160         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96161         ../configure.in, including a change from Gordon Matzigkeit to allow
96162         cross-compiling for the Hurd.
96163
96164         * m4/glibc.m4: New file/macro to test for the GNU C Library
96165         versions 1 and 2.  From Gordon Matzigkeit.
96166         Indent.
96167
96168 1998-09-21  Jim Meyering  <meyering@ascend.com>
96169
96170         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96171
96172 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96173
96174         Port nanosecond-resolution times to UnixWare 2.1.2 and
96175         pedantic Solaris 2.6.
96176
96177         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96178         AC_STRUCT_ST_MTIM.
96179         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96180         Generate name of ns member, instead of just 1 or undef.
96181         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96182
96183 1998-08-15  Jim Meyering  <meyering@ascend.com>
96184
96185         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96186         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96187         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96188         instead of jm_TYPE_SSIZE_T.
96189
96190 1998-08-12  Jim Meyering  <meyering@ascend.com>
96191
96192         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96193
96194 1998-08-02  Jim Meyering  <meyering@ascend.com>
96195
96196         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96197         in acconfig.h manually.
96198
96199 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96200
96201         * m4/st_mtim.m4: New file.
96202
96203 1998-07-28  Jim Meyering  <meyering@ascend.com>
96204
96205         * m4/utimes.m4: Undef stat.
96206
96207 1998-07-25  Jim Meyering  <meyering@ascend.com>
96208
96209         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96210         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96211
96212 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96213
96214         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96215         uid and gid actually remain unchanged.
96216
96217 1998-07-07  Jim Meyering  <meyering@ascend.com>
96218
96219         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96220
96221 1998-07-04  Jim Meyering  <meyering@ascend.com>
96222
96223         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96224         to prove that this macro can be used in packages without regex.c.
96225
96226 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96227
96228         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96229         is to be used.
96230
96231 1998-07-03  Jim Meyering  <meyering@ascend.com>
96232
96233         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96234
96235         * m4/gettext.m4: New file -- from gettext-0.10.35.
96236         * m4/lcmessage.m4: Likewise.
96237         * m4/progtest.m4: Likewise.
96238
96239         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96240         * m4/jm-macros.m4: Require the new macro.
96241
96242 1998-06-29  Jim Meyering  <meyering@ascend.com>
96243
96244         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96245         for the definition of NGROUPS (used in a system header included
96246         by sys/mount.h).
96247
96248 1998-06-28  Jim Meyering  <meyering@ascend.com>
96249
96250         * m4/ls-mntd-fs.m4: New file.
96251         * m4/fstypename.m4: New file.
96252
96253         * m4/jm-macros.m4: Require the new macro.
96254         * m4/jm-glibc-io.m4: New file.
96255
96256 1998-05-19  Jim Meyering  <meyering@ascend.com>
96257
96258         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96259         * m4/lchown.m4: New file.
96260
96261         * m4/Makefile.am.in: New file.
96262         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96263
96264 1998-05-14  Jim Meyering  <meyering@ascend.com>
96265
96266         * m4/Makefile.am (EXTRA_DIST): Add them.
96267         * m4/jm-macros.m4: New file.
96268         * m4/utimbuf.m4: New file.
96269
96270 1998-05-12  Jim Meyering  <meyering@ascend.com>
96271
96272         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96273
96274 1998-05-11  Jim Meyering  <meyering@ascend.com>
96275
96276         * m4/isc-posix.m4: New file.
96277
96278 1998-05-10  Jim Meyering  <meyering@ascend.com>
96279
96280         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96281
96282 1998-05-09  Jim Meyering  <meyering@ascend.com>
96283
96284         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96285         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96286         with automake.
96287
96288         * m4/ssize_t.m4: New file.
96289         * m4/mktime.m4: Remove file -- the new automake has this now.
96290
96291 1998-04-26  Jim Meyering  <meyering@ascend.com>
96292
96293         * m4/assert.m4: New file.
96294         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96295
96296 1998-04-05  Jim Meyering  <meyering@ascend.com>
96297
96298         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96299         (jm_PREREQ): Use it here.
96300
96301 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96302
96303         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96304         in acconfig.h.
96305
96306 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96307
96308         * m4/prereq.m4: New file.
96309         * m4/error.m4: New file.
96310         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96311
96312 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96313
96314         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96315         cache-check for the same variable -- that defeated the purpose of
96316         the test; the test program was never run.  This was a problem only
96317         on systems with losing getline functions -- HP-UX 10.20 is one.
96318         Reported by Bjorn Helgaas.
96319
96320 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96321
96322         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96323
96324 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96325
96326         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96327
96328         * m4/const.m4: New file.  Use an initializer in this declaration
96329         typedef int charset[2]; const charset x;
96330         Reported by Bob Glickstein.
96331
96332 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96333
96334         * m4/chown.m4: Fix reversed types on -1 args to chown.
96335         From Kaveh Ghazi.
96336
96337 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96338
96339         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96340         Add lseek and memchr.
96341
96342         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96343         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96344         have a 20-character limit on names.
96345
96346 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96347
96348         * m4/inttypes_h.m4: New file.
96349         * m4/uintmax_t.m4: New file.
96350         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96351
96352
96353         -----
96354
96355         Local Variables:
96356         coding: utf-8
96357         End:
96358
96359         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96360
96361         Copying and distribution of this file, with or without
96362         modification, are permitted provided the copyright notice
96363         and this notice are preserved.